|
@@ -226,6 +226,7 @@ export default {
|
|
|
materialNormList({
|
|
|
isShowStockQty: true,
|
|
|
websitId: this.formData.websitId,
|
|
|
+ storageId: this.formData.storageId,
|
|
|
pageNum: 1,
|
|
|
pageSize: -1,
|
|
|
params: [
|
|
@@ -790,24 +791,6 @@ export default {
|
|
|
} else {
|
|
|
this.formData['websitName'] = ''
|
|
|
}
|
|
|
- if (~['partsStorage', 'partsReturn'].indexOf(this.$route?.name)) {
|
|
|
- if (val) {
|
|
|
- peijianList({
|
|
|
- isShowStockQty: true,
|
|
|
- websitId: val,
|
|
|
- pageNum: 1,
|
|
|
- pageSize: -1,
|
|
|
- params: [
|
|
|
- { param: 'a.status', compare: '=', value: 'ON' },
|
|
|
- { param: 'a.norm_type', compare: '=', value: 'M' }
|
|
|
- ]
|
|
|
- }).then(res => {
|
|
|
- this.peijianList = res.data.records
|
|
|
- })
|
|
|
- } else {
|
|
|
- this.peijianList = []
|
|
|
- }
|
|
|
- }
|
|
|
this.getorderlist()
|
|
|
this.$nextTick(this.jiaoyan)
|
|
|
}}
|
|
@@ -868,6 +851,25 @@ export default {
|
|
|
} else {
|
|
|
this.formData['storageName'] = ''
|
|
|
}
|
|
|
+ if (~['partsStorage', 'partsReturn'].indexOf(this.$route?.name)) {
|
|
|
+ if (val) {
|
|
|
+ peijianList({
|
|
|
+ isShowStockQty: true,
|
|
|
+ websitId: this.formData.websitId,
|
|
|
+ storageId: this.formData.storageId,
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: -1,
|
|
|
+ params: [
|
|
|
+ { param: 'a.status', compare: '=', value: 'ON' },
|
|
|
+ { param: 'a.norm_type', compare: '=', value: 'M' }
|
|
|
+ ]
|
|
|
+ }).then(res => {
|
|
|
+ this.peijianList = res.data.records
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.peijianList = []
|
|
|
+ }
|
|
|
+ }
|
|
|
this.$nextTick(this.jiaoyan)
|
|
|
}}
|
|
|
>
|
|
@@ -931,6 +933,7 @@ export default {
|
|
|
materialNormList({
|
|
|
isShowStockQty: true,
|
|
|
websitId: this.formData.websitId,
|
|
|
+ storageId: this.formData.storageId,
|
|
|
pageNum: 1,
|
|
|
pageSize: -1,
|
|
|
params: [
|
|
@@ -1252,6 +1255,7 @@ export default {
|
|
|
peijianList({
|
|
|
isShowStockQty: true,
|
|
|
websitId: this.formData.websitId,
|
|
|
+ storageId: this.formData.storageId,
|
|
|
pageNum: 1,
|
|
|
pageSize: -1,
|
|
|
params: [
|