|
@@ -193,7 +193,7 @@ export default {
|
|
|
form: this.$form.createForm(this),
|
|
|
visible: false,
|
|
|
maskClosable: false,
|
|
|
- type: 1,
|
|
|
+ isOut: 1,
|
|
|
storeId: null,
|
|
|
// 下拉框map
|
|
|
typeMap: {},
|
|
@@ -283,6 +283,7 @@ export default {
|
|
|
methods: {
|
|
|
base (record) {
|
|
|
this.visible = true
|
|
|
+ this.isOut = record.isOut
|
|
|
if (record.isOut === 1) {
|
|
|
this.typeMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.OUT_STORE_FORM_TYPE)
|
|
|
} else {
|
|
@@ -490,7 +491,7 @@ export default {
|
|
|
}
|
|
|
const data = [...this.data]
|
|
|
const target = data.find(item => item.autoId === autoId)
|
|
|
- if (value > target.storeNum) {
|
|
|
+ if (this.isOut === 1 && value > target.storeNum) {
|
|
|
this.$message.error('领用数量不能大于库存数量')
|
|
|
target[attr] = 1
|
|
|
return
|