浏览代码

vin码查询

chenrui 3 年之前
父节点
当前提交
5b3af59e76
共有 1 个文件被更改,包括 8 次插入8 次删除
  1. 8 8
      src/views/salesManagement/salesQuery/queryPart.vue

+ 8 - 8
src/views/salesManagement/salesQuery/queryPart.vue

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