|
@@ -75,6 +75,7 @@ import { fetchBrandList } from '@/api/brand'
|
|
import { mapGetters } from 'vuex'
|
|
import { mapGetters } from 'vuex'
|
|
import { isSnCode } from '@/utils/validate'
|
|
import { isSnCode } from '@/utils/validate'
|
|
import AuthCardTemplate from '@/views/components/authCardTemplate.vue'
|
|
import AuthCardTemplate from '@/views/components/authCardTemplate.vue'
|
|
|
|
+import { getStorage } from '@/utils/storage'
|
|
export default {
|
|
export default {
|
|
components: { UploadImage, AuthCardTemplate },
|
|
components: { UploadImage, AuthCardTemplate },
|
|
data() {
|
|
data() {
|
|
@@ -147,6 +148,8 @@ export default {
|
|
this.editType = this.$route.query.type || 'add'
|
|
this.editType = this.$route.query.type || 'add'
|
|
this.formData.productId = this.$route.query.id
|
|
this.formData.productId = this.$route.query.id
|
|
this.formData.authUserId = this.proxyInfo?.authUserId || this.authUserId
|
|
this.formData.authUserId = this.proxyInfo?.authUserId || this.authUserId
|
|
|
|
+ // 获取当前设备所属机构的id
|
|
|
|
+ this.formData.authId = getStorage('device-setting-authId')
|
|
this.initFormData()
|
|
this.initFormData()
|
|
// 如果供应商类型为代理商 则需要获取它代理的品牌列表
|
|
// 如果供应商类型为代理商 则需要获取它代理的品牌列表
|
|
if (this.shopType === 2) {
|
|
if (this.shopType === 2) {
|