소스 검색

no message

pengyh 1 년 전
부모
커밋
53da0b00d1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/views/salesPurchasing/mixins/common_form.js

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

@@ -304,7 +304,7 @@ export default {
           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"){
+			if(JSON.parse(localStorage.getItem('greemall_user')).joinCode != "NO" && !this.formData.storageId){
 				this.formData.storageId = res.data.records[0].storageId
 				this.formData.storageName = res.data.records[0].storageName
 			}