|
@@ -30,6 +30,10 @@
|
|
|
type: String,
|
|
|
default: ''
|
|
|
},
|
|
|
+ bizType: {
|
|
|
+ type: String,
|
|
|
+ default: ''
|
|
|
+ },
|
|
|
material: {
|
|
|
type: Object,
|
|
|
default: () => {}
|
|
@@ -77,14 +81,26 @@
|
|
|
if (this.current > data.data.pages) {
|
|
|
return
|
|
|
}
|
|
|
- data.data.records.forEach(item => {
|
|
|
- this.options.push({...item,
|
|
|
- label: item.materialName,
|
|
|
- value: item.materialId,
|
|
|
- specification: item.specifications,
|
|
|
- cntLimit: item.cnt - item.lockCnt
|
|
|
+ if (this.bizType === 'in') {
|
|
|
+ data.data.records.forEach(item => {
|
|
|
+ this.options.push({...item,
|
|
|
+ label: item.materialName,
|
|
|
+ value: item.materialId,
|
|
|
+ specification: item.specifications,
|
|
|
+ cntLimit: item.cnt - item.lockCnt,
|
|
|
+ cnt: 0
|
|
|
+ })
|
|
|
})
|
|
|
- })
|
|
|
+ } else {
|
|
|
+ data.data.records.forEach(item => {
|
|
|
+ this.options.push({...item,
|
|
|
+ label: item.materialName,
|
|
|
+ value: item.materialId,
|
|
|
+ specification: item.specifications,
|
|
|
+ cntLimit: item.cnt - item.lockCnt
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }
|
|
|
} else {
|
|
|
this.options = []
|
|
|
}
|