| | |
| | | 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) { |
| | |
| | | }, |
| | | 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 => { |
| | |
| | | |
| | | }).catch(() => { // 取消回调 |
| | | that.$toast('已取消操作'); |
| | | that.isLoading = false; |
| | | }); |
| | | }, |
| | | GetBack1() { |
| | |
| | | //获取图片信息 |
| | | 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 需要的格式 |
| | |
| | | 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(() => { |
| | | // 取消操作 |
| | | }) |
| | | }, |
| | | } |
| | | }) |
| | |
| | | <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> |
| | |
| | | v-model="fileList" |
| | | :after-read="afterRead" |
| | | style="padding: 8px 0" |
| | | @delete="handleDelete" |
| | | /> |
| | | </div> |
| | | </div> |
| | |
| | | <%--<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> |
| | |
| | | <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> |