Commit df0c2c81 authored by 黄奎's avatar 黄奎

页面修改

parent a7d3c2da
...@@ -4,16 +4,10 @@ ...@@ -4,16 +4,10 @@
<ul class="user_time_picker"> <ul class="user_time_picker">
<li> <li>
<span> <span>
<em>{{$t('hotel.hotel_StartDate')}}</em> <em>月份</em>
<el-date-picker type="date" v-model="msg.StartDate" :picker-options="pickerBeginDateBefore" <el-date-picker v-model="msg.QMonthStr" type="month" value-format="yyyy-MM"
value-format="yyyy-MM-dd" placeholder></el-date-picker> :placeholder="$t('ground.xuanzenian')">
</span> </el-date-picker>
</li>
<li>
<span>
<em>{{$t('hotel.hotel_EndDate')}}</em>
<el-date-picker type="date" v-model="msg.EndDate" :picker-options="pickerBeginDateBefore"
value-format="yyyy-MM-dd" placeholder></el-date-picker>
</span> </span>
</li> </li>
<li> <li>
...@@ -60,7 +54,7 @@ ...@@ -60,7 +54,7 @@
</td> </td>
<td>{{subItem.SubtotalMoney}}</td> <td>{{subItem.SubtotalMoney}}</td>
<td> <td>
<template v-if="subItem.Frids!=''"> {{subItem.RMBMoney}}</template> <template v-if="subItem.Frids!=''"> {{subItem.RMBMoney}}</template>
</td> </td>
<td> <td>
{{subItem.Frids}} {{subItem.Frids}}
...@@ -84,8 +78,7 @@ ...@@ -84,8 +78,7 @@
return { return {
//请求 //请求
msg: { msg: {
StartDate: "", QMonthStr: "",
EndDate: "",
Supplier: 0, Supplier: 0,
PageIndex: 1, PageIndex: 1,
PageSize: 15, PageSize: 15,
...@@ -94,25 +87,8 @@ ...@@ -94,25 +87,8 @@
currentPage: 1, currentPage: 1,
total: 0, total: 0,
dataList: [], dataList: [],
//供应商 //供应商
SupplierList: [], SupplierList: [],
pickerBeginDateBefore: {
disabledDate: time => {
if (this.msg.EndDate == null) {
return false;
} else {
let endTime = new Date(this.msg.EndDate)
return endTime.getTime() < time.getTime()
}
}
},
pickerBeginDateAfter: {
disabledDate: time => {
let startTime = new Date(this.msg.StartDate)
return startTime.getTime() >= time.getTime()
}
},
} }
}, },
mounted() { mounted() {
...@@ -123,28 +99,15 @@ ...@@ -123,28 +99,15 @@
methods: { methods: {
//点击查询 //点击查询
getSearch() { getSearch() {
var isA, isB, isC if (this.msg.QMonthStr == '' || this.msg.QMonthStr == null) {
this.Error('请选择月份');
return;
}
if (this.msg.Supplier == 0) { if (this.msg.Supplier == 0) {
this.Error('请选择供应商'); this.Error('请选择供应商');
isA = false return;
} else {
isA = true;
}
if (this.msg.StartDate == '' || this.msg.StartDate == null) {
this.Error('请选择开始日期');
isB = false
} else {
isB = true;
}
if (this.msg.EndDate == '' || this.msg.EndDate == null) {
this.Error('请选择结束日期');
isC = false
} else {
isC = true;
}
if (isA && isB && isC) {
this.getList();
} }
this.getList();
}, },
//获取数据 //获取数据
getList() { getList() {
...@@ -154,7 +117,6 @@ ...@@ -154,7 +117,6 @@
res => { res => {
this.loading = false; this.loading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
console.log(res.data.data.pageData, 'resss');
this.dataList = res.data.data.pageData; this.dataList = res.data.data.pageData;
this.total = res.data.data.count this.total = res.data.data.count
} else { } else {
...@@ -171,7 +133,8 @@ ...@@ -171,7 +133,8 @@
// 获取供应商 // 获取供应商
initSupplier() { initSupplier() {
this.apipost("supplier_post_GetAllList", { this.apipost("supplier_post_GetAllList", {
Type: 1 Type: 1,
Country: 651, //日本供应商
}, res => { }, res => {
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
this.SupplierList = res.data.data; this.SupplierList = res.data.data;
......
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