|
@@ -100,7 +100,7 @@ export default {
|
|
|
this.formData.storageId = val
|
|
|
}}
|
|
|
placeholder="请选择"
|
|
|
- disabled={!!~['WAIT', 'OK', 'FAIL'].indexOf(this.formData.status) || !!~['merchandisePurchaseReturn'].indexOf(this?.$route?.name)}
|
|
|
+ disabled={!!~['WAIT', 'OK', 'FAIL'].indexOf(this.formData.status) || !!~['merchandisePurchaseReturn'].indexOf(this?.$route?.name) || JSON.parse(localStorage.getItem('greemall_user')).joinCode === "NO"}
|
|
|
onChange={val => {
|
|
|
if (val) {
|
|
|
this.formData['storageName'] = this.warehouseList.find(item => item.storageId == val).storageName
|
|
@@ -304,6 +304,10 @@ export default {
|
|
|
pageSize: -1,
|
|
|
params: [{param: "a.type", compare: "like", value: "商品"}]
|
|
|
}).then(res => {
|
|
|
+ if(JSON.parse(localStorage.getItem('greemall_user')).joinCode != "NO"){
|
|
|
+ this.formData.storageId = res.data.records[0].storageId
|
|
|
+ this.formData.storageName = res.data.records[0].storageName
|
|
|
+ }
|
|
|
this.warehouseList = res.data.records
|
|
|
})
|
|
|
}
|