修改请购单的历史单据的界面

This commit is contained in:
jishenghua
2024-04-21 14:53:51 +08:00
parent 870c41aa4a
commit 177e7d8800

View File

@@ -147,6 +147,7 @@
}, },
{ title: '单据日期', dataIndex: 'operTimeStr',width:145}, { title: '单据日期', dataIndex: 'operTimeStr',width:145},
{ title: '操作员', dataIndex: 'userName',width:70}, { title: '操作员', dataIndex: 'userName',width:70},
{ title: '数量', dataIndex: 'materialCount',width:50},
{ title: '金额合计', dataIndex: 'totalPrice',width:70}, { title: '金额合计', dataIndex: 'totalPrice',width:70},
{ title: '含税合计', dataIndex: 'totalTaxLastMoney',width:70, { title: '含税合计', dataIndex: 'totalTaxLastMoney',width:70,
customRender:function (text,record,index) { customRender:function (text,record,index) {
@@ -173,13 +174,33 @@
show(type, subType, organType, organId) { show(type, subType, organType, organId) {
this.queryParam.type = type this.queryParam.type = type
this.queryParam.subType = subType this.queryParam.subType = subType
this.columns[1].title = organType
this.organLabel = organType this.organLabel = organType
this.model = Object.assign({}, {}) this.model = Object.assign({}, {})
this.visible = true this.visible = true
this.initColumns(subType, organType)
this.loadSupplier(organType, organId) this.loadSupplier(organType, organId)
this.loadData(1) this.loadData(1)
}, },
initColumns(subType, organType) {
for(let i=0; i<this.columns.length; i++) {
if (this.columns[i].dataIndex === 'organName') {
this.columns[i].title = organType
}
}
if(subType === '请购单') {
for(let i=0; i<this.columns.length; i++){
if(this.columns[i].dataIndex === 'organName') {
this.columns.splice(i, 1)
}
if(this.columns[i].dataIndex === 'totalPrice') {
this.columns.splice(i, 1)
}
if(this.columns[i].dataIndex === 'totalTaxLastMoney') {
this.columns.splice(i, 1)
}
}
}
},
loadSupplier(organType, organId) { loadSupplier(organType, organId) {
if(organType === '供应商') { if(organType === '供应商') {
findBySelectSup({}).then((res)=>{ findBySelectSup({}).then((res)=>{