Commit 6918966f authored by 黄奎's avatar 黄奎
parents 1eeb9e1b 56c7a5ee
...@@ -132,7 +132,7 @@ ...@@ -132,7 +132,7 @@
<div v-show="tableShow3" class="sanjiao-box _padding_20_15"> <div v-show="tableShow3" class="sanjiao-box _padding_20_15">
<table border="1" class="czBillModule _border_color_b Receipt_table" bordercolor="#c94052" style="border-collapse:collapse;width: 100%;" v-loading='loading'> <table border="1" class="czBillModule _border_color_b Receipt_table" bordercolor="#c94052" style="border-collapse:collapse;width: 100%;" v-loading='loading'>
<tr> <tr>
<th width="50">编号</th> <th width="90">编号</th>
<th>名称</th> <th>名称</th>
</tr> </tr>
......
...@@ -185,6 +185,17 @@ ...@@ -185,6 +185,17 @@
</td> </td>
</tr> </tr>
</table> </table>
<div style="text-align:center">
<el-pagination
background
@current-change="handleCurrentChange"
v-if="dataList.length>0"
:current-page.sync="currentPage"
layout="total,prev, pager, next, jumper"
:page-size="msg.pageSize"
:total="total"
></el-pagination>
</div>
<p class="sfd_tit clearfix">付款单 <p class="sfd_tit clearfix">付款单
<!-- <input type="button" v-if="(item.isOwn ? item.isOwn : item.IsOwn) ===1 && (item.orderState ? item.orderState : item.OrderState) !== '4' && (item.orderState ? item.orderState : item.OrderState) !== '3'" value="新增付款" class="normalBtn" @click="addFinancialOrder(2)"> --> <!-- <input type="button" v-if="(item.isOwn ? item.isOwn : item.IsOwn) ===1 && (item.orderState ? item.orderState : item.OrderState) !== '4' && (item.orderState ? item.orderState : item.OrderState) !== '3'" value="新增付款" class="normalBtn" @click="addFinancialOrder(2)"> -->
</p> </p>
...@@ -273,6 +284,17 @@ ...@@ -273,6 +284,17 @@
</td> </td>
</tr> </tr>
</table> </table>
<div style="text-align:center">
<el-pagination
background
@current-change="handleCurrentChange2"
v-if="dataListP.length>0"
:current-page.sync="currentPage2"
layout="total,prev, pager, next, jumper"
:page-size="msg2.pageSize"
:total="total2"
></el-pagination>
</div>
</div> </div>
</div> </div>
</template> </template>
...@@ -280,6 +302,10 @@ ...@@ -280,6 +302,10 @@
export default { export default {
data() { data() {
return { return {
currentPage:1,
currentPage2:1,
total:0,
total2:0,
orderId: 0, orderId: 0,
dataList: [], dataList: [],
dataListP: [], dataListP: [],
...@@ -289,10 +315,16 @@ export default { ...@@ -289,10 +315,16 @@ export default {
tcnum: '', tcnum: '',
msg:{ msg:{
pageIndex: 1, pageIndex: 1,
pageSize: 999, pageSize: 15,
ReFinanceId:0, ReFinanceId:0,
Type:1, Type:1,
}, },
msg2:{
pageIndex: 1,
pageSize: 15,
ReFinanceId:0,
Type:2,
},
GetFinancLogList: [], GetFinancLogList: [],
LogLoading: true, LogLoading: true,
allMoney: 0, allMoney: 0,
...@@ -322,14 +354,19 @@ export default { ...@@ -322,14 +354,19 @@ export default {
goUrl: function (name, path, id ) { goUrl: function (name, path, id ) {
this.$router.push({ name: path, query: { id: id, blank: 'y', tab: name} }); this.$router.push({ name: path, query: { id: id, blank: 'y', tab: name} });
}, },
getList: function (type) { handleCurrentChange(val) {
this.msg.Type = type; this.msg.pageIndex = val;
this.loading = true; this.getList();
},
handleCurrentChange2(val) {
this.msg2.pageIndex = val;
this.getList2();
},
getList(){
this.apipost('Financial_get_GetECommerceGoodsFinancePageList', this.msg, res=>{ this.apipost('Financial_get_GetECommerceGoodsFinancePageList', this.msg, res=>{
this.loading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
let data = res.data.data.pageData; let data = res.data.data.pageData;
if (type===1) {
this.allMoney = 0; this.allMoney = 0;
this.shiMoney = 0; this.shiMoney = 0;
data.forEach(x=>{ data.forEach(x=>{
...@@ -337,9 +374,19 @@ export default { ...@@ -337,9 +374,19 @@ export default {
this.shiMoney += (x.PayMoney+x.Fee) this.shiMoney += (x.PayMoney+x.Fee)
}) })
this.dataList = data; this.dataList = data;
this.getList(2) this.total=res.data.data.count;
} else { } else {
this.loading = false; this.loading = false;
this.$message.error(res.data.message);
}
}, null)
},
getList2() {
this.loading = true;
this.apipost('Financial_get_GetECommerceGoodsFinancePageList', this.msg2, res=>{
this.loading = false;
if (res.data.resultCode == 1) {
let data = res.data.data.pageData;
this.allMoneyP = 0; this.allMoneyP = 0;
this.shiMoneyP = 0; this.shiMoneyP = 0;
data.forEach(x=>{ data.forEach(x=>{
...@@ -349,8 +396,7 @@ export default { ...@@ -349,8 +396,7 @@ export default {
// } // }
}) })
this.dataListP = data; this.dataListP = data;
this.total2=res.data.data.count;
}
} else { } else {
this.loading = false; this.loading = false;
this.$message.error(res.data.message); this.$message.error(res.data.message);
...@@ -402,6 +448,7 @@ export default { ...@@ -402,6 +448,7 @@ export default {
}, mounted() { }, mounted() {
this.ReFinanceId=this.$route.query.ReFinanceId?this.$route.query.ReFinanceId:this.ReFinanceId; this.ReFinanceId=this.$route.query.ReFinanceId?this.$route.query.ReFinanceId:this.ReFinanceId;
this.msg.ReFinanceId=this.$route.query.ReFinanceId?this.$route.query.ReFinanceId:this.ReFinanceId; this.msg.ReFinanceId=this.$route.query.ReFinanceId?this.$route.query.ReFinanceId:this.ReFinanceId;
this.msg2.ReFinanceId=this.$route.query.ReFinanceId?this.$route.query.ReFinanceId:this.ReFinanceId;
this.userId = this.getLocalStorage().EmployeeId; this.userId = this.getLocalStorage().EmployeeId;
let obj = this.$route.query.item ? JSON.parse(this.$route.query.item) : '' let obj = this.$route.query.item ? JSON.parse(this.$route.query.item) : ''
this.item = obj this.item = obj
...@@ -409,7 +456,8 @@ export default { ...@@ -409,7 +456,8 @@ export default {
this.tcnum = obj.tcnum ? obj.tcnum : obj.TCNUM this.tcnum = obj.tcnum ? obj.tcnum : obj.TCNUM
this.tcid = obj.tcid ? obj.tcid : obj.TCID this.tcid = obj.tcid ? obj.tcid : obj.TCID
this.outBranchId = obj.outBranchId ? obj.outBranchId : obj.OutBranchId this.outBranchId = obj.outBranchId ? obj.outBranchId : obj.OutBranchId
this.getList(1) this.getList()
this.getList2()
this.getstaInfo(); this.getstaInfo();
} }
} }
......
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