给带关联单号的单据的明细中在编辑的时候限制新增或者移除商品
This commit is contained in:
@@ -195,14 +195,13 @@
|
|||||||
this.visible = true;
|
this.visible = true;
|
||||||
this.loadData(1)
|
this.loadData(1)
|
||||||
},
|
},
|
||||||
purchaseShow(type, subType, organType, status, purchaseStatus) {
|
purchaseShow(type, subType, organType, status) {
|
||||||
this.selectType = 'list'
|
this.selectType = 'list'
|
||||||
this.showType = 'purchase'
|
this.showType = 'purchase'
|
||||||
this.queryParam.type = type
|
this.queryParam.type = type
|
||||||
this.queryParam.subType = subType
|
this.queryParam.subType = subType
|
||||||
this.queryParam.roleType = '全部数据'
|
this.queryParam.roleType = '全部数据'
|
||||||
this.queryParam.status = status
|
this.queryParam.status = status
|
||||||
this.queryParam.purchaseStatus = purchaseStatus
|
|
||||||
this.columns[0].title = organType
|
this.columns[0].title = organType
|
||||||
this.model = Object.assign({}, {});
|
this.model = Object.assign({}, {});
|
||||||
this.visible = true;
|
this.visible = true;
|
||||||
@@ -250,7 +249,8 @@
|
|||||||
let record = this.selectBillRows[0]
|
let record = this.selectBillRows[0]
|
||||||
let param = {
|
let param = {
|
||||||
headerId: record.id,
|
headerId: record.id,
|
||||||
mpList : ''
|
mpList : '',
|
||||||
|
linkType: this.showType
|
||||||
}
|
}
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
getAction('/depotItem/getDetailList', param).then((res) => {
|
getAction('/depotItem/getDetailList', param).then((res) => {
|
||||||
|
|||||||
@@ -321,6 +321,10 @@
|
|||||||
handleIntroJs(this.prefixNo, 1)
|
handleIntroJs(this.prefixNo, 1)
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
if(this.model.linkNumber) {
|
||||||
|
this.rowCanEdit = false
|
||||||
|
this.materialTable.columns[1].type = FormTypes.normal
|
||||||
|
}
|
||||||
this.model.operTime = this.model.operTimeStr
|
this.model.operTime = this.model.operTimeStr
|
||||||
this.model.debt = (this.model.discountLastMoney + this.model.otherMoney - this.model.changeAmount).toFixed(2)
|
this.model.debt = (this.model.discountLastMoney + this.model.otherMoney - this.model.changeAmount).toFixed(2)
|
||||||
if(this.model.accountId == null) {
|
if(this.model.accountId == null) {
|
||||||
|
|||||||
@@ -242,6 +242,10 @@
|
|||||||
handleIntroJs(this.prefixNo, 1)
|
handleIntroJs(this.prefixNo, 1)
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
if(this.model.linkNumber) {
|
||||||
|
this.rowCanEdit = false
|
||||||
|
this.materialTable.columns[1].type = FormTypes.normal
|
||||||
|
}
|
||||||
this.model.operTime = this.model.operTimeStr
|
this.model.operTime = this.model.operTimeStr
|
||||||
this.fileList = this.model.fileName
|
this.fileList = this.model.fileName
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
|
|||||||
@@ -326,6 +326,10 @@
|
|||||||
handleIntroJs(this.prefixNo, 1)
|
handleIntroJs(this.prefixNo, 1)
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
if(this.model.linkNumber) {
|
||||||
|
this.rowCanEdit = false
|
||||||
|
this.materialTable.columns[1].type = FormTypes.normal
|
||||||
|
}
|
||||||
this.model.operTime = this.model.operTimeStr
|
this.model.operTime = this.model.operTimeStr
|
||||||
this.model.debt = (this.model.discountLastMoney + this.model.otherMoney - this.model.changeAmount).toFixed(2)
|
this.model.debt = (this.model.discountLastMoney + this.model.otherMoney - this.model.changeAmount).toFixed(2)
|
||||||
if(this.model.accountId == null) {
|
if(this.model.accountId == null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user