H5/Dbck.aspx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
H5/Dbrk.aspx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
H5/Js/Dbck.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
H5/Js/Dbrk.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
H5/Dbck.aspx
@@ -17,22 +17,26 @@ <div> <van-cell-group> <van-field ref="billNo" value="" label="出库单号" label="调拨申请" clearable placeholder="选择/手录" :right-icon-size="19" v-model="billNo" @keyup.enter.native ="GetMesItemBlDetailByBillNo" v-focus.noKeyboard ><template #button> <van-button size="small" type="info" plain @click="getInfo" >选择</van-button> </template></van-field> <van-field ref="barcode" value="" label="物料条码" clearable placeholder="请扫码" @change="getBarcode" @keyup.enter.native ="getBarcode" <%-- @change="getBarcode"--%> :right-icon-size="19" v-model="barcode" v-focus.noKeyboard @@ -45,6 +49,7 @@ :right-icon-size="19" v-model="itemNo" v-focus.noKeyboard disabled ></van-field> <van-field value="" @@ -59,7 +64,6 @@ v-model="fum" label="拆分数量" placeholder="拆分数量" disabled ><template #button> <van-button size="small" type="info" plain @click="tmcf" >条码拆分</van-button> </template></van-field> @@ -68,14 +72,29 @@ <div class="van-tab-left"> <van-tabs @click="onClick" color="#000" title-active-color="#0283EF" > <van-tab title="待出物料"> <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-row> <van-row v-for="(itm,index) in ItemBlDetail" :key="index"> <van-col span="12" class="text-left padding-left"> <div>{{itm.itemNo}}</div> <div>{{itm.itemName}}</div> </van-col> <van-col span="6">{{itm.fQty}}</van-col> <van-col span="6">{{itm.sQty ?? 0}}</van-col> </van-row> </van-tab> <%-- <van-tab title="待出物料"> <van-row v-for="value in ItemBlDetail" class="font"> <van-col span="12">物料:{{value.itemNo}}</van-col> <van-col span="6">计划数{{value.qd007}}</van-col> <van-col span="6">完成数{{value.qd008}}</van-col> </van-row> </van-tab> </van-tabs> </van-tabs>--%> </div> <van-action-sheet v-model="show" :actions="actions" @select="onSelect" ></van-action-sheet> @@ -85,5 +104,5 @@ <%--<comback ></comback>--%> </asp:Content> <asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server"> <script src="Js/Dbck.js?<%=11211134 %>"></script> <script src="Js/Dbck.js?<%=123 %>"></script> </asp:Content> H5/Dbrk.aspx
@@ -17,32 +17,38 @@ <div> <van-cell-group> <van-field ref="billNo" value="" label="出库单号" label="调拨申请" clearable placeholder="选择/手录" @keyup.enter.native ="GetMesItemBlDetailByBillNo" :right-icon-size="19" v-model="billNo" v-focus.noKeyboard ><template #button> <van-button size="small" type="info" plain @click="getInfo" >选择</van-button> </template></van-field> <van-field value="" label="库位" clearable placeholder="请扫码" @change="getDepot" :right-icon-size="19" v-model="sectionCode" v-focus.noKeyboard ></van-field> <van-field ref="sectionCode" value="" label="库位" clearable placeholder="请扫码" @keyup.enter.native ="getDepot" <%-- @change="getDepot"--%> :right-icon-size="19" v-model="sectionCode" v-focus.noKeyboard ></van-field> <van-field ref="barcode" value="" label="物料条码" clearable placeholder="请扫码" @change="getBarcode" @keyup.enter.native="getBarcode" <%-- @change="getBarcode"--%> :right-icon-size="19" v-model="barcode" v-focus.noKeyboard @@ -63,18 +69,34 @@ placeholder="数量" disabled ></van-field> </van-cell-group> </div> <div class="van-tab-left"> <van-tabs @click="onClick" color="#000" title-active-color="#0283EF" > <van-tab title="待出物料"> <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-row> <van-row v-for="(itm,index) in ItemBlDetail" :key="index"> <van-col span="12" class="text-left padding-left"> <div>{{itm.itemNo}}</div> <div>{{itm.itemName}}</div> </van-col> <van-col span="6">{{itm.sQty ?? 0}}</van-col> <van-col span="6">{{itm.rQty ?? 0}}</van-col> </van-row> </van-tab> <%-- <van-tab title="待出物料"> <van-row v-for="value in ItemBlDetail" class="font"> <van-col span="12">物料:{{value.itemNo}}</van-col> <van-col span="6">计划数{{value.qd007}}</van-col> <van-col span="6">完成数{{value.qd008}}</van-col> </van-row> </van-tab> </van-tab>--%> </van-tabs> </div> <van-action-sheet v-model="show" :actions="actions" @select="onSelect" ></van-action-sheet> @@ -85,5 +107,5 @@ <%--<comback ></comback>--%> </asp:Content> <asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server"> <script src="Js/Dbrk.js?<%=11211134 %>"></script> <script src="Js/Dbrk.js?<%=113 %>"></script> </asp:Content> H5/Js/Dbck.js
@@ -83,21 +83,29 @@ var json = res; if (json.status == 0) { that.ItemBlDetail = json.data.tbBillList; that.$refs.barcode.focus(); that.barcode = ""; } else { that.$toast.fail(json.message); that.$refs.billNo.focus(); that.billNo = ""; that.ItemBlDetail = null; } that.isLoading = false; }) .catch(function (error) { that.isLoading = false; that.$toast.fail("网络错误,请重试!"); console.log(error); that.$refs.billNo.focus(); that.billNo = ""; that.ItemBlDetail = null; //console.log(error); }); }, getBarcode(value) { getBarcode() { this.barcode = value; //this.barcode = value; var that = this; that.isLoading = true; @@ -130,21 +138,28 @@ if (json.status == 0) { that.itemNo = json.data.form.itemNo; that.num = json.data.form.num; that.barcode = json.data.form.barcode; that.fum = json.data.form.fum; //that.num = json.data.form.num; //that.fum = json.data.form.fum; that.ItemBlDetail = json.data.items that.$notify({ type: 'success', message: '扫码成功' }); that.$refs.barcode.focus(); that.barcode = ""; //that.GetMesItemBlDetailByBillNo(); } else { that.$toast.fail(json.message); that.$refs.barcode.focus(); that.barcode = ""; } that.isLoading = false; }) .catch(function (error) { that.isLoading = false; that.$toast.fail("网络错误,请重试!"); console.log(error); //console.log(error); that.$refs.barcode.focus(); that.barcode = ""; }); }, tmcf() { H5/Js/Dbrk.js
@@ -83,47 +83,66 @@ var json = res; if (json.status == 0) { that.ItemBlDetail = json.data.tbBillList; that.$refs.sectionCode.focus(); that.sectionCode = ""; } else { that.$toast.fail(json.message); that.$refs.billNo.focus(); that.billNo = ""; that.ItemBlDetail = null; } that.isLoading = false; }) .catch(function (error) { that.isLoading = false; that.$toast.fail("网络错误,请重试!"); console.log(error); that.$refs.billNo.focus(); that.billNo = ""; that.ItemBlDetail = null; //console.log(error); }); }, getDepot(value) { if (!value) { this.$toast.fail("库位编码"); return; } getDepot() { var that = this; if (that.sectionCode.length == 0) { this.$toast.fail("库位编码不能为空"); return; } that.AxiosHttp("post", 'Inventory/ScanDepotNo', { depotCode: that.depotNo DepotCode: that.sectionCode }, false) .then(function (res) { var json = res; if (json.status == 0) { that.$notify({ type: 'success', message: json.data.tbBillList }); that.$refs.barcode.focus(); that.barcode = ""; } else { that.$toast.fail(json.message); that.$refs.sectionCode.focus(); that.sectionCode = ""; } }) .catch(function (error) { that.isLoading = false; that.$toast.fail("网络错误,请重试!"); console.log(error); //console.log(error); that.$refs.sectionCode.focus(); that.sectionCode = ""; }); }, getBarcode(value) { getBarcode() { this.barcode = value; //this.barcode = value; var that = this; that.isLoading = true; @@ -164,19 +183,25 @@ that.itemNo = json.data.form.itemNo; that.num = json.data.form.num; that.barcode = json.data.form.barcode; //that.barcode = json.data.form.barcode; that.ItemBlDetail = json.data.items that.$notify({ type: 'success', message: '扫码成功' }); that.$refs.barcode.focus(); that.barcode = ""; } else { that.$toast.fail(json.message); that.$refs.barcode.focus(); that.barcode = ""; } that.isLoading = false; }) .catch(function (error) { that.isLoading = false; that.$toast.fail("网络错误,请重试!"); console.log(error); //console.log(error); that.$refs.barcode.focus(); that.barcode = ""; }); }, tmcf() {