快乐的昕的电脑
昨天 e1e6a650f5ece9af7ff0810161edb38d31d540a6
Merge branch 'master' of http://git.gs-mes.com:8080/r/~tjx/QXPDA
已修改3个文件
36 ■■■■ 文件已修改
H5/Cpdbsj.aspx 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/Js/Cpbdsj.js 29 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/Qtck.aspx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/Cpdbsj.aspx
@@ -166,7 +166,8 @@
                    label="点位"
                    placeholder="请选择点位"
                    autofocus="true"
                    @click.native="selectDW">
                    @click.native="selectDW"
                    readonly>
                </van-field>
                <van-field
@@ -265,5 +266,5 @@
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server">
    <script src="Js/Cpbdsj.js?<%=1212111421515 %>"></script>
    <script src="Js/Cpbdsj.js?<%=1212111421525 %>"></script>
</asp:Content>
H5/Js/Cpbdsj.js
@@ -48,6 +48,10 @@
    methods: {
        handleAgvPositions(positionStr) {
            if (!positionStr) return [];
            // 检查是否存在逗号,如果不存在则返回空数组
            if (!positionStr.includes(',')) return [];
            // 将字符串按逗号分割并转换为选项数组
            return positionStr.split(',').map(pos => ({
                name: pos.trim() // 去除可能的空格
@@ -71,9 +75,22 @@
                        that.$refs.XBar.focus();
                        that.XbarInfo = [];
                        that.XBar = "";
                        that.AgvDw = json.data.tbBillList.kbBarInfo[0].agvPostion.split(',')[0];
                        that.actionsAgvDw = that.handleAgvPositions(json.data.tbBillList.kbBarInfo[0].agvPostion);
                        // 检查是否存在逗号
                        //const agvPosition = json.data.tbBillList.kbBarInfo[0].agvPostion;
                        //that.AgvDw = agvPosition.includes(',') ? agvPosition.split(',')[0] : '';
                        const agvPostion = json.data && json.data.tbBillList && json.data.tbBillList.kbBarInfo &&
                            json.data.tbBillList.kbBarInfo[0] && json.data.tbBillList.kbBarInfo[0].agvPostion;
                        if (agvPostion != null) {
                            const agvPostionStr = String(agvPostion);
                            that.AgvDw = agvPostionStr.split(',')[0];
                            that.actionsAgvDw = that.handleAgvPositions(agvPostionStr);
                        } else {
                            that.AgvDw = null;
                            that.actionsAgvDw = null;
                        }
                    }
                    else {
                        that.$playSound('error');
@@ -460,6 +477,12 @@
                that.$toast.fail("请先扫描卡板条码");
                return;
            }
            if (!that.AgvDw) {
                that.$playSound('error');
                that.$toast.fail("请先选择AGV点位");
                return;
            }
    
            // 计算可装数和已装数
            const oldqty = +(that.KbBarInfo.quantity || 0);
H5/Qtck.aspx
@@ -165,5 +165,5 @@
  <%--<comback ></comback>--%>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server">
 <script src="Js/Qtck.js?<%=111306 %>"></script>
 <script src="Js/Qtck.js?<%=111307 %>"></script>
</asp:Content>