南骏 池
2025-02-25 f064c1aa85c6d778b1bedfb980ad42fcf50b63c9
1.委外退料优化
2.委外补料、超领优化
已修改4个文件
125 ■■■■ 文件已修改
H5/Js/Wwbl.js 44 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/Js/Wwtl.js 22 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/Wwbl.aspx 24 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/Wwtl.aspx 35 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/Js/Wwbl.js
@@ -8,7 +8,8 @@
                "loginAccount": '',
            },
            sms: "",
            num:"",
            num: "",
            type: "",
            billNo:"",
            daa001: "",
            barcode:"",
@@ -25,6 +26,8 @@
            loginGuid: this.GetLoginInfor().loginGuid,
            loginAccount: this.GetLoginInfor().loginAccount,
        };
        this.type = this.Request("type");
        selectType = this.type == "bl" ? selectType = "委外补料" : selectType = "委外超领";
    },
    methods: {
        getInfo() {
@@ -33,7 +36,7 @@
            var that = this;
            that.isLoading = true;
            that.AxiosHttp("post", 'MesItemBl/GetSCBLBillNo', {
                type: "委外补料",
                type: selectType,
            }, false)
                .then(function (res) {
                    var json = res;
@@ -77,7 +80,7 @@
            that.isLoading = true;
            that.AxiosHttp("post", 'MesItemBl/GetMesItemBlDetailByBillNo', {
                billNo: that.billNo,
                type: "委外补料",
                type: selectType,
            }, false)
                .then(function (res) {
                    var json = res;
@@ -85,21 +88,30 @@
                        
                        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;
@@ -144,16 +156,34 @@
                        //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() {
H5/Js/Wwtl.js
@@ -59,11 +59,11 @@
                    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 属性开启自动收起
@@ -94,11 +94,11 @@
                    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', {
@@ -120,9 +120,9 @@
                    console.log(error);
                });
        },
        getBarcode(value) {
        getBarcode() {
            this.barcode = value;
            //this.barcode = value;
            var that = this;
            that.isLoading = true;
H5/Wwbl.aspx
@@ -9,7 +9,7 @@
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
        <van-nav-bar
          title="委外补料"
         :title="type=='cl'?'委外超领':'委外补料'"
          left-text="返回"
          left-arrow
          @click-left="GoBack()"
@@ -17,12 +17,14 @@
        <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>
@@ -34,13 +36,16 @@
      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
@@ -58,7 +63,6 @@
    v-model="sms"
    label="发货数量"
    placeholder="发货数量"
disabled
 ><template #button>
    <van-button size="small" type="info" plain @click="tmcf" >条码拆分</van-button>
  </template></van-field>
@@ -67,9 +71,17 @@
    <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>
@@ -85,5 +97,5 @@
  <%--<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>
H5/Wwtl.aspx
@@ -23,27 +23,30 @@
     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
@@ -64,15 +67,23 @@
</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>
@@ -84,6 +95,6 @@
    <%--<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>