南骏 池
2025-07-16 171e6dc39bb085184c0e0989b7b37b129c59e6ac
1.样本值修改
已修改4个文件
53 ■■■■■ 文件已修改
H5/Js/LLJ/Add.js 41 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/LLJ/Add.aspx 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Mst.master 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Scripts/config.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/Js/LLJ/Add.js
@@ -40,6 +40,8 @@
            okValue: '',//OK-数量
            ngValue: '',//NG-数量
            showDialog: false,//不良表述输入框
            ybsDialog: false,//样本值输入框
            ybsValue: '',//样本数量
            //图片上传框
            fileList: [
                //{
@@ -82,6 +84,11 @@
            this.inputValue = value.replace(/[^\d.]/g, '')  // 1. 去除非数字和小数点
                .replace(/(\..*)\./g, '$1')               // 2. 禁止多个小数点
                .replace(/^\./g, '');    
        },
        handleNumberInput4(value) {
            // 去除非数字并确保首位不为0(除非是单独的0)
            this.jymxData.ybsl = value.replace(/[^\d]/g, '') // 去除非数字字符
                .replace(/^0+(?!$)/, ''); // 去除开头的0,除非整个字符串是0
        },
        togglePopup(index) {
@@ -351,6 +358,40 @@
        updateRemarks(guid) {
            this.showDialog= true
        },
        EditYangLi(GUID) {
            // 切换指定索引的 popup 状态
            var that = this;
            if (!that.jymxData.ybsl) {
                this.$toast.fail("样本数不能为空");
                that.isLoading = false;
                return;
            }
            var mxguid = that.tableData[that.tabActive].guid;//检验项目的guid
            var input = that.jymxData.ybsl;
            that.isLoading = true;
            that.AxiosHttp("post", 'MesQaItemsDetect01Manager/EditYangLi', {
                dt05Guid: mxguid,
                fSeq: "样本数",
                fVal: input,
            }, true, 1).then(function (res1) {
                if (res1.rtnData.outSum == 1) {
                    that.$notify({
                        type: 'success', message: res1.rtnMsg
                    });
                    that.okValue = null;
                    that.refreshJYItem();//刷新检验项目
                } else {
                    that.$toast.fail(res1.rtnMsg);
                }
                that.isLoading = false;
            }).catch(function (error) {
                that.$toast.fail("网络错误,请重试!");
                that.isLoading = false;
            });
        },
        deleteDetail13(guid13) {
            const that = this;
            
H5/LLJ/Add.aspx
@@ -205,7 +205,11 @@
                              <van-field label="上限" colon="true" v-model="jymxData.fupAllow" readonly ></van-field>
                              <%--<van-field label="AC数" colon="true" v-model="jymxData.facQty" readonly ></van-field>--%>
                              <van-field label="RE数" colon="true" v-model="jymxData.freQty" readonly ></van-field>
                              <van-field label="样本数" colon="true" v-model="jymxData.ybsl" readonly ></van-field>
                              <van-field label="样本数" colon="true" v-model="jymxData.ybsl" @input="handleNumberInput4" >
                                  <template #button>
                                    <van-tag type="primary" style="font-size:15px" @click="EditYangLi(jymxData.guid)">修改</van-tag>
                                  </template>
                              </van-field>
                              <%--<van-field label="预览结果" colon="true" v-model="jymxData.result" readonly ></van-field>--%>
                              <%--<van-field label="结果录入" colon="true" v-model="resultValue"  placeholder="请输入OK-数字或NG-数字"></van-field>--%>
                              
@@ -384,5 +388,5 @@
  <%--<comback ></comback>--%>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server">
 <script src="../Js/LLJ/Add.js?<%=119997112 %>"></script>
 <script src="../Js/LLJ/Add.js?<%=119997116 %>"></script>
</asp:Content>
Mst.master
@@ -11,7 +11,7 @@
    <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" />
Scripts/config.js
@@ -1,7 +1,7 @@
/*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/";//测试
var APIURL_IMAGE = APIURL_PC+"upload/";
var ISNEEDLOGIN = true;
String.prototype.trim = function () {