lilei 3 anni fa
parent
commit
82b0c87375
2 ha cambiato i file con 8 aggiunte e 7 eliminazioni
  1. 3 2
      pages/sales/productSearch.vue
  2. 5 5
      pages/sales/search.vue

+ 3 - 2
pages/sales/productSearch.vue

@@ -10,7 +10,7 @@
 						</view>
 					</u-upload>
 				</u-form-item>
-				<u-form-item label="产品编码" prop="productCode" class="form-item">
+				<u-form-item label="产品编码1" prop="productCode" class="form-item">
 					<u-input v-model.trim="form.productCode" placeholder="请输入产品编码" input-align="right" />
 				</u-form-item>
 				<u-form-item label="原厂编码" prop="productOrigCode" class="form-item">
@@ -162,10 +162,11 @@
 					indArr: [],
 					nowInd: 0
 				}
-				this.brandName = ''
 				this.$refs.uForm.resetFields()
 				this.$emit('refresh', {})
 				this.isShow = false
+				this.brandClean()
+				this.typeClean()
 			},
 			uploadSuccess(res){
 				console.log(res)

+ 5 - 5
pages/sales/search.vue

@@ -75,11 +75,11 @@
 				this.form.code = ''
 				this.form.name = ''
 				this.form.origCode = ''
-				this.form.productBrandSn = undefined
-				this.form.productTypeSn1 = undefined
-				this.form.productTypeSn2 = undefined
-				this.form.productTypeSn3 = undefined
-				this.handleSearch()
+				this.brandClean()
+				this.typeClean()
+				setTimeout(()=>{
+					this.handleSearch()
+				},300)
 			},
 			handleSearch(){
 				let data = JSON.parse(JSON.stringify(this.form))