Commit 4f9c3f89 authored by 耿迪迪's avatar 耿迪迪

统计问题修改

parent 60482086
...@@ -87,7 +87,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -87,7 +87,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="isDel != null and isDel != ''"> and t.is_del = #{isDel}</if> <if test="isDel != null and isDel != ''"> and t.is_del = #{isDel}</if>
<if test="purchaseStatus != null and purchaseStatus != ''"> and t.purchase_status = #{purchaseStatus}</if> <if test="purchaseStatus != null and purchaseStatus != ''"> and t.purchase_status = #{purchaseStatus}</if>
<if test="approvedTime != null "> and t.approved_time = #{approvedTime}</if> <if test="approvedTime != null "> and t.approved_time = #{approvedTime}</if>
<if test="purchaseType != null and purchaseType != ''"> and purchase_type = #{purchaseType}</if> <if test="purchaseType != null and purchaseType != ''"> and t.purchase_type = #{purchaseType}</if>
<if test="applyBeginTime != null and applyEndTime != null">and t.create_time between #{applyBeginTime} and #{applyEndTime}</if>
</where> </where>
ORDER BY t.create_time DESC ORDER BY t.create_time DESC
</select> </select>
......
...@@ -49,6 +49,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -49,6 +49,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="registrationDate != null "> and a.registration_date = #{registrationDate}</if> <if test="registrationDate != null "> and a.registration_date = #{registrationDate}</if>
<if test="attachmentUrl != null and attachmentUrl != ''"> and a.attachment_url = #{attachmentUrl}</if> <if test="attachmentUrl != null and attachmentUrl != ''"> and a.attachment_url = #{attachmentUrl}</if>
<if test="isDel != null and isDel != ''"> and a.is_del = #{isDel}</if> <if test="isDel != null and isDel != ''"> and a.is_del = #{isDel}</if>
<if test="registrationBeginDate != null and registrationEndDate != null">and a.registration_date between #{registrationBeginDate} and #{registrationEndDate}</if>
</where> </where>
order by a.borrowing desc order by a.borrowing desc
</select> </select>
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
</el-form-item> </el-form-item>
<el-form-item label="部门" prop="borrowingDeptId"> <el-form-item label="部门" prop="borrowingDeptId">
<div style="width: 160px"> <div style="width: 200px">
<treeselect <treeselect
v-model="queryParams.borrowingDeptId" v-model="queryParams.borrowingDeptId"
:options="deptOptions" :options="deptOptions"
...@@ -41,20 +41,6 @@ ...@@ -41,20 +41,6 @@
/> />
</el-form-item> </el-form-item>
<el-form-item label="申请时间">
<el-date-picker
v-model="registrationDate"
size="small"
type="datetimerange"
value-format="yyyy-MM-dd HH:mm:ss"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
@change="timeChange"
style="width: 340px"
>
</el-date-picker>
</el-form-item>
<el-form-item label="状态" prop="approvalStatus"> <el-form-item label="状态" prop="approvalStatus">
<el-select <el-select
...@@ -70,6 +56,21 @@ ...@@ -70,6 +56,21 @@
</el-form-item> </el-form-item>
<el-form-item label="申请时间">
<el-date-picker
v-model="registrationDate"
size="small"
type="datetimerange"
value-format="yyyy-MM-dd HH:mm:ss"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
@change="timeChange"
style="width: 340px"
>
</el-date-picker>
</el-form-item>
<el-form-item> <el-form-item>
<el-button <el-button
type="primary" type="primary"
...@@ -148,6 +149,9 @@ ...@@ -148,6 +149,9 @@
if (value) { if (value) {
this.queryParams.registrationBeginDate = value[0]; this.queryParams.registrationBeginDate = value[0];
this.queryParams.registrationEndDate = value[1]; this.queryParams.registrationEndDate = value[1];
}else{
this.queryParams.registrationBeginDate = null;
this.queryParams.registrationEndDate = null;
} }
}, },
getTreeselect() { getTreeselect() {
......
...@@ -114,6 +114,9 @@ ...@@ -114,6 +114,9 @@
if (value) { if (value) {
this.queryParams.registrationBeginDate = value[0]; this.queryParams.registrationBeginDate = value[0];
this.queryParams.registrationEndDate = value[1]; this.queryParams.registrationEndDate = value[1];
}else{
this.queryParams.registrationBeginDate = null;
this.queryParams.registrationEndDate = null;
} }
}, },
handleExport(){ handleExport(){
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
</el-form-item> </el-form-item>
<el-form-item label="部门" prop="purchaseDeptId"> <el-form-item label="部门" prop="purchaseDeptId">
<div style="width: 160px"> <div style="width: 210px">
<treeselect <treeselect
v-model="queryParams.purchaseDeptId" v-model="queryParams.purchaseDeptId"
:options="deptOptions" :options="deptOptions"
...@@ -206,6 +206,9 @@ ...@@ -206,6 +206,9 @@
if (value) { if (value) {
this.queryParams.applyBeginTime = value[0]; this.queryParams.applyBeginTime = value[0];
this.queryParams.applyEndTime = value[1]; this.queryParams.applyEndTime = value[1];
}else{
this.queryParams.applyBeginTime = null;
this.queryParams.applyEndTime = null;
} }
}, },
changeTab(tabNum){ changeTab(tabNum){
......
...@@ -180,6 +180,9 @@ ...@@ -180,6 +180,9 @@
if (value) { if (value) {
this.queryParams.applyBeginTime = value[0]; this.queryParams.applyBeginTime = value[0];
this.queryParams.applyEndTime = value[1]; this.queryParams.applyEndTime = value[1];
}else{
this.queryParams.applyBeginTime = null;
this.queryParams.applyEndTime = null;
} }
}, },
changeTab(tabNum){ changeTab(tabNum){
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
</el-form-item> </el-form-item>
<el-form-item label="卖方部门" prop="applyDeptId" v-if="tab == '1'"> <el-form-item label="卖方部门" prop="applyDeptId" v-if="tab == '1'">
<div style="width: 160px"> <div style="width: 190px">
<treeselect <treeselect
v-model="queryParams.applyDeptId" v-model="queryParams.applyDeptId"
:options="deptOptions" :options="deptOptions"
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
</el-form-item> </el-form-item>
<el-form-item label="买方部门" prop="tradeDeptId" v-if="tab == '0'"> <el-form-item label="买方部门" prop="tradeDeptId" v-if="tab == '0'">
<div style="width: 160px"> <div style="width: 190px">
<treeselect <treeselect
v-model="queryParams.tradeDeptId" v-model="queryParams.tradeDeptId"
:options="deptOptions" :options="deptOptions"
...@@ -218,6 +218,9 @@ ...@@ -218,6 +218,9 @@
if (value) { if (value) {
this.queryParams.createBeginTime = value[0]; this.queryParams.createBeginTime = value[0];
this.queryParams.createEndTime = value[1]; this.queryParams.createEndTime = value[1];
}else{
this.queryParams.createBeginTime = null;
this.queryParams.createEndTime = null;
} }
}, },
//导出 //导出
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
</el-form-item> </el-form-item>
<el-form-item label="卖方部门" prop="applyDeptId" v-if="tab == '1'"> <el-form-item label="卖方部门" prop="applyDeptId" v-if="tab == '1'">
<div style="width: 160px"> <div style="width: 200px">
<treeselect <treeselect
v-model="queryParams.applyDeptId" v-model="queryParams.applyDeptId"
:options="deptOptions" :options="deptOptions"
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
</el-form-item> </el-form-item>
<el-form-item label="买方部门" prop="tradeDeptId" v-if="tab == '0'"> <el-form-item label="买方部门" prop="tradeDeptId" v-if="tab == '0'">
<div style="width: 160px"> <div style="width: 200px">
<treeselect <treeselect
v-model="queryParams.tradeDeptId" v-model="queryParams.tradeDeptId"
:options="deptOptions" :options="deptOptions"
...@@ -212,6 +212,9 @@ ...@@ -212,6 +212,9 @@
if (value) { if (value) {
this.queryParams.createBeginTime = value[0]; this.queryParams.createBeginTime = value[0];
this.queryParams.createEndTime = value[1]; this.queryParams.createEndTime = value[1];
}else{
this.queryParams.createBeginTime = null;
this.queryParams.createEndTime = null;
} }
}, },
//导出 //导出
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment