master
lion 1 year ago
parent 212d27971e
commit 741bd55bed

@ -85,7 +85,7 @@
<span style="color: red;font-weight: 600;padding-right: 4px;"></span>所在仓库
</div>
<div class="xy-table-item-content">
<el-select v-model="form.suozaicangku_id" style="width: 300px;" placeholder="请选择所在仓库">
<el-select @change="changeCk" v-model="form.suozaicangku_id" style="width: 300px;" placeholder="请选择所在仓库">
<el-option
v-for="item in cangkuList"
:key="item.id"
@ -358,6 +358,16 @@
}
}
},
changeCk(e){
if(e){
this.cangkuList.map(item=>{
if(e===item.id){
this.form.suozaicangku = item.cangkumingcheng
this.form.suozaicangku_id = item.id
}
})
}
},
submit() {
// return
console.log(this.fileList)

@ -334,11 +334,21 @@
table_name: this.customForm.tableName
}))
if (res.data) {
let headers = this.importForm.map(i => {
return {
key: i.field,
title: i.name
let headers = this.table.map(i => {
if(i.type==='index'){
}else if(i.prop==='materialstorages_details.cangkumingcheng'){
return {
key: 'suozaicangku',
title: i.label
}
}else{
return {
key: i.prop,
title: i.label
}
}
})
const data = res.data.map(row => headers.map(header => row[header.key]));
data.unshift(headers.map(header => header.title));

Loading…
Cancel
Save