南骏 池
2025-02-08 9a869077432d87d586bb58b5e9d3f6b9139a53e5
1.来料检验不合格描述和按钮显示优化
已修改3个文件
52 ■■■■ 文件已修改
H5/Js/LLJ/Add.js 44 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/LLJ/Add.aspx 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Scripts/config.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/Js/LLJ/Add.js
@@ -71,9 +71,9 @@
                                }
                            });
                            that.tableData = tableData;
                            if (that.tableData.length === 0) {
                                that.isShowTable = true;
                            }
                            //if (that.tableData.length === 0) {
                            //    that.isShowTable = true;
                            //}
                        }).catch(function (error) {
                            that.$toast.fail("网络错误,请重试!");
                            console.log(error);
@@ -88,17 +88,39 @@
        submit() {
            var that = this;
            //if (that.formdata.remarks == undefined && that.formdata.fcheckresu == "不合格") {
            //    that.$toast.fail("检验结果为不合格时,需要填写不合格描述!");
            //    return;
            //}
            that.ttrre = true;
            that.AxiosHttp("post", 'LLJ/IqcQaSubmit', {
                userNo: this.userInfo.loginAccount,
                releaseNo: this.formData.releaseNo
            }, false).then(function (res1) {
                if (res1.status == 1) {
                    that.$toast.fail(res1.message);
                } else {
            //that.AxiosHttp("post", 'LLJ/IqcQaSubmit', {
            //    userNo: this.userInfo.loginAccount,
            //    releaseNo: this.formData.releaseNo
            //}, false).then(function (res1) {
            //    if (res1.status == 1) {
            //        that.$toast.fail(res1.message);
            //    } else {
            //        that.$notify({ type: 'success', message: '提交成功' });
            //        that.init();
            //    }
            //    that.ttrre = false
            //}).catch(function (error) {
            //    that.$toast.fail("网络错误,请重试!");
            //    that.ttrre = false
            //    console.log(error);
            //});
            that.AxiosHttp("post", 'MesQaItemsDetect01Manager/EditModelSubmit', {
                guid: that.formData.guid
            }, true, 1).then(function (res1) {
                if (res1.rtnCode == 1) {
                    that.$notify({ type: 'success', message: '提交成功' });
                    that.init();
                } else {
                    that.$toast.fail(res1.rtnMsg);
                }
                that.ttrre = false
            }).catch(function (error) {
@@ -116,7 +138,7 @@
                guid: that.formData.guid
            }, true, 1).then(function (res1) {
                if (res1.rtnCode == 1) {
                    that.$notify({ type: 'success', message: '提交成功' });
                    that.$notify({ type: 'success', message: '重新加载成功' });
                    that.init();
                } else {
                    that.$toast.fail(res1.rtnMsg);
H5/LLJ/Add.aspx
@@ -30,7 +30,7 @@
              <van-field label="物料名称" colon="true" v-model="formData.itemName" readonly ></van-field>
              <van-field label="规格型号" colon="true" v-model="formData.itemModel" readonly ></van-field>
              <van-field label="数量" colon="true" v-model="formData.fcovertQty" readonly ></van-field>
              <van-field label="不合格描述" colon="true" v-model="formData.remarks" readonly ></van-field>
              <van-field label="不合格描述" v-if='formData.fcheckResu == "不合格"' colon="true" v-model="formData.remarks" ></van-field>
              <van-field label="检测结果" colon="true" v-model="formData.fcheckResu" readonly ></van-field>
            </van-cell-group>
        </div>
@@ -74,5 +74,5 @@
  <comback ></comback>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server">
 <script src="../Js/LLJ/Add.js?<%=1124322 %>"></script>
 <script src="../Js/LLJ/Add.js?<%=11243123 %>"></script>
</asp:Content>
Scripts/config.js
@@ -1,5 +1,5 @@
var APIURL = "http://192.168.1.145:83/api/";
//var APIURL = "http://localhost:5204/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 ISNEEDLOGIN = true;
String.prototype.trim = function () {