| | |
| | | "loginAccount": '', |
| | | }, |
| | | sms: "", |
| | | num:"", |
| | | num: "", |
| | | type: "", |
| | | billNo:"", |
| | | daa001: "", |
| | | barcode:"", |
| | |
| | | loginGuid: this.GetLoginInfor().loginGuid, |
| | | loginAccount: this.GetLoginInfor().loginAccount, |
| | | }; |
| | | this.type = this.Request("type"); |
| | | selectType = this.type == "bl" ? selectType = "委外补料" : selectType = "委外超领"; |
| | | }, |
| | | methods: { |
| | | getInfo() { |
| | |
| | | var that = this; |
| | | that.isLoading = true; |
| | | that.AxiosHttp("post", 'MesItemBl/GetSCBLBillNo', { |
| | | type: "委外补料", |
| | | type: selectType, |
| | | }, false) |
| | | .then(function (res) { |
| | | var json = res; |
| | |
| | | that.isLoading = true; |
| | | that.AxiosHttp("post", 'MesItemBl/GetMesItemBlDetailByBillNo', { |
| | | billNo: that.billNo, |
| | | type: "委外补料", |
| | | type: selectType, |
| | | }, false) |
| | | .then(function (res) { |
| | | var json = res; |
| | |
| | | |
| | | 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); |
| | | that.$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.num = json.data.tbBillList.item.num; |
| | | //that.ItemBlDetail = json.data.tbBillList.pendingList |
| | | 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.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() { |
| | |
| | | console.log(error); |
| | | }); |
| | | }, |
| | | onClick(index, title) { |
| | | this.$toast(`${index} ${title}`); |
| | | this.$notify({ type: 'success', message: '某某物料扫码成功某某物料扫码成功某某物料扫码成功某某物料扫码成功' }); |
| | | //onClick(index, title) { |
| | | // this.$toast(`${index} ${title}`); |
| | | // this.$notify({ type: 'success', message: '某某物料扫码成功某某物料扫码成功某某物料扫码成功某某物料扫码成功' }); |
| | | |
| | | }, |
| | | //}, |
| | | onSelect(item) { |
| | | // 默认情况下点击选项时不会自动收起 |
| | | // 可以通过 close-on-click-action 属性开启自动收起 |
| | |
| | | console.log(error); |
| | | }); |
| | | }, |
| | | getDepot(value) { |
| | | if (!value) { |
| | | return; |
| | | } |
| | | this.depotSectionCode = value; |
| | | getDepot() { |
| | | //if (!value) { |
| | | // return; |
| | | //} |
| | | //this.depotSectionCode = value; |
| | | var that = this; |
| | | that.isLoading = true; |
| | | that.AxiosHttp("post", 'MesItemTbl/SctlScanDepots', { |
| | |
| | | console.log(error); |
| | | }); |
| | | }, |
| | | getBarcode(value) { |
| | | getBarcode() { |
| | | |
| | | this.barcode = value; |
| | | //this.barcode = value; |
| | | |
| | | var that = this; |
| | | that.isLoading = true; |
| | |
| | | </asp:Content> |
| | | <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server"> |
| | | <van-nav-bar |
| | | title="委外补料" |
| | | :title="type=='cl'?'委外超领':'委外补料'" |
| | | left-text="返回" |
| | | left-arrow |
| | | @click-left="GoBack()" |
| | |
| | | <div> |
| | | <van-cell-group> |
| | | <van-field |
| | | ref="billNo" |
| | | value="" |
| | | 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> |
| | |
| | | v-model="daa001" |
| | | :right-icon-size="19" |
| | | placeholder="工单号" |
| | | disabled |
| | | ></van-field> |
| | | <van-field |
| | | ref="barcode" |
| | | value="" |
| | | label="物料条码" |
| | | clearable |
| | | placeholder="请扫码" |
| | | @input="getBarcode" |
| | | @keyup.enter.native ="getBarcode" |
| | | <%--@input="getBarcode"--%> |
| | | :right-icon-size="19" |
| | | v-model="barcode" |
| | | v-focus.noKeyboard |
| | |
| | | v-model="sms" |
| | | label="发货数量" |
| | | placeholder="发货数量" |
| | | disabled |
| | | ><template #button> |
| | | <van-button size="small" type="info" plain @click="tmcf" >条码拆分</van-button> |
| | | </template></van-field> |
| | |
| | | |
| | | <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="value in ItemBlDetail" class="font"> |
| | | <van-col span="12">物料:{{value.bld002}}</van-col> |
| | | <van-col span="12" class="text-left padding-left"> |
| | | <div>{{value.bld002}}</div> |
| | | <div>{{value.bld003}}</div> |
| | | </van-col> |
| | | <van-col span="6">申请数{{value.bld007}}</van-col> |
| | | <van-col span="6">已领数{{value.bld008}}</van-col> |
| | | </van-row> |
| | |
| | | <%--<comback ></comback>--%> |
| | | </asp:Content> |
| | | <asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server"> |
| | | <script src="Js/Wwbl.js?<%=14 %>"></script> |
| | | <script src="Js/Wwbl.js?<%=142 %>"></script> |
| | | </asp:Content> |
| | |
| | | placeholder="请扫码" |
| | | :right-icon-size="19" |
| | | v-model="billNo" |
| | | @keyup.enter.native="getMesItemTblDetailByBillNo" |
| | | v-focus.noKeyboard |
| | | ><template #button> |
| | | <van-button size="small" type="info" plain @click="getInfo" >选择</van-button> |
| | | </template></van-field> |
| | | <van-field |
| | | ref="sectionCode" |
| | | value="" |
| | | label="库位编号" |
| | | v-model="depotSectionCode" |
| | | clearable |
| | | :right-icon-size="19" |
| | | @input="getDepot" |
| | | @keyup.enter.native="getDepot" |
| | | placeholder="请扫码库位编号" |
| | | ></van-field> |
| | | <van-field |
| | | ref="barcode" |
| | | value="" |
| | | label="物料条码" |
| | | clearable |
| | | placeholder="请扫码" |
| | | v-model="barcode" |
| | | :right-icon-size="19" |
| | | @input="getBarcode" |
| | | @keyup.enter.native="getBarcode" |
| | | v-focus.noKeyboard |
| | | ></van-field> |
| | | <van-field |
| | |
| | | </van-cell-group> |
| | | </div> |
| | | |
| | | <van-tabs @click="onClick" color="#000" title-active-color="#0283EF" > |
| | | <van-tab title="待退明细"> |
| | | <van-row v-for="value in ItemTblDetail" class="font"> |
| | | <van-col span="12">物料:{{value.itemNo}}</van-col> |
| | | <%--<van-col span="18">物料名称:{{value.itemName}}</van-col>--%> |
| | | <van-col span="6">申请数:{{value.tld005}}</van-col> |
| | | <van-col span="6">已退数:{{value.tld006}}</van-col> |
| | | </van-row> |
| | | </van-tab> |
| | | <van-tabs <%--@click="onClick"--%> color="#000" title-active-color="#0283EF" > |
| | | |
| | | <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="value in ItemTblDetail" class="font"> |
| | | <van-col span="12" class="text-left padding-left"> |
| | | <div>{{value.itemNo}}</div> |
| | | <div>{{value.itemName}}</div> |
| | | </van-col> |
| | | <van-col span="6">申请数{{value.tld005}}</van-col> |
| | | <van-col span="6">已领数{{value.tld006}}</van-col> |
| | | </van-row> |
| | | </van-tab> |
| | | <van-tab title="已退明细"></van-tab> |
| | | </van-tabs> |
| | | |
| | |
| | | <%--<comback ></comback>--%> |
| | | </asp:Content> |
| | | <asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server"> |
| | | <script src="Js/Wwtl.js?<%=156 %>"></script> |
| | | <script src="Js/Wwtl.js?<%=157 %>"></script> |
| | | </asp:Content> |
| | | |