| | |
| | | id: undefined, |
| | | infoid: undefined, |
| | | donationcategory: "", |
| | | recordstate: "", |
| | | caseNo: "", |
| | | donorno: "", |
| | | treatmenthospitalname: "", |
| | |
| | | ], |
| | | diagnosisname: [ |
| | | { required: true, message: "疾病诊断不能为空", trigger: "blur" } |
| | | ], |
| | | recordstate: [ |
| | | { required: true, message: "记录状态不能为空", trigger: "change" } |
| | | ] |
| | | }, |
| | | // 分配记录验证规则 |
| | |
| | | serviceDonateorganList: |
| | | this.allocationData.serviceDonateorganList || [] |
| | | }; |
| | | if ( |
| | | submitData.allocationStatus == 1 || |
| | | !submitData.allocationStatus |
| | | ) { |
| | | submitData.allocationStatus = 2; |
| | | } |
| | | saveData.fileName = this.buildFilePatch(); |
| | | saveData.serviceDonateorganList.forEach(item => { |
| | | item.baseid = this.form.id; |
| | | item.infoid = this.form.infoid; |
| | | }); |
| | | this.form.recordstate = 1; |
| | | const apiMethod = this.form.id ? allocationedit : allocationadd; |
| | | const response = await apiMethod(saveData); |
| | | |
| | |
| | | }) |
| | | .then(async () => { |
| | | this.confirmLoading = true; |
| | | this.form.allocationStatus = "1"; |
| | | this.form.allocationStatus = "3"; |
| | | this.form.allocationTime = new Date() |
| | | .toISOString() |
| | | .replace("T", " ") |