Commit 4abfbf32 authored by 黄奎's avatar 黄奎

页面修改

parent 9e23d5b6
...@@ -11,8 +11,9 @@ ...@@ -11,8 +11,9 @@
<div class="content"> <div class="content">
<div style="display: flex;flex-direction: row;align-items: center"> <div style="display: flex;flex-direction: row;align-items: center">
<span>供应商</span> <span>供应商</span>
<el-select class="w150" style="margin-left: 10px;" v-model="SupplierId" size="small" placeholder="请选择" <el-select class="w150" style="margin-left: 10px;" v-model="msg.SupplierId" filterable size="small" placeholder="请选择"
@change='getDateList'> @change="msg.pageIndex=1,getDateList()">
<el-option :key="0" :value="0" label="全部"></el-option>
<el-option v-for="item in options" :key="item.ID" :label="item.Name" :value="item.ID"> <el-option v-for="item in options" :key="item.ID" :label="item.Name" :value="item.ID">
</el-option> </el-option>
</el-select> </el-select>
...@@ -27,7 +28,7 @@ ...@@ -27,7 +28,7 @@
<div style="padding: 20px;background: #fff;margin-top: 10px"> <div style="padding: 20px;background: #fff;margin-top: 10px">
<el-table :data="tableData" v-loading="loading" header-cell-class-name="headClass" style="width: 100%" border> <el-table :data="tableData" v-loading="loading" header-cell-class-name="headClass" style="width: 100%" border>
<el-table-column label="商品信息" align="center"> <el-table-column label="商品信息" align="center">
<el-table-column label="订单号" prop="OrderNo" width="200" fixed></el-table-column> <el-table-column label="订单号" prop="OrderNo" width="200" fixed="left"></el-table-column>
<el-table-column label="规格" width="300"> <el-table-column label="规格" width="300">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.GoodsName}}{{scope.row.Specification}} {{scope.row.GoodsName}}{{scope.row.Specification}}
...@@ -89,7 +90,7 @@ ...@@ -89,7 +90,7 @@
StartDate: '', StartDate: '',
EndDate: '', EndDate: '',
}, },
SupplierId: "",
options: [], options: [],
tableData: [], tableData: [],
count: 0, count: 0,
...@@ -107,14 +108,8 @@ ...@@ -107,14 +108,8 @@
this.msg.StartDate = this.value[0]; this.msg.StartDate = this.value[0];
this.msg.EndDate = this.value[1]; this.msg.EndDate = this.value[1];
} }
if (this.SupplierId != '') {
this.msg.SupplierId = this.SupplierId
} else {
this.msg.SupplierId = 0
}
this.loading = true; this.loading = true;
this.mallapipost("/api/LiveHouse/GetOrderProfitLossList", this.msg, res => {
this.mallapipost("/api/Statistics/GetOrderProfitLossList", this.msg, res => {
this.loading = false; this.loading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.tableData = res.data.data.pageData; this.tableData = res.data.data.pageData;
...@@ -126,7 +121,7 @@ ...@@ -126,7 +121,7 @@
}) })
}, },
getSupplierList() { //获取供应商接口 getSupplierList() { //获取供应商接口
this.mallapipost("/api/Supplier/GetSupplierAllList", {}, res => { this.mallapipost("/api/LiveHouse/GetSupplierAllList", {}, res => {
this.loading = false; this.loading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.options = res.data.data; this.options = res.data.data;
...@@ -141,7 +136,7 @@ ...@@ -141,7 +136,7 @@
} }
msg = JSON.parse(JSON.stringify(msg)); msg = JSON.parse(JSON.stringify(msg));
this.GetMallLocalFile( this.GetMallLocalFile(
"/api/Statistics/GetOrderProfitLossExcel", "/api/LiveHouse/GetOrderProfitLossExcel",
msg, msg,
"损益核算.xls" "损益核算.xls"
); );
...@@ -156,6 +151,7 @@ ...@@ -156,6 +151,7 @@
this.msg.StartDate = ''; this.msg.StartDate = '';
this.msg.EndDate = ''; this.msg.EndDate = '';
} }
this.msg.pageIndex=1;
this.getDateList(); this.getDateList();
}, },
} }
......
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