Browse Source

fix:修改代码销售合同变更信息录入合同无法带出异常问题

lazy 5 months ago
parent
commit
f59c08c05e

+ 2 - 2
src/views/myTrade/salesContractManagement/components/ChangeSalesContractAddContent.vue

@@ -195,11 +195,11 @@ export default {
     deatilsInfo: {
     deatilsInfo: {
       handler(newV) {
       handler(newV) {
         if (this.deatilsInfo && Object.keys(newV).length) {
         if (this.deatilsInfo && Object.keys(newV).length) {
-          const { supplementContractNumber, addGoods, fileStorageDOs, remark, supplementGoodsInfos } = JSON.parse(JSON.stringify(newV))
+          const { supplementContractNumber, addGoods, fileStorageDOs, files, remark, supplementGoodsInfos } = JSON.parse(JSON.stringify(newV))
           this.ruleForm = {
           this.ruleForm = {
             supplementContractNumber,
             supplementContractNumber,
             addGoods,
             addGoods,
-            salesContractSupplementContractFile: fileStorageDOs || [],
+            salesContractSupplementContractFile: fileStorageDOs || files || [],
             remark
             remark
           }
           }
           this.goodsInfoList = supplementGoodsInfos
           this.goodsInfoList = supplementGoodsInfos