Browse Source

Merge remote-tracking branch 'origin/master'

master
fanzongzhe 2 years ago
parent
commit
69a100d3d5
  1. 20
      anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/relation/chexingguanlianchangyong.vue

20
anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/relation/chexingguanlianchangyong.vue

@ -223,6 +223,7 @@ export default {
title: '', title: '',
tableKey: 0, tableKey: 0,
list: [], list: [],
price_list: [],
listLoading: false, listLoading: false,
listQuery: { listQuery: {
params: { params: {
@ -471,11 +472,6 @@ export default {
} }
}) })
}, },
//
handleJiage(row) {
this.pageState = 2
this.$refs['weihu'].showWeiHu(row.sid)
},
handleBiaoQian(row) { handleBiaoQian(row) {
this.pageState = 4 this.pageState = 4
this.$refs['biaoqian'].showEdit(row.sid, this.listQuery.params.useOrgSid) this.$refs['biaoqian'].showEdit(row.sid, this.listQuery.params.useOrgSid)
@ -483,8 +479,12 @@ export default {
// //
toPreserve() { toPreserve() {
if (this.sids.length === 1) { if (this.sids.length === 1) {
this.pageState = 2 if (this.price_list[0].guidedPrice !== '' && this.price_list[0].manufactorSettlementPrice !== '') {
this.$refs['weihu'].showWeiHu(this.sids[0]) this.$message({ showClose: true, type: 'error', message: '价格已维护,无需重复维护' })
} else {
this.pageState = 2
this.$refs['weihu'].showWeiHu(this.sids[0])
}
} else { } else {
this.$message({ showClose: true, type: 'error', message: '请选择一条记录进行价格维护操作' }) this.$message({ showClose: true, type: 'error', message: '请选择一条记录进行价格维护操作' })
return return
@ -531,6 +531,7 @@ export default {
handleSelectionChange(row) { handleSelectionChange(row) {
const aa = [] const aa = []
const bb = [] const bb = []
const cc = []
row.forEach((element) => { row.forEach((element) => {
aa.push(element.sid) aa.push(element.sid)
bb.push({ bb.push({
@ -539,7 +540,12 @@ export default {
userSid: window.sessionStorage.getItem('userSid'), userSid: window.sessionStorage.getItem('userSid'),
orgPath: window.sessionStorage.getItem('defaultOrgPath') orgPath: window.sessionStorage.getItem('defaultOrgPath')
}) })
cc.push({
guidedPrice: element.guidedPrice,
manufactorSettlementPrice: element.manufactorSettlementPrice
})
}) })
this.price_list = cc
this.sids = aa this.sids = aa
this.configurationItemsSid_list = bb this.configurationItemsSid_list = bb
console.log('选择的数据', this.sids) console.log('选择的数据', this.sids)

Loading…
Cancel
Save