diff --git a/src/views/modules/quote/detail/quoteDetail.vue b/src/views/modules/quote/detail/quoteDetail.vue index 9d9dd37..59fd86c 100644 --- a/src/views/modules/quote/detail/quoteDetail.vue +++ b/src/views/modules/quote/detail/quoteDetail.vue @@ -114,13 +114,13 @@ export default { { userId: this.$store.state.user.name, functionId: 5011, - serialNumber: '5011Table2CostModel', + serialNumber: '5011Table2PartNo', tableId: '5011Table2', tableName: '报价详情信息表', - columnProp: 'costModel', + columnProp: 'partNo', headerAlign: 'center', - align: 'center', - columnLabel: 'Cost Model', + align: 'left', + columnLabel: '物料编码', columnHidden: false, columnImage: false, columnSortable: false, @@ -132,38 +132,38 @@ export default { { userId: this.$store.state.user.name, functionId: 5011, - serialNumber: '5011Table2PartNo', + serialNumber: '5011Table2PartDesc', tableId: '5011Table2', tableName: '报价详情信息表', - columnProp: 'partNo', + columnProp: 'partDesc', headerAlign: 'center', - align: 'center', - columnLabel: '物料编码', + align: 'left', + columnLabel: '物料名称', columnHidden: false, columnImage: false, columnSortable: false, sortLv: 0, status: true, fixed: '', - columnWidth: 120 + columnWidth: 320 }, { userId: this.$store.state.user.name, functionId: 5011, - serialNumber: '5011Table2PartDesc', + serialNumber: '5011Table2CostModel', tableId: '5011Table2', tableName: '报价详情信息表', - columnProp: 'partDesc', + columnProp: 'costModel', headerAlign: 'center', - align: 'center', - columnLabel: '物料名称', + align: 'left', + columnLabel: 'Cost Model', columnHidden: false, columnImage: false, columnSortable: false, sortLv: 0, status: true, fixed: '', - columnWidth: 320 + columnWidth: 80 }, { userId: this.$store.state.user.name, @@ -173,7 +173,7 @@ export default { tableName: '报价详情信息表', columnProp: 'qty', headerAlign: 'center', - align: 'center', + align: 'left', columnLabel: '报价数量', columnHidden: false, columnImage: false, @@ -571,6 +571,9 @@ export default { if (data && data.code === 0){ this.$message.success(data.msg); this.handleQueryQuoteDetail(); + if (this.quoteGroupDetail && this.saveQuoteDetail.quoteGroupDetailId === this.quoteGroupDetail.id){ + this.$emit('reload') + } this.saveVisible = false; }else { this.$message.warning(data.msg); diff --git a/src/views/modules/quote/detail/quoteGroupDetail.vue b/src/views/modules/quote/detail/quoteGroupDetail.vue index c358c15..5dc11d4 100644 --- a/src/views/modules/quote/detail/quoteGroupDetail.vue +++ b/src/views/modules/quote/detail/quoteGroupDetail.vue @@ -37,6 +37,10 @@ export default { authFlag:{ type:Boolean, default:false + }, + selection:{ + type:Boolean, + default:false } }, data(){ @@ -105,16 +109,17 @@ export default { costModel: [{required: true, message: '请选择Cost Model', trigger: ['blur','change']}], }, columns: [ + { userId: this.$store.state.user.name, functionId: 5011, - serialNumber: '5011Table2CostModel', + serialNumber: '5011Table2PartNo', tableId: '5011Table2', tableName: '报价详情信息表', - columnProp: 'costModel', + columnProp: 'partNo', headerAlign: 'center', - align: 'center', - columnLabel: 'Cost Model', + align: 'left', + columnLabel: '物料编码', columnHidden: false, columnImage: false, columnSortable: false, @@ -126,38 +131,38 @@ export default { { userId: this.$store.state.user.name, functionId: 5011, - serialNumber: '5011Table2PartNo', + serialNumber: '5011Table2PartDesc', tableId: '5011Table2', tableName: '报价详情信息表', - columnProp: 'partNo', + columnProp: 'partDesc', headerAlign: 'center', - align: 'center', - columnLabel: '物料编码', + align: 'left', + columnLabel: '物料名称', columnHidden: false, columnImage: false, columnSortable: false, sortLv: 0, status: true, fixed: '', - columnWidth: 120 + columnWidth: 320 }, { userId: this.$store.state.user.name, functionId: 5011, - serialNumber: '5011Table2PartDesc', + serialNumber: '5011Table2CostModel', tableId: '5011Table2', tableName: '报价详情信息表', - columnProp: 'partDesc', + columnProp: 'costModel', headerAlign: 'center', - align: 'center', - columnLabel: '物料名称', + align: 'left', + columnLabel: 'Cost Model', columnHidden: false, columnImage: false, columnSortable: false, sortLv: 0, status: true, fixed: '', - columnWidth: 320 + columnWidth: 80 }, { userId: this.$store.state.user.name, @@ -597,6 +602,19 @@ export default { this.drawerVisible = false this.saveVisible = false }, + handleSelectionChange(val){ + let ids = val.map((item)=>item.id); + this.$emit('handleSelectionChange', ids); + } + }, + created() { + if (this.selection){ + if (this.quote.id){ + this.handleQueryQuoteDetail(); + }else { + this.dataList = []; + } + } }, watch:{ quote(newVal,oldVal){ @@ -621,8 +639,15 @@ export default {
新增 - - + + + + @currentQuoteDetailItemNo="handleCurrentQuoteDetailItemNo" + @reload = "handleQueryQuoteDetail">