Prechádzať zdrojové kódy

物资-优化查看报损流程数据

huangguoce 2 dní pred
rodič
commit
c7dce2a334
1 zmenil súbory, kde vykonal 6 pridanie a 4 odobranie
  1. 6 4
      src/views/psiManagement/loss/LossForm.vue

+ 6 - 4
src/views/psiManagement/loss/LossForm.vue

@@ -268,18 +268,20 @@ export default {
 					this.lossService
 						.findById(id)
 						.then(data => {
-							this.inputForm = this.recover(this.createDefaultForm(), data);
+							this.inputForm = this.recover(this.inputForm, data)
+
+							// this.inputForm = this.recover(this.createDefaultForm(), data);
 							this.inputForm.id = data.id;
 							this.inputForm.detailInfos = this.inputForm.detailInfos || [];
-							this.inputForm = JSON.parse(JSON.stringify(this.inputForm));
 
-							this.$refs.uploadComponent.newUpload(method, this.inputForm.files || [], "psi");
+							this.$refs.uploadComponent.newUpload(this.method ? this.method : "view", this.inputForm.files, "psi");
+
 						})
 						.finally(() => {
 							this.loading = false;
 						});
 				} else {
-					this.$refs.uploadComponent.newUpload(method, [], "psi");
+					this.$refs.uploadComponent.newUpload(this.method ? this.method : "view", [], "psi");
 				}
 			});
 		},