|
@@ -956,7 +956,13 @@
|
|
|
],
|
|
|
}));
|
|
|
const { form, } = toRefs(data);
|
|
|
+
|
|
|
/*********************** 方法区 ****************************/
|
|
|
+
|
|
|
+ onActivated(() => {
|
|
|
+ getForm();
|
|
|
+ })
|
|
|
+
|
|
|
/** 打开抽屉 */
|
|
|
function open(id) {
|
|
|
reset();
|
|
@@ -1262,6 +1268,9 @@
|
|
|
|
|
|
/** 查询表单信息 */
|
|
|
function getForm() {
|
|
|
+ if(!form.value.id){
|
|
|
+ return;
|
|
|
+ }
|
|
|
proxy.$refs.orderRef.resetFields();
|
|
|
loading.value = true;
|
|
|
return getOrder(form.value.id).then((response) => {
|
|
@@ -1625,7 +1634,9 @@
|
|
|
function redirectVerify() {
|
|
|
redirectDetails.value.forEach((l) => {
|
|
|
const index = form.value.details.findIndex((v) => v.id === l.id);
|
|
|
+
|
|
|
form.value.details[index].redirect = l.redirect;
|
|
|
+
|
|
|
});
|
|
|
verifyUpload(1);
|
|
|
verifyFormClose();
|
|
@@ -1647,20 +1658,15 @@
|
|
|
}
|
|
|
|
|
|
function verifyUpload(status) {
|
|
|
-
|
|
|
- getForm().then(()=>{
|
|
|
- const formValue = proxy.deepClone(form.value);
|
|
|
- formValue.verifyStatus = status;
|
|
|
- formValue.status = status;
|
|
|
- verifyOrder(formValue).then((res) => {
|
|
|
- getList.value();
|
|
|
- rejectCancel();
|
|
|
- form.value.status = status;
|
|
|
- getForm();
|
|
|
- proxy.$modal.msgSuccess("保存成功");
|
|
|
- });
|
|
|
- })
|
|
|
- getList.value();
|
|
|
+ const formValue = proxy.deepClone(form.value);
|
|
|
+ formValue.verifyStatus = status;
|
|
|
+ formValue.status = status;
|
|
|
+ verifyOrder(formValue).then((res) => {
|
|
|
+ getForm();
|
|
|
+ getList.value();
|
|
|
+ rejectCancel();
|
|
|
+ proxy.$modal.msgSuccess("保存成功");
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
/** 文件上传 */
|