Commit f5011929 by 前端

Merge branch 'wuwx_dev_v2.7.0' into 'v2.7.0'

Wuwx dev v2.7.0

See merge request !294
2 parents 85713c83 48d1625e
......@@ -160,6 +160,7 @@ export default {
labelWidth: '144px',
receiveWay: 1,
curStock: 0,
curReceiveRule: 0,
editForm: {
name: '',
remarkName: '',
......@@ -218,7 +219,7 @@ export default {
validator: (rule, value, callback) => {
if (!value) {
return callback(new Error('请输入库存数量'))
} else if (this.routeInfo.id && +this.curStock > +value) {
} else if (this.routeInfo.id && +this.curStock > +value && this.curReceiveRule != 4) {
return callback(new Error('二次编辑,库存数量不能减少'))
} else {
return callback()
......@@ -497,6 +498,7 @@ export default {
this.approvalStatus = res.data.approveStatus - 1
this.editForm = res.data
this.curStock = res.data.stock
this.curReceiveRule = res.data.receiveRule
this.receiveWay = res.data.receiveWay || 1
if (res.data && res.data.receiveDetails) {
this.phone = res.data.receiveDetails.replaceAll(',', '\n')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!