|
@@ -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)
|
|
|
})
|