diff --git a/jshERP-web/src/views/bill/mixins/BillModalMixin.js b/jshERP-web/src/views/bill/mixins/BillModalMixin.js index 74bdb187..ef738f49 100644 --- a/jshERP-web/src/views/bill/mixins/BillModalMixin.js +++ b/jshERP-web/src/views/bill/mixins/BillModalMixin.js @@ -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() { diff --git a/jshERP-web/src/views/bill/modules/AllocationOutModal.vue b/jshERP-web/src/views/bill/modules/AllocationOutModal.vue index af3a79e0..2af010df 100644 --- a/jshERP-web/src/views/bill/modules/AllocationOutModal.vue +++ b/jshERP-web/src/views/bill/modules/AllocationOutModal.vue @@ -42,7 +42,7 @@ @added="onAdded" @deleted="onDeleted">