lilei 2 years ago
parent
commit
bc744ea5a2

+ 6 - 6
src/views/allocationManagement/transferOut/basicInfoModal.vue

@@ -79,7 +79,7 @@
               <Upload
                 style="height: 100%;"
                 id="allocateBill-attachList"
-                v-model="form.allocateFilesList"
+                v-model="form.attachmentList"
                 ref="attachList"
                 :fileSize="10"
                 :maxNums="10"
@@ -149,7 +149,7 @@ export default {
         promoStartDate: '',
         promoEndDate: '',
         remark: '',
-        allocateFilesList: ''
+        attachmentList: ''
       },
       rules: {
         targetType: [{ required: true, message: '请选择调往对象', trigger: 'change' }],
@@ -242,7 +242,7 @@ export default {
           if (!form.productBrandName) {
             form.productBrandSn = ''
           }
-          form.allocateFilesList = this.attachList
+          form.attachmentList = this.attachList
           _this.spinning = true
           allocateBillSave(form).then(res => {
             if (res.status == 200) {
@@ -295,7 +295,7 @@ export default {
         this.allocateTypeVal = []
         this.productType = []
         this.attachList = []
-        this.form.allocateFilesList = ''
+        this.form.attachmentList = ''
         this.$refs.attachList.setFileList('')
         this.form = {
           targetType: 'DEALER',
@@ -320,8 +320,8 @@ export default {
           this.isEdit = true
           this.form = Object.assign(this.form, this.detailData)
           // 获取附件列表
-          this.form.allocateFilesList = ''
-          this.attachList = this.detailData.allocateFilesList
+          this.form.attachmentList = ''
+          this.attachList = this.detailData.attachmentList
           this.$nextTick(() => {
             this.$refs.attachList.setFileList(this.attachList)
           })

+ 2 - 2
src/views/allocationManagement/transferOut/detail.vue

@@ -86,12 +86,12 @@
               </a-descriptions-item>
               <a-descriptions-item label="备注">{{ (basicInfoData&&basicInfoData.remark) || '--' }}</a-descriptions-item>
               <a-descriptions-item label="附件" :span="4">
-                <div v-if="basicInfoData&&basicInfoData.allocateFilesList">
+                <div v-if="basicInfoData&&basicInfoData.attachmentList&&basicInfoData.attachmentList.length">
                   <a
                     target="_blank"
                     style="color: #00aaff;text-decoration: underline;margin-right: 15px;"
                     :href="item.filePath"
-                    v-for="item in basicInfoData.allocateFilesList"
+                    v-for="item in basicInfoData.attachmentList"
                     :key="item.id">
                     {{ item.fileName }}
                   </a>

+ 2 - 2
src/views/allocationManagement/transferOut/edit.vue

@@ -84,12 +84,12 @@
                 {{ (basicInfoData&&basicInfoData.remark||'--') }}
               </a-descriptions-item>
               <a-descriptions-item label="附件" :span="4">
-                <div v-if="basicInfoData&&basicInfoData.allocateFilesList">
+                <div v-if="basicInfoData&&basicInfoData.attachmentList&&basicInfoData.attachmentList.length">
                   <a
                     target="_blank"
                     style="color: #00aaff;text-decoration: underline;margin-right: 15px;"
                     :href="item.filePath"
-                    v-for="item in basicInfoData.allocateFilesList"
+                    v-for="item in basicInfoData.attachmentList"
                     :key="item.id">
                     {{ item.fileName }}
                   </a>