|
@@ -781,6 +781,7 @@ export default {
|
|
|
disabled={this.formDialogType >= 2}
|
|
|
onChange={val => {
|
|
|
this.formData.items = []
|
|
|
+ this.getStorageListPageV2(val)
|
|
|
if (val) {
|
|
|
this.formData['websitName'] = this.getWebsitList.find(item => item.websitId == val).name
|
|
|
} else {
|
|
@@ -1136,8 +1137,35 @@ export default {
|
|
|
selectionChange(data) {
|
|
|
this.recordSelected = data
|
|
|
},
|
|
|
+ // 获取
|
|
|
+ getStorageListPageV2(websitId){
|
|
|
+ if(websitId){
|
|
|
+ storageListPageV2({
|
|
|
+ "pageNum":1,
|
|
|
+ "pageSize":-1,
|
|
|
+ "params":[
|
|
|
+ {"param":"a.websit_id","compare":"=","value": websitId},
|
|
|
+ {"param":"a.type","compare":"like","value": (()=>{
|
|
|
+ if(~['auxiliaryMaterialsStorage', 'returnAuxiliaryMaterials'].indexOf(this.$route?.name)){
|
|
|
+ return "辅材"
|
|
|
+ }else if (~['partsStorage', 'partsReturn'].indexOf(this.$route?.name)) {
|
|
|
+ return "配件"
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+ })()},
|
|
|
+ {"param":"a.status","compare":"=","value":"true"},
|
|
|
+ ]
|
|
|
+ }).then(res => {
|
|
|
+ this.cangkuList = res.data.records
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ this.formData.websitId = ""
|
|
|
+ this.cangkuList = []
|
|
|
+ }
|
|
|
+ },
|
|
|
// 打开
|
|
|
openForm() {
|
|
|
+ this.getStorageListPageV2(this?.formData?.websitId)
|
|
|
this.getorderlist(false)
|
|
|
var req = [getWebsit({ type: 'C', status: true })]
|
|
|
var runs = [
|
|
@@ -1145,7 +1173,6 @@ export default {
|
|
|
this.getWebsitList = res.data.filter(item => item.type == 'C')
|
|
|
}
|
|
|
]
|
|
|
- console.log(this.$route?.name)
|
|
|
if (~['auxiliaryMaterialsStorage', 'returnAuxiliaryMaterials'].indexOf(this.$route?.name)) {
|
|
|
req.push(
|
|
|
...[
|
|
@@ -1156,14 +1183,6 @@ export default {
|
|
|
{ param: 'a.status', compare: '=', value: 'ON' },
|
|
|
{ param: 'a.vender_type', compare: 'like', value: '辅材' }
|
|
|
]
|
|
|
- }),
|
|
|
- storageListPageV2({
|
|
|
- "pageNum":1,
|
|
|
- "pageSize":-1,
|
|
|
- "params":[
|
|
|
- {"param":"a.type","compare":"like","value":"辅材"},
|
|
|
- {"param":"a.status","compare":"=","value":"true"}
|
|
|
- ]
|
|
|
})
|
|
|
]
|
|
|
)
|
|
@@ -1171,9 +1190,6 @@ export default {
|
|
|
...[
|
|
|
res => {
|
|
|
this.listPageV2Data = res.data.records
|
|
|
- },
|
|
|
- res => {
|
|
|
- this.cangkuList = res.data.records
|
|
|
}
|
|
|
]
|
|
|
)
|
|
@@ -1187,14 +1203,6 @@ export default {
|
|
|
{ param: 'a.status', compare: '=', value: 'ON' },
|
|
|
{ param: 'a.vender_type', compare: 'like', value: '配件' }
|
|
|
]
|
|
|
- }),
|
|
|
- storageListPageV2({
|
|
|
- "pageNum":1,
|
|
|
- "pageSize":-1,
|
|
|
- "params":[
|
|
|
- {"param":"a.type","compare":"like","value":"配件"},
|
|
|
- {"param":"a.status","compare":"=","value":"true"}
|
|
|
- ]
|
|
|
})
|
|
|
]
|
|
|
)
|
|
@@ -1202,9 +1210,6 @@ export default {
|
|
|
...[
|
|
|
res => {
|
|
|
this.listPageV2Data = res.data.records
|
|
|
- },
|
|
|
- res => {
|
|
|
- this.cangkuList = res.data.records
|
|
|
}
|
|
|
]
|
|
|
)
|