| 
					
				 | 
			
			
				@@ -13,8 +13,9 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <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)"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                <Upload slot="addonAfter" class="upload" v-model="queryParam.vinNoMsg" ref="vinNoMsg" @change="handleCamera"></Upload> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                <a-icon @click="uploadFun" type="camera" slot="addonAfter" :style="{ fontSize: '18px', verticalAlign: 'bottom' }" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               </a-input> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <input type="file" id="filed" hidden="" @change="filePreview"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </a-form-model-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </a-col> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <a-col :md="6" :sm="24"> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -61,11 +62,6 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 </a-select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               </a-form-model-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </a-col> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <!-- <a-col :md="6" :sm="24"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              <a-form-item label="车型"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                <v-select code="CHECK_ENABLE_STATE" id="productInfoList-state" v-model="queryParam.state" allowClear placeholder="请选择车型"></v-select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              </a-form-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            </a-col> --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <a-col :md="5" :sm="24"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <a-form-model-item label="仓库"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 <a-select 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -182,7 +178,7 @@ import { querySumByProductLocation } from '@/api/stock' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { warehouseAllList } from '@/api/warehouse' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import productSalesRecordModal from './productSalesRecordModal.vue' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { STable, VSelect, Upload } from '@/components' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import { supperCodeByVin } from '@/api/sales' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import { supperCodeByVin, vinCodeParse } from '@/api/sales' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   name: 'QueryPart', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   components: { STable, VSelect, Upload, productSalesRecordModal }, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -392,9 +388,34 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     closeModal () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.openModal = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    // VIN码上传图片 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    handleCamera (file) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      console.log(file) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    uploadFun () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      document.getElementById('filed').click() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    filePreview (e) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      const _this = this 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      var files = e.target.files[0] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      const formData = new FormData() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      formData.append('savePathType', 'local') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      formData.append('file', files) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      vinCodeParse(formData).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (res.type == 'application/json') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          var reader = new FileReader() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          reader.addEventListener('loadend', function () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            const obj = JSON.parse(reader.result) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (obj.status == 200) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              _this.queryParam.vinNo = obj.data || '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              // 移除表单项的校验结果 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              _this.$refs.ruleForm.clearValidate('vinNo') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              _this.$notification.error({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                message: '提示', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                description: obj.message 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          reader.readAsText(res) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     // 仓库 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     getWarehouse () { 
			 |