lilei 2 months ago
parent
commit
0fb425db65

+ 1 - 1
public/version.json

@@ -1,5 +1,5 @@
 {
   "message": "发现有新版本发布,确定更新系统?",
   "vendorJsVersion": "",
-  "version": 1744615122596
+  "version": 1744708300173
 }

+ 11 - 5
src/views/salesManagement/salesQueryNew/chooseProductModal.vue

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

+ 2 - 2
vue.config.js

@@ -209,8 +209,8 @@ const vueConfig = {
     // If you want to turn on the proxy, please remove the mockjs /src/main.jsL11
     proxy: {
       '/api': {
-        target: 'http://192.168.2.103:8503/qpls-md',
-        // target: 'https://p.iscm.360arrow.com/qpls-md',
+        // target: 'http://192.168.2.103:8503/qpls-md',
+        target: 'https://p.iscm.360arrow.com/qpls-md',
         // ws: false,
         ws: true,
         changeOrigin: true,