mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-23 21:36:37 +08:00
v1.9 优化合同审核人无法选择问题
This commit is contained in:
parent
ffeae35e9a
commit
785aba4f60
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<el-card class="box-card">
|
||||
<div slot="header" class="clearfix">
|
||||
<div slot="header" class="flex justify-between">
|
||||
<span>{{ $t('purchaseApprovers.title') }}</span>
|
||||
</div>
|
||||
|
||||
@ -34,29 +34,27 @@
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</div>
|
||||
<select-staff ref="selectStaff" @selectStaff="handleSelectStaff" />
|
||||
|
||||
</el-card>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getFirstStaff } from '@/api/contract/contractChangeDetailApi'
|
||||
import { getCommunityId } from '@/api/community/communityApi'
|
||||
import SelectStaff from '@/components/staff/SelectStaff'
|
||||
|
||||
export default {
|
||||
name: 'PurchaseApprovers',
|
||||
props: {
|
||||
callBackListener: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
callBackFunction: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
flowType: {
|
||||
type: String,
|
||||
default: '60006'
|
||||
}
|
||||
},
|
||||
components: {
|
||||
SelectStaff
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
purchaseApproversInfo: {
|
||||
@ -117,8 +115,18 @@ export default {
|
||||
this.$emit(this.callBackListener, this.callBackFunction, this.purchaseApproversInfo)
|
||||
}
|
||||
},
|
||||
handleSelectStaff(staff) {
|
||||
this.purchaseApproversInfo.staffId = staff.userId
|
||||
this.purchaseApproversInfo.staffName = staff.userName
|
||||
this.$emit('notify3', {
|
||||
staffId: staff.userId,
|
||||
staffName: staff.userName
|
||||
})
|
||||
|
||||
},
|
||||
chooseStaff() {
|
||||
this.$emit('openSelectStaff', this.purchaseApproversInfo)
|
||||
this.$refs.selectStaff.open(this.purchaseApproversInfo)
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -182,7 +182,7 @@
|
||||
|
||||
<!-- Related Rooms -->
|
||||
<el-card class="box-card" style="margin-top:20px">
|
||||
<div slot="header" class="clearfix">
|
||||
<div slot="header" class="flex justify-between">
|
||||
<span>{{ $t('contract.relatedRooms') }}</span>
|
||||
<el-button style="float: right; padding: 3px 0" type="text" @click="_selectRoom">
|
||||
<i class="el-icon-plus"></i>{{ $t('contract.add') }}
|
||||
|
||||
@ -11,8 +11,8 @@
|
||||
@keyup.enter.native="handleSearch" />
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-select v-model="searchForm.storeType" style="width: 100%;" :placeholder="$t('shopManage.search.storeType')" clearable>
|
||||
<el-option v-for="item in storeTypes" :key="item.statusCd" :label="item.name" :value="item.statusCd" />
|
||||
<el-select v-model="searchForm.shopType" style="width: 100%;" :placeholder="$t('shopManage.search.storeType')" clearable>
|
||||
<el-option v-for="item in shopTypes" :key="item.statusCd" :label="item.name" :value="item.statusCd" />
|
||||
</el-select>
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
@ -60,7 +60,8 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getShopList, getStoreTypes } from '@/api/mall/shopManageApi'
|
||||
import { getShopList } from '@/api/mall/shopManageApi'
|
||||
import {getDict} from '@/api/community/communityApi'
|
||||
import ShopWithdraw from '@/components/mall/ShopWithdraw'
|
||||
|
||||
export default {
|
||||
@ -73,11 +74,11 @@ export default {
|
||||
loading: false,
|
||||
searchForm: {
|
||||
shopName: '',
|
||||
storeType: '',
|
||||
shopType: '',
|
||||
state: '',
|
||||
mallApiCode: 'queryShopsByAdminBmoImpl'
|
||||
},
|
||||
storeTypes: [],
|
||||
shopTypes: [],
|
||||
tableData: [],
|
||||
page: {
|
||||
current: 1,
|
||||
@ -87,7 +88,7 @@ export default {
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getStoreTypes()
|
||||
this.getShopTypes()
|
||||
this.getList()
|
||||
},
|
||||
methods: {
|
||||
@ -108,12 +109,12 @@ export default {
|
||||
this.loading = false
|
||||
}
|
||||
},
|
||||
async getStoreTypes() {
|
||||
async getShopTypes() {
|
||||
try {
|
||||
const data = await getStoreTypes()
|
||||
this.storeTypes = data
|
||||
const data = await getDict('s_shop','stop_type')
|
||||
this.shopTypes = data
|
||||
} catch (error) {
|
||||
this.$message.error(this.$t('shopManage.fetchStoreTypesError'))
|
||||
this.$message.error(this.$t('shopManage.fetchShopTypesError'))
|
||||
}
|
||||
},
|
||||
handleSearch() {
|
||||
|
||||
@ -158,14 +158,16 @@
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<select-staff ref="selectStaff" @selectStaff="handleSelectStaff"/>
|
||||
<select-staff ref="selectStaff" @selectStaff="handleSelectStaff" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getCommunityId } from '@/api/community/communityApi'
|
||||
import { queryOaWorkflowForm, queryOaWorkflowFormData, queryOaWorkflowUser,
|
||||
getNextTask, auditOaWorkflow, listRunWorkflowImage } from '@/api/oa/newOaWorkflowDetailApi'
|
||||
import {
|
||||
queryOaWorkflowForm, queryOaWorkflowFormData, queryOaWorkflowUser,
|
||||
getNextTask, auditOaWorkflow, listRunWorkflowImage
|
||||
} from '@/api/oa/newOaWorkflowDetailApi'
|
||||
import SelectStaff from '@/components/staff/SelectStaff'
|
||||
|
||||
export default {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user