From 603670bfbc029fd081fb1c88d00a18f78ec7d349 Mon Sep 17 00:00:00 2001
From: 南骏 池 <chiffly@163.com>
Date: 星期三, 02 四月 2025 14:26:57 +0800
Subject: [PATCH] 1.采购入库界面优化
---
H5/PurchaseInventory.aspx | 80 +++++++++++++++++++++++++++------------
H5/Js/PurchaseInventory.js | 34 ++++++++++-------
2 files changed, 75 insertions(+), 39 deletions(-)
diff --git a/H5/Js/PurchaseInventory.js b/H5/Js/PurchaseInventory.js
index f535e6e..060010e 100644
--- a/H5/Js/PurchaseInventory.js
+++ b/H5/Js/PurchaseInventory.js
@@ -31,6 +31,9 @@
contentScrollW: 0, // 瀵艰埅鍖哄搴�
scrollLeft: 0, // 妯悜婊氬姩鏉′綅缃�
fullHeight: "",
+ sectionCode:"",
+ depotData: [],
+ ItemDetail: [],
}
},
mounted() {
@@ -45,25 +48,27 @@
var that = this;
that.isLoading = true;
that.AxiosHttp("post", 'MesDepotSections/GetSectionName', {
- sectionCode: that.formData.sectionCode
+ sectionCode: that.sectionCode
}, false)
.then(function (res) {
var json = res;
if (json.status == 0) {
- that.formData.sectionName = json.data.tbBillList;
+ that.depotData = json.data.tbBillList;
that.$refs.barcode.focus();
}
else {
that.$toast.fail(json.message);
- that.formData.sectionName = "";
+ that.depotData = [];
+ that.sectionCode = "";
}
that.isLoading = false;
})
.catch(function (error) {
that.isLoading = false;
that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
- console.log(error);
- that.$refs.daa001.focus();
+ that.depotData = [];
+ that.sectionCode = "";
+ that.$refs.sectionCode.focus();
});
},
getScan() {
@@ -71,20 +76,20 @@
that.isLoading = true;
that.AxiosHttp("post", 'MesInvItemInCDetails/SaveBarCodes', {
- sectionCode: that.formData.sectionCode,
+ sectionCode: that.sectionCode,
userName: that.userInfo.loginAccount,
barcode: that.formData.barcode,
}, false)
.then(function (res) {
var json = res;
if (json.status == 0) {
- that.formData.itemNo = json.data.tbBillList.itemNo;
- that.formData.sumQuantity = json.data.tbBillList.sumQuantity;
-
- that.itemInsFormData = json.data.tbBillList.itemIns;
- that.itemTableData = json.data.tbBillList.itemInDetails;
- that.tableData = json.data.tbBillList.invItemInCDetails;
- that.barMessage = json.data.tbBillList.message;
+ //that.formData.itemNo = json.data.tbBillList.itemNo;
+ //that.formData.sumQuantity = json.data.tbBillList.sumQuantity;
+ that.ItemDetail = json.data.tbBillList.itemInDetails;
+ //that.itemInsFormData = json.data.tbBillList.itemIns;
+ //that.itemTableData = json.data.tbBillList.itemInDetails;g
+ that.tableData = json.data.tbBillList.itemBarCDetails;
+ //that.barMessage = json.data.tbBillList.message;
that.$refs.barcode.focus();
that.formData.barcode = null;
}
@@ -140,7 +145,8 @@
});
},
cleraCode() {
- this.formData.sectionCode = null;
+ this.sectionCode = "";
+ this.$refs.sectionCode.focus();
},
ToErp() {
this.Message = "";
diff --git a/H5/PurchaseInventory.aspx b/H5/PurchaseInventory.aspx
index 413c639..440e205 100644
--- a/H5/PurchaseInventory.aspx
+++ b/H5/PurchaseInventory.aspx
@@ -18,7 +18,7 @@
<van-cell-group>
<van-field
ref="sectionCode"
- v-model="formData.sectionCode"
+ v-model="sectionCode"
label="搴撲綅缂栫爜"
clearable
placeholder="璇锋壂鐮�"
@@ -28,6 +28,18 @@
<%--@change="getModel" --%>
autofocus="true"
></van-field>
+ <van-field
+ v-model="depotData.depotName"
+ label="浠撳簱鍚嶇О"
+ placeholder=""
+ disabled
+></van-field>
+ <van-field
+ v-model="depotData.depotCode"
+ label="浠撳簱缂栫爜"
+ placeholder=""
+ disabled
+></van-field>
<van-field
ref="barcode"
v-model="formData.barcode"
@@ -42,57 +54,75 @@
<van-field
v-model="formData.itemNo"
label="鐗╂枡缂栫爜"
- placeholder="鐗╂枡缂栫爜"
+ placeholder=""
disabled
></van-field>
<van-field
v-model="formData.sumQuantity"
- label="褰撳墠鏉$爜鍏ュ簱鏁伴噺"
- placeholder="褰撳墠鏉$爜鍏ュ簱鏁伴噺"
+ label="宸插叆鎬绘暟"
+ placeholder=""
disabled
></van-field>
</van-cell-group>
<%-- </div>--%>
<van-tabs color="#000" title-active-color="#0283EF">
- <van-tab title="鐗╂枡鏄庣粏" class="mySolid font">
+<%-- <van-tab title="鐗╂枡鏄庣粏" class="mySolid font">
<van-row>
- <van-col span="5" class="text-left padding-left">閲囪喘鍗曞彿</van-col>
+
<van-col span="5">鐗╂枡缂栫爜</van-col>
<van-col span="5">鐗╂枡鍚嶇О</van-col>
<van-col span="5">鏁伴噺</van-col>
<van-col span="4">鍗曚綅</van-col>
</van-row>
<van-row v-for="(itm,index) in itemTableData" :key="index">
- <%-- <van-col span="12" class="text-left padding-left">
- <div>{{itm.itemNo}}</div>
- <div>{{itm.itemName}}</div>
- </van-col>--%>
- <van-col span="5">{{itm.workNo}}</van-col>
<van-col span="5">{{itm.itemNo}}</van-col>
<van-col span="5">{{itm.itemSname}}</van-col>
<van-col span="5">{{itm.quantity}}</van-col>
<van-col span="4">{{itm.unit}}</van-col>
</van-row>
- </van-tab>
+ </van-tab>--%>
+
+ <van-tab title="鍏ュ簱鐗╂枡" class="mySolid font">
+ <van-row>
+ <van-col span="8" class="text-left padding-left">鐗╂枡</van-col>
+ <van-col span="8" class="text-left padding-left">瑙勬牸</van-col>
+ <%--<van-col span="4">闇�姹傛暟</van-col>--%>
+ <van-col span="8">宸插叆搴撴暟</van-col>
+ </van-row>
+ <van-row v-for="(itm,index) in ItemDetail" :key="index">
+ <van-col span="8" class="text-left padding-left">
+ <div class="blue-text">{{itm.itemNo}}</div>
+ <div>{{itm.itemName}}</div>
+ </van-col>
+ <van-col span="8" class="text-left padding-left">
+ <div>{{itm.itemModel}}</div>
+ </van-col>
+ <van-col span="8" class="blue-text">{{itm.fQty}}</van-col>
+ </van-row>
+ </van-tab>
+
<van-tab title="鍏ュ簱鏉$爜" class="mySolid font">
<van-row>
- <van-col span="12" class="text-left padding-left">鐗╂枡</van-col>
- <van-col span="6">鏁伴噺</van-col>
- <van-col span="6">搴撲綅缂栫爜</van-col>
+ <van-col span="8" class="text-left padding-left">鐗╂枡</van-col>
+ <van-col span="8" class="text-left padding-left">瑙勬牸</van-col>
+ <van-col span="4">鏁伴噺</van-col>
+ <van-col span="4">搴撲綅缂栫爜</van-col>
</van-row>
<van-row v-for="(itm,index) in tableData" :key="index">
- <van-col span="12" class="text-left padding-left">
+ <van-col span="8" class="text-left padding-left">
<div>{{itm.itemNo}}</div>
<div>{{itm.itemName}}</div>
</van-col>
- <van-col span="6" class="text-left padding-left">
- <div>{{itm.quantity}}</div>
- <div>{{itm.itemUnit}}</div>
+ <van-col span="8" class="text-left padding-left">
+ <div>{{itm.itemModel}}</div>
</van-col>
- <van-col span="6">{{itm.depotSectionCode}}</van-col>
+ <van-col span="4">
+ <div>{{itm.fQty}}</div>
+ </van-col>
+ <van-col span="4">{{itm.kw}}</van-col>
</van-row>
</van-tab>
- <van-tab title="閲囪喘鍘熷崟" class="mySolid font">
+ <%--<van-tab title="鏀舵枡鍘熷崟" class="mySolid font">
<van-field
v-model="itemInsFormData.billNo"
label="鍏ュ簱鍗曞彿"
@@ -159,17 +189,17 @@
placeholder="澶囨敞淇℃伅"
disabled
></van-field>
- </van-tab>
+ </van-tab>--%>
</van-tabs>
- <van-button type="primary" @click="getScan" >纭</van-button>
+<%-- <van-button type="primary" @click="getScan" >纭</van-button>--%>
<%--<van-button type="primary" @click="ToErp" >瀹℃牳</van-button>--%>
- <van-button type="primary" @click="cleraCode" >娓呴櫎搴撲綅缂栫爜</van-button>
+<%-- <van-button type="primary" @click="cleraCode" >娓呴櫎搴撲綅缂栫爜</van-button>--%>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder3" Runat="Server">
<comloading v-if="isLoading"></comloading>
<%--<comback ></comback>--%>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server">
- <script src="Js/PurchaseInventory.js?<%=1234 %>"></script>
+ <script src="Js/PurchaseInventory.js?<%=1236111 %>"></script>
</asp:Content>
--
Gitblit v1.9.3