|
|
|
@ -15,19 +15,42 @@
|
|
|
|
|
<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="4" :lg="7" :md="8" :sm="24"> |
|
|
|
|
<a-form-item label="物资类型"> |
|
|
|
|
<j-dict-select-tag type="list" v-model="queryParam.materialType" dictCode="material_type" |
|
|
|
|
placeholder="请选择物资类型" /> |
|
|
|
|
</a-form-item> |
|
|
|
|
</a-col> |
|
|
|
|
<a-col :xl="4" :lg="7" :md="8" :sm="24"> |
|
|
|
|
<a-form-item label="流程发起时间" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
|
|
|
|
<a-range-picker |
|
|
|
|
format="YYYY-MM-DD" |
|
|
|
|
:value="processTime" |
|
|
|
|
:placeholder="['开始时间', '结束时间']" |
|
|
|
|
@change="processDateChange" |
|
|
|
|
/> |
|
|
|
|
</a-form-item> |
|
|
|
|
</a-col> |
|
|
|
|
<a-col :xl="4" :lg="7" :md="8" :sm="24"> |
|
|
|
|
<a-form-item label="流程发起部门"> |
|
|
|
|
<a-select v-model="queryParam.departId" placeholder="请输入项目部" @mouseenter="getUnit" > |
|
|
|
|
<a-select-option v-for="(item,index) in queryParamsUntil" :key="index" :value="item.unit">{{item.unit_dictText}}</a-select-option> |
|
|
|
|
</a-select> |
|
|
|
|
</a-form-item> |
|
|
|
|
</a-col> |
|
|
|
|
<a-col :xl="4" :lg="7" :md="8" :sm="24"> |
|
|
|
|
<a-form-item label="流程计划"> |
|
|
|
|
<j-dict-select-tag type="list" v-model="queryParam.processPlan" dictCode="process_plan" |
|
|
|
|
placeholder="请选择物资类型" /> |
|
|
|
|
</a-form-item> |
|
|
|
|
</a-col> |
|
|
|
|
<!--<a-col :xl="6" :lg="7" :md="8" :sm="24"> |
|
|
|
|
<a-form-item label="需求时间"> |
|
|
|
|
<j-date placeholder="请选择需求时间" v-model="queryParam.needTime"></j-date> |
|
|
|
|
</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-col :xl="4" :lg="7" :md="8" :sm="24"> |
|
|
|
|
<span style="overflow: hidden;" class="table-page-search-submitButtons"> |
|
|
|
|
<a-button type="primary" @click="searchQuery" icon="search">查询</a-button> |
|
|
|
|
<a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button> |
|
|
|
|
<!-- <a @click="handleToggleSearch" style="margin-left: 8px">--> |
|
|
|
@ -191,7 +214,7 @@
|
|
|
|
|
{ |
|
|
|
|
title: '流程发起部门', |
|
|
|
|
align: 'center', |
|
|
|
|
dataIndex: 'sysOrgCode_dictText' |
|
|
|
|
dataIndex: 'departId_dictText' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '流程发起人', |
|
|
|
@ -229,6 +252,7 @@
|
|
|
|
|
}*/ |
|
|
|
|
], |
|
|
|
|
url: { |
|
|
|
|
listByuntil: '/unitwaste/processUnitWasteWarehouseCode/list', |
|
|
|
|
list: '/hy/processUdgetPlan/listByplan', |
|
|
|
|
delete: '/hy/processUdgetPlan/delete', |
|
|
|
|
deleteBatch: '/hy/processUdgetPlan/deleteBatch', |
|
|
|
@ -258,7 +282,19 @@
|
|
|
|
|
selectedRowKeys: [], |
|
|
|
|
modalWidth: MODAL_WIDTH, |
|
|
|
|
changeData: '', |
|
|
|
|
getFileData: false |
|
|
|
|
getFileData: false, |
|
|
|
|
//部门查询 |
|
|
|
|
queryParamsUntil:[], |
|
|
|
|
//时间相关查询 |
|
|
|
|
processTime:[], |
|
|
|
|
labelCol: { |
|
|
|
|
xs: { span: 4 }, |
|
|
|
|
sm: { span: 4 }, |
|
|
|
|
}, |
|
|
|
|
wrapperCol: { |
|
|
|
|
xs: { span: 20 }, |
|
|
|
|
sm: { span: 20 }, |
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
mounted() { |
|
|
|
@ -271,6 +307,23 @@
|
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
//流程发起时间 |
|
|
|
|
processDateChange: function (value, dateString) { |
|
|
|
|
this.processTime = value |
|
|
|
|
this.queryParam.processTimeBegin=dateString[0]; |
|
|
|
|
this.queryParam.processTimeEnd=dateString[1]; |
|
|
|
|
console.log(this.queryParam) |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
//加載項目部 |
|
|
|
|
getUnit(){ |
|
|
|
|
getAction(this.url.listByuntil).then((res) => { |
|
|
|
|
if (res.success) { |
|
|
|
|
this.queryParamsUntil = res.result.records||res.result; |
|
|
|
|
console.log(this.queryParamsUntil) |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
// initDictConfig(){ |
|
|
|
|
// initDictOptions('sys_depart,depart_name,id').then((res) => { |
|
|
|
|
// if (res.success) { |
|
|
|
@ -439,10 +492,11 @@
|
|
|
|
|
//this.loadData(); |
|
|
|
|
}, |
|
|
|
|
searchReset() { |
|
|
|
|
this.processTime=[] |
|
|
|
|
Object.keys(this.queryParam).forEach(key => { |
|
|
|
|
this.queryParam[key] = '' |
|
|
|
|
}) |
|
|
|
|
//this.loadData(1); |
|
|
|
|
this.loadData(1); |
|
|
|
|
}, |
|
|
|
|
combineRowKey(record) { |
|
|
|
|
let res = '' |
|
|
|
@ -454,7 +508,6 @@
|
|
|
|
|
} |
|
|
|
|
return res |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
clickThenCheck(record) { |
|
|
|
|
return { |
|
|
|
|
on: { |
|
|
|
|