|
@@ -100,7 +100,8 @@ export default {
|
|
|
this.formData.storageId = val
|
|
|
}}
|
|
|
placeholder="请选择"
|
|
|
- disabled={!!~['WAIT', 'OK', 'FAIL'].indexOf(this.formData.status) || !!~['merchandisePurchaseReturn'].indexOf(this?.$route?.name) || JSON.parse(localStorage.getItem('greemall_user')).joinCode === "NO"}
|
|
|
+ // disabled={!!~['WAIT', 'OK', 'FAIL'].indexOf(this.formData.status) || !!~['merchandisePurchaseReturn'].indexOf(this?.$route?.name) || JSON.parse(localStorage.getItem('greemall_user')).joinCode === "NO"}
|
|
|
+ disabled={!!~['WAIT', 'OK', 'FAIL'].indexOf(this.formData.status) || JSON.parse(localStorage.getItem('greemall_user')).joinCode === "NO"}
|
|
|
onChange={val => {
|
|
|
if (val) {
|
|
|
this.formData['storageName'] = this.warehouseList.find(item => item.storageId == val).storageName
|
|
@@ -143,7 +144,7 @@ export default {
|
|
|
this.joinCode = res.data.joinCode === "CODE"
|
|
|
this.formData.storageId = res.data.storageId
|
|
|
this.formData.storageName = res.data.storageName
|
|
|
- this.getWarehouseList()
|
|
|
+ this.getWarehouseList(1)
|
|
|
this.formData.items = res.data.items.map(item => ({
|
|
|
brandId: item.brandId,
|
|
|
brandName: item.brandName,
|
|
@@ -298,13 +299,13 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
- getWarehouseList(){
|
|
|
+ getWarehouseList(type){
|
|
|
storageListPageV2({
|
|
|
pageNum: 1,
|
|
|
pageSize: -1,
|
|
|
params: [{param: "a.type", compare: "like", value: "商品"},{param: "a.status", compare: "=", value: "true"}]
|
|
|
}).then(res => {
|
|
|
- if(JSON.parse(localStorage.getItem('greemall_user')).joinCode != "NO" && !this.formData.storageId){
|
|
|
+ if(JSON.parse(localStorage.getItem('greemall_user')).joinCode != "NO" && !this.formData.storageId && type){
|
|
|
this.formData.storageId = res.data.records[0].storageId
|
|
|
this.formData.storageName = res.data.records[0].storageName
|
|
|
}
|