Commit 785aba4f6030ce7bd352460961898f29c7d53584
1 parent
ffeae35e
v1.9 优化合同审核人无法选择问题
Showing
4 changed files
with
35 additions
and
24 deletions
src/components/contract/purchaseApprovers.vue
| 1 | <template> | 1 | <template> |
| 2 | <el-card class="box-card"> | 2 | <el-card class="box-card"> |
| 3 | - <div slot="header" class="clearfix"> | 3 | + <div slot="header" class="flex justify-between"> |
| 4 | <span>{{ $t('purchaseApprovers.title') }}</span> | 4 | <span>{{ $t('purchaseApprovers.title') }}</span> |
| 5 | </div> | 5 | </div> |
| 6 | 6 | ||
| @@ -34,29 +34,27 @@ | @@ -34,29 +34,27 @@ | ||
| 34 | </el-form-item> | 34 | </el-form-item> |
| 35 | </el-form> | 35 | </el-form> |
| 36 | </div> | 36 | </div> |
| 37 | + <select-staff ref="selectStaff" @selectStaff="handleSelectStaff" /> | ||
| 38 | + | ||
| 37 | </el-card> | 39 | </el-card> |
| 38 | </template> | 40 | </template> |
| 39 | 41 | ||
| 40 | <script> | 42 | <script> |
| 41 | import { getFirstStaff } from '@/api/contract/contractChangeDetailApi' | 43 | import { getFirstStaff } from '@/api/contract/contractChangeDetailApi' |
| 42 | import { getCommunityId } from '@/api/community/communityApi' | 44 | import { getCommunityId } from '@/api/community/communityApi' |
| 45 | +import SelectStaff from '@/components/staff/SelectStaff' | ||
| 43 | 46 | ||
| 44 | export default { | 47 | export default { |
| 45 | name: 'PurchaseApprovers', | 48 | name: 'PurchaseApprovers', |
| 46 | props: { | 49 | props: { |
| 47 | - callBackListener: { | ||
| 48 | - type: String, | ||
| 49 | - default: '' | ||
| 50 | - }, | ||
| 51 | - callBackFunction: { | ||
| 52 | - type: String, | ||
| 53 | - default: '' | ||
| 54 | - }, | ||
| 55 | flowType: { | 50 | flowType: { |
| 56 | type: String, | 51 | type: String, |
| 57 | default: '60006' | 52 | default: '60006' |
| 58 | } | 53 | } |
| 59 | }, | 54 | }, |
| 55 | + components: { | ||
| 56 | + SelectStaff | ||
| 57 | + }, | ||
| 60 | data() { | 58 | data() { |
| 61 | return { | 59 | return { |
| 62 | purchaseApproversInfo: { | 60 | purchaseApproversInfo: { |
| @@ -117,8 +115,18 @@ export default { | @@ -117,8 +115,18 @@ export default { | ||
| 117 | this.$emit(this.callBackListener, this.callBackFunction, this.purchaseApproversInfo) | 115 | this.$emit(this.callBackListener, this.callBackFunction, this.purchaseApproversInfo) |
| 118 | } | 116 | } |
| 119 | }, | 117 | }, |
| 118 | + handleSelectStaff(staff) { | ||
| 119 | + this.purchaseApproversInfo.staffId = staff.userId | ||
| 120 | + this.purchaseApproversInfo.staffName = staff.userName | ||
| 121 | + this.$emit('notify3', { | ||
| 122 | + staffId: staff.userId, | ||
| 123 | + staffName: staff.userName | ||
| 124 | + }) | ||
| 125 | + | ||
| 126 | + }, | ||
| 120 | chooseStaff() { | 127 | chooseStaff() { |
| 121 | - this.$emit('openSelectStaff', this.purchaseApproversInfo) | 128 | + this.$refs.selectStaff.open(this.purchaseApproversInfo) |
| 129 | + | ||
| 122 | } | 130 | } |
| 123 | } | 131 | } |
| 124 | } | 132 | } |
src/views/contract/addContractList.vue
| @@ -182,7 +182,7 @@ | @@ -182,7 +182,7 @@ | ||
| 182 | 182 | ||
| 183 | <!-- Related Rooms --> | 183 | <!-- Related Rooms --> |
| 184 | <el-card class="box-card" style="margin-top:20px"> | 184 | <el-card class="box-card" style="margin-top:20px"> |
| 185 | - <div slot="header" class="clearfix"> | 185 | + <div slot="header" class="flex justify-between"> |
| 186 | <span>{{ $t('contract.relatedRooms') }}</span> | 186 | <span>{{ $t('contract.relatedRooms') }}</span> |
| 187 | <el-button style="float: right; padding: 3px 0" type="text" @click="_selectRoom"> | 187 | <el-button style="float: right; padding: 3px 0" type="text" @click="_selectRoom"> |
| 188 | <i class="el-icon-plus"></i>{{ $t('contract.add') }} | 188 | <i class="el-icon-plus"></i>{{ $t('contract.add') }} |
src/views/mall/shopManageList.vue
| @@ -11,8 +11,8 @@ | @@ -11,8 +11,8 @@ | ||
| 11 | @keyup.enter.native="handleSearch" /> | 11 | @keyup.enter.native="handleSearch" /> |
| 12 | </el-col> | 12 | </el-col> |
| 13 | <el-col :span="6"> | 13 | <el-col :span="6"> |
| 14 | - <el-select v-model="searchForm.storeType" style="width: 100%;" :placeholder="$t('shopManage.search.storeType')" clearable> | ||
| 15 | - <el-option v-for="item in storeTypes" :key="item.statusCd" :label="item.name" :value="item.statusCd" /> | 14 | + <el-select v-model="searchForm.shopType" style="width: 100%;" :placeholder="$t('shopManage.search.storeType')" clearable> |
| 15 | + <el-option v-for="item in shopTypes" :key="item.statusCd" :label="item.name" :value="item.statusCd" /> | ||
| 16 | </el-select> | 16 | </el-select> |
| 17 | </el-col> | 17 | </el-col> |
| 18 | <el-col :span="6"> | 18 | <el-col :span="6"> |
| @@ -60,7 +60,8 @@ | @@ -60,7 +60,8 @@ | ||
| 60 | </template> | 60 | </template> |
| 61 | 61 | ||
| 62 | <script> | 62 | <script> |
| 63 | -import { getShopList, getStoreTypes } from '@/api/mall/shopManageApi' | 63 | +import { getShopList } from '@/api/mall/shopManageApi' |
| 64 | +import {getDict} from '@/api/community/communityApi' | ||
| 64 | import ShopWithdraw from '@/components/mall/ShopWithdraw' | 65 | import ShopWithdraw from '@/components/mall/ShopWithdraw' |
| 65 | 66 | ||
| 66 | export default { | 67 | export default { |
| @@ -73,11 +74,11 @@ export default { | @@ -73,11 +74,11 @@ export default { | ||
| 73 | loading: false, | 74 | loading: false, |
| 74 | searchForm: { | 75 | searchForm: { |
| 75 | shopName: '', | 76 | shopName: '', |
| 76 | - storeType: '', | 77 | + shopType: '', |
| 77 | state: '', | 78 | state: '', |
| 78 | mallApiCode: 'queryShopsByAdminBmoImpl' | 79 | mallApiCode: 'queryShopsByAdminBmoImpl' |
| 79 | }, | 80 | }, |
| 80 | - storeTypes: [], | 81 | + shopTypes: [], |
| 81 | tableData: [], | 82 | tableData: [], |
| 82 | page: { | 83 | page: { |
| 83 | current: 1, | 84 | current: 1, |
| @@ -87,7 +88,7 @@ export default { | @@ -87,7 +88,7 @@ export default { | ||
| 87 | } | 88 | } |
| 88 | }, | 89 | }, |
| 89 | created() { | 90 | created() { |
| 90 | - this.getStoreTypes() | 91 | + this.getShopTypes() |
| 91 | this.getList() | 92 | this.getList() |
| 92 | }, | 93 | }, |
| 93 | methods: { | 94 | methods: { |
| @@ -108,12 +109,12 @@ export default { | @@ -108,12 +109,12 @@ export default { | ||
| 108 | this.loading = false | 109 | this.loading = false |
| 109 | } | 110 | } |
| 110 | }, | 111 | }, |
| 111 | - async getStoreTypes() { | 112 | + async getShopTypes() { |
| 112 | try { | 113 | try { |
| 113 | - const data = await getStoreTypes() | ||
| 114 | - this.storeTypes = data | 114 | + const data = await getDict('s_shop','stop_type') |
| 115 | + this.shopTypes = data | ||
| 115 | } catch (error) { | 116 | } catch (error) { |
| 116 | - this.$message.error(this.$t('shopManage.fetchStoreTypesError')) | 117 | + this.$message.error(this.$t('shopManage.fetchShopTypesError')) |
| 117 | } | 118 | } |
| 118 | }, | 119 | }, |
| 119 | handleSearch() { | 120 | handleSearch() { |
src/views/oa/newOaWorkflowDetailList.vue
| @@ -158,14 +158,16 @@ | @@ -158,14 +158,16 @@ | ||
| 158 | </el-col> | 158 | </el-col> |
| 159 | </el-row> | 159 | </el-row> |
| 160 | 160 | ||
| 161 | - <select-staff ref="selectStaff" @selectStaff="handleSelectStaff"/> | 161 | + <select-staff ref="selectStaff" @selectStaff="handleSelectStaff" /> |
| 162 | </div> | 162 | </div> |
| 163 | </template> | 163 | </template> |
| 164 | 164 | ||
| 165 | <script> | 165 | <script> |
| 166 | import { getCommunityId } from '@/api/community/communityApi' | 166 | import { getCommunityId } from '@/api/community/communityApi' |
| 167 | -import { queryOaWorkflowForm, queryOaWorkflowFormData, queryOaWorkflowUser, | ||
| 168 | - getNextTask, auditOaWorkflow, listRunWorkflowImage } from '@/api/oa/newOaWorkflowDetailApi' | 167 | +import { |
| 168 | + queryOaWorkflowForm, queryOaWorkflowFormData, queryOaWorkflowUser, | ||
| 169 | + getNextTask, auditOaWorkflow, listRunWorkflowImage | ||
| 170 | +} from '@/api/oa/newOaWorkflowDetailApi' | ||
| 169 | import SelectStaff from '@/components/staff/SelectStaff' | 171 | import SelectStaff from '@/components/staff/SelectStaff' |
| 170 | 172 | ||
| 171 | export default { | 173 | export default { |