Browse Source

入库添加线下货物增加仓库备注

zhaoyanlong 2 days ago
parent
commit
16cc9ab72d
1 changed files with 11 additions and 3 deletions
  1. 11 3
      pages/sample/product.vue

+ 11 - 3
pages/sample/product.vue

@@ -109,6 +109,10 @@
 						<text class="uni-form-item__title" style="width: 30%;">设备编号</text>
 						<input class="uni-input" :value="deviceid" @input="deviceidChange" />
 					</view>
+					<view class="uni-input-wrapper" style="margin: 5px auto;">
+						<text class="uni-form-item__title" style="width: 30%;">仓库备注</text>
+						<input class="uni-input" :value="stock_remark" @input="stock_remarkChange" />
+					</view>
 					<br><br>
 					<button class="mini-btn" size="mini" @click="closeModal" style="width: 50%;float: left;">关闭</button>
 					<button class="mini-btn" type="primary" size="mini" @click="SelectConfirm"
@@ -139,6 +143,7 @@
 				name: "",
 				model: "",
 				deviceid: "",
+				stock_remark:"",
 				brand: "",
 				num: 0,
 				productid: "",
@@ -292,8 +297,11 @@
 			deviceidChange: function(e) {
 				this.deviceid = e.target.value
 			},
-
-
+			
+			stock_remarkChange: function(e) {
+				this.stock_remark = e.target.value
+			},
+	
 			closeModal() {
 				// 关闭模态框  
 				_this.productid = "";
@@ -328,7 +336,7 @@
 				data["types"] = "normal";
 				data["receipt_num"] = receiptNum;
 				data["warehouse_id"] = warehouse_id;
-				data["stock_remark"] = "";
+				data["stock_remark"] = _this.stock_remark;
 				data["purchaseid"] = "";
 				data["deviceid"] = _this.deviceid;
 				data["companyid"] = _this.companyid;