南骏 池
2025-10-27 dabdd8650e5b963dda830ae1e88d4479ae8a9e52
1.条码打印样式调整
2.一件送检
3.巡检子表新增检验项目描述
已修改3个文件
已添加3个文件
943 ■■■■■ 文件已修改
H5/CpbdsjD.aspx 188 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/CpbdsjD.aspx.cs 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/IPQC_XJ/Add.aspx 22 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/Js/CpbdsjD.js 683 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/Js/IPQC_XJ/Add.js 28 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Scripts/config.js 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/CpbdsjD.aspx
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,188 @@
<%@ Page Title="一键送检" Language="C#" MasterPageFile="~/Mst.master" AutoEventWireup="true" CodeFile="CpbdsjD.aspx.cs" Inherits="H5_Cpdbsj" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
  <style>
    .si-status-box,
    .si-status__left
    {
        background-color: transparent !important; /* é€æ˜ŽèƒŒæ™¯ */
        border: 1px solid #000 !important; /* é»‘色外框 */
        color: #000 !important; /* å…¨å±€æ–‡å­—颜色 */
        height: 0.5rem;
    }
    .si-status__left::after {
        content: none !important;
    }
    .si-status__label,
    .si-status__right {
        font-size: 0.33rem !important; /* ç»Ÿä¸€å­—体大小 */
        color: inherit !important; /* ç»§æ‰¿çˆ¶çº§æ–‡å­—颜色 */
    }
    /* å±…中核心样式 */
.centered-stepper-field {
  .stepper-container {
    display: flex;
    justify-content: center; /* æ°´å¹³å±…中 */
    width: 100%;
  }
  /* è°ƒæ•´æ­¥è¿›å™¨æŒ‰é’®é—´è· */
  .van-stepper__minus {
    margin-right: 12px;
  }
  .van-stepper__plus {
    margin-left: 12px;
  }
}
      /* æ–°å¢žæ ·å¼ */
    .button-container {
        display: flex;
        width: 100%;
        gap: 12px; /* æŒ‰é’®é—´è· */
        padding: 0 16px; /* å·¦å³ç•™ç™½ */
        box-sizing: border-box;
    }
    .action-button {
        flex: 1; /* ç­‰åˆ†å‰©ä½™ç©ºé—´ */
        min-width: 0; /* é˜²æ­¢å†…容溢出 */
    }
    .van-checkbox__icon--checked .van-icon
    {
        color: #ffffff !important;
    }
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
    <div class="content-wrapper">
        <van-nav-bar
            title="一键送检"
            left-text="返回"
            left-arrow
            @click-left="GoBack()">
        </van-nav-bar>
        <div class="mySolid">
            <van-cell-group>
                <van-field
                    ref="KbBar"
                    v-model="KbBar"
                    label="卡板条码"
                    clearable
                    placeholder="请扫码"
                    :right-icon-size="19"
                    v-focus.noKeyboard
                    @keyup.enter.native="getKbBarInfo"
                    autofocus="true">
                </van-field>
                <van-field
                    ref="DAA001"
                    v-model="DAA001"
                    label="指令工单"
                    placeholder="指令工单"
                    autofocus="true"
                    readonly
                    >
                </van-field>
                <van-field
                    ref="itemNo"
                    v-model="itemNo"
                    label="物料编码"
                    placeholder="物料编码"
                    autofocus="true"
                    readonly
                    >
                </van-field>
                <van-field
                    ref="itemName"
                    v-model="itemName"
                    label="物料名称"
                    placeholder="物料名称"
                    autofocus="true"
                    readonly
                    >
                </van-field>
                <van-field
                    ref="itemModel"
                    v-model="itemModel"
                    label="物料规格"
                    placeholder="物料规格"
                    autofocus="true"
                    readonly
                    >
                </van-field>
                <van-field
                    ref="lineName"
                    v-model="lineName"
                    label="线体名称"
                    placeholder="线体名称"
                    autofocus="true"
                    readonly
                    >
                </van-field>
               <van-field
                    ref="daA025"
                    v-model="KbBarInfo.daA025"
                    label="生产类型"
                    placeholder="生产类型"
                    autofocus="true"
                    readonly
                    >
                </van-field>
                <van-field
                    ref="quantity"
                    v-model="KbBarInfo.quantity"
                    label="数量"
                    placeholder="数量"
                    autofocus="true"
                    readonly
                    >
                </van-field>
                <div style="height: 10px"></div>
               <!-- ä¿®æ”¹åŽçš„æŒ‰é’®å®¹å™¨ -->
               <div class="button-container">
                <van-button
                  type="info"
                  class="action-button submit-button"
                  @click.native="handleSubmit"
                >提交</van-button>
              </div>
            </van-cell-group>
        </div>
        <van-action-sheet v-model="show" :actions="actions" @select="onSelect" ></van-action-sheet>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder3" Runat="Server">
    <comloading v-if="isLoading"></comloading>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server">
    <script src="Js/CpbdsjD.js?<%=1111 %>"></script>
</asp:Content>
H5/CpbdsjD.aspx.cs
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class H5_Cpdbsj : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
    }
}
H5/IPQC_XJ/Add.aspx
@@ -254,7 +254,27 @@
                                       <van-tag round plain v-else type="warning">进行中</van-tag>
                                   </template>
                                </van-field>
                                <van-field label="检验项目描述" colon v-model="checkItemDesc" readonly class="wrap-field">
                                  <template #input>
                                      <div class="wrap-content">{{ checkItemDesc }}</div>
                                    </template>
                                  <template #button>
                                      <van-button size="small" type="info" @click="updateCheckItemDesc(jymxData.guid)" >输入</van-button>
                                  </template>
                                </van-field>
                                <van-dialog v-model="showCheckItemDescDialog" title="检验项目描述" :show-cancel-button="false" @confirm="checkItemDescConfirm">
                                  <van-field
                                    v-model="checkItemDesc"
                                    rows="5"
                                    autosize
                                    type="textarea"
                                    maxlength="500"
                                    placeholder="请输入检验项目描述"
                                    show-word-limit
                                />
                               </van-dialog>
                    </template>
                    <template>
                              <!-- è¾“入框 -->
H5/Js/CpbdsjD.js
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,683 @@

var vm = new Vue({
    el: '#app',
    data: function () {
        return {
            isLoading: false,
            userInfo: {
                "loginGuid": '',
                "loginAccount": '',
            },
            KbBar: "",//卡板条码
            LsBar: "",//后盖流水条码
            XBar: "",//箱条码
            UserName: Cookies.get('loginName'),//用户名称
            KbBarInfo: [],
            KbBarMxInfo: [],
            GX: "G007:核对送检",
            Xvalue:4,
            XbarInfo: [
                //{
                //    iteM_BARCODE: "",      // æ¡ç 
                //    item_no: "",           // ç‰©æ–™ç¼–号
                //    item_name: "",         // ç‰©æ–™åç§°
                //    item_model: "",        // è§„格型号
                //    quantity: 0,           // æ•°é‡
                //    is_hedui: "0",          // æ˜¯å¦æ ¸å¯¹(1:已核对 0:未核对),
                //    weight: ""          // äº§å“é‡é‡
                //}
            ],
            DAA001: [],
            show: false,//列表展示
            actions: [],//列表的值
            xtName: "",//线体名称
            xtNum: "",//线体编号
            AgvDw: "",//AGV点位
            agvChecked: false,//是否勾选AGV
            showAgvDw: false,//点位展示
            actionsAgvDw: [],//列表AGV点位
            itemNo: "",
            itemName: "",
            itemModel: "",
            lineName: ""
        }
    },
    mounted() {
        var that = this;
        this.userInfo = {
            loginGuid: this.GetLoginInfor().loginGuid,
            loginAccount: this.GetLoginInfor().loginAccount,
        };
    },
    methods: {
        handleAgvPositions(positionStr) {
            if (!positionStr) return [];
            // æ£€æŸ¥æ˜¯å¦å­˜åœ¨é€—号,如果不存在则返回空数组
            if (!positionStr.includes(',')) return [];
            // å°†å­—符串按逗号分割并转换为选项数组
            return positionStr.split(',').map(pos => ({
                name: pos.trim() // åŽ»é™¤å¯èƒ½çš„ç©ºæ ¼
            }));
        },
        getKbBarInfo() {
            var that = this;
            that.isLoading = true;
            that.AxiosHttp("post", 'Womdaa/getKbBarInfo', {
                Xt: that.GX,
                Kbbarcode: that.KbBar
            }, false)
                .then(function (res) {
                    var json = res;
                    if (json.status == 0) {
                        console.log(json.data.tbBillList.kbBarInfo[0].agvPostion);
                         that.KbBarInfo = json.data.tbBillList.kbBarInfo[0];
                        that.DAA001 = that.KbBarInfo.daA001;
                        // æ ¹æ®åŽç«¯è¿”回的结构赋值物料信息
                        that.itemNo = that.KbBarInfo.item_no || '';
                        that.itemName = that.KbBarInfo.item_name || '';
                        that.itemModel = that.KbBarInfo.item_model || '';
                        that.lineName = that.KbBarInfo.lineName || '';
                        // that.KbBarMxInfo = json.data.tbBillList.kbBarMxInfo;
                        //that.$refs.XBar.focus();
                    }
                    else {
                        that.$playSound('error');
                        //that.$toast.fail(json.message);
                        that.$dialog.alert({
                            message: json.message,
                            theme: 'round-button',
                        }).then(() => {
                            // on close
                        });
                        that.$refs.KbBar.focus();
                        that.KbBar = "";
                    }
                    that.isLoading = false;
                })
                .catch(function (error) {
                    that.isLoading = false;
                    that.$playSound('error');
                    //that.$toast.fail("网络错误,请重试!");
                    that.$dialog.alert({
                        message: "网络错误,请重试!",
                        theme: 'round-button',
                    }).then(() => {
                        // on close
                    });
                    that.$refs.KbBar.focus();
                    that.KbBar = "";
                });
        },
        getXBarInfo() {
            var that = this;
            if (that.KbBar.length <= 0) {
                that.$playSound('error');
                that.$toast.fail("卡板条码不能为空!");
                that.$refs.KbBar.focus();
                that.XBar = "";
                return;
            }
            if (that.DAA001.length <= 0) {
                that.$playSound('error');
                that.$toast.fail("指令工单不能为空!");
                that.$refs.KbBar.focus();
                that.XBar = "";
                return;
            }
            // æ£€æŸ¥æ˜¯å¦è¶…过装箱数
            if (that.XbarInfo.length >= that.Xvalue) {
                that.$playSound('error');
                //that.$toast.fail(`已达到装箱数限制(${that.Xvalue})`);
                that.$dialog.alert({
                    message: `已达到装箱数限制(${that.Xvalue})`,
                    theme: 'round-button',
                }).then(() => {
                    // on close
                });
                that.XBar = "";
                return;
            }
            //待装数
            var Dvalue = (that.KbBarInfo.quantity || 0) - +(that.KbBarInfo.ySum || 0)
            // æ£€æŸ¥æ˜¯å¦è¶…过装箱数
            if (that.Xvalue > Dvalue) {
                that.$playSound('error');
                //that.$toast.fail(`装箱数(${that.Xvalue}) ä¸èƒ½å¤§äºŽ å¡æ¿å¾…装数(${Dvalue})`);
                that.$dialog.alert({
                    message: `装箱数(${that.Xvalue}) ä¸èƒ½å¤§äºŽ å¡æ¿å¾…装数(${Dvalue})`,
                    theme: 'round-button',
                }).then(() => {
                    // on close
                });
                that.XBar = "";
                return;
            }
            // æ£€æŸ¥æ¡ç æ˜¯å¦å·²å­˜åœ¨
            const isExist = that.XbarInfo.some(item => item.iteM_BARCODE === that.XBar);
            if (isExist) {
                that.$playSound('error');
                //that.$toast.fail("该箱条码已存在,请勿重复扫描");
                that.$dialog.alert({
                    message: "该箱条码已存在,请勿重复扫描",
                    theme: 'round-button',
                }).then(() => {
                    // on close
                });
                that.XBar = "";
                return;
            }
            that.isLoading = true;
            that.AxiosHttp("post", 'Womdaa/getXBarInfo', {
                KbBar: that.KbBar,
                DAA001: that.DAA001,
                userName: that.userInfo.loginAccount,
                Xbarcode: that.XBar
            }, false)
                .then(function (res) {
                    var json = res;
                    if (json.status == 0) {
                        that.XbarInfo.push(json.data.tbBillList.xBarInfo[0]);
                        that.$playSound('success');
                        that.$refs.XBar.focus();
                        that.XBar = "";
                        // æ£€æŸ¥æ˜¯å¦è¶…过装箱数
                        if (that.XbarInfo.length >= that.Xvalue) {
                            that.$refs.LsBar.focus();
                        }
                    }
                    else {
                        that.$playSound('error');
                        that.XBar = "";
                        //that.$toast.fail(json.message);
                        that.$dialog.alert({
                            message: json.message,
                            theme: 'round-button',
                        }).then(() => {
                            // on close
                        });
                    }
                    that.isLoading = false;
                })
                .catch(function (error) {
                    that.isLoading = false;
                    that.XBar = "";
                    that.$playSound('error');
                    //that.$toast.fail("网络错误,请重试!");
                    that.$dialog.alert({
                        message: "网络错误,请重试!",
                        theme: 'round-button',
                    }).then(() => {
                        // on close
                    });
                });
        },
        productBinding() {
            if (this.isLoading) {
                return;
            }
            var that = this;
            if (that.ZsBar.length <= 0) {
                that.$playSound('error');
                that.$toast.fail("追溯码不能为空!");
                return;
            }
            if (that.LsBar.length <= 0) {
                that.$playSound('error');
                that.$toast.fail("后盖码不能为空!");
                return;
            }
            that.isLoading = true;
            that.AxiosHttp("post", 'Womdaa/ProductBinding', {
                ZsBar: that.ZsBar,
                LsBar: that.LsBar,
                userName: that.userInfo.loginAccount,
            }, false)
                .then(function (res) {
                    var json = res;
                    if (json.status == 0) {
                        // that.scanInfo = json.data.tbBillList;
                        that.$playSound('success');
                        that.$notify({ type: 'success', message: json.message });
                        that.$refs.ZsBar.focus();
                        that.ZsBar = null;
                        that.ZsBar = null;
                    }
                    else {
                        that.$playSound('error');
                        //that.$toast.fail(json.message);
                        that.$dialog.alert({
                            message: json.message,
                            theme: 'round-button',
                        }).then(() => {
                            // on close
                        });
                        that.$refs.ZsBar.focus();
                        that.ZsBar = null;
                        that.ZsBar = null;
                    }
                    that.isLoading = false;
                })
                .catch(function (error) {
                    that.isLoading = false;
                    that.$playSound('error');
                    //that.$toast.fail("网络错误,请重试!");
                    that.$dialog.alert({
                        message: "网络错误,请重试!",
                        theme: 'round-button',
                    }).then(() => {
                        // on close
                    });
                    that.$refs.ZsBar.focus();
                    that.ZsBar = null;
                    that.ZsBar = null;
                });
        },
        checkProductBarcode() {
            var that = this;
            if (!that.LsBar) {
                that.$playSound('error');
                that.$toast.fail("请输入产品条码");
                return;
            }
            // åœ¨XbarInfo中查找匹配的条码
            const matchedItem = that.XbarInfo.find(item =>
                item.iteM_BARCODE === that.LsBar
            );
            if (matchedItem) {
                if (matchedItem.is_hedui === "1") {
                    that.$toast("已核对");
                } else {
                    that.AxiosHttp("post", 'Womdaa/GetWeightByXt', {
                        LsBar: that.LsBar,
                        userName: that.userInfo.loginAccount
                    }, false)
                        .then(function (res) {
                            var json = res;
                            if (json.status == 0) {
                                var weigth = json.data.tbBillList.weight;
                                that.$set(matchedItem, 'is_hedui', "1");
                                that.$set(matchedItem, 'weight', weigth);
                                that.$playSound('success');
                                that.$notify({ type: 'success', message: "核对成功" });
                                that.LsBar = "";
                                // æ£€æŸ¥æ˜¯å¦æ‰€æœ‰è¡Œéƒ½å·²æ ¸å¯¹
                                const allChecked = that.XbarInfo.every(item => item.is_hedui === "1");
                                if (allChecked && that.XbarInfo.length > 0 && that.XbarInfo.length === that.Xvalue) {
                                    that.submitAllChecked();
                                }
                            }
                            else {
                                that.$playSound('error');
                                //that.$toast.fail(json.message);
                                that.$dialog.alert({
                                    message: json.message,
                                    theme: 'round-button',
                                }).then(() => {
                                    // on close
                                });
                            }
                            that.isLoading = false;
                        })
                        .catch(function (error) {
                            that.isLoading = false;
                            that.$playSound('error');
                            //that.$toast.fail("网络错误,请重试!");
                            that.$dialog.alert({
                                message: "网络错误,请重试!",
                                theme: 'round-button',
                            }).then(() => {
                                // on close
                            });
                        });
                }
            } else {
                that.$playSound('error');
                //that.$toast.fail("未找到匹配的箱条码");
                that.$dialog.alert({
                    message: "未找到匹配的箱条码",
                    theme: 'round-button',
                }).then(() => {
                    // on close
                });
            }
            that.LsBar = ""; // æ¸…空输入框
        },
        handleClear() {
            this.KbBar = "";
            this.XBar = "";
            this.LsBar = "";
            this.DAA001 = [];
            this.XbarInfo = [];
        },
        // æ–°å¢žæ–¹æ³•:提交所有已核对的数据
        submitAllChecked() {
            if (this.isLoading) {
                return;
            }
            var that = this;
            that.isLoading = true;
            that.AxiosHttp("post", 'Womdaa/submitAllChecked', {
                XbarInfo: that.XbarInfo,
                KbBar: that.KbBar,
                userName: that.userInfo.loginAccount
            }, false)
                .then(function (res) {
                    var json = res;
                    if (json.status == 0) {
                        that.$playSound('success');
                        that.$notify({ type: 'success', message: json.message });
                        that.getKbBarInfo();
                    } else {
                        that.$playSound('error');
                        //that.$toast.fail(json.message);
                        that.$dialog.alert({
                            message: json.message,
                            theme: 'round-button',
                        }).then(() => {
                            // on close
                        });
                        // that.XbarInfo = [];
                        // that.XBar = "";
                        that.KbBar = "";
                    }
                    that.isLoading = false;
                })
                .catch(function (error) {
                    that.isLoading = false;
                    that.$playSound('error');
                    //that.$toast.fail("绑定失败,请重试!");
                    that.$dialog.alert({
                        message: "网络错误,请重试!",
                        theme: 'round-button',
                    }).then(() => {
                        // on close
                    });
                });
        },
        handleSubmit() {
            if (this.isLoading) {
                return;
            }
            var that = this;
            if (!that.KbBar) {
                that.$playSound('error');
                that.$toast.fail("请先扫描卡板条码");
                return;
            }
            that.isLoading = true;
            that.AxiosHttp("post", 'Womdaa/submitInspection', {
                KbBar: that.KbBar,
                userAccount: that.userInfo.loginAccount
            }, false)
                .then(function (res) {
                    var json = res;
                    if (json.status == 0) {
                        that.$playSound('success');
                        that.$notify({ type: 'success', message: json.message });
                        // æ¸…空数据
                        that.KbBar = "";
                        that.$refs.KbBar.focus();
                    } else {
                        that.$playSound('error');
                        //that.$toast.fail(json.message);
                        that.$dialog.alert({
                            message: json.message,
                            theme: 'round-button',
                        }).then(() => {
                            // on close
                        });
                    }
                    that.isLoading = false;
                })
                .catch(function (error) {
                    that.isLoading = false;
                    that.$playSound('error');
                    //that.$toast.fail("提交失败,请重试!");
                    that.$dialog.alert({
                        message: "网络错误,请重试!",
                        theme: 'round-button',
                    }).then(() => {
                        // on close
                    });
                    that.$refs.KbBar.focus();
                });
        },
        onSelect(action) {
            this.xtNum = action.lineNo;  // ç»‘定line_no到xtNum字段
            console.log("选择的线体编号:", this.xtNum);
            this.xtName = action.name;  // ç»‘定name到xtName字段
            this.show = false;
        },
        onSelectAgvDw(action) {
            this.AgvDw = action.name;
            this.showAgvDw = false;
        },
        selectDW() {
            this.showAgvDw = true;
        },
        //获取可呼叫AGV的线体
        selectXt() {
            this.show = true;
            var that = this;
            that.actions = [];
            that.isLoading = true;
            that.AxiosHttp("post", 'Womdaa/GetAgvXt', {
                selectKey: that.selectKey,
            }, false)
                .then(function (res) {
                    var json = res;
                    if (json.status == 0) {
                        if (json.data.tbBillList.length <= 0) {
                            that.$toast.fail("没有可用的数据");
                            that.$playSound('error');
                        } else {
                            that.itemInfo = json.data.tbBillList;
                            that.actions = json.data.tbBillList.map(item => {
                                return {
                                    name: item.name,
                                    lineNo: item.line_no  // æ–°å¢ž
                                };
                            });
                        }
                    }
                    else {
                        //that.$toast.fail(json.message);
                        that.$dialog.alert({
                            message: json.message,
                            theme: 'round-button',
                        }).then(() => {
                            // on close
                        });
                        that.$playSound('error');
                    }
                    that.isLoading = false;
                })
                .catch(function (error) {
                    that.isLoading = false;
                    //that.$toast.fail("网络错误,请重试!");
                    that.$dialog.alert({
                        message: "网络错误,请重试!",
                        theme: 'round-button',
                    }).then(() => {
                        // on close
                    });
                    that.$playSound('error');
                    console.log(error);
                });
        },
        //AGV送检
        handleAGVInspection() {
            //this.$toast.fail("功能开发测试中!");
            //return;
            if (this.isLoading) {
                return;
            }
            var that = this;
            if (that.agvChecked === false)
            {
                that.$playSound('error');
                that.$toast.fail("AGV送检请先勾选 AGV");
                return;
            }
            if (!that.KbBar) {
                that.$playSound('error');
                that.$toast.fail("请先扫描卡板条码");
                return;
            }
            if (!that.AgvDw) {
                that.$playSound('error');
                that.$toast.fail("请先选择AGV点位");
                return;
            }
            // è®¡ç®—可装数和已装数
            const oldqty = +(that.KbBarInfo.quantity || 0);
            const ySum = +(that.KbBarInfo.ySum || 0);
            if (oldqty !== ySum) {
                that.$playSound('error');
                //that.$toast.fail(`装板未完成,待装数:${oldqty - ySum}`);
                that.$dialog.alert({
                    message: `装板未完成,待装数:${oldqty - ySum}`,
                    theme: 'round-button',
                }).then(() => {
                    // on close
                });
                return;
            }
            that.isLoading = true;
            that.AxiosHttp("post", 'Womdaa/handleAGVInspection', {
                KbBar: that.KbBar,
                userAccount: that.userInfo.loginAccount,
                AgvDw: that.AgvDw
            }, false)
                .then(function (res) {
                    var json = res;
                    if (json.status == 0) {
                        that.$playSound('success');
                        that.$notify({ type: 'success', message: json.message });
                    } else {
                        that.$playSound('error');
                        //that.$toast.fail(json.message);
                        that.$dialog.alert({
                            message: json.message,
                            theme: 'round-button',
                        }).then(() => {
                            // on close
                        });
                    }
                    that.isLoading = false;
                })
                .catch(function (error) {
                    that.isLoading = false;
                    that.$playSound('error');
                    //that.$toast.fail("AGV送检失败,请重试!");
                    that.$dialog.alert({
                        message: "AGV送检失败,请重试!",
                        theme: 'round-button',
                    }).then(() => {
                        // on close
                    });
                    that.$refs.KbBar.focus();
                });
        },
        //AGV呼叫
        handleAGVCall() {
            //this.$toast.fail("功能开发测试中!");
            //return;
            if (this.isLoading) {
                return;
            }
            var that = this;
            if (!that.xtNum) {
                that.$playSound('error');
                that.$toast.fail("请先选择线体");
                return;
            }
            that.isLoading = true;
            that.AxiosHttp("post", 'Womdaa/handleAGVCall', {
                XtNum: that.xtNum,
                userAccount: that.userInfo.loginAccount
            }, false)
                .then(function (res) {
                    var json = res;
                    if (json.status == 0) {
                        that.$playSound('success');
                        that.$notify({ type: 'success', message: json.message });
                    } else {
                        that.$playSound('error');
                        //that.$toast.fail(json.message);
                        that.$dialog.alert({
                            message: json.message,
                            theme: 'round-button',
                        }).then(() => {
                            // on close
                        });
                    }
                    that.isLoading = false;
                })
                .catch(function (error) {
                    that.isLoading = false;
                    that.$playSound('error');
                    //that.$toast.fail("AGV呼叫失败,请重试!");
                    that.$dialog.alert({
                        message: "AGV呼叫失败,请重试!",
                        theme: 'round-button',
                    }).then(() => {
                        // on close
                    });
                    that.$refs.KbBar.focus();
                });
        }
    }
})
H5/Js/IPQC_XJ/Add.js
@@ -1,4 +1,4 @@
var vm = new Vue({
var vm = new Vue({
    el: '#app',
    data: function () {
        return {
@@ -41,6 +41,8 @@
            okValue: '',//OK-数量
            ngValue: '',//NG-数量
            showDialog: false,//不良表述输入框
            checkItemDesc: '',//检验项目描述
            showCheckItemDescDialog: false,//检验项目描述输入框
            selectKey: "",//查询关键字
            actions: [],//列表的值
            daashow: false,//工单列表展示
@@ -409,6 +411,30 @@
        updateRemarks(guid) {
            this.showDialog= true
        },
        updateCheckItemDesc(guid) {
            this.showCheckItemDescDialog = true
        },
        checkItemDescConfirm() {
            const that = this;
            that.isLoading = true;
            var guid = that.jymxData.guid;
            that.AxiosHttp("post", 'Ipqc/updateCheckItemDesc', {
                gid: guid,
                CheckItemDesc: that.checkItemDesc
            }, true, 0).then(res1 => {
                if (res1.status == 0) {
                    that.$notify({ type: 'success', message: '输入成功' });
                    that.showCheckItemDescDialog = false;
                    that.refreshJYItem();//刷新检验项目
                } else {
                    that.$toast.fail(res1.rtnMsg);
                }
                that.isLoading = false;
            }).catch(error => {
                that.$toast.fail("网络错误,请重试!");
                that.isLoading = false;
            });
        },
        deleteDetail13(guid12) {
            const that = this;
            var guid1 = that.formData.guid;//主表id
Scripts/config.js
@@ -180,15 +180,15 @@
            `T 55 2 110 42 ${item.item_model}\r\n` +
            "T 16 0 10 78 æ•°é‡ï¼š\r\n" +
            `T 0 5 90 78 ${item.quantity}\r\n` +
            `T 16 5 180 78 ${item.barType}\r\n` +
            `BARCODE 128 1 25 35 350 130 ${item.iteM_BARCODE}\r\n` +
            `T 55 2 350 115 ${item.iteM_BARCODE}\r\n` +
            `T 16 5 300 78 ${item.barType}\r\n` +
            `BARCODE 128 1 25 35 300 120 ${item.iteM_BARCODE}\r\n` +
            `T 10 10 300 153 ${item.iteM_BARCODE}\r\n` +
/*            `T 0 1 350 130 ${item.iteM_BARCODE}\r\n` +*/
            "T 55 0 10 125 åˆ›å»ºæ—¶é—´ï¼š\r\n" +
            `T 55 0 120 125 ${item.creatE_DATE}\r\n` +
            "T 55 0 10 150 æ‰“印时间:\r\n" +
            `T 55 0 120 150 ${item.print_date}\r\n` +
            "B QR 580 12 M 2 U 4\r\n" +
            "B QR 580 2 M 2 U 4\r\n" +
            `MA,${item.iteM_BARCODE}\r\n` +
            "ENDQR\r\nFORM\r\nPRINT\r\n";
    });