zhongtianhaoyuan před 3 roky
rodič
revize
5196fb2234
1 změnil soubory, kde provedl 4 přidání a 8 odebrání
  1. 4 8
      pages/erpbusiness/add_quality_testing.vue

+ 4 - 8
pages/erpbusiness/add_quality_testing.vue

@@ -345,8 +345,10 @@
 
 		<u-popup v-model="alterPrice" :round="10" @close="alterClose" mode="center" border-radius="10">
 			<view style="padding: 20px 20px; display: flex;">
-				<span style="line-height: 35px;">单价:</span>
-				<u-input placeholder="请输入内容" :border="true" name="input" type="digit" clearable v-model="Price" style="width: 170px;">
+				<span style="line-height: 35px;">单价(元/公斤):</span>
+				<u-input v-if="gridList.type == '潮粮'" placeholder="请输入内容" :border="true" name="input" type="digit" clearable v-model="gridList.tidalGrainPrice" style="width: 170px;">
+				</u-input>
+				<u-input v-if="gridList.type == '干粮'" placeholder="请输入内容" :border="true" name="input" type="digit" clearable v-model="gridList.dryGrainPrice" style="width: 170px;">
 				</u-input>
 			</view>
 			<u-button type="success" style="width: 50%;margin-bottom: 10px;" @click="good">确定</u-button>
@@ -718,12 +720,6 @@
 				}
 			},
 			good() {
-				debugger
-				if (this.gridList.type == '干粮') {
-					this.gridList.dryGrainPrice = this.Price
-				} else if (this.gridList.type == '潮粮') {
-					this.gridList.tidalGrainPrice = this.Price
-				}
 				this.alterPrice = false
 			},
 			alterClose() {