|
|
@ -474,7 +474,7 @@ import {EventBus} from "../../../main"; |
|
|
import {partInformationSearch} from "../../../api/part/partInformation"; |
|
|
import {partInformationSearch} from "../../../api/part/partInformation"; |
|
|
import quotationUpload from "../quote/quotation_upload.vue"; |
|
|
import quotationUpload from "../quote/quotation_upload.vue"; |
|
|
import OssComponents from "../oss/ossComponents.vue"; |
|
|
import OssComponents from "../oss/ossComponents.vue"; |
|
|
import {updateColumnSize} from "../../../api/table"; |
|
|
|
|
|
|
|
|
import {getTableDefaultListLanguage, getTableUserListLanguage, updateColumnSize} from "../../../api/table"; |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
computed: { |
|
|
computed: { |
|
|
@ -1475,6 +1475,8 @@ export default { |
|
|
}, |
|
|
}, |
|
|
created() { |
|
|
created() { |
|
|
this.getSiteAndBuByUserName() |
|
|
this.getSiteAndBuByUserName() |
|
|
|
|
|
// 动态列 |
|
|
|
|
|
this.getTableUserColumn(this.$route.meta.menuId+'table1',1) |
|
|
this.getDataList() |
|
|
this.getDataList() |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
@ -2587,7 +2589,46 @@ export default { |
|
|
}, |
|
|
}, |
|
|
navigateToMes(id){ |
|
|
navigateToMes(id){ |
|
|
this.$router.push({ path: 'inquiry-inquiryDetail', query: { id : id} }); |
|
|
this.$router.push({ path: 'inquiry-inquiryDetail', query: { id : id} }); |
|
|
} |
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
// 动态列开始 获取 用户保存的 格式列 |
|
|
|
|
|
async getTableUserColumn(tableId, columnId) { |
|
|
|
|
|
let queryTableUser = { |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
functionId: this.$route.meta.menuId, |
|
|
|
|
|
tableId: tableId, |
|
|
|
|
|
status: true, |
|
|
|
|
|
languageCode: this.$i18n.locale |
|
|
|
|
|
} |
|
|
|
|
|
await getTableUserListLanguage(queryTableUser).then(({data}) => { |
|
|
|
|
|
if (data.rows.length > 0) { |
|
|
|
|
|
switch (columnId) { |
|
|
|
|
|
case 1: |
|
|
|
|
|
this.columnList = data.rows |
|
|
|
|
|
break; |
|
|
|
|
|
} |
|
|
|
|
|
} else { |
|
|
|
|
|
this.getColumnList(tableId, columnId) |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 获取 tableDefault 列 |
|
|
|
|
|
async getColumnList (tableId, columnId) { |
|
|
|
|
|
let queryTable= { |
|
|
|
|
|
functionId: this.$route.meta.menuId, |
|
|
|
|
|
tableId: tableId, |
|
|
|
|
|
languageCode: this.$i18n.locale |
|
|
|
|
|
} |
|
|
|
|
|
await getTableDefaultListLanguage(queryTable).then(({data}) => { |
|
|
|
|
|
if (!data.rows.length === 0) { |
|
|
|
|
|
switch (columnId) { |
|
|
|
|
|
case 1: |
|
|
|
|
|
this.columnList = data.rows |
|
|
|
|
|
break; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
|