|
@@ -92,6 +92,13 @@
|
|
|
@click="changeCreate('empower_date@end')"
|
|
|
/>
|
|
|
<van-field v-model="searchForm.create_number" name="create_number" label="申请号" placeholder="请输入申请号" />
|
|
|
+
|
|
|
+ <van-field readonly clickable name="所属管理机构" :value="searchForm.pid" style="display: none" />
|
|
|
+ <van-field readonly clickable name="所属管理机构" :value="searchForm.pname" label="所属管理机构" placeholder="点击选择" @click="thrShow = true" />
|
|
|
+ <van-popup v-model="thrShow" position="bottom">
|
|
|
+ <van-picker show-toolbar :columns="adminList" value-key="name" @confirm="pidFim" @cancel="thrShow = false" />
|
|
|
+ </van-popup>
|
|
|
+
|
|
|
<van-calendar v-model="oneShow" @confirm="oneChange" position="right" :min-date="minDate" :max-date="maxDate" />
|
|
|
<div class="btn">
|
|
|
<van-button type="info" size="small" @click="reseat">重置条件</van-button>
|
|
@@ -107,6 +114,7 @@
|
|
|
<script>
|
|
|
const { apply_personal } = require('@frame/src/layout/applyCom');
|
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
|
+const { mapActions: adminLogin } = createNamespacedHelpers('adminLogin');
|
|
|
const moment = require('moment');
|
|
|
export default {
|
|
|
name: 'search-1',
|
|
@@ -124,10 +132,16 @@ export default {
|
|
|
// 申请人单位
|
|
|
twoShow: false,
|
|
|
apply_personalList: apply_personal,
|
|
|
+ // 所属管理机构
|
|
|
+ thrShow: false,
|
|
|
+ adminList: [],
|
|
|
};
|
|
|
},
|
|
|
- created() {},
|
|
|
+ created() {
|
|
|
+ this.searchOther();
|
|
|
+ },
|
|
|
methods: {
|
|
|
+ ...adminLogin(['query']),
|
|
|
reseat() {
|
|
|
this.$emit('reseat');
|
|
|
},
|
|
@@ -148,6 +162,20 @@ export default {
|
|
|
this.$set(this.searchForm, `apply_personal`, value.name);
|
|
|
this.twoShow = false;
|
|
|
},
|
|
|
+ // 选择所属管理机构
|
|
|
+ pidFim(value) {
|
|
|
+ this.$set(this.searchForm, `pid`, value.id);
|
|
|
+ this.$set(this.searchForm, `pname`, value.name);
|
|
|
+
|
|
|
+ this.thrShow = false;
|
|
|
+ },
|
|
|
+ // 查询其他信息
|
|
|
+ async searchOther() {
|
|
|
+ let res = await this.query({ role: '1' });
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
+ this.$set(this, `adminList`, res.data);
|
|
|
+ }
|
|
|
+ },
|
|
|
},
|
|
|
computed: {
|
|
|
...mapState(['user']),
|