给带关联单号的单据的明细中在编辑的时候限制新增或者移除商品

This commit is contained in:
季圣华 2022-05-19 00:14:33 +08:00
parent cff16125b0
commit d85ccf3cd4
4 changed files with 15 additions and 3 deletions

View File

@ -195,14 +195,13 @@
this.visible = true;
this.loadData(1)
},
purchaseShow(type, subType, organType, status, purchaseStatus) {
purchaseShow(type, subType, organType, status) {
this.selectType = 'list'
this.showType = 'purchase'
this.queryParam.type = type
this.queryParam.subType = subType
this.queryParam.roleType = '全部数据'
this.queryParam.status = status
this.queryParam.purchaseStatus = purchaseStatus
this.columns[0].title = organType
this.model = Object.assign({}, {});
this.visible = true;
@ -250,7 +249,8 @@
let record = this.selectBillRows[0]
let param = {
headerId: record.id,
mpList : ''
mpList : '',
linkType: this.showType
}
this.loading = true;
getAction('/depotItem/getDetailList', param).then((res) => {

View File

@ -321,6 +321,10 @@
handleIntroJs(this.prefixNo, 1)
})
} else {
if(this.model.linkNumber) {
this.rowCanEdit = false
this.materialTable.columns[1].type = FormTypes.normal
}
this.model.operTime = this.model.operTimeStr
this.model.debt = (this.model.discountLastMoney + this.model.otherMoney - this.model.changeAmount).toFixed(2)
if(this.model.accountId == null) {

View File

@ -242,6 +242,10 @@
handleIntroJs(this.prefixNo, 1)
})
} else {
if(this.model.linkNumber) {
this.rowCanEdit = false
this.materialTable.columns[1].type = FormTypes.normal
}
this.model.operTime = this.model.operTimeStr
this.fileList = this.model.fileName
this.$nextTick(() => {

View File

@ -326,6 +326,10 @@
handleIntroJs(this.prefixNo, 1)
})
} else {
if(this.model.linkNumber) {
this.rowCanEdit = false
this.materialTable.columns[1].type = FormTypes.normal
}
this.model.operTime = this.model.operTimeStr
this.model.debt = (this.model.discountLastMoney + this.model.otherMoney - this.model.changeAmount).toFixed(2)
if(this.model.accountId == null) {