| | |
| | | statusUser: "", |
| | | itemId: "", |
| | | fSubmit: 0, |
| | | yzxChecked: false, // 添加一致性核对状态字段 |
| | | }, |
| | | |
| | | DAA020List: [], |
| | |
| | | }, |
| | | |
| | | submit() { |
| | | // 检查是否已完成一致性核对 |
| | | if (this.current && !this.formData.yzxChecked) { |
| | | uni.showModal({ |
| | | title: "提示", |
| | | content: "请先完成一致性核对后再提交检验", |
| | | confirmText: "去核对", |
| | | cancelText: "取消", |
| | | success: (res) => { |
| | | if (res.confirm) { |
| | | this.toYzxSubmitFrom(this.formData.billNo); |
| | | } |
| | | } |
| | | }); |
| | | return; |
| | | } |
| | | |
| | | this.$post({ |
| | | url: "/SJ/SJQaSubmit", |
| | | data: { |
| | |
| | | if (res.statusCode === 200 || res.status === 0 || res.data === true || res.data.tbBillList === true) { |
| | | |
| | | this.$showMessage("成功提交检验"); |
| | | // 提交成功后跳转到列表页面 |
| | | // 提交成功后刷新页面数据 |
| | | this.init(); |
| | | // 1.5秒后跳转到列表页面 |
| | | setTimeout(() => { |
| | | uni.navigateTo({ |
| | | url: '/pages/QC/SJ/List' |
| | | }); |
| | | }, 1500); // 1.5秒后跳转,让用户看到成功提示 |
| | | }, 1500); |
| | | } else { |
| | | this.$showMessage(res.data.message || res.message || "提交失败"); |
| | | } |
| | |
| | | }).then(res => { |
| | | let tbBillListElement = res.data.tbBillList[0]; |
| | | if (tbBillListElement) { |
| | | // 保存当前的yzxChecked状态 |
| | | const currentYzxChecked = this.formData.yzxChecked; |
| | | this.formData = tbBillListElement; |
| | | // 恢复yzxChecked状态,避免被服务器数据覆盖 |
| | | this.formData.yzxChecked = currentYzxChecked; |
| | | this.$post({ |
| | | url: "/SJ/getQSItems", |
| | | data: { |