|
|
@ -37,6 +37,10 @@ export default { |
|
|
authFlag:{ |
|
|
authFlag:{ |
|
|
type:Boolean, |
|
|
type:Boolean, |
|
|
default:false |
|
|
default:false |
|
|
|
|
|
}, |
|
|
|
|
|
selection:{ |
|
|
|
|
|
type:Boolean, |
|
|
|
|
|
default:false |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
data(){ |
|
|
data(){ |
|
|
@ -105,16 +109,17 @@ export default { |
|
|
costModel: [{required: true, message: '请选择Cost Model', trigger: ['blur','change']}], |
|
|
costModel: [{required: true, message: '请选择Cost Model', trigger: ['blur','change']}], |
|
|
}, |
|
|
}, |
|
|
columns: [ |
|
|
columns: [ |
|
|
|
|
|
|
|
|
{ |
|
|
{ |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
functionId: 5011, |
|
|
functionId: 5011, |
|
|
serialNumber: '5011Table2CostModel', |
|
|
|
|
|
|
|
|
serialNumber: '5011Table2PartNo', |
|
|
tableId: '5011Table2', |
|
|
tableId: '5011Table2', |
|
|
tableName: '报价详情信息表', |
|
|
tableName: '报价详情信息表', |
|
|
columnProp: 'costModel', |
|
|
|
|
|
|
|
|
columnProp: 'partNo', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'center', |
|
|
|
|
|
columnLabel: 'Cost Model', |
|
|
|
|
|
|
|
|
align: 'left', |
|
|
|
|
|
columnLabel: '物料编码', |
|
|
columnHidden: false, |
|
|
columnHidden: false, |
|
|
columnImage: false, |
|
|
columnImage: false, |
|
|
columnSortable: false, |
|
|
columnSortable: false, |
|
|
@ -126,38 +131,38 @@ export default { |
|
|
{ |
|
|
{ |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
functionId: 5011, |
|
|
functionId: 5011, |
|
|
serialNumber: '5011Table2PartNo', |
|
|
|
|
|
|
|
|
serialNumber: '5011Table2PartDesc', |
|
|
tableId: '5011Table2', |
|
|
tableId: '5011Table2', |
|
|
tableName: '报价详情信息表', |
|
|
tableName: '报价详情信息表', |
|
|
columnProp: 'partNo', |
|
|
|
|
|
|
|
|
columnProp: 'partDesc', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'center', |
|
|
|
|
|
columnLabel: '物料编码', |
|
|
|
|
|
|
|
|
align: 'left', |
|
|
|
|
|
columnLabel: '物料名称', |
|
|
columnHidden: false, |
|
|
columnHidden: false, |
|
|
columnImage: false, |
|
|
columnImage: false, |
|
|
columnSortable: false, |
|
|
columnSortable: false, |
|
|
sortLv: 0, |
|
|
sortLv: 0, |
|
|
status: true, |
|
|
status: true, |
|
|
fixed: '', |
|
|
fixed: '', |
|
|
columnWidth: 120 |
|
|
|
|
|
|
|
|
columnWidth: 320 |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
functionId: 5011, |
|
|
functionId: 5011, |
|
|
serialNumber: '5011Table2PartDesc', |
|
|
|
|
|
|
|
|
serialNumber: '5011Table2CostModel', |
|
|
tableId: '5011Table2', |
|
|
tableId: '5011Table2', |
|
|
tableName: '报价详情信息表', |
|
|
tableName: '报价详情信息表', |
|
|
columnProp: 'partDesc', |
|
|
|
|
|
|
|
|
columnProp: 'costModel', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'center', |
|
|
|
|
|
columnLabel: '物料名称', |
|
|
|
|
|
|
|
|
align: 'left', |
|
|
|
|
|
columnLabel: 'Cost Model', |
|
|
columnHidden: false, |
|
|
columnHidden: false, |
|
|
columnImage: false, |
|
|
columnImage: false, |
|
|
columnSortable: false, |
|
|
columnSortable: false, |
|
|
sortLv: 0, |
|
|
sortLv: 0, |
|
|
status: true, |
|
|
status: true, |
|
|
fixed: '', |
|
|
fixed: '', |
|
|
columnWidth: 320 |
|
|
|
|
|
|
|
|
columnWidth: 80 |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
@ -597,6 +602,19 @@ export default { |
|
|
this.drawerVisible = false |
|
|
this.drawerVisible = false |
|
|
this.saveVisible = 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:{ |
|
|
watch:{ |
|
|
quote(newVal,oldVal){ |
|
|
quote(newVal,oldVal){ |
|
|
@ -621,8 +639,15 @@ export default { |
|
|
<div class="rq"> |
|
|
<div class="rq"> |
|
|
<el-button type="primary" v-if="!authFlag" :disabled="quote.status !== '草稿' || !quote.status" @click="handleSaveQuoteDetail(null)">新增</el-button> |
|
|
<el-button type="primary" v-if="!authFlag" :disabled="quote.status !== '草稿' || !quote.status" @click="handleSaveQuoteDetail(null)">新增</el-button> |
|
|
|
|
|
|
|
|
<el-table v-loading="queryLoading" border :data="dataList" style="width: 100%;margin-top: 5px" :height="height"> |
|
|
|
|
|
<el-table-column type="index" width="55" align="center" label="序号"></el-table-column> |
|
|
|
|
|
|
|
|
<el-table |
|
|
|
|
|
v-loading="queryLoading" |
|
|
|
|
|
border |
|
|
|
|
|
:data="dataList" |
|
|
|
|
|
style="width: 100%;margin-top: 5px" |
|
|
|
|
|
:height="height" |
|
|
|
|
|
@selection-change="handleSelectionChange"> |
|
|
|
|
|
<el-table-column v-if="!selection" type="index" width="55" align="center" label="序号"></el-table-column> |
|
|
|
|
|
<el-table-column v-else type="selection" align="center" width="55"/> |
|
|
<el-table-column |
|
|
<el-table-column |
|
|
v-for="(item,index) in columns" :key="index" |
|
|
v-for="(item,index) in columns" :key="index" |
|
|
:sortable="item.columnSortable" |
|
|
:sortable="item.columnSortable" |
|
|
@ -805,7 +830,8 @@ export default { |
|
|
:quote-group-detail="quoteGroupDetail" |
|
|
:quote-group-detail="quoteGroupDetail" |
|
|
:auth-flag="false" |
|
|
:auth-flag="false" |
|
|
:height="'33vh'" |
|
|
:height="'33vh'" |
|
|
@currentQuoteDetailItemNo="handleCurrentQuoteDetailItemNo"> |
|
|
|
|
|
|
|
|
@currentQuoteDetailItemNo="handleCurrentQuoteDetailItemNo" |
|
|
|
|
|
@reload = "handleQueryQuoteDetail"> |
|
|
|
|
|
|
|
|
</quote-detail> |
|
|
</quote-detail> |
|
|
<div slot="footer" class="dialog-footer"> |
|
|
<div slot="footer" class="dialog-footer"> |
|
|
|