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