|
@@ -9,6 +9,30 @@
|
|
|
<a-input placeholder='请输入名称' v-model='queryParam.name'></a-input>
|
|
|
</a-form-item>
|
|
|
</a-col> -->
|
|
|
+ <a-col :xl="6" :lg="7" :md="8" :sm="24">
|
|
|
+ <a-form-item label="委托单位">
|
|
|
+ <a-select
|
|
|
+ v-model="queryParam.weituoClient"
|
|
|
+ placeholder="请选择委托单位"
|
|
|
+ show-search
|
|
|
+ allowClear
|
|
|
+ :options="weituoClientOptions"
|
|
|
+ @change="getWeituoClientOptions">
|
|
|
+ </a-select>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :xl="6" :lg="7" :md="8" :sm="24">
|
|
|
+ <a-form-item label="委托编号">
|
|
|
+ <a-select
|
|
|
+ v-model="queryParam.weituoNo"
|
|
|
+ placeholder="请选择委托编号"
|
|
|
+ show-search
|
|
|
+ allowClear
|
|
|
+ :options="weituoNoOptions"
|
|
|
+ @change="getWeituoNo">
|
|
|
+ </a-select>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
<a-col :xl='6' :lg='7' :md='8' :sm='24'>
|
|
|
<a-form-item label='发起人'>
|
|
|
<j-select-user-by-dep placeholder='请选择发起人' v-model='queryParam.faqiUser' />
|
|
@@ -139,7 +163,7 @@ import { mixinDevice } from '@/utils/mixin'
|
|
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
|
|
import ItdmRunFlowPathModal from './modules/ItdmRunFlowPathModal'
|
|
|
import { filterMultiDictText } from '@/components/dict/JDictSelectUtil'
|
|
|
-import { queryFlowPathSelectList, runFlowPathPass1 } from '@api/api'
|
|
|
+import { queryFlowPathSelectList, runFlowPathPass1, getWeituoClientList, getWeituoInfoListByClient } from '@api/api'
|
|
|
import { Modal } from 'ant-design-vue'
|
|
|
import ItdmRunFlowPathShenhel from './modules/ItdmRunFlowPathShenhel.vue'
|
|
|
import ItdmRunFlowPathShenhel1 from './modules/ItdmRunFlowPathShenhel1.vue'
|
|
@@ -154,6 +178,10 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
description: '运行流程表管理页面',
|
|
|
+ // 委托单位列表
|
|
|
+ weituoClientOptions : [],
|
|
|
+ // 委托编号列表
|
|
|
+ weituoNoOptions:[],
|
|
|
// 表头
|
|
|
columns: [
|
|
|
{
|
|
@@ -219,6 +247,7 @@ export default {
|
|
|
},
|
|
|
created() {
|
|
|
this.getSuperFieldList()
|
|
|
+ this.getClientList();
|
|
|
},
|
|
|
computed: {
|
|
|
importExcelUrl: function() {
|
|
@@ -226,6 +255,37 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 获取委托单位下拉列表
|
|
|
+ getClientList(){
|
|
|
+ getWeituoClientList().then((res) =>{
|
|
|
+ console.log(res)
|
|
|
+ this.weituoClientOptions = res.result.map( res => {
|
|
|
+ return{
|
|
|
+ value: res,
|
|
|
+ label: res
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 监听委托单位获取
|
|
|
+ getWeituoClientOptions(value){
|
|
|
+ console.log(value);
|
|
|
+ console.log(this.queryParam)
|
|
|
+ this.weituoNoOptions = []
|
|
|
+ this.queryParam.weituoNo = ''
|
|
|
+ getWeituoInfoListByClient(this.queryParam).then((res) =>{
|
|
|
+ this.weituoNoOptions = res.result.map( res => {
|
|
|
+ return{
|
|
|
+ value: res.weituoNo, //传的值
|
|
|
+ label: res.weituoNo, //展示
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 委托编号赋值
|
|
|
+ getWeituoNo(){
|
|
|
+ this.queryParam = {...this.queryParam}
|
|
|
+ },
|
|
|
// 搜索
|
|
|
loadData(arg) {
|
|
|
if(!this.url.list){
|