Pārlūkot izejas kodu

fix:“增加42种花型和修复添加设备价格空白的问题”

soobin 1 gadu atpakaļ
vecāks
revīzija
e8c217bdd0
1 mainītis faili ar 279 papildinājumiem un 0 dzēšanām
  1. 279 0
      packageB/pages/remote/updatePrice.vue

+ 279 - 0
packageB/pages/remote/updatePrice.vue

@@ -344,6 +344,114 @@
 			</view>
 		</view>
 		<view class="line"></view>
+		<view class="search">
+			<view class="search-title">
+				{{$t('updatePrice.A37')}}:
+			</view>
+			<view class="search-input2">
+				<input type="text"  v-model="A37" />
+			</view>
+		</view>
+		<view class="line"></view>
+		<view class="search">
+			<view class="search-title">
+				{{$t('updatePrice.A38')}}:
+			</view>
+			<view class="search-input2">
+				<input type="text"  v-model="A38" />
+			</view>
+		</view>
+		<view class="line"></view>
+		<view class="search">
+			<view class="search-title">
+				{{$t('updatePrice.A39')}}:
+			</view>
+			<view class="search-input2">
+				<input type="text"  v-model="A39" />
+			</view>
+		</view>
+		<view class="line"></view>
+		<view class="search">
+			<view class="search-title">
+				{{$t('updatePrice.A40')}}:
+			</view>
+			<view class="search-input2">
+				<input type="text"  v-model="A40" />
+			</view>
+		</view>
+		<view class="line"></view>
+		<view class="search">
+			<view class="search-title">
+				{{$t('updatePrice.A41')}}:
+			</view>
+			<view class="search-input2">
+				<input type="text"  v-model="A41" />
+			</view>
+		</view>
+		<view class="line"></view>
+		<view class="search">
+			<view class="search-title">
+				{{$t('updatePrice.A42')}}:
+			</view>
+			<view class="search-input2">
+				<input type="text"  v-model="A42" />
+			</view>
+		</view>
+		<view class="line"></view>
+		<view class="search">
+			<view class="search-title">
+				{{$t('updatePrice.A43')}}:
+			</view>
+			<view class="search-input2">
+				<input type="text"  v-model="A43" />
+			</view>
+		</view>
+		<view class="line"></view>
+		<view class="search">
+			<view class="search-title">
+				{{$t('updatePrice.A44')}}:
+			</view>
+			<view class="search-input2">
+				<input type="text"  v-model="A44" />
+			</view>
+		</view>
+		<view class="line"></view>
+		<view class="search">
+			<view class="search-title">
+				{{$t('updatePrice.A45')}}:
+			</view>
+			<view class="search-input2">
+				<input type="text"  v-model="A45" />
+			</view>
+		</view>
+		<view class="line"></view>
+		<view class="search">
+			<view class="search-title">
+				{{$t('updatePrice.A46')}}:
+			</view>
+			<view class="search-input2">
+				<input type="text"  v-model="A46" />
+			</view>
+		</view>
+		<view class="line"></view>
+		<view class="search">
+			<view class="search-title">
+				{{$t('updatePrice.A47')}}:
+			</view>
+			<view class="search-input2">
+				<input type="text"  v-model="A47" />
+			</view>
+		</view>
+		<view class="line"></view>
+		<view class="search">
+			<view class="search-title">
+				{{$t('updatePrice.A48')}}:
+			</view>
+			<view class="search-input2">
+				<input type="text"  v-model="A48" />
+			</view>
+		</view>
+		<view class="line"></view>
 		<!-- //提交按钮 -->
 		<view class="tr">
 			<button  type="primary" formType="submit" @click="update()" class="button">
@@ -412,6 +520,18 @@
 				A33:'',
 				A34:'',
 				A35:'',
+				A37:'',
+				A38:'',
+				A39:'',
+				A40:'',
+				A41:'',
+				A42:'',
+				A43:'',
+				A44:'',
+				A45:'',
+				A46:'',
+				A47:'',
+				A48:''
 			}
 		},
 		onShow() {
@@ -498,6 +618,9 @@
 						n++;
 						var id = list[i].id;
 						this.equipmentIds.push(id);
+						setTimeout(() => {
+							this.getProduct();
+						}, 2000);
 						break;
 					}
 				}
@@ -671,6 +794,42 @@
 										case "A35":
 											this.A35 = list[i].rmbPrice;
 										break;
+										case "A37":
+											this.A37 = list[i].codePrice;
+										break;
+										case "A38":
+											this.A38 = list[i].codePrice;
+										break;
+										case "A39":
+											this.A39 = list[i].codePrice;
+										break;
+										case "A40":
+											this.A40 = list[i].codePrice;
+										break;
+										case "A41":
+											this.A41 = list[i].codePrice;
+										break;
+										case "A42":
+											this.A42 = list[i].codePrice;
+										break;
+										case "A43":
+											this.A43 = list[i].codePrice;
+										break;
+										case "A44":
+											this.A44 = list[i].codePrice;
+										break;
+										case "A45":
+											this.A45 = list[i].codePrice;
+										break;
+										case "A46":
+											this.A46 = list[i].codePrice;
+										break;
+										case "A47":
+											this.A47 = list[i].codePrice;
+										break;
+										case "A48":
+											this.A48 = list[i].codePrice;
+										break;
 									}
 								}
 							}else{
@@ -785,6 +944,42 @@
 										case "A35":
 											this.A35 = list[i].codePrice;
 										break;
+										case "A37":
+											this.A37 = list[i].codePrice;
+										break;
+										case "A38":
+											this.A38 = list[i].codePrice;
+										break;
+										case "A39":
+											this.A39 = list[i].codePrice;
+										break;
+										case "A40":
+											this.A40 = list[i].codePrice;
+										break;
+										case "A41":
+											this.A41 = list[i].codePrice;
+										break;
+										case "A42":
+											this.A42 = list[i].codePrice;
+										break;
+										case "A43":
+											this.A43 = list[i].codePrice;
+										break;
+										case "A44":
+											this.A44 = list[i].codePrice;
+										break;
+										case "A45":
+											this.A45 = list[i].codePrice;
+										break;
+										case "A46":
+											this.A46 = list[i].codePrice;
+										break;
+										case "A47":
+											this.A47 = list[i].codePrice;
+										break;
+										case "A48":
+											this.A48 = list[i].codePrice;
+										break;
 									}
 								}
 							}
@@ -1063,6 +1258,90 @@
 								products.push(product);
 								product={};
 							}
+							if(that.A37!=''){
+								product.showType = that.equipmentIds;
+								product.no = 'A37';
+								product.rmbPrice = that.A37;
+								products.push(product);
+								product={};
+							}
+							if(that.A38!=''){
+								product.showType = that.equipmentIds;
+								product.no = 'A38';
+								product.rmbPrice = that.A38;
+								products.push(product);
+								product={};
+							}
+							if(that.A39!=''){
+								product.showType = that.equipmentIds;
+								product.no = 'A39';
+								product.rmbPrice = that.A39;
+								products.push(product);
+								product={};
+							}
+							if(that.A40!=''){
+								product.showType = that.equipmentIds;
+								product.no = 'A40';
+								product.rmbPrice = that.A40;
+								products.push(product);
+								product={};
+							}
+							if(that.A41!=''){
+								product.showType = that.equipmentIds;
+								product.no = 'A41';
+								product.rmbPrice = that.A41;
+								products.push(product);
+								product={};
+							}
+							if(that.A42!=''){
+								product.showType = that.equipmentIds;
+								product.no = 'A42';
+								product.rmbPrice = that.A42;
+								products.push(product);
+								product={};
+							}
+							if(that.A43!=''){
+								product.showType = that.equipmentIds;
+								product.no = 'A43';
+								product.rmbPrice = that.A43;
+								products.push(product);
+								product={};
+							}
+							if(that.A44!=''){
+								product.showType = that.equipmentIds;
+								product.no = 'A44';
+								product.rmbPrice = that.A44;
+								products.push(product);
+								product={};
+							}
+							if(that.A45!=''){
+								product.showType = that.equipmentIds;
+								product.no = 'A45';
+								product.rmbPrice = that.A45;
+								products.push(product);
+								product={};
+							}
+							if(that.A46!=''){
+								product.showType = that.equipmentIds;
+								product.no = 'A46';
+								product.rmbPrice = that.A46;
+								products.push(product);
+								product={};
+							}
+							if(that.A47!=''){
+								product.showType = that.equipmentIds;
+								product.no = 'A47';
+								product.rmbPrice = that.A47;
+								products.push(product);
+								product={};
+							}
+							if(that.A48!=''){
+								product.showType = that.equipmentIds;
+								product.no = 'A48';
+								product.rmbPrice = that.A48;
+								products.push(product);
+								product={};
+							}
 							var list = JSON.stringify(products);
 							uni.request({
 								url: serverurl + '/TProduct/updateProductsById',