刘翔宇-旅管家 4 years ago
parent 45c7a785ea
commit 4d93802cee

@ -43,7 +43,7 @@
</xy-table> </xy-table>
<div style="display: flex;justify-content: flex-end;"> <div style="display: flex;justify-content: flex-end;">
<Page :total="total" show-elevator @on-change="pageChange" /> <Page :total="total" show-elevator @on-change="pageChange" show-sizer @on-page-size-change="pageSizeChange" />
</div> </div>
<!-- 新增--> <!-- 新增-->
@ -330,6 +330,7 @@
totalMoney: 0, totalMoney: 0,
total: 0, total: 0,
pageIndex: 1, pageIndex: 1,
pageSize:10,
table: [{ table: [{
label: "项目名称", label: "项目名称",
prop: 'name', prop: 'name',
@ -479,6 +480,11 @@
this.pageIndex = e this.pageIndex = e
this.getBudgets() this.getBudgets()
}, },
pageSizeChange(e){
this.pageSize = e
this.pageIndex = 1
this.getBudgets()
},
// //
getDepartment() { getDepartment() {
listdeptNoAuth().then(res => { listdeptNoAuth().then(res => {
@ -488,7 +494,7 @@
// //
getBudgets() { getBudgets() {
getBudget({ getBudget({
page_size: 10, page_size: this.pageSize ,
page: this.pageIndex, page: this.pageIndex,
year: this.select.year, year: this.select.year,
type: this.select.type, type: this.select.type,

@ -42,7 +42,7 @@
</xy-table> </xy-table>
<div style="display: flex;justify-content: flex-end;"> <div style="display: flex;justify-content: flex-end;">
<Page :total="total" show-elevator @on-change="pageChange" /> <Page :total="total" show-elevator @on-change="pageChange" show-sizer @on-page-size-change="pageSizeChange" />
</div> </div>
</div> </div>
</template> </template>
@ -111,6 +111,7 @@
totalMoney: 0, totalMoney: 0,
total: 0, total: 0,
pageIndex: 1, pageIndex: 1,
pageSize: 10,
table: [{ table: [{
label: "项目名称", label: "项目名称",
prop: 'name', prop: 'name',
@ -224,7 +225,11 @@
}) })
return sums return sums
}, },
pageSizeChange(e) {
this.pageIndex = 1;
this.pageSize = e;
this.getBudgets()
},
// //
pageChange(e) { pageChange(e) {
this.pageIndex = e this.pageIndex = e
@ -239,7 +244,7 @@
// //
getBudgets() { getBudgets() {
getBudget({ getBudget({
page_size: 10, page_size: this.pageSize,
page: this.pageIndex, page: this.pageIndex,
year: this.select.year, year: this.select.year,
type: this.select.type, type: this.select.type,

@ -103,7 +103,7 @@
</div> </div>
</div> </div>
</template> </template>
<template v-slot:date> <template v-slot:date v-if="adminEdit">
<div class="xy-table-item"> <div class="xy-table-item">
<div class="xy-table-item-label">合同签订日期 <div class="xy-table-item-label">合同签订日期
</div> </div>

@ -224,7 +224,7 @@
</xy-table> </xy-table>
<div style="display: flex;justify-content: flex-end;"> <div style="display: flex;justify-content: flex-end;">
<Page :total="total" show-elevator @on-change="pageChange" /> <Page :total="total" show-elevator @on-change="pageChange" show-sizer @on-page-size-change="pageSizeChange" />
</div> </div>
<!-- 新增合同 --> <!-- 新增合同 -->
@ -492,6 +492,7 @@
keyword: '', keyword: '',
showDatePicker: '', showDatePicker: '',
pageIndex: 1, pageIndex: 1,
pageSize: 10,
startDate: "", startDate: "",
endDate: "", endDate: "",
type: "", type: "",
@ -1288,12 +1289,17 @@
number: 'purchase_type' number: 'purchase_type'
})).detail })).detail
}, },
pageSizeChange(e) {
this.select.pageSize = e;
this.select.pageIndex = 1;
this.getContracts();
},
// //
async getContracts() { async getContracts() {
const res = await getContract({ const res = await getContract({
page_size: 10, page_size: this.select.pageSize,
page: this.select.pageIndex, page: this.select.pageIndex,
is_auth: 1, is_auth: 1,
...this.select ...this.select

@ -8,8 +8,8 @@
<span style="padding: 0 6px;word-break: keep-all;"> <span style="padding: 0 6px;word-break: keep-all;">
付款计划日期 付款计划日期
</span> </span>
<DatePicker :value="[select.start,select.end]" placeholder="请选择日期" placement="bottom-start" style="width: 200px" <DatePicker :value="[select.start,select.end]" placeholder="请选择日期" placement="bottom-start"
type="daterange" @on-change="datePick"></DatePicker> style="width: 200px" type="daterange" @on-change="datePick"></DatePicker>
</div> </div>
<div> <div>
@ -29,10 +29,14 @@
<xy-table :list="list" :table-item="table" @delete="deleteContractSign" <xy-table :list="list" :table-item="table" @delete="deleteContractSign"
@editor="(row)=>{$refs['detailContractSign'].planId = row.id;$refs['detailContractSign'].isShow = true}"></xy-table> @editor="(row)=>{$refs['detailContractSign'].planId = row.id;$refs['detailContractSign'].isShow = true}">
<template v-slot:btns v-if="type==0">
</template>
</xy-table>
<div style="display: flex;justify-content: flex-end;"> <div style="display: flex;justify-content: flex-end;">
<Page :total="total" show-elevator/> <Page :total="total" @on-change="pageChange" show-elevator show-sizer @on-page-size-change="pageSizeChange" />
</div> </div>
<detailContractSign ref="detailContractSign" @editorSuccess="getSignPlan"></detailContractSign> <detailContractSign ref="detailContractSign" @editorSuccess="getSignPlan"></detailContractSign>
@ -40,9 +44,16 @@
</template> </template>
<script> <script>
import {getContractSign, delContractSign} from "@/api/contractSign/contractSign" import {
import {parseTime} from "@/utils" getContractSign,
import {Message} from "element-ui"; delContractSign
} from "@/api/contractSign/contractSign"
import {
parseTime
} from "@/utils"
import {
Message
} from "element-ui";
import detailContractSign from "@/views/contract/components/detailContractSign"; import detailContractSign from "@/views/contract/components/detailContractSign";
@ -56,12 +67,12 @@ export default {
start: `${new Date().getFullYear()}-${new Date().getMonth() + 1}-${new Date().getDate()}`, start: `${new Date().getFullYear()}-${new Date().getMonth() + 1}-${new Date().getDate()}`,
end: `${new Date().getFullYear()}-${new Date().getMonth() + 2}-${new Date().getDate()}`, end: `${new Date().getFullYear()}-${new Date().getMonth() + 2}-${new Date().getDate()}`,
pageIndex: 1, pageIndex: 1,
keyword: '' keyword: '',
is_auth: 1,
}, },
total: 0, total: 0,
list: [], list: [],
table: [ table: [{
{
prop: 'contract.name', prop: 'contract.name',
label: '项目名称', label: '项目名称',
width: 170, width: 170,
@ -123,20 +134,27 @@ export default {
} }
}, },
methods: { methods: {
pageSizeChange(e) {
this.select.pageSize = e;
this.select.pageIndex = 1;
this.getSignPlan();
},
async getSignPlan() { async getSignPlan() {
const res = await getContractSign({ const res = await getContractSign({
page_size: 10, page_size: this.select.pageSize,
page: this.select.pageIndex, page: this.select.pageIndex,
keyword: this.select.keyword, keyword: this.select.keyword,
start_date: this.select.start, start_date: this.select.start,
end_date: this.select.end, end_date: this.select.end,
is_auth:1 is_auth: this.select.is_auth
}) })
this.total = res.total this.total = res.total
this.list = res.data this.list = res.data
}, },
deleteContractSign(row) { deleteContractSign(row) {
delContractSign({id: row.id}).then(res => { delContractSign({
id: row.id
}).then(res => {
this.getSignPlan() this.getSignPlan()
Message({ Message({
type: 'success', type: 'success',
@ -155,6 +173,10 @@ export default {
}, },
mounted() { mounted() {
this.getSignPlan() this.getSignPlan()
},
created() {
let type = parseInt(this.$route.path.split("_")[1]);
this.type = this.select.is_auth = type;
} }
} }
</script> </script>

@ -5,15 +5,24 @@
<slot> <slot>
<span style="padding: 0 6px;word-break: keep-all;">创建日期</span> <span style="padding: 0 6px;word-break: keep-all;">创建日期</span>
<span> <span>
<DatePicker :value="selectDate" placeholder="请选择日期" type="date" placement="bottom-start" style="width: 180px" @on-change="(e)=>selectDate = e"></DatePicker> <DatePicker :value="selectDate" placeholder="请选择日期" type="date" placement="bottom-start" style="width: 180px"
@on-change="(e)=>selectDate = e"></DatePicker>
</span> </span>
<span style="padding: 0 6px;word-break: keep-all;">关键字</span> <span style="padding: 0 6px;word-break: keep-all;">关键字</span>
<span> <span>
<Input v-model="keywords" placeholder="请输入关键字" style="width: 180px"></Input> <Input v-model="keywords" placeholder="请输入关键字" style="width: 180px"></Input>
</span> </span>
<span style="padding: 0 6px;word-break: keep-all;">
<Button type="primary" style="margin-left: 10px" ghost @click="contractId = '',pageIndex = 1,keywords = '',selectDate = ''">重置</Button> 状态
</span>
<Select v-model="status" clearable placeholder="请选择" style="width:100px;">
<Option v-for="item in [{label:'待审核',value:0},{label:'已审核',value:1}]" :key="item.value" :value="item.value">
{{ item.label }}
</Option>
</Select>
<Button type="primary" style="margin-left: 10px" ghost
@click="contractId = '',pageIndex = 1,keywords = '',selectDate = ''">重置</Button>
<Button type="primary" style="margin-left: 10px" @click="getFundLogs"></Button> <Button type="primary" style="margin-left: 10px" @click="getFundLogs"></Button>
</slot> </slot>
</lx-header> </lx-header>
@ -22,26 +31,23 @@
<template v-slot:btns> <template v-slot:btns>
<el-table-column label="操作" fixed="right" width="200" header-align="center"> <el-table-column label="操作" fixed="right" width="200" header-align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<template v-if="scope.row.status === 0"> <template v-if="scope.row.status === 0&&type==1">
<Poptip <Poptip placement="bottom" confirm :transfer="true" title="确认要删除吗" @on-ok="deleteFundLog(scope.row)">
placement="bottom"
confirm
:transfer="true"
title="确认要删除吗"
@on-ok="deleteFundLog(scope.row)">
<Button size="small" type="error" style="margin-left: 10px;margin-bottom: 4px" ghost>删除</Button> <Button size="small" type="error" style="margin-left: 10px;margin-bottom: 4px" ghost>删除</Button>
</Poptip> </Poptip>
<Button size="small" type="primary" style="margin-left: 10px;margin-bottom: 4px" @click="$refs['detailPaymentRegistration'].getFundLog(scope.row.id),$refs['detailPaymentRegistration'].isShow = true">编辑</Button> <Button size="small" type="primary" style="margin-left: 10px;margin-bottom: 4px"
@click="$refs['detailPaymentRegistration'].getFundLog(scope.row.id),$refs['detailPaymentRegistration'].isShow = true">编辑</Button>
</template> </template>
<Button size="small" type="primary" style="margin-left: 10px;margin-bottom: 4px" @click="$refs['printRegistration'].getDetailFundLog(scope.row.id),$refs['printRegistration'].isShow = true">打印</Button> <Button size="small" type="primary" style="margin-left: 10px;margin-bottom: 4px"
@click="$refs['printRegistration'].getDetailFundLog(scope.row.id),$refs['printRegistration'].isShow = true">打印</Button>
</template> </template>
</el-table-column> </el-table-column>
</template> </template>
</xy-table> </xy-table>
<div style="display: flex;justify-content: flex-end;"> <div style="display: flex;justify-content: flex-end;">
<Page :total="total" show-elevator @on-change="pageChange"/> <Page :total="total" show-elevator @on-change="pageChange" show-sizer @on-page-size-change="pageSizeChange" />
</div> </div>
<printRegistration ref="printRegistration"></printRegistration> <printRegistration ref="printRegistration"></printRegistration>
@ -51,9 +57,16 @@
</template> </template>
<script> <script>
import {getFundLog,delFundLog} from "@/api/paymentRegistration/fundLog" import {
import {parseTime} from "@/utils" getFundLog,
import {Message} from "element-ui"; delFundLog
} from "@/api/paymentRegistration/fundLog"
import {
parseTime
} from "@/utils"
import {
Message
} from "element-ui";
import printRegistration from "./components/printRegistration"; import printRegistration from "./components/printRegistration";
import detailPaymentRegistration from "./components/detailPaymentRegistration"; import detailPaymentRegistration from "./components/detailPaymentRegistration";
@ -70,10 +83,12 @@ export default {
contractId: '', contractId: '',
total: 0, total: 0,
pageIndex: 1, pageIndex: 1,
table:[ pageSize: 10,
{ is_auth: 1,
status: "",
table: [{
label: "项目名称", label: "项目名称",
minWidth: 150, minWidth: 250,
prop: 'contract.name', prop: 'contract.name',
align: 'left', align: 'left',
fixed: 'left' fixed: 'left'
@ -110,6 +125,14 @@ export default {
else return '已审核' else return '已审核'
} }
}, },
{
label: "次数",
prop: "pay_count",
width: 95,
formatter: (cell, data, value) => {
return value + 1;
}
},
{ {
label: "是否为最后一笔", label: "是否为最后一笔",
prop: "is_end", prop: "is_end",
@ -132,7 +155,7 @@ export default {
}, },
{ {
label: "备注", label: "备注",
minWidth: 160, minWidth: 460,
prop: 'remark', prop: 'remark',
align: 'left' align: 'left'
}, },
@ -148,19 +171,34 @@ export default {
} }
}, },
methods: { methods: {
pageSizeChange(e) {
this.pageSize = e;
this.pageIndex = 1;
this.getFundLogs()
},
pageChange(e) { pageChange(e) {
this.pageIndex = e this.pageIndex = e
this.getFundLogs() this.getFundLogs()
}, },
async getFundLogs() { async getFundLogs() {
const res = await getFundLog({page_size:10,page:this.pageIndex,contract_id:this.contractId,keyword:this.keywords,date:this.selectDate}) const res = await getFundLog({
page_size: this.pageSize,
page: this.pageIndex,
contract_id: this.contractId,
keyword: this.keywords,
date: this.selectDate,
is_auth: this.selectDate,
status: this.status,
})
this.list = res.data this.list = res.data
this.total = res.total this.total = res.total
}, },
deleteFundLog(row) { deleteFundLog(row) {
delFundLog({id:row.id}).then(res=>{ delFundLog({
id: row.id
}).then(res => {
Message({ Message({
type: 'success', type: 'success',
message: '操作成功' message: '操作成功'
@ -174,6 +212,10 @@ export default {
this.getFundLogs() this.getFundLogs()
}, },
created() {
let type = parseInt(this.$route.path.split("_")[1]);
this.type = this.is_auth = type;
}
} }
</script> </script>

@ -175,7 +175,7 @@
</xy-table> </xy-table>
<div style="display: flex;justify-content: flex-end;"> <div style="display: flex;justify-content: flex-end;">
<Page :total="total" show-elevator @on-change="pageChange" /> <Page :total="total" show-elevator @on-change="pageChange" show-sizer @on-page-size-change="pageSizeChange" />
</div> </div>
<!-- 新增合同 --> <!-- 新增合同 -->
@ -1229,12 +1229,17 @@
number: 'purchase_type' number: 'purchase_type'
})).detail })).detail
}, },
pageSizeChange(e) {
this.select.pageSize = e;
this.select.pageIndex = 1;
this.getContracts();
},
// //
async getContracts() { async getContracts() {
const res = await getContract({ const res = await getContract({
page_size: 10, page_size: this.select.pageSize,
page: this.select.pageIndex, page: this.select.pageIndex,
...this.select ...this.select
}) })

@ -81,7 +81,7 @@
</xy-table> </xy-table>
<div style="display: flex;justify-content: flex-end;"> <div style="display: flex;justify-content: flex-end;">
<Page :total="total" show-elevator @on-change="pageChange" /> <Page :total="total" show-elevator @on-change="pageChange" show-sizer @on-page-size-change="pageSizeChange" />
</div> </div>
<examineRegistration ref="examineRegistration" @refresh="getFundLogs"></examineRegistration> <examineRegistration ref="examineRegistration" @refresh="getFundLogs"></examineRegistration>
@ -165,6 +165,7 @@
list: [], list: [],
total: 0, total: 0,
pageIndex: 1, pageIndex: 1,
pageSize: 10,
table: [{ table: [{
label: "项目名称", label: "项目名称",
minWidth: 300, minWidth: 300,
@ -226,6 +227,15 @@
else return '已审核' else return '已审核'
} }
}, },
{
label: "次数",
prop: "pay_count",
width: 95,
formatter: (cell, data, value) => {
return value + 1;
}
},
{ {
label: "最后一笔", label: "最后一笔",
prop: "is_end", prop: "is_end",
@ -356,6 +366,11 @@
} }
this.isShowPlanForSearch = false this.isShowPlanForSearch = false
}, },
pageSizeChange(e) {
this.pageSize = e
this.pageIndex = 1
this.getFundLogs()
},
pageChange(e) { pageChange(e) {
this.pageIndex = e this.pageIndex = e
this.getFundLogs() this.getFundLogs()
@ -366,7 +381,7 @@
}, },
async getFundLogs(is_export) { async getFundLogs(is_export) {
await getFundLog({ await getFundLog({
page_size: 10, page_size: this.pageSize,
page: this.pageIndex, page: this.pageIndex,
keyword: this.keyword, keyword: this.keyword,
date: this.selectDate, date: this.selectDate,

Loading…
Cancel
Save