况洋洋
2025-07-10 6c03505f24d8a22eb2988ab16d7154e95da5a358
入库前拆分
已修改4个文件
50 ■■■■ 文件已修改
H5/Js/PurchaseInventory.js 24 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/PurchaseInventory.aspx 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Mst.master 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Scripts/config.js 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/Js/PurchaseInventory.js
@@ -34,6 +34,9 @@
            sectionCode:"",
            depotData: [],
            ItemDetail: [],
            rkType: "正常入库",
            show: false,//下拉框的显示
            actions: [{ name: "正常入库" }, { name: "工废入库" }, { name: "料废入库" }],//下拉框的数值
        }
    },
    mounted() {
@@ -44,6 +47,19 @@
        };
    },
    methods: {
        getInfo() {
            this.show = true;
        },
        onSelect(item) {
            // 默认情况下点击选项时不会自动收起
            // 可以通过 close-on-click-action 属性开启自动收起
            this.show = false;
            this.rkType = item.name;
            //this.GetMesItemBlDetailByBillNo();
            //this.$toast(item.name);
        },
        getModel() {
            var that = this;
            that.isLoading = true;
@@ -93,17 +109,15 @@
                sectionCode: that.sectionCode,
                userName: that.userInfo.loginAccount,
                barcode: that.formData.barcode,
                cgrkType: that.actions
            }, 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.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;
                        that.$notify({ type: 'success', message: json.message });
H5/PurchaseInventory.aspx
@@ -16,6 +16,17 @@
></van-nav-bar>
<%--    <div class="mySolid">--%>
        <van-cell-group>
            <van-field
  value=""
  label="入库类型"
  clearable
   placeholder="选择/手录"
  :right-icon-size="19"
    v-model="rkType"
   v-focus.noKeyboard
><template #button>
  <van-button size="small" type="info" plain @click="getInfo" >选择</van-button>
</template></van-field>
  <van-field 
    ref="sectionCode"
    v-model="sectionCode"
@@ -192,6 +203,8 @@
      </van-tab>--%>
</van-tabs>
    <van-action-sheet v-model="show" :actions="actions" @select="onSelect" ></van-action-sheet>
<%--    <van-button type="primary" @click="getScan" >确认</van-button>--%>
    <%--<van-button type="primary" @click="ToErp" >审核</van-button>--%>
<%--    <van-button type="primary" @click="cleraCode" >清除库位编码</van-button>--%>
@@ -201,5 +214,5 @@
    <%--<comback ></comback>--%>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server">
    <script src="Js/PurchaseInventory.js?<%=123611111 %>"></script>
</asp:Content>
    <script src="Js/PurchaseInventory.js?<%=1236111111 %>"></script>
</asp:Content>
Mst.master
@@ -11,11 +11,12 @@
    <script src="/Scripts/vue.min.js"></script>
    <script src="/Scripts/js.cookie.min.js"></script>
    <script src="/scripts/axios0.25.0.js"></script>
    <script src="/scripts/config.js?<%=123611117 %>"></script>
    <script src="/scripts/config.js?<%=123611118 %>"></script>
    <link href="/scripts/vant/vant.css" rel="stylesheet" />
    <script src="/scripts/vant/vant.js"></script>
    <link href="/Images/Style.css?<%=169950 %>" rel="stylesheet" />
    <script src="/Scripts/uni.webview.1.5.2.js"></script>
    <asp:ContentPlaceHolder ID="head" runat="server">
    </asp:ContentPlaceHolder>
</head>
Scripts/config.js
@@ -1,7 +1,7 @@
/*var APIURL = "http://192.168.1.145:83/api/";*/
/*var APIURL = "http://192.168.1.145:83/api/";*///后端发布的地址
var APIURL = "http://localhost:5204/api/";
/*var APIURL_PC = "http://192.168.1.145:81/";*/
var APIURL_PC = "http://192.168.1.145:8081/";//测试
/*var APIURL_PC = "http://192.168.1.145:81/";*/ //PC后端的地址
var APIURL_PC = "http://192.168.1.145:81/";//测试
var APIURL_IMAGE = APIURL_PC+"upload/";
var ISNEEDLOGIN = true;
String.prototype.trim = function () {