Browse Source

完善车辆台账--出库时如返利金额不为空, 则中介人不能为空

zhanglei
yunuo970428 2 years ago
parent
commit
c1d3b50f18
  1. 8
      anrui-scm/anrui-scm-ui/src/views/cheliang/cheliangtaizhang/relation/cheliangtaizhangChu.vue

8
anrui-scm/anrui-scm-ui/src/views/cheliang/cheliangtaizhang/relation/cheliangtaizhangChu.vue

@ -379,6 +379,14 @@ export default {
this.$message({ showClose: true, type: 'error', message: '因赠品价值大于0,请填写备注' })
return
}
if (this.temp.rebateMoneyOne !== '' && this.temp.rebateMoneyOne !== '0' && this.temp.middleOne === '') {
this.$message({ showClose: true, type: 'error', message: '因返利金额1不为空,则中介人1不能为空' })
return
}
if (this.temp.rebateMoneyTwo !== '' && this.temp.rebateMoneyTwo !== '0' && this.temp.middleTwo === '') {
this.$message({ showClose: true, type: 'error', message: '因返利金额2不为空,则中介人2不能为空' })
return
}
this.$refs['dataForm'].validate((valid) => {
if (valid) {
const tip = '请确认是否临时出库?'

Loading…
Cancel
Save