Ver Fonte

no message

pengyh há 1 ano atrás
pai
commit
edd880aa65

+ 1 - 1
src/views/salesPurchasing/goodsPurchasedStored/index.vue

@@ -336,7 +336,7 @@ export default {
       }).then(res => {
         this.$message({
           type: 'success',
-          message: '审核成功'
+          message: '操作成功'
         })
         this.handleClose()
         this.$refs.pageRef.refreshList()

+ 5 - 1
src/views/salesPurchasing/mixins/common_form.js

@@ -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
         })
 	}