|
|
|
@ -2,9 +2,7 @@
|
|
|
|
|
<a-spin :spinning="spinning">
|
|
|
|
|
<div class="selfTopSmall">
|
|
|
|
|
<div class="dataBox">
|
|
|
|
|
<a-icon type="left"/>
|
|
|
|
|
{{start_date}}至{{end_date}}
|
|
|
|
|
<a-icon type="right"/>
|
|
|
|
|
<DateChoose @flushDate="flushDate" :begin_date="begin_date" :end_date="end_date"></DateChoose>
|
|
|
|
|
</div>
|
|
|
|
|
<a-row type="flex" justify="space-bettwen">
|
|
|
|
|
<a-col :span="3">
|
|
|
|
@ -23,15 +21,19 @@
|
|
|
|
|
</template>
|
|
|
|
|
<script>
|
|
|
|
|
import {Icon, Row, Col, Spin, Table} from 'ant-design-vue';
|
|
|
|
|
import InterConfig from '../../interConfig';
|
|
|
|
|
import DateChoose from '../../../common/dateChoose.vue'
|
|
|
|
|
import interConfig from '../../interConfig';
|
|
|
|
|
import moment from 'moment';
|
|
|
|
|
import everyPartTitle from '../common/everyPartSlideTitle.vue'
|
|
|
|
|
export default{
|
|
|
|
|
data(){
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
bgLeft: true,
|
|
|
|
|
bgtitle: '领用物品统计',
|
|
|
|
|
start_date: 0,
|
|
|
|
|
end_date: 0,
|
|
|
|
|
begin_date: "",
|
|
|
|
|
end_date: "",
|
|
|
|
|
searchTime: "",
|
|
|
|
|
listScroll: this.StaticParams.scrollOption,
|
|
|
|
|
dataSource: [
|
|
|
|
|
{
|
|
|
|
@ -157,14 +159,41 @@
|
|
|
|
|
ASpin: Spin,
|
|
|
|
|
ATable: Table,
|
|
|
|
|
everyPartTitle,
|
|
|
|
|
DateChoose,
|
|
|
|
|
},
|
|
|
|
|
mounted(){
|
|
|
|
|
mounted() {
|
|
|
|
|
this.getGoodsByEveryday()
|
|
|
|
|
this.getNowTime();
|
|
|
|
|
// this.getGoodsBySupplies()
|
|
|
|
|
// this.getGoodsByPeople()
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
getGoodsByEveryday(){
|
|
|
|
|
flushDate(param) {
|
|
|
|
|
this.begin_date = param.beginDate;
|
|
|
|
|
this.end_date = param.endDate;
|
|
|
|
|
this.searchTime = this.begin_date + "|" + this.end_date;
|
|
|
|
|
},
|
|
|
|
|
getNowTime() {
|
|
|
|
|
this.InterfaceConfig.callInterface([{
|
|
|
|
|
url: interConfig.getNowTime.url,
|
|
|
|
|
params: {},
|
|
|
|
|
method: interConfig.getNowTime.method,
|
|
|
|
|
isTestLogin: interConfig.getNowTime.isTestLogin,
|
|
|
|
|
}], (result) => {
|
|
|
|
|
let resData = result[0].data;
|
|
|
|
|
if (result[0].status === 200) {
|
|
|
|
|
if (resData.code === 2000) {
|
|
|
|
|
let year = resData.data.year;
|
|
|
|
|
let month = resData.data.month;
|
|
|
|
|
let day = resData.data.day;
|
|
|
|
|
this.begin_date = moment(year + "-" + month + "-01");
|
|
|
|
|
this.end_date = moment(year + "-" + month + "-" + day);
|
|
|
|
|
this.searchTime = this.begin_date + "|" + this.end_date;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
getGoodsByEveryday() {
|
|
|
|
|
let param = {
|
|
|
|
|
person_id: this.BaseConfig.userInfo.person_id,//登录人ID
|
|
|
|
|
dept_id: this.BaseConfig.person_info_my.dep_id,//data_flag=2时必填
|
|
|
|
@ -179,10 +208,10 @@
|
|
|
|
|
method: InterConfig.getGoodsByEveryday.method,
|
|
|
|
|
isTestLogin: InterConfig.getGoodsByEveryday.isTestLogin,
|
|
|
|
|
}], (result) => {
|
|
|
|
|
console.log('本人表格数据', result)
|
|
|
|
|
// console.log('本人表格数据', result)
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
getGoodsBySupplies(){
|
|
|
|
|
getGoodsBySupplies() {
|
|
|
|
|
let param = {
|
|
|
|
|
person_id: this.BaseConfig.userInfo.person_id,//登录人ID
|
|
|
|
|
dept_id: this.BaseConfig.person_info_my.dep_id,//data_flag=2时必填
|
|
|
|
@ -197,10 +226,10 @@
|
|
|
|
|
method: InterConfig.getGoodsBySupplies.method,
|
|
|
|
|
isTestLogin: InterConfig.getGoodsBySupplies.isTestLogin,
|
|
|
|
|
}], (result) => {
|
|
|
|
|
console.log('本人表格数据', result)
|
|
|
|
|
// console.log('本人表格数据', result)
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
getGoodsByPeople(){
|
|
|
|
|
getGoodsByPeople() {
|
|
|
|
|
let param = {
|
|
|
|
|
person_id: this.BaseConfig.userInfo.person_id,//登录人ID
|
|
|
|
|
dept_id: this.BaseConfig.person_info_my.dep_id,//data_flag=2时必填
|
|
|
|
@ -215,7 +244,7 @@
|
|
|
|
|
method: InterConfig.getGoodsByPeople.method,
|
|
|
|
|
isTestLogin: InterConfig.getGoodsByPeople.isTestLogin,
|
|
|
|
|
}], (result) => {
|
|
|
|
|
console.log('本人表格数据', result)
|
|
|
|
|
// console.log('本人表格数据', result)
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
@ -225,10 +254,10 @@
|
|
|
|
|
.selfTopSmall {
|
|
|
|
|
position: relative;
|
|
|
|
|
.dataBox {
|
|
|
|
|
width: 200px;
|
|
|
|
|
width: 250px;
|
|
|
|
|
height: 30px;
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: -34px;
|
|
|
|
|
top: -42px;
|
|
|
|
|
color: #fff;
|
|
|
|
|
}
|
|
|
|
|
.score-list-div {
|
|
|
|
|