Commit cb7dbd2b authored by godwithdh's avatar godwithdh

经营分析

parent 191472a5
...@@ -3,7 +3,8 @@ ...@@ -3,7 +3,8 @@
// see http://vuejs-templates.github.io/webpack for documentation. // see http://vuejs-templates.github.io/webpack for documentation.
const path = require('path') const path = require('path')
let host = 'https://weixin.huansi.net/apiproxy/huansi/Mall'; // let host = 'https://weixin.huansi.net/apiproxy/huansi/Mall';
let host = `https://weixin.huansi.net/apiproxy/huansi/TIP_Test`;
module.exports = { module.exports = {
dev: { dev: {
...@@ -11,6 +12,12 @@ module.exports = { ...@@ -11,6 +12,12 @@ module.exports = {
assetsSubDirectory: 'static', assetsSubDirectory: 'static',
assetsPublicPath: '/', assetsPublicPath: '/',
proxyTable: { proxyTable: {
"/TIP_Test":{
target: "https://weixin.huansi.net/apiproxy/huansi/TIP_Test",
pathRewrite: { '^/TIP_Test': '' },
changeOrigin: true,
secure: true
},
'/api': { '/api': {
target: host, target: host,
pathRewrite: { '^/api': '' }, pathRewrite: { '^/api': '' },
......
...@@ -54,6 +54,6 @@ AsInst.interceptors.response.use(response => { ...@@ -54,6 +54,6 @@ AsInst.interceptors.response.use(response => {
// Message.error('后端服务请求404错误'); // Message.error('后端服务请求404错误');
} }
//请求错误时做些事 //请求错误时做些事
return Promise.reject(error); return Promise.reject(error.response);
}); });
export default AsInst; export default AsInst;
...@@ -12,7 +12,7 @@ function urlFun(name){ ...@@ -12,7 +12,7 @@ function urlFun(name){
/** /**
* 默认公司 * 默认公司
*/ */
// default:`http://192.168.4.34:5001`, // default:`http://192.168.4.51:5001`,
// default:`https://weixin.huansi.net/apiproxy/huansi/hszh_HSFabricTradeTest`, // default:`https://weixin.huansi.net/apiproxy/huansi/hszh_HSFabricTradeTest`,
// default:`https://weixin.huansi.net/apiproxy/huansi/service/proxy/${userID}`, // default:`https://weixin.huansi.net/apiproxy/huansi/service/proxy/${userID}`,
// default:`https://weixin.huansi.net/apiproxy/huansi/Tip`, // default:`https://weixin.huansi.net/apiproxy/huansi/Tip`,
......
...@@ -154,7 +154,7 @@ export default { ...@@ -154,7 +154,7 @@ export default {
} }
}, },
more(val,tabIndex){ more(val,tabIndex){
this.$router.push({name:"financeDetail",params:{mode:val,tabIndex:tabIndex}}) this.$router.push({name:"financeDetail",params:{mode:val,tabIndex:tabIndex,start:this.start,end:this.end}})
}, },
}, },
} }
......
...@@ -32,7 +32,9 @@ ...@@ -32,7 +32,9 @@
display:flex; display:flex;
>span{ >span{
&:first-child{ &:first-child{
padding: 10px 5px 10px 20px; padding: 10px 5px;
min-width: 30px;
text-align: right;
font-weight: 600; font-weight: 600;
} }
&:nth-child(2n){ &:nth-child(2n){
...@@ -67,9 +69,6 @@ ...@@ -67,9 +69,6 @@
<tab-item>实付账款</tab-item> <tab-item>实付账款</tab-item>
</template> </template>
</tab> </tab>
<div>
<searchComponent :search="search"/>
</div>
<div class="search"> <div class="search">
<input placeholder="请输入客户简称/名称进行搜索" v-model="searchValue"/> <input placeholder="请输入客户简称/名称进行搜索" v-model="searchValue"/>
</div> </div>
...@@ -90,21 +89,16 @@ ...@@ -90,21 +89,16 @@
<script> <script>
import Util from '@/libs/util.js' import Util from '@/libs/util.js'
import { Tab, TabItem } from 'vux' import { Tab, TabItem } from 'vux'
import searchComponent from "@/components/search"
var inputIng=false var inputIng=false
var searchIng=false var searchIng=false
export default { export default {
name:"FinanceDetail", name:"FinanceDetail",
components:{Tab, TabItem,searchComponent}, components:{Tab, TabItem},
data(){ data(){
return{ return{
tabIndex:0, tabIndex:0,
search:{
dBeginDate:Util.dateFormat(new Date(),'yyyy-MM-01'),
dEndDate:Util.dateFormat(new Date(),'yyyy-MM-dd'),
},
searchValue:"", searchValue:"",
balance:0, balance:0,
list:[], list:[],
...@@ -112,11 +106,6 @@ export default { ...@@ -112,11 +106,6 @@ export default {
}, },
activated(){ activated(){
this.tabIndex=this.$route.params.tabIndex this.tabIndex=this.$route.params.tabIndex
this.global.$off('searchData');
//查询条件触发加载
this.global.$on('searchData',async ()=>{
await this.searchList();
});
this.$nextTick(()=>{ this.$nextTick(()=>{
this.searchList(); this.searchList();
...@@ -137,8 +126,8 @@ export default { ...@@ -137,8 +126,8 @@ export default {
}, },
async searchList(){ async searchList(){
var data=[ var data=[
{key:"begin_date",value:this.search.dBeginDate}, {key:"begin_date",value:Util.dateFormat(this.$route.params.start,"yyyy-MM-dd")},
{key:"end_date",value:this.search.dEndDate}, {key:"end_date",value:Util.dateFormat(this.$route.params.end,"yyyy-MM-dd 23:59")},
{key:"url",value:"Financial Summary Dtl"}, {key:"url",value:"Financial Summary Dtl"},
{key:"sType",value:(this.$route.params.mode==1?'应':'实')+(this.tabIndex==0?'收':'付')} {key:"sType",value:(this.$route.params.mode==1?'应':'实')+(this.tabIndex==0?'收':'付')}
] ]
......
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