|
@@ -6,26 +6,26 @@
|
|
|
<a-row :gutter="24">
|
|
|
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
|
|
<a-form-item label="委托单位名称">
|
|
|
- <j-search-select-tag placeholder="请选择委托单位名称" :dictOptions="weituoClientList" @change="handlewcChange" />
|
|
|
+ <j-search-select-tag placeholder="请选择委托单位名称" :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="请选择委托编号" :dictOptions="weituoNoList" @change="handlewnChange" />
|
|
|
+ <j-search-select-tag placeholder="请选择委托编号" :dictOptions="weituoNoList" @change="handlewnChange" />
|
|
|
</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.woId" :dictOptions="gongdanList" />
|
|
|
+ <j-search-select-tag placeholder="工单号" v-model="queryParam.woId" :dictOptions="gongdanList" />
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
|
|
|
|
|
|
-
|
|
|
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
|
|
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
|
|
|
<a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
|
|
@@ -113,11 +113,11 @@ export default {
|
|
|
|
|
|
data() {
|
|
|
return {
|
|
|
- weituoClientList:[],
|
|
|
- weituoNoList:[],
|
|
|
- gongdanList:[],
|
|
|
- queryParam:{
|
|
|
- woId:"未选择"
|
|
|
+ weituoClientList: [],
|
|
|
+ weituoNoList: [],
|
|
|
+ gongdanList: [],
|
|
|
+ queryParam: {
|
|
|
+ woId: '未选择'
|
|
|
},
|
|
|
|
|
|
description: '工单detail管理页面',
|
|
@@ -231,59 +231,53 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- init(){
|
|
|
+ init() {
|
|
|
|
|
|
getAction('/weituo/itdmWeituoInfo/distinctClientList', {}).then((res) => {
|
|
|
if (res.success) {
|
|
|
console.log(res.result)
|
|
|
- this.weituoClientList = res.result.map(i=>{
|
|
|
- return { value: i, text: i}
|
|
|
+ this.weituoClientList = res.result.map(i => {
|
|
|
+ return { value: i, text: i }
|
|
|
})
|
|
|
console.log(this.weituoClientList)
|
|
|
}
|
|
|
})
|
|
|
|
|
|
-
|
|
|
},
|
|
|
|
|
|
- handlewcChange(data){
|
|
|
+ handlewcChange(data) {
|
|
|
|
|
|
- var weituoClient={weituoClient:data}
|
|
|
+ var weituoClient = { weituoClient: data }
|
|
|
getAction('/weituo/itdmWeituoInfo/weituoNoList', weituoClient).then((res) => {
|
|
|
if (res.success) {
|
|
|
- console.log("xxxxxxxxxxxxxxxxxxx")
|
|
|
+ console.log('xxxxxxxxxxxxxxxxxxx')
|
|
|
console.log(res.result)
|
|
|
- this.weituoNoList = res.result.map(i=>{
|
|
|
- return { value: i.id, text: i.weituoNo}
|
|
|
+ this.weituoNoList = res.result.map(i => {
|
|
|
+ return { value: i.id, text: i.weituoNo }
|
|
|
})
|
|
|
console.log(this.weituoNoList)
|
|
|
}
|
|
|
})
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
console.log(data)
|
|
|
},
|
|
|
|
|
|
- handlewnChange(data){
|
|
|
+ handlewnChange(data) {
|
|
|
|
|
|
this.queryParam.woId = ''
|
|
|
|
|
|
- var weituoClient={weituoId:data}
|
|
|
+ var weituoClient = { weituoId: data }
|
|
|
getAction('/gongdandetail/itdmGongdanDetail/gongdanIdList', weituoClient).then((res) => {
|
|
|
if (res.success) {
|
|
|
- console.log("xxxxxxxxxxxxxxxxxxx")
|
|
|
- console.log(res.result)
|
|
|
- this.gongdanList = res.result.map(i=>{
|
|
|
- return { value: i, text: i}
|
|
|
- })
|
|
|
+ this.gongdanList=[]
|
|
|
+ this.gongdanList.push({ value: '', text: '所有' })
|
|
|
+ for (var i = 0; i < res.result.length; i++) {
|
|
|
+ this.gongdanList.push({ value: res.result[i], text: res.result[i] })
|
|
|
+ }
|
|
|
console.log(this.gongdanList)
|
|
|
}
|
|
|
})
|
|
|
|
|
|
-
|
|
|
-
|
|
|
},
|
|
|
initDictConfig() {
|
|
|
},
|