南骏 池
2025-03-25 789a9818b0f3d6cdcdc84ed4c252c294fcee9bef
1.来料检优化
已修改3个文件
63 ■■■■ 文件已修改
H5/Js/LLJ/Add.js 39 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/LLJ/Add.aspx 19 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/LLJ/List.aspx 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/Js/LLJ/Add.js
@@ -299,13 +299,13 @@
            var that = this;
            that.ttrre = true;
            that.AxiosHttp("post", 'MesQaItemsDetect01Manager/EditModelSubmit', {
                id13: that.formData.guid
                guid: that.formData.guid
            }, true, 1).then(function (res1) {
                if (res1.rtnCode == 1) {
                if (res1.rtnData.outSum == 1) {
                    that.$notify({ type: 'success', message: '提交成功' });
                    that.init();
                } else {
                    that.$toast.fail(res1.rtnMsg);
                    that.$toast.fail(res1.rtnData.outMsg);
                }
                that.ttrre = false
            }).catch(function (error) {
@@ -316,13 +316,13 @@
        },
        removeXJ() {
            const that = this;
            that.isLoading = true;
            // 添加确认弹窗
            that.$dialog.confirm({
                message: '确认要重新加载检验项目吗?',
                confirmButtonText: '确认',
                cancelButtonText: '取消'
            }).then(() => {  // 确认回调
                that.isLoading = true;
                that.AxiosHttp("post", 'MesQaItemsDetect01Manager/ReloadModel5', {
                    guid: that.formData.guid
                }, true, 1).then(res1 => {
@@ -340,7 +340,6 @@
            }).catch(() => {  // 取消回调
                that.$toast('已取消操作');
                that.isLoading = false;
            });
        },
        GetBack1() {
@@ -461,9 +460,8 @@
        //获取图片信息
        GetImageFileByGid() {
            const that = this;
            that.AxiosHttp("post", 'Llj/getImage', {
                gid: that.formData.guid,
                Remarks: that.remarks
            that.AxiosHttp("post", 'MesImage/getImage', {
                parentId: that.formData.guid,
            }, true, 0).then(res1 => {
                if (res1.status === 0) {
                    // 关键转换:将后端数据转换为 van-uploader 需要的格式
@@ -482,5 +480,30 @@
                that.$toast.fail("网络错误,请重试!");
            });
        },
        handleDelete(file, { index }) {
            var that = this;
            that.$dialog.confirm({
                title: '确认删除',
                message: '确定要删除这张图片吗?'
            }).then(() => {
                // 确认删除逻辑
                console.log(file);
                that.AxiosHttp("post", 'MesImage/deleteImage', {
                    id: file.id,
                }, true, 0).then(res1 => {
                    if (res1.status === 0) {
                        that.$notify({ type: 'success', message: '删除成功' });
                        that.init();//刷新检验项目
                    } else {
                        that.$toast.fail(res1.rtnMsg);
                    }
                }).catch(error => {
                    that.$toast.fail("网络错误,请重试!");
                });
            }).catch(() => {
                // 取消操作
            })
        },
    }
})
H5/LLJ/Add.aspx
@@ -30,13 +30,21 @@
              <template #title>
                <div class="inline-title">
                  <span class="release-no">{{ formData.releaseNo }}</span>
                  <van-tag  round plain
                    <van-tag round plain v-if="formData.fcheckResu === '不合格'" type="danger">不合格</van-tag>
                    <van-tag round plain v-else-if="formData.fcheckResu === '检验中'" type="warning">检验中</van-tag>
                    <van-tag round plain v-else-if="formData.fcheckResu === '未检验'" type="warning">未检验</van-tag>
                    <van-tag round plain v-else-if="formData.fcheckResu === ''" type="warning">未检验</van-tag>
                    <van-tag round plain v-else-if="formData.fcheckResu === '合格'" type="warning">合格</van-tag>
                    <van-tag round plain v-else type="danger">异常状态</van-tag>
<%--                  <van-tag  round plain
                    :type="formData.fcheckResu === '不合格' ? 'danger' : 
                          formData.fcheckResu === '检验中' ? 'warning' : 'success'"
                          formData.fcheckResu === '检验中' ? 'warning' :
                          formData.fcheckResu === '未检验' ? 'warning' :
                          formData.fcheckResu === '合格' ? 'success' :'danger'"
                    class="status-tag"
                  >
                    {{ formData.fcheckResu || '合格' }}
                  </van-tag>
                    {{ formData.fcheckResu }}
                  </van-tag>--%>
                </div>
              </template>
                <template #right>
@@ -121,6 +129,7 @@
        v-model="fileList" 
        :after-read="afterRead"
        style="padding: 8px 0"
        @delete="handleDelete"
      />
    </div>
  </div>
@@ -379,5 +388,5 @@
  <%--<comback ></comback>--%>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server">
 <script src="../Js/LLJ/Add.js?<%=119993 %>"></script>
 <script src="../Js/LLJ/Add.js?<%=119996 %>"></script>
</asp:Content>
H5/LLJ/List.aspx
@@ -76,7 +76,10 @@
                                  <template #input>
                                      <van-tag round plain v-if="item.fcheckResu === '不合格'" type="danger">不合格</van-tag>
                                      <van-tag round plain v-else-if="item.fcheckResu === '检验中'" type="warning">检验中</van-tag>
                                      <van-tag round plain v-else type="success">合格</van-tag>
                                      <van-tag round plain v-else-if="item.fcheckResu === '未检验'" type="warning">未检验</van-tag>
                                      <van-tag round plain v-else-if="item.fcheckResu === ''" type="warning">未检验</van-tag>
                                      <van-tag round plain v-else-if="item.fcheckResu === '合格'" type="warning">合格</van-tag>
                                      <van-tag round plain v-else type="danger">异常状态</van-tag>
                                  </template>
                               </van-field>
                             </van-cell-group>