Przeglądaj źródła

供货商-采购的调整

jf 5 lat temu
rodzic
commit
f8e386dcf0

+ 4 - 0
ghsApp/src/mixins/allSelectInput.js

@@ -23,5 +23,9 @@ export default {
 			this.isAloneAllActive=true;
 			this.isAloneAllActive=true;
 			this.isAloneAllFocus=true;
 			this.isAloneAllFocus=true;
 		},
 		},
+		initWeightAllInput(){
+			this.isWeightActive=true;
+			this.isWeightFocus=true;
+		},
 	}
 	}
 };
 };

+ 28 - 11
ghsApp/src/pagesPurchase/add.vue

@@ -67,17 +67,9 @@
 				<view class="select-view">
 				<view class="select-view">
 					<view class="select-cmd_bx">
 					<view class="select-cmd_bx">
 						<view class="num_bx">
 						<view class="num_bx">
-							<view class="kc">
-								价格
-							</view>
-<!--							<input-->
-<!--								:value="customData.itemPrice"-->
-<!--								@change="changePriceEvent"-->
-<!--								type="number"-->
-<!--								placeholder="请填写采购总价"-->
-<!--							/>元-->
+							<view class="kc">价格</view>
 							<allSelectInput :isActive="isAloneAllActive" :isFocus="isAloneAllFocus" :value="customData.itemPrice" :placeholder="'请填写采购总价'"
 							<allSelectInput :isActive="isAloneAllActive" :isFocus="isAloneAllFocus" :value="customData.itemPrice" :placeholder="'请填写采购总价'"
-																							:width="400" :height="80" :fontSize="40"
+																							:width="416" :height="80" :fontSize="40"
 																							@deleteInputVal="deleteAloneInputVal" @initAllInput="initAloneAllInput" @moveAllInput="moveAloneAllInput">
 																							@deleteInputVal="deleteAloneInputVal" @initAllInput="initAloneAllInput" @moveAllInput="moveAloneAllInput">
 							</allSelectInput> <text style="margin-left: 20rpx">元</text>
 							</allSelectInput> <text style="margin-left: 20rpx">元</text>
 						</view>
 						</view>
@@ -97,6 +89,15 @@
 							<!--<input v-model="customData.smallCount" type="number" style="margin-left:24upx"/>支-->
 							<!--<input v-model="customData.smallCount" type="number" style="margin-left:24upx"/>支-->
 						</view>
 						</view>
 					</view>
 					</view>
+					<view class="select-cmd_bx">
+						<view class="num_bx">
+							<view class="kc">重量</view>
+							<allSelectInput :isActive="isWeightActive" :isFocus="isWeightFocus" :value="customData.weight" :placeholder="'公斤'"
+																							:width="416" :height="80" :fontSize="40"
+																							@deleteInputVal="deleteWeightInputVal" @initAllInput="initWeightAllInput" @moveAllInput="moveWeightAllInput">
+							</allSelectInput>
+						</view>
+					</view>
 				</view>
 				</view>
 			</template>
 			</template>
 		</modal-module>
 		</modal-module>
@@ -146,12 +147,16 @@ export default {
 			isAloneAllActive: false,
 			isAloneAllActive: false,
 			isAloneAllFocus: false,
 			isAloneAllFocus: false,
 
 
+			isWeightActive: false,
+			isWeightFocus: false,
+
 			isModel: false,
 			isModel: false,
 			showSubmitModel: false,
 			showSubmitModel: false,
 			customData: {
 			customData: {
 				bigCount: 0,
 				bigCount: 0,
 				smallCount: 0,
 				smallCount: 0,
-				itemPrice: 0
+				itemPrice: 0,
+				weight:0
 			}
 			}
 		};
 		};
 	},
 	},
@@ -164,11 +169,23 @@ export default {
 			if(e==''){return}
 			if(e==''){return}
 			this.customData.itemPrice = e;
 			this.customData.itemPrice = e;
 		},
 		},
+		// 公斤离开全选input alone
+		moveWeightAllInput(e){
+			this.isWeightActive=false;
+			this.isWeightFocus=false;
+			if(e==''){return}
+			this.customData.weight = e;
+		},
 		//input点击删除按键
 		//input点击删除按键
 		deleteAloneInputVal(){
 		deleteAloneInputVal(){
 			this.isAloneAllActive=false;
 			this.isAloneAllActive=false;
 			this.customData.itemPrice = '';
 			this.customData.itemPrice = '';
 		},
 		},
+		//input重量点击删除按键
+		deleteWeightInputVal(){
+			this.isWeightActive=false;
+			this.customData.weight = '';
+		},
 		//自定义数量
 		//自定义数量
 		customNum(info) {
 		customNum(info) {
 			this.isModel = true;
 			this.isModel = true;

+ 1 - 0
ghsApp/src/pagesPurchase/details.vue

@@ -304,6 +304,7 @@ export default {
 						bigNum: ele.bigCount,
 						bigNum: ele.bigCount,
 						smallNum: ele.smallCount,
 						smallNum: ele.smallCount,
 						itemId:ele.itemId,
 						itemId:ele.itemId,
+						weight:ele.weight,
 						itemPrice: ele.itemPrice || this.getSelectItemPrice(ele)
 						itemPrice: ele.itemPrice || this.getSelectItemPrice(ele)
 					};
 					};
 				});
 				});