|
@@ -597,11 +597,21 @@ export default {
|
|
|
placeholder="请选择"
|
|
|
disabled={this.formDialogType >= 2}
|
|
|
onChange={(val) => {
|
|
|
+ this.formData.items = []
|
|
|
if (val) {
|
|
|
this.formData['websitName'] = this.getWebsitList.find(item => item.websitId == val).name
|
|
|
} else {
|
|
|
this.formData['websitName'] = ''
|
|
|
}
|
|
|
+ if (~['partsStorage', 'partsReturn'].indexOf(this.pageType)) {
|
|
|
+ if(val){
|
|
|
+ peijianList({ isShowStockQty: true, websitId: val, "pageNum": 1, "pageSize": -1, "params": [{ "param": "a.status", "compare": "=", "value": "ON" }] }).then((res) => {
|
|
|
+ this.peijianList = res.data.records
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ this.peijianList = []
|
|
|
+ }
|
|
|
+ }
|
|
|
this.getorderlist()
|
|
|
this.$nextTick(this.jiaoyan)
|
|
|
}}>
|
|
@@ -837,10 +847,9 @@ export default {
|
|
|
(res) => { this.materialCategoryListL2 = res.data.records }
|
|
|
])
|
|
|
}
|
|
|
-
|
|
|
- if (~['partsStorage', 'partsReturn'].indexOf(this.pageType)) {
|
|
|
+ if (~['partsStorage', 'partsReturn'].indexOf(this.pageType) && this.formData.websitId) {
|
|
|
req.push(...[
|
|
|
- peijianList({ "pageNum": 1, "pageSize": -1, "params": [{ "param": "a.status", "compare": "=", "value": "ON" }] })
|
|
|
+ peijianList({isShowStockQty: true, websitId: this.formData.websitId, "pageNum": 1, "pageSize": -1, "params": [{ "param": "a.status", "compare": "=", "value": "ON" }] })
|
|
|
])
|
|
|
runs.push(...[
|
|
|
(res) => { this.peijianList = res.data.records },
|