|
@@ -1,4 +1,5 @@
|
|
<template>
|
|
<template>
|
|
|
|
+ <div>
|
|
<a-card :bordered="false">
|
|
<a-card :bordered="false">
|
|
<!-- 查询区域 -->
|
|
<!-- 查询区域 -->
|
|
<div class="table-page-search-wrapper">
|
|
<div class="table-page-search-wrapper">
|
|
@@ -31,7 +32,7 @@
|
|
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
|
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
|
<a-form-item label="日期">
|
|
<a-form-item label="日期">
|
|
<a-select
|
|
<a-select
|
|
- v-model="queryParam.riqi"
|
|
|
|
|
|
+ v-model="queryParam2.riqi"
|
|
placeholder="请选择日期"
|
|
placeholder="请选择日期"
|
|
show-search
|
|
show-search
|
|
allowClear
|
|
allowClear
|
|
@@ -54,7 +55,14 @@
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
|
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
|
<a-form-item label="试验类型">
|
|
<a-form-item label="试验类型">
|
|
- <j-dict-select-tag placeholder="请选择试验类型" v-model="queryParam.shiyanType" dictCode="shiiyan_type"/>
|
|
|
|
|
|
+ <!-- <j-dict-select-tag placeholder="请选择试验类型" v-model="queryParam.shiyanType" dictCode="shiiyan_type"/> -->
|
|
|
|
+ <a-select
|
|
|
|
+ v-model="queryParam2.shiyanType"
|
|
|
|
+ placeholder="请选择实验类型"
|
|
|
|
+ show-search
|
|
|
|
+ allowClear
|
|
|
|
+ :options="shiyanTypeOption">
|
|
|
|
+ </a-select>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
<template v-if="toggleSearchStatus">
|
|
<template v-if="toggleSearchStatus">
|
|
@@ -91,6 +99,7 @@
|
|
<a-button type="primary" @click="getList" icon="search">查询</a-button>
|
|
<a-button type="primary" @click="getList" icon="search">查询</a-button>
|
|
<a-button type="primary" @click="listReset" icon="reload" style="margin-left: 8px">重置</a-button>
|
|
<a-button type="primary" @click="listReset" icon="reload" style="margin-left: 8px">重置</a-button>
|
|
<a-button type="primary" @click="submitSJ" icon="check" style="margin-left: 8px">提交</a-button>
|
|
<a-button type="primary" @click="submitSJ" icon="check" style="margin-left: 8px">提交</a-button>
|
|
|
|
+ <a-button type="primary" @click="submitFJ" icon="to-top" style="margin-left: 8px">附件</a-button>
|
|
<a-button type="primary" @click="create" icon="vertical-align-bottom" style="margin-left: 8px">生成</a-button>
|
|
<a-button type="primary" @click="create" icon="vertical-align-bottom" style="margin-left: 8px">生成</a-button>
|
|
<a @click="handleToggleSearch" style="margin-left: 8px">
|
|
<a @click="handleToggleSearch" style="margin-left: 8px">
|
|
{{ toggleSearchStatus ? '收起' : '展开' }}
|
|
{{ toggleSearchStatus ? '收起' : '展开' }}
|
|
@@ -156,19 +165,37 @@
|
|
</vxe-table>
|
|
</vxe-table>
|
|
</a-card>
|
|
</a-card>
|
|
|
|
|
|
|
|
+ <a-drawer
|
|
|
|
+ :title="title"
|
|
|
|
+ :width="width"
|
|
|
|
+ placement="right"
|
|
|
|
+ :closable="false"
|
|
|
|
+ @close="close"
|
|
|
|
+ destroyOnClose
|
|
|
|
+ :visible="visible">
|
|
|
|
+ <!-- <itdm-yuzhi-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit" normal></itdm-yuzhi-form> -->
|
|
|
|
+ <!-- <div class="drawer-footer">
|
|
|
|
+ <a-button @click="handleCancel" style="margin-bottom: 0;">关闭</a-button>
|
|
|
|
+ <a-button v-if="!disableSubmit" @click="handleOk" type="primary" style="margin-bottom: 0;">提交</a-button>
|
|
|
|
+ </div> -->
|
|
|
|
+ </a-drawer>
|
|
|
|
|
|
|
|
+ </div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import { mixinDevice } from '@/utils/mixin'
|
|
import { mixinDevice } from '@/utils/mixin'
|
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
|
-import {initDictOptions, filterDictText} from '@/components/dict/JDictSelectUtil'
|
|
|
|
-import { getWeituoClientList, getWeituoInfoListByClient, getWeituoRq, getWeituoGdh, listSj, saveSj } from '@/api/api'
|
|
|
|
|
|
+// import {initDictOptions, filterDictText} from '@/components/dict/JDictSelectUtil'
|
|
|
|
+import { getWeituoClientList, getWeituoInfoListByClient, getWeituoRq, getWeituoGdh, getWeiYi, getWeiSj, listSj, saveSj } from '@/api/api'
|
|
import VXETable from 'vxe-table'
|
|
import VXETable from 'vxe-table'
|
|
export default {
|
|
export default {
|
|
mixins: [JeecgListMixin, mixinDevice],
|
|
mixins: [JeecgListMixin, mixinDevice],
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ title:"上传附件",
|
|
|
|
+ width:800,
|
|
|
|
+ visible: false,
|
|
// 查询
|
|
// 查询
|
|
queryParam2: {},
|
|
queryParam2: {},
|
|
queryParam: {},
|
|
queryParam: {},
|
|
@@ -181,6 +208,8 @@ export default {
|
|
weituoRqOptions:[],
|
|
weituoRqOptions:[],
|
|
// 工单号下拉列表
|
|
// 工单号下拉列表
|
|
weituoGdOptions: [],
|
|
weituoGdOptions: [],
|
|
|
|
+ // 实验类型下拉列表
|
|
|
|
+ shiyanTypeOption: [],
|
|
shiyanKaishitime: '',
|
|
shiyanKaishitime: '',
|
|
shiyanJieshutime: '',
|
|
shiyanJieshutime: '',
|
|
pinci: '',
|
|
pinci: '',
|
|
@@ -199,7 +228,6 @@ export default {
|
|
]
|
|
]
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- // shiiyanTypeOptions: []
|
|
|
|
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -237,7 +265,7 @@ export default {
|
|
// 监听选中的委托编号,以此获取日期的下拉列表
|
|
// 监听选中的委托编号,以此获取日期的下拉列表
|
|
getWeituoNoOptions(value){
|
|
getWeituoNoOptions(value){
|
|
this.weituoRqOptions = []
|
|
this.weituoRqOptions = []
|
|
- this.queryParam.riqi = ''
|
|
|
|
|
|
+ this.queryParam2.riqi = ''
|
|
getWeituoRq(this.queryParam2).then((res) =>{
|
|
getWeituoRq(this.queryParam2).then((res) =>{
|
|
console.log(res)
|
|
console.log(res)
|
|
this.weituoRqOptions = res.result.map( res => {
|
|
this.weituoRqOptions = res.result.map( res => {
|
|
@@ -253,12 +281,12 @@ export default {
|
|
this.weituoGdOptions = []
|
|
this.weituoGdOptions = []
|
|
this.queryParam.woId = ''
|
|
this.queryParam.woId = ''
|
|
console.log(this.queryParam)
|
|
console.log(this.queryParam)
|
|
- const query ={}
|
|
|
|
- query.weituoClient = this.queryParam2.weituoClient
|
|
|
|
- query.weituoId = this.queryParam2.weituoId
|
|
|
|
- query.riqi = this.queryParam.riqi
|
|
|
|
- console.log(query,this.queryParam,this.queryParam2)
|
|
|
|
- getWeituoGdh(query).then((res) =>{
|
|
|
|
|
|
+ // const query ={}
|
|
|
|
+ // query.weituoClient = this.queryParam2.weituoClient
|
|
|
|
+ // query.weituoId = this.queryParam2.weituoId
|
|
|
|
+ // query.riqi = this.queryParam.riqi
|
|
|
|
+ // console.log(query,this.queryParam,this.queryParam2)
|
|
|
|
+ getWeituoGdh(this.queryParam2).then((res) =>{
|
|
console.log(res)
|
|
console.log(res)
|
|
this.weituoGdOptions = res.result.map( res => {
|
|
this.weituoGdOptions = res.result.map( res => {
|
|
return{
|
|
return{
|
|
@@ -268,8 +296,40 @@ export default {
|
|
})
|
|
})
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- getWoId(){
|
|
|
|
- this.queryParam = {...this.queryParam}
|
|
|
|
|
|
+ // // 获取字典数据-试验类型
|
|
|
|
+ // initDictConfig() {
|
|
|
|
+ // initDictOptions('shiiyan_type').then((res) => {
|
|
|
|
+ // if (res.success) {
|
|
|
|
+ // this.shiiyanTypeOptions = res.result;
|
|
|
|
+ // }
|
|
|
|
+ // });
|
|
|
|
+ // },
|
|
|
|
+ // // 试验类型显示
|
|
|
|
+ // formatShiyanType (value) {
|
|
|
|
+ // var typeLabel
|
|
|
|
+ // var typeObj = this.shiiyanTypeOptions.find(res => res.value === value)
|
|
|
|
+ // if(typeObj){
|
|
|
|
+ // typeLabel = typeObj.label
|
|
|
|
+ // }
|
|
|
|
+ // return typeLabel
|
|
|
|
+ // },
|
|
|
|
+ // 获取试验类型
|
|
|
|
+ getWoId(value){
|
|
|
|
+ // this.queryParam = {...this.queryParam}
|
|
|
|
+ const query ={}
|
|
|
|
+ this.shiyanTypeOption = []
|
|
|
|
+ query.riqi = this.queryParam2.riqi
|
|
|
|
+ query.woId = this.queryParam.woId
|
|
|
|
+ console.log(query,this.queryParam,this.queryParam2)
|
|
|
|
+ getWeiYi(query).then((res) => {
|
|
|
|
+ console.log(res)
|
|
|
|
+ this.shiyanTypeOption = res.result.map( res => {
|
|
|
|
+ return{
|
|
|
|
+ value: res.type, //传的值
|
|
|
|
+ label: res.name, //展示
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ })
|
|
},
|
|
},
|
|
getList(){
|
|
getList(){
|
|
this.loading = true
|
|
this.loading = true
|
|
@@ -315,7 +375,14 @@ export default {
|
|
// console.log(this.dataSource)
|
|
// console.log(this.dataSource)
|
|
saveSj(this.dataSource).then((res) => {
|
|
saveSj(this.dataSource).then((res) => {
|
|
})
|
|
})
|
|
-
|
|
|
|
|
|
+ },
|
|
|
|
+ close () {
|
|
|
|
+ this.$emit('close');
|
|
|
|
+ this.visible = false;
|
|
|
|
+ },
|
|
|
|
+ // 上传附件
|
|
|
|
+ submitFJ(){
|
|
|
|
+ this.visible = true
|
|
},
|
|
},
|
|
create() {
|
|
create() {
|
|
|
|
|
|
@@ -323,7 +390,7 @@ export default {
|
|
select.shiyanKaishitime = this.shiyanKaishitime
|
|
select.shiyanKaishitime = this.shiyanKaishitime
|
|
select.shiyanJieshutime = this.shiyanJieshutime
|
|
select.shiyanJieshutime = this.shiyanJieshutime
|
|
select.pinci = this.pinci
|
|
select.pinci = this.pinci
|
|
-
|
|
|
|
|
|
+
|
|
httpAction('/itdmgomgongdanshuju/ItdmGongdanshuju/create',select, 'post').then((res) => {
|
|
httpAction('/itdmgomgongdanshuju/ItdmGongdanshuju/create',select, 'post').then((res) => {
|
|
if (res.success) {
|
|
if (res.success) {
|
|
console.log(res)
|
|
console.log(res)
|
|
@@ -336,25 +403,8 @@ export default {
|
|
})
|
|
})
|
|
|
|
|
|
},
|
|
},
|
|
- // // 获取字典数据-试验类型
|
|
|
|
- // initDictConfig() {
|
|
|
|
- // initDictOptions('shiiyan_type').then((res) => {
|
|
|
|
- // if (res.success) {
|
|
|
|
- // this.shiiyanTypeOptions = res.result;
|
|
|
|
- // }
|
|
|
|
- // });
|
|
|
|
- // },
|
|
|
|
- // // 试验类型显示
|
|
|
|
- // formatShiyanType (value) {
|
|
|
|
- // var typeLabel
|
|
|
|
- // var typeObj = this.shiiyanTypeOptions.find(res => res.value === value)
|
|
|
|
- // if(typeObj){
|
|
|
|
- // typeLabel = typeObj.label
|
|
|
|
- // }
|
|
|
|
- // return typeLabel
|
|
|
|
- // },
|
|
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
|
|
|