|
@@ -4,10 +4,19 @@
|
|
|
<div class="table-page-search-wrapper">
|
|
|
<a-form layout="inline" @keyup.enter.native="searchQuery">
|
|
|
<a-row :gutter="24">
|
|
|
- <a-col :xl="6" :lg="7" :md="8" :sm="24">
|
|
|
+ <!-- <a-col :xl="6" :lg="7" :md="8" :sm="24">
|
|
|
<a-form-item label="委托单位名称">
|
|
|
<j-search-select-tag placeholder="请选择委托单位名称" v-model="queryParam.weituoClient" :dictOptions="weituoClientList"/>
|
|
|
-<!-- <a-input placeholder="请输入委托单位名称" v-model="queryParam.weituoClient"></a-input>-->
|
|
|
+ </a-form-item>
|
|
|
+ </a-col> -->
|
|
|
+ <a-col :xl="6" :lg="7" :md="8" :sm="24">
|
|
|
+ <a-form-item label="委托单位">
|
|
|
+ <j-search-select-tag placeholder="请选择委托单位名称" v-model="queryParam.weituoClient" :dictOptions="weituoClientList" @change="handlewcChange"/>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :xl="6" :lg="7" :md="8" :sm="24">
|
|
|
+ <a-form-item label="委托编号">
|
|
|
+ <j-search-select-tag placeholder="请选择委托编号" v-model="queryParam.weituo_no" :dictOptions="weituoNoOptions"/>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
|
@@ -114,7 +123,7 @@ import '@/assets/less/TableExpand.less'
|
|
|
import { mixinDevice } from '@/utils/mixin'
|
|
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
|
|
import ItdmWeituoInfoModal from './modules/ItdmWeituoInfoModal'
|
|
|
-import { ajaxGetDictItems, loadCategoryData } from '@/api/api'
|
|
|
+import { ajaxGetDictItems, loadCategoryData, downWeituo_info, getWeituoInfoListByClient } from '@/api/api'
|
|
|
import { filterMultiDictText } from '@comp/dict/JDictSelectUtil'
|
|
|
import { getAction } from '@api/manage'
|
|
|
|
|
@@ -128,8 +137,9 @@ export default {
|
|
|
},
|
|
|
data () {
|
|
|
return {
|
|
|
- weituoClientList:[],
|
|
|
description: '委托信息管理页面',
|
|
|
+ weituoClientList:[],
|
|
|
+ weituoNoOptions: [],
|
|
|
// 表头
|
|
|
columns: [
|
|
|
{
|
|
@@ -236,9 +246,7 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
methods: {
|
|
|
-
|
|
|
init(){
|
|
|
-
|
|
|
getAction('/weituo/itdmWeituoInfo/distinctClientList', {}).then((res) => {
|
|
|
if (res.success) {
|
|
|
console.log(res.result)
|
|
@@ -248,8 +256,6 @@ export default {
|
|
|
console.log(this.weituoClientList)
|
|
|
}
|
|
|
})
|
|
|
-
|
|
|
-
|
|
|
},
|
|
|
|
|
|
|
|
@@ -280,7 +286,23 @@ export default {
|
|
|
fieldList.push({type:'string',value:'tiaojianFile',text:'试验条件文件地址',dictCode:''})
|
|
|
fieldList.push({type:'string',value:'shenheMsg',text:'审核拒绝原因',dictCode:''})
|
|
|
this.superFieldList = fieldList
|
|
|
- }
|
|
|
+ },
|
|
|
+ // 监听选中委托单位,获取该单位的委托编号
|
|
|
+ handlewcChange(data){
|
|
|
+ console.log(data)
|
|
|
+ this.weituoNoOptions = []
|
|
|
+ this.queryParam.weituoNo = undefined
|
|
|
+ getWeituoInfoListByClient(this.queryParam).then((res) =>{
|
|
|
+ console.log(res.result)
|
|
|
+ this.weituoNoOptions = res.result.map( res => {
|
|
|
+ return {
|
|
|
+ value: res.weituoNo, //传的值
|
|
|
+ text: res.weituoNo //展示
|
|
|
+ }
|
|
|
+ })
|
|
|
+ console.log(this.weituoNoOptions)
|
|
|
+ })
|
|
|
+ },
|
|
|
}
|
|
|
}
|
|
|
</script>
|