Commit 253769cc by zhangquan

bug修复

1 parent 2bae02a2
...@@ -223,7 +223,12 @@ export default { ...@@ -223,7 +223,12 @@ export default {
spinner: 'el-icon-loading', spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.3)' background: 'rgba(0, 0, 0, 0.3)'
}) })
this.$apis.contractManager.printContractApi({ packageCode: this.pdfObj.packageCode, baseFlag: this.routerInfo.skuId ? 1 : 0 }).then(res => { const params = {
packageCode: this.pdfObj.packageCode,
baseFlag: this.routerInfo.skuId ? 1 : 0
}
if (!this.routerInfo.skuId) params.merchantId = this.pdfObj.merchantId
this.$apis.contractManager.printContractApi(params).then(res => {
this.pdfUrl = res this.pdfUrl = res
this.handlePdfClose() this.handlePdfClose()
loading.close() loading.close()
......
...@@ -46,7 +46,10 @@ ...@@ -46,7 +46,10 @@
<ul> <ul>
<li v-for="ele in goodInfoList" :key="ele.key"> <li v-for="ele in goodInfoList" :key="ele.key">
<label for="" class="label">{{ ele.label }}:</label> <label for="" class="label">{{ ele.label }}:</label>
<span class="val">{{ item[ele.key] || '--' }}</span> <span class="val">
{{ item[ele.key] || '--' }}
<span v-if="ele.key == 'servicePeriod' && item[ele.key]">年</span>
</span>
</li> </li>
</ul> </ul>
</div> </div>
...@@ -138,7 +141,7 @@ export default { ...@@ -138,7 +141,7 @@ export default {
goodInfoList: GOOD_INFO_LIST, goodInfoList: GOOD_INFO_LIST,
detailData: {}, detailData: {},
searchForm: { searchForm: {
baseld: '', baseId: '',
baseName: '', baseName: '',
createdDate: '', createdDate: '',
updatedDate: '' updatedDate: ''
...@@ -147,7 +150,7 @@ export default { ...@@ -147,7 +150,7 @@ export default {
searchFormData: [ searchFormData: [
{ {
label: 'ID', label: 'ID',
name: 'baseld', name: 'baseId',
type: 'input', type: 'input',
isClear: true isClear: true
}, },
...@@ -375,7 +378,7 @@ export default { ...@@ -375,7 +378,7 @@ export default {
handleReset() { handleReset() {
this.searchForm = { this.searchForm = {
baseld: '', baseId: '',
baseName: '', baseName: '',
createdDate: '', createdDate: '',
updatedDate: '' updatedDate: ''
......
...@@ -72,8 +72,8 @@ ...@@ -72,8 +72,8 @@
<template v-if="attr.attributeType == 'table'"> <template v-if="attr.attributeType == 'table'">
<div> <div>
<div class="example_btn"> <div class="example_btn">
<el-popover placement="top-start" width="200" trigger="hover" content="这是一段内容,这是一段内容,这是一段内容,这是一段内容。"> <el-popover placement="top-start" trigger="hover" content="这是一段内容,这是一段内容,这是一段内容,这是一段内容。">
<img :src="require('@/assets/images/tyre-example.png')" alt="" /> <img width="400px" :src="require('@/assets/images/tyre-example.png')" alt="" />
<span slot="reference">示例</span> <span slot="reference">示例</span>
</el-popover> </el-popover>
</div> </div>
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
<td class="text" v-if="n == 2">左后胎</td> <td class="text" v-if="n == 2">左后胎</td>
<td class="text" v-if="n == 3">右后胎</td> <td class="text" v-if="n == 3">右后胎</td>
<td v-for="(i, j) in tdo_list" :key="j"> <td v-for="(i, j) in tdo_list" :key="j">
<el-input :class="{ 'border-red': !TDOTableData[item.packageCode][i.attributeGroup][n] }" :disabled="i.isDisabled" placeholder="请输入" @input="inputTdoVal(item, n)" v-model="TDOTableData[item.packageCode][i.attributeGroup][n]" :maxlength="i.maxlength"> <el-input :class="{ 'border-red': !TDOTableData[item.packageCode][i.attributeGroup][n] }" :disabled="disabled" placeholder="请输入" @input="inputTdoVal(item, n)" v-model="TDOTableData[item.packageCode][i.attributeGroup][n]" :maxlength="20">
<el-popover v-show="!TDOTableData[item.packageCode][i.attributeGroup][n]" slot="suffix" placement="top" title="" width="90" trigger="hover" :content="i.label + '是必填项'"> <el-popover v-show="!TDOTableData[item.packageCode][i.attributeGroup][n]" slot="suffix" placement="top" title="" width="90" trigger="hover" :content="i.label + '是必填项'">
<i class="el-icon-warning color-red" slot="reference"></i> <i class="el-icon-warning color-red" slot="reference"></i>
</el-popover> </el-popover>
...@@ -103,8 +103,8 @@ ...@@ -103,8 +103,8 @@
<template v-if="attr.attributeType == 'input'"> <template v-if="attr.attributeType == 'input'">
<el-input class="arrt_pannel" :disabled="disabled || attr.disabled || (attr.attributeName == 'compensation_name' && compensationNameDisable)" @input="getCurChangeInput($event, item, attr, index, attrindex, 1)" v-model="productModal[item.idName][attr.attributeName]" size="small" :maxlength="attr.maxLength" clearable :placeholder="'请输入' + attr.attributeDesc"></el-input> <el-input class="arrt_pannel" :disabled="disabled || attr.disabled || (attr.attributeName == 'compensation_name' && compensationNameDisable)" @input="getCurChangeInput($event, item, attr, index, attrindex, 1)" v-model="productModal[item.idName][attr.attributeName]" size="small" :maxlength="attr.maxLength" clearable :placeholder="'请输入' + attr.attributeDesc"></el-input>
<div v-if="attr.groupName == 'tireScaleNew'" class="example_btn specific_example_btn"> <div v-if="attr.groupName == 'tireScaleNew'" class="example_btn specific_example_btn">
<el-popover placement="top-start" width="200" trigger="hover" content="这是一段内容,这是一段内容,这是一段内容,这是一段内容。"> <el-popover placement="left-start" trigger="hover" content="这是一段内容,这是一段内容,这是一段内容,这是一段内容。">
<img :src="require('@/assets/images/tyre-specific.png')" alt="" /> <img width="400px" :src="require('@/assets/images/tyre-specific.png')" alt="" />
<span slot="reference">示例</span> <span slot="reference">示例</span>
</el-popover> </el-popover>
</div> </div>
...@@ -170,8 +170,8 @@ ...@@ -170,8 +170,8 @@
<template v-if="attr.attributeType == 'table'"> <template v-if="attr.attributeType == 'table'">
<div> <div>
<div class="example_btn"> <div class="example_btn">
<el-popover placement="top-start" width="200" trigger="hover" content="这是一段内容,这是一段内容,这是一段内容,这是一段内容。"> <el-popover placement="top-start" trigger="hover" content="这是一段内容,这是一段内容,这是一段内容,这是一段内容。">
<img :src="require('@/assets/images/tyre-example.png')" alt="" /> <img width="400px" :src="require('@/assets/images/tyre-example.png')" alt="" />
<span slot="reference">示例</span> <span slot="reference">示例</span>
</el-popover> </el-popover>
</div> </div>
...@@ -187,7 +187,7 @@ ...@@ -187,7 +187,7 @@
<td class="text" v-if="n == 2">左后胎</td> <td class="text" v-if="n == 2">左后胎</td>
<td class="text" v-if="n == 3">右后胎</td> <td class="text" v-if="n == 3">右后胎</td>
<td v-for="(i, j) in tdo_list" :key="j"> <td v-for="(i, j) in tdo_list" :key="j">
<el-input :class="{ 'border-red': !TDOTableData[item.packageCode][i.attributeGroup][n] }" :disabled="i.isDisabled" placeholder="请输入" @input="inputTdoVal(item, n)" v-model="TDOTableData[item.packageCode][i.attributeGroup][n]" :maxlength="i.maxlength"> <el-input :class="{ 'border-red': !TDOTableData[item.packageCode][i.attributeGroup][n] }" :disabled="disabled" placeholder="请输入" @input="inputTdoVal(item, n)" v-model="TDOTableData[item.packageCode][i.attributeGroup][n]" :maxlength="20">
<el-popover v-show="!TDOTableData[item.packageCode][i.attributeGroup][n]" slot="suffix" placement="top" title="" width="90" trigger="hover" :content="i.label + '是必填项'"> <el-popover v-show="!TDOTableData[item.packageCode][i.attributeGroup][n]" slot="suffix" placement="top" title="" width="90" trigger="hover" :content="i.label + '是必填项'">
<i class="el-icon-warning color-red" slot="reference"></i> <i class="el-icon-warning color-red" slot="reference"></i>
</el-popover> </el-popover>
...@@ -203,8 +203,8 @@ ...@@ -203,8 +203,8 @@
<el-input v-else class="arrt_pannel" :disabled="disabled || attr.disabled || (attr.attributeName == 'compensation_name' && compensationNameDisable)" @input="getCurChangeInput($event, item, attr, index, attrindex, 2)" v-model="productModal[item.idName][attr.attributeName]" size="small" :maxlength="attr.maxLength" clearable :placeholder="'请输入' + attr.attributeDesc"></el-input> <el-input v-else class="arrt_pannel" :disabled="disabled || attr.disabled || (attr.attributeName == 'compensation_name' && compensationNameDisable)" @input="getCurChangeInput($event, item, attr, index, attrindex, 2)" v-model="productModal[item.idName][attr.attributeName]" size="small" :maxlength="attr.maxLength" clearable :placeholder="'请输入' + attr.attributeDesc"></el-input>
<div v-if="attr.groupName == 'tireScaleNew'" class="example_btn specific_example_btn"> <div v-if="attr.groupName == 'tireScaleNew'" class="example_btn specific_example_btn">
<el-popover placement="top-start" width="200" trigger="hover" content="这是一段内容,这是一段内容,这是一段内容,这是一段内容。"> <el-popover placement="left-start" trigger="hover" content="这是一段内容,这是一段内容,这是一段内容,这是一段内容。">
<img :src="require('@/assets/images/tyre-specific.png')" alt="" /> <img width="400px" :src="require('@/assets/images/tyre-specific.png')" alt="" />
<span slot="reference">示例</span> <span slot="reference">示例</span>
</el-popover> </el-popover>
</div> </div>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!