|
@@ -64,7 +64,7 @@
|
|
<a-col flex="2" v-if="$hasPermissions('B_salerVinFindProduct')&&sourceType !== 'TRANSFER_ORDER'">
|
|
<a-col flex="2" v-if="$hasPermissions('B_salerVinFindProduct')&&sourceType !== 'TRANSFER_ORDER'">
|
|
<a-form-model-item label="车架号(VIN)" prop="vinCode" class="vininputs">
|
|
<a-form-model-item label="车架号(VIN)" prop="vinCode" class="vininputs">
|
|
<a-input id="productInfoList-vinCode" v-model.trim="queryParam.vinCode" allowClear placeholder="请输入车架号(VIN)">
|
|
<a-input id="productInfoList-vinCode" v-model.trim="queryParam.vinCode" allowClear placeholder="请输入车架号(VIN)">
|
|
- <a-icon slot="addonAfter" @click="showUploadImg=true" :type="vinLoading?'loading':'camera'" :style="{ fontSize: '18px', verticalAlign: 'bottom',cursor:'pointer',padding:'0 10px' }" title="点击拖动图片识别VIN" />
|
|
|
|
|
|
+ <a-icon slot="addonAfter" @click="openUploadVin" :type="vinLoading?'loading':'camera'" :style="{ fontSize: '18px', verticalAlign: 'bottom',cursor:'pointer',padding:'0 10px' }" title="点击拖动图片识别VIN" />
|
|
</a-input>
|
|
</a-input>
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
</a-col>
|
|
</a-col>
|
|
@@ -89,7 +89,7 @@
|
|
<!-- 查看更多 -->
|
|
<!-- 查看更多 -->
|
|
<div v-if="hasVaild&&showTable" class="vinInfo-box">
|
|
<div v-if="hasVaild&&showTable" class="vinInfo-box">
|
|
<div>
|
|
<div>
|
|
- <span style="margin-right: 5px;">VIN车型:</span>
|
|
|
|
|
|
+ <span style="margin-right: 5px;" v-if="vinInfoData&&!vinInfoData.carInfo">VIN车型:</span>
|
|
<div class="vinInfo-error" v-if="vinInfoData&&!vinInfoData.carInfo">
|
|
<div class="vinInfo-error" v-if="vinInfoData&&!vinInfoData.carInfo">
|
|
<a-icon type="exclamation-circle" :style="{ color: '#E70012', fontSize: '15px', verticalAlign: 'sub', marginRight: '3px' }" />抱歉!暂未找到匹配VIN码的车型!
|
|
<a-icon type="exclamation-circle" :style="{ color: '#E70012', fontSize: '15px', verticalAlign: 'sub', marginRight: '3px' }" />抱歉!暂未找到匹配VIN码的车型!
|
|
</div>
|
|
</div>
|
|
@@ -116,7 +116,7 @@
|
|
@change="vinChangeProductType"
|
|
@change="vinChangeProductType"
|
|
mode="multiple"
|
|
mode="multiple"
|
|
style="min-width:300px"
|
|
style="min-width:300px"
|
|
- maxTagCount="5"
|
|
|
|
|
|
+ :maxTagCount="5"
|
|
placeholder="请选择产品分类筛选">
|
|
placeholder="请选择产品分类筛选">
|
|
<a-select-option v-for="item in vinInfoData.productTypeList" :key="item.id" :value="item.productTypeSn">{{ item.productTypeName }}</a-select-option>
|
|
<a-select-option v-for="item in vinInfoData.productTypeList" :key="item.id" :value="item.productTypeSn">{{ item.productTypeName }}</a-select-option>
|
|
</a-select>
|
|
</a-select>
|
|
@@ -492,6 +492,10 @@ export default {
|
|
this.$message.info('请输入查询条件')
|
|
this.$message.info('请输入查询条件')
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ openUploadVin () {
|
|
|
|
+ this.resetSearchForm()
|
|
|
|
+ this.showUploadImg = true
|
|
|
|
+ },
|
|
getList (params) {
|
|
getList (params) {
|
|
const _this = this
|
|
const _this = this
|
|
console.log(_this.vinProductTypeSn)
|
|
console.log(_this.vinProductTypeSn)
|
|
@@ -593,7 +597,7 @@ export default {
|
|
this.showTable = false
|
|
this.showTable = false
|
|
this.onlyList = false
|
|
this.onlyList = false
|
|
if (!flag) {
|
|
if (!flag) {
|
|
- this.$refs.table.refresh(true)
|
|
|
|
|
|
+ this.$refs.table && this.$refs.table.refresh(true)
|
|
}
|
|
}
|
|
},
|
|
},
|
|
pageInit (buyerSn, priceType, salesBillSn) {
|
|
pageInit (buyerSn, priceType, salesBillSn) {
|
|
@@ -609,7 +613,9 @@ export default {
|
|
clearTable () {
|
|
clearTable () {
|
|
this.vinInfoData = null
|
|
this.vinInfoData = null
|
|
this.$refs.ruleForm.resetFields()
|
|
this.$refs.ruleForm.resetFields()
|
|
- this.$refs.table.clearTable()
|
|
|
|
|
|
+ if (this.$refs.table) {
|
|
|
|
+ this.$refs.table.clearTable()
|
|
|
|
+ }
|
|
},
|
|
},
|
|
filterOption (input, option) {
|
|
filterOption (input, option) {
|
|
return (
|
|
return (
|