|
@@ -11,8 +11,8 @@
|
|
|
@keyup.enter.native="$refs.table.refresh(true)" >
|
|
|
<a-row :gutter="15">
|
|
|
<a-col :md="7" :sm="24">
|
|
|
- <a-form-model-item label="车架号(VIN)" prop="vinNo">
|
|
|
- <a-input id="productInfoList-vinNo" v-model.trim="queryParam.vinNo" @change="vinNoChange" allowClear placeholder="请输入车架号(VIN)">
|
|
|
+ <a-form-model-item label="车架号(VIN)" prop="vinCode">
|
|
|
+ <a-input id="productInfoList-vinCode" v-model.trim="queryParam.vinCode" allowClear placeholder="请输入车架号(VIN)">
|
|
|
<a-icon @click="uploadFun" type="camera" slot="addonAfter" :style="{ fontSize: '18px', verticalAlign: 'bottom' }" />
|
|
|
</a-input>
|
|
|
<input type="file" id="filed" hidden="" @change="filePreview">
|
|
@@ -216,7 +216,7 @@ export default {
|
|
|
productCode: '', // 产品编码
|
|
|
productName: '', // 产品名称
|
|
|
productOrigCode: '', // 原厂编码
|
|
|
- vinNo: '',
|
|
|
+ vinCode: '',
|
|
|
productCodeList: undefined, // 车架号
|
|
|
brandSn: undefined, // 产品品牌
|
|
|
productTypeSn1: '', // 产品一级分类
|
|
@@ -225,7 +225,7 @@ export default {
|
|
|
warehouseSn: undefined // 仓库
|
|
|
},
|
|
|
rules: {
|
|
|
- vinNo: [ { len: 17, message: '请输入正确的车架号(VIN)', trigger: 'change' } ]
|
|
|
+ vinCode: [ { len: 17, message: '请输入正确的车架号(VIN)', trigger: 'change' } ]
|
|
|
},
|
|
|
disabled: false, // 查询、重置按钮是否可操作
|
|
|
productBrandList: [], // 下拉数据
|
|
@@ -299,7 +299,7 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
// vin change
|
|
|
- vinNoChange (e) {
|
|
|
+ vinCodeChange (e) {
|
|
|
if (e.target.value.length == 17) {
|
|
|
supperCodeByVin({ vin: e.target.value }).then(res => {
|
|
|
if (res.status == 200) {
|
|
@@ -361,7 +361,7 @@ export default {
|
|
|
this.queryParam.productTypeSn3 = ''
|
|
|
this.queryParam.warehouseSn = undefined
|
|
|
this.queryParam.productCodeList = undefined
|
|
|
- this.queryParam.vinNo = ''
|
|
|
+ this.queryParam.vinCode = ''
|
|
|
this.productType = []
|
|
|
this.$refs.table.refresh(true)
|
|
|
this.$refs.ruleForm.resetFields()
|
|
@@ -403,9 +403,9 @@ export default {
|
|
|
reader.addEventListener('loadend', function () {
|
|
|
const obj = JSON.parse(reader.result)
|
|
|
if (obj.status == 200) {
|
|
|
- _this.queryParam.vinNo = obj.data || ''
|
|
|
+ _this.queryParam.vinCode = obj.data || ''
|
|
|
// 移除表单项的校验结果
|
|
|
- _this.$refs.ruleForm.clearValidate('vinNo')
|
|
|
+ _this.$refs.ruleForm.clearValidate('vinCode')
|
|
|
} else {
|
|
|
_this.$notification.error({
|
|
|
message: '提示',
|