Commit 785aba4f6030ce7bd352460961898f29c7d53584

Authored by wuxw
1 parent ffeae35e

v1.9 优化合同审核人无法选择问题

src/components/contract/purchaseApprovers.vue
1 1 <template>
2 2 <el-card class="box-card">
3   - <div slot="header" class="clearfix">
  3 + <div slot="header" class="flex justify-between">
4 4 <span>{{ $t('purchaseApprovers.title') }}</span>
5 5 </div>
6 6  
... ... @@ -34,29 +34,27 @@
34 34 </el-form-item>
35 35 </el-form>
36 36 </div>
  37 + <select-staff ref="selectStaff" @selectStaff="handleSelectStaff" />
  38 +
37 39 </el-card>
38 40 </template>
39 41  
40 42 <script>
41 43 import { getFirstStaff } from '@/api/contract/contractChangeDetailApi'
42 44 import { getCommunityId } from '@/api/community/communityApi'
  45 +import SelectStaff from '@/components/staff/SelectStaff'
43 46  
44 47 export default {
45 48 name: 'PurchaseApprovers',
46 49 props: {
47   - callBackListener: {
48   - type: String,
49   - default: ''
50   - },
51   - callBackFunction: {
52   - type: String,
53   - default: ''
54   - },
55 50 flowType: {
56 51 type: String,
57 52 default: '60006'
58 53 }
59 54 },
  55 + components: {
  56 + SelectStaff
  57 + },
60 58 data() {
61 59 return {
62 60 purchaseApproversInfo: {
... ... @@ -117,8 +115,18 @@ export default {
117 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 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 182  
183 183 <!-- Related Rooms -->
184 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 186 <span>{{ $t('contract.relatedRooms') }}</span>
187 187 <el-button style="float: right; padding: 3px 0" type="text" @click="_selectRoom">
188 188 <i class="el-icon-plus"></i>{{ $t('contract.add') }}
... ...
src/views/mall/shopManageList.vue
... ... @@ -11,8 +11,8 @@
11 11 @keyup.enter.native="handleSearch" />
12 12 </el-col>
13 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 16 </el-select>
17 17 </el-col>
18 18 <el-col :span="6">
... ... @@ -60,7 +60,8 @@
60 60 </template>
61 61  
62 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 65 import ShopWithdraw from '@/components/mall/ShopWithdraw'
65 66  
66 67 export default {
... ... @@ -73,11 +74,11 @@ export default {
73 74 loading: false,
74 75 searchForm: {
75 76 shopName: '',
76   - storeType: '',
  77 + shopType: '',
77 78 state: '',
78 79 mallApiCode: 'queryShopsByAdminBmoImpl'
79 80 },
80   - storeTypes: [],
  81 + shopTypes: [],
81 82 tableData: [],
82 83 page: {
83 84 current: 1,
... ... @@ -87,7 +88,7 @@ export default {
87 88 }
88 89 },
89 90 created() {
90   - this.getStoreTypes()
  91 + this.getShopTypes()
91 92 this.getList()
92 93 },
93 94 methods: {
... ... @@ -108,12 +109,12 @@ export default {
108 109 this.loading = false
109 110 }
110 111 },
111   - async getStoreTypes() {
  112 + async getShopTypes() {
112 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 116 } catch (error) {
116   - this.$message.error(this.$t('shopManage.fetchStoreTypesError'))
  117 + this.$message.error(this.$t('shopManage.fetchShopTypesError'))
117 118 }
118 119 },
119 120 handleSearch() {
... ...
src/views/oa/newOaWorkflowDetailList.vue
... ... @@ -158,14 +158,16 @@
158 158 </el-col>
159 159 </el-row>
160 160  
161   - <select-staff ref="selectStaff" @selectStaff="handleSelectStaff"/>
  161 + <select-staff ref="selectStaff" @selectStaff="handleSelectStaff" />
162 162 </div>
163 163 </template>
164 164  
165 165 <script>
166 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 171 import SelectStaff from '@/components/staff/SelectStaff'
170 172  
171 173 export default {
... ...