限制只有租户才能在单据中显示账户/仓库等的快捷录入

This commit is contained in:
季圣华
2021-11-10 00:40:45 +08:00
parent 9dc9785111
commit 2a192c6f24
21 changed files with 48 additions and 40 deletions

View File

@@ -3,6 +3,7 @@ import {findBySelectSup,findBySelectCus,findBySelectRetail,getMaterialByBarCode,
getPersonByNumType, getBatchNumberList} from '@/api/api'
import { getAction,putAction } from '@/api/manage'
import { getMpListShort, getNowFormatDateTime } from "@/utils/util"
import { USER_INFO } from "@/store/mutation-types"
import Vue from 'vue'
export const BillModalMixin = {
@@ -24,6 +25,7 @@ export const BillModalMixin = {
billUnitPirce: '',
scanBarCode: '',
scanStatus: true,
isTenant: false,
spans: {
labelCol1: {span: 2},
wrapperCol1: {span: 22},
@@ -40,6 +42,8 @@ export const BillModalMixin = {
};
},
created () {
let userInfo = Vue.ls.get(USER_INFO)
this.isTenant = userInfo.id === userInfo.tenantId? true:false
},
computed: {
readOnly: function() {