Bladeren bron

ehsd 销售合同 样品单提交问题

lxf 1 jaar geleden
bovenliggende
commit
08cc0414c3
2 gewijzigde bestanden met toevoegingen van 7 en 2 verwijderingen
  1. 5 0
      src/components/process/EHSD/Contract.vue
  2. 2 2
      src/views/process/processApproval/index.vue

+ 5 - 0
src/components/process/EHSD/Contract.vue

@@ -341,6 +341,7 @@
             :data="uploadData"
             multiple
             :before-upload="uploadFile"
+            :on-success="handleSuccess"
             :on-preview="onPreviewFile">
             <el-button type="primary" plain>选择</el-button>
           </el-upload>
@@ -1015,8 +1016,12 @@ const uploadFile = async (file) => {
   file.id = res.id;
   file.fileName = res.fileName;
   file.fileUrl = res.fileUrl;
+  file.uploadState = false;
   return true;
 };
+const handleSuccess = (any, UploadFile) => {
+  UploadFile.raw.uploadState = true
+};
 const onPreviewFile = (file) => {
   window.open(file.raw.fileUrl, "_blank");
 };

+ 2 - 2
src/views/process/processApproval/index.vue

@@ -251,7 +251,7 @@ const handleSubmit = async (_type) => {
                 deliveryTime: data.deliveryTime,
                 fileList: fileList,
               });
-              data.quotationProductList = data.quotationProductList.map((item) => {
+              data.contractProductList = data.contractProductList.map((item) => {
                 let ehsdJson = JSON.stringify({
                   packMethod: item.packMethod,
                   tradeMethods: item.tradeMethods,
@@ -274,7 +274,7 @@ const handleSubmit = async (_type) => {
               deliveryTime: data.deliveryTime,
               fileList: fileList,
             });
-            data.quotationProductList = data.quotationProductList.map((item) => {
+            data.sampleProductList = data.sampleProductList.map((item) => {
               let ehsdJson = JSON.stringify({
                 packMethod: item.packMethod,
                 tradeMethods: item.tradeMethods,