1.生产领料页面交互优化
2.生产补料、超领页面交互优化
| | |
| | | "loginGuid": '', |
| | | "loginAccount": '', |
| | | }, |
| | | sms: "", |
| | | splitNum: "", |
| | | num: "", |
| | | type: "", |
| | | billNo: "", |
| | |
| | | if (json.status == 0) { |
| | | that.ItemBlDetail = json.data.tbBillList.item2; |
| | | that.daa001 = json.data.tbBillList.item1; |
| | | that.$refs.barcode.focus(); |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | | that.$refs.billNo.focus(); |
| | | that.billNo = ""; |
| | | that.daa001 = ""; |
| | | that.ItemBlDetail = []; |
| | | } |
| | | that.isLoading = false; |
| | | }) |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | console.log(error); |
| | | //console.log(error); |
| | | tthat.$refs.billNo.focus(); |
| | | that.billNo = ""; |
| | | that.daa001 = ""; |
| | | that.ItemBlDetail = []; |
| | | }); |
| | | }, |
| | | getBarcode(value) { |
| | | getBarcode() { |
| | | |
| | | this.barcode = value; |
| | | //this.barcode = value; |
| | | |
| | | var that = this; |
| | | that.isLoading = true; |
| | |
| | | //that.ItemBlDetail = json.data.tbBillList.item2 |
| | | that.$notify({ type: 'success', message: '扫描成功' }); |
| | | that.GetMesItemBlDetailByBillNo(); |
| | | that.$refs.barcode.focus(); |
| | | that.barcode = ""; |
| | | that.num = ""; |
| | | that.splitNum = ""; |
| | | |
| | | |
| | | } else if (json.status == 2) { |
| | | that.$refs.splitNum.focus(); |
| | | that.scanInfo.splitNum = json.data.tbBillList.splitNum; |
| | | that.scanInfo.barcodeNum = json.data.tbBillList.barcodeNum; |
| | | that.splitNum = json.data.cfNum; |
| | | that.num = json.data.num; |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | | that.$refs.barcode.focus(); |
| | | that.barcode = ""; |
| | | that.num = ""; |
| | | that.splitNum = ""; |
| | | } |
| | | that.isLoading = false; |
| | | }) |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | console.log(error); |
| | | //console.log(error); |
| | | that.$refs.barcode.focus(); |
| | | that.barcode = ""; |
| | | that.num = ""; |
| | | that.splitNum = ""; |
| | | }); |
| | | }, |
| | | tmcf() { |
| | |
| | | return; |
| | | } |
| | | |
| | | if (!that.sms) { |
| | | if (!that.splitNum) { |
| | | this.$toast.fail("发货数量不能为空"); |
| | | that.isLoading = false; |
| | | return; |
| | |
| | | barcode: that.barcode, |
| | | blNo: that.billNo, |
| | | billNo: that.daa001, |
| | | num: that.sms, |
| | | num: that.splitNum, |
| | | type: selectType |
| | | }, false) |
| | | .then(function (res) { |
| | |
| | | if (json.status == 0) { |
| | | that.ItemBlDetail = json.data.pendingList; |
| | | that.$notify({ type: 'success', message: '扫描成功' }); |
| | | that.$refs.barcode.focus(); |
| | | that.barcode = ""; |
| | | that.num = ""; |
| | | that.splitNum = ""; |
| | | that.GetMesItemBlDetailByBillNo(); |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | | that.$refs.barcode.focus(); |
| | | } |
| | | that.isLoading = false; |
| | | }) |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | console.log(error); |
| | | //console.log(error); |
| | | that.$refs.barcode.focus(); |
| | | that.barcode = ""; |
| | | that.num = ""; |
| | | that.splitNum = ""; |
| | | }); |
| | | } |
| | | } |
| | |
| | | }, |
| | | modeInfo: { daa001: "", planNo: "" }, |
| | | scanInfo: { barcodeNum: "", splitNum: "", barcode: "" }, |
| | | ItemDetail: [], |
| | | } |
| | | }, |
| | | mounted() { |
| | |
| | | .then(function (res) { |
| | | var json = res; |
| | | if (json.status == 0) { |
| | | that.modeInfo = json.data.tbBillList; |
| | | that.ItemDetail = json.data.tbBillList; |
| | | that.modeInfo.planNo = json.data.tbBillList.planNo; |
| | | that.$refs.barcode.focus(); |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | | that.$refs.daa001.focus(); |
| | | that.modeInfo.daa001 = ""; |
| | | that.modeInfo.planNo = ""; |
| | | that.ItemDetail = []; |
| | | } |
| | | that.isLoading = false; |
| | | }) |
| | |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | console.log(error); |
| | | that.$refs.daa001.focus(); |
| | | that.modeInfo.daa001 = ""; |
| | | }); |
| | | }, |
| | | getScan() { |
| | | var that = this; |
| | | if (that.modeInfo.daa001.length <= 0) { |
| | | that.$toast.fail("领料单号不能为空!"); |
| | | that.$toast.fail("工单单号不能为空!"); |
| | | return; |
| | | } |
| | | if (that.scanInfo.barcode.length * 1 <= 0) { |
| | | that.$toast.fail("物料条码不能为空!"); |
| | | return; |
| | | } |
| | | |
| | | that.isLoading = true; |
| | | that.AxiosHttp("post", 'Womdaa/ScanCode', { |
| | | daa001: that.modeInfo.daa001, |
| | |
| | | var json = res; |
| | | if (json.status == 0) { |
| | | // that.scanInfo = json.data.tbBillList; |
| | | that.$notify({ type: 'success', message: json.message }); |
| | | that.getModel(); |
| | | that.$refs.barcode.focus(); |
| | | that.scanInfo.barcode = null; |
| | | } |
| | | else if (json.status == 2) { |
| | | that.$refs.splitNum.focus(); |
| | |
| | | that.$toast.fail(json.message); |
| | | that.$refs.barcode.focus(); |
| | | } |
| | | that.$notify({ type: 'success', message: json.message }); |
| | | |
| | | that.isLoading = false; |
| | | }) |
| | | .catch(function (error) { |
| | |
| | | getChaiFen() { |
| | | var that = this; |
| | | if (that.modeInfo.daa001.length <= 0) { |
| | | that.$toast.fail("领料单号不能为空!"); |
| | | that.$toast.fail("工单单号不能为空!"); |
| | | return; |
| | | } |
| | | if (that.scanInfo.splitNum * 1 <= 0) { |
| | |
| | | <div> |
| | | <van-cell-group> |
| | | <van-field |
| | | ref="billNo" |
| | | value="" |
| | | label="补料单号" |
| | | :label="type=='cl'?'超领申请':'补料申请'" |
| | | clearable |
| | | placeholder="扫码/选择/手录" |
| | | :right-icon-size="19" |
| | | @keyup.enter.native ="GetMesItemBlDetailByBillNo" |
| | | v-model="billNo" |
| | | v-focus.noKeyboard |
| | | ><template #button> |
| | |
| | | disabled |
| | | ></van-field> |
| | | <van-field |
| | | ref="barcode" |
| | | value="" |
| | | label="物料条码" |
| | | clearable |
| | | placeholder="请扫码" |
| | | @input="getBarcode" |
| | | <%-- @input="getBarcode"--%> |
| | | @keyup.enter.native ="getBarcode" |
| | | :right-icon-size="19" |
| | | v-model="barcode" |
| | | v-focus.noKeyboard |
| | |
| | | disabled |
| | | ></van-field> |
| | | <van-field |
| | | ref ="splitNum" |
| | | center |
| | | clearable |
| | | v-model="sms" |
| | | v-model="splitNum" |
| | | label="发货数量" |
| | | placeholder="发货数量" |
| | | disabled |
| | | <%--disabled--%> |
| | | ><template #button> |
| | | <van-button size="small" type="info" plain @click="tmcf" >条码拆分</van-button> |
| | | </template></van-field> |
| | |
| | | </div> |
| | | |
| | | <div class="van-tab-left"> |
| | | <van-tabs @click="onClick" color="#000" title-active-color="#0283EF" > |
| | | <van-tabs <%--@click="onClick"--%> color="#000" title-active-color="#0283EF" > |
| | | <van-tab title="待发物料" class="mySolid font"> |
| | | <%-- <van-row v-for="value in ItemBlDetail" class="font"> |
| | | <van-col span="12">物料:{{value.bld002}}</van-col> |
| | |
| | | <comback ></comback> |
| | | </asp:Content> |
| | | <asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server"> |
| | | <script src="Js/Scbl.js?<%=12315 %>"></script> |
| | | <script src="Js/Scbl.js?<%=12317 %>"></script> |
| | | </asp:Content> |
| | |
| | | placeholder="请扫码" |
| | | :right-icon-size="19" |
| | | v-focus.noKeyboard |
| | | @change="getModel" autofocus="true" |
| | | @keyup.enter.native="getModel" autofocus="true" |
| | | ></van-field> |
| | | <van-field |
| | | v-model="modeInfo.planNo" |
| | |
| | | placeholder="请扫码" |
| | | :right-icon-size="19" |
| | | v-focus.noKeyboard |
| | | @change="getScan" |
| | | @keyup.enter.native="getScan" |
| | | ></van-field> |
| | | <van-field |
| | | v-model="scanInfo.barcodeNum" |
| | |
| | | <van-col span="6">待扫</van-col> |
| | | <van-col span="6">已扫</van-col> |
| | | </van-row> |
| | | <van-row v-for="(itm,index) in modeInfo.daisao" :key="index"> |
| | | <van-row v-for="(itm,index) in ItemDetail.daisao" :key="index"> |
| | | <van-col span="12" class="text-left padding-left"> |
| | | <div>{{itm.itemNo}}</div> |
| | | <div>{{itm.itemName}}</div> |
| | |
| | | <van-col span="6">需领数</van-col> |
| | | <van-col span="6">已领数</van-col> |
| | | </van-row> |
| | | <van-row v-for="(itm,index) in modeInfo.totals" :key="index"> |
| | | <van-row v-for="(itm,index) in ItemDetail.totals" :key="index"> |
| | | <van-col span="12" class="text-left padding-left"> |
| | | <div>{{itm.itemNo}}</div> |
| | | <div>{{itm.itemName}}</div> |
| | |
| | | <comback ></comback> |
| | | </asp:Content> |
| | | <asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server"> |
| | | <script src="Js/Scll.js?<%=123331 %>"></script> |
| | | <script src="Js/Scll.js?<%=123332 %>"></script> |
| | | </asp:Content> |