|
@@ -1,964 +1,1088 @@
|
|
|
<!-- 库存报表 -->
|
|
|
<template>
|
|
|
- <div class="container">
|
|
|
- <Tabs :value="tabName" @on-click="tabClick">
|
|
|
- <TabPane label="盘盈亏单" name="1">
|
|
|
- <my-table ref="pykd" :data="data1" :columns="columns1" :table-filter="tableFilter1" :table-page="params1" @event-handle="eventHandle" @on-change="changePage"></my-table>
|
|
|
- </TabPane>
|
|
|
- <TabPane label="入库序时簿" name="2">
|
|
|
- <my-table ref="rkxsb" :data="data2" :columns="columns2" :table-filter="tableFilter2" :table-page="params2" @event-handle="eventHandle" @on-change="changePage"></my-table>
|
|
|
- </TabPane>
|
|
|
- <TabPane label="领料序时簿" name="3">
|
|
|
- <my-table ref="llsxb" :data="data3" :columns="columns3" :table-filter="tableFilter3" :table-page="params3" @event-handle="eventHandle" @on-change="changePage"></my-table>
|
|
|
- </TabPane>
|
|
|
- <TabPane label="物料收发汇总" name="4">
|
|
|
- <my-table ref="wlsfhz" :data="data4" :columns="columns4" :border="true" :table-filter="tableFilter4" @event-handle="eventHandle" :is-show-page="false" @on-change="changePage"></my-table>
|
|
|
- </TabPane>
|
|
|
- <TabPane label="物料月汇总" name="5">
|
|
|
- <my-table :data="data5" :columns="columns5" :border="true" :table-filter="tableFilter5" :table-page="params5" @event-handle="eventHandle" @on-change="changePage"></my-table>
|
|
|
- </TabPane>
|
|
|
- <TabPane label="物料进出信息" name="6">
|
|
|
- <my-table ref="table" :data="data6" :columns="columns6" :table-filter="tableFilter6" @event-handle="eventHandle" :is-show-page="false" @on-change="changePage"></my-table>
|
|
|
- </TabPane>
|
|
|
- </Tabs>
|
|
|
- <my-modal-material ref="materialModal" :multiple="true" v-model="show" @getselectedList="getselectedList"></my-modal-material>
|
|
|
- </div>
|
|
|
+ <div class="container">
|
|
|
+ <div>
|
|
|
+ <div style="overflow: hidden;">
|
|
|
+ <date-select v-model="params7" @change="selectTime"></date-select>
|
|
|
+ </div>
|
|
|
+ <div style="height:500px">
|
|
|
+ <tree-table :data="data7" arrow-icon-right="ios-arrow-forward" arrow-icon-down="ios-arrow-down" :Columns="columns2" bottom-line border>
|
|
|
+ </tree-table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <Tabs :value="tabName" @on-click="tabClick">
|
|
|
+ <TabPane label="盘盈亏单" name="1">
|
|
|
+ <my-table
|
|
|
+ ref="pykd"
|
|
|
+ :data="data1"
|
|
|
+ :columns="columns1"
|
|
|
+ :table-filter="tableFilter1"
|
|
|
+ :table-page="params1"
|
|
|
+ @event-handle="eventHandle"
|
|
|
+ @on-change="changePage"
|
|
|
+ ></my-table>
|
|
|
+ </TabPane>
|
|
|
+ <TabPane label="入库序时簿" name="2">
|
|
|
+ <my-table
|
|
|
+ ref="rkxsb"
|
|
|
+ :data="data2"
|
|
|
+ :columns="columns2"
|
|
|
+ :table-filter="tableFilter2"
|
|
|
+ :table-page="params2"
|
|
|
+ @event-handle="eventHandle"
|
|
|
+ @on-change="changePage"
|
|
|
+ ></my-table>
|
|
|
+ </TabPane>
|
|
|
+ <TabPane label="领料序时簿" name="3">
|
|
|
+ <my-table
|
|
|
+ ref="llsxb"
|
|
|
+ :data="data3"
|
|
|
+ :columns="columns3"
|
|
|
+ :table-filter="tableFilter3"
|
|
|
+ :table-page="params3"
|
|
|
+ @event-handle="eventHandle"
|
|
|
+ @on-change="changePage"
|
|
|
+ ></my-table>
|
|
|
+ </TabPane>
|
|
|
+ <TabPane label="物料收发汇总" name="4">
|
|
|
+ <my-table
|
|
|
+ ref="wlsfhz"
|
|
|
+ :data="data4"
|
|
|
+ :columns="columns4"
|
|
|
+ :border="true"
|
|
|
+ :table-filter="tableFilter4"
|
|
|
+ @event-handle="eventHandle"
|
|
|
+ :is-show-page="false"
|
|
|
+ @on-change="changePage"
|
|
|
+ ></my-table>
|
|
|
+ </TabPane>
|
|
|
+ <TabPane label="物料月汇总" name="5">
|
|
|
+ <my-table
|
|
|
+ :data="data5"
|
|
|
+ :columns="columns5"
|
|
|
+ :border="true"
|
|
|
+ :table-filter="tableFilter5"
|
|
|
+ :table-page="params5"
|
|
|
+ @event-handle="eventHandle"
|
|
|
+ @on-change="changePage"
|
|
|
+ ></my-table>
|
|
|
+ </TabPane>
|
|
|
+ <TabPane label="物料进出信息" name="6">
|
|
|
+ <my-table
|
|
|
+ ref="table"
|
|
|
+ :data="data6"
|
|
|
+ :columns="columns6"
|
|
|
+ :table-filter="tableFilter6"
|
|
|
+ @event-handle="eventHandle"
|
|
|
+ :is-show-page="false"
|
|
|
+ @on-change="changePage"
|
|
|
+ ></my-table>
|
|
|
+ </TabPane>
|
|
|
+ </Tabs>
|
|
|
+ <my-modal-material
|
|
|
+ ref="materialModal"
|
|
|
+ :multiple="true"
|
|
|
+ v-model="show"
|
|
|
+ @getselectedList="getselectedList"
|
|
|
+ ></my-modal-material>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import { exportExcel } from '@/libs/util'
|
|
|
import {
|
|
|
- GetMonthStockCheck,
|
|
|
- GetStockInDocumentList,
|
|
|
- GetStockTakeDocumentList,
|
|
|
- GetMaterialStockInOutSum,
|
|
|
- GetMaterialMonthSum,
|
|
|
- GetStockWaterInOut
|
|
|
+ GetMonthStockCheck,
|
|
|
+ GetStockInDocumentList,
|
|
|
+ GetStockTakeDocumentList,
|
|
|
+ GetMaterialStockInOutSum,
|
|
|
+ GetMaterialMonthSum,
|
|
|
+ GetStockWaterInOut,
|
|
|
} from '@/api/stock'
|
|
|
import MyTable from '_c/my-table/my-table'
|
|
|
import MyModalMaterial from '_c/my-modal-form/my-modal-material'
|
|
|
+import TreeTable from 'iview-tree-table'
|
|
|
+import axios from 'axios'
|
|
|
+import dateSelect from '@/components/dateSelect/dateSelect'
|
|
|
export default {
|
|
|
- name: 'store_report',
|
|
|
- components: {
|
|
|
- MyTable,
|
|
|
- MyModalMaterial
|
|
|
- },
|
|
|
- data () {
|
|
|
- return {
|
|
|
- tabName: '1',
|
|
|
- formData: {},
|
|
|
- show: false,
|
|
|
- data1: [],
|
|
|
- data2: [],
|
|
|
- data3: [],
|
|
|
- data4: [],
|
|
|
- data5: [],
|
|
|
- data6: [],
|
|
|
- columns1: [
|
|
|
- {
|
|
|
- title: '序号',
|
|
|
- type: 'index',
|
|
|
- width: 60,
|
|
|
- align: 'center'
|
|
|
- },
|
|
|
- {
|
|
|
- title: '盘点日期',
|
|
|
- key: 'checkTime',
|
|
|
- minWidth: 150
|
|
|
- },
|
|
|
- {
|
|
|
- title: '盘点人',
|
|
|
- key: 'userName',
|
|
|
- minWidth: 150
|
|
|
- },
|
|
|
- {
|
|
|
- title: '审核日期',
|
|
|
- key: 'approvalTime',
|
|
|
- minWidth: 150
|
|
|
- },
|
|
|
- {
|
|
|
- title: '物料编码',
|
|
|
- key: 'materialCode',
|
|
|
- minWidth: 150
|
|
|
- },
|
|
|
- {
|
|
|
- title: '物料名称',
|
|
|
- key: 'materialName',
|
|
|
- minWidth: 150
|
|
|
- },
|
|
|
- {
|
|
|
- title: '物料规格',
|
|
|
- key: 'spec',
|
|
|
- minWidth: 150
|
|
|
- },
|
|
|
- {
|
|
|
- title: '单位',
|
|
|
- key: 'untilName',
|
|
|
- minWidth: 150
|
|
|
- },
|
|
|
- {
|
|
|
- title: '账存数量',
|
|
|
- key: 'stockQty',
|
|
|
- minWidth: 150
|
|
|
- },
|
|
|
- {
|
|
|
- title: '实存数量',
|
|
|
- key: 'actualQty',
|
|
|
- minWidth: 150
|
|
|
- },
|
|
|
- {
|
|
|
- title: '盘盈/亏',
|
|
|
- key: 'checkDiffQty',
|
|
|
- minWidth: 150
|
|
|
- },
|
|
|
- {
|
|
|
- title: '单价',
|
|
|
- key: 'price',
|
|
|
- minWidth: 150
|
|
|
- },
|
|
|
- {
|
|
|
- title: '盘盈/亏金额',
|
|
|
- key: 'checkDiffAmout',
|
|
|
- minWidth: 150
|
|
|
- }
|
|
|
- ],
|
|
|
- columns2: [
|
|
|
- {
|
|
|
- title: '序号',
|
|
|
- type: 'index',
|
|
|
- width: 60,
|
|
|
- align: 'center'
|
|
|
- },
|
|
|
- {
|
|
|
- title: '物料编码',
|
|
|
- key: 'materialCode',
|
|
|
- minWidth: 150
|
|
|
- },
|
|
|
- {
|
|
|
- title: '物料名称',
|
|
|
- key: 'materialName',
|
|
|
- minWidth: 150
|
|
|
- },
|
|
|
- {
|
|
|
- title: '物料规格',
|
|
|
- key: 'spec',
|
|
|
- minWidth: 150
|
|
|
- },
|
|
|
- {
|
|
|
- title: '采购合同号',
|
|
|
- key: 'purchaseBillNo',
|
|
|
- minWidth: 150
|
|
|
- },
|
|
|
- {
|
|
|
- title: '供应商',
|
|
|
- key: 'supplierName',
|
|
|
- minWidth: 150
|
|
|
- },
|
|
|
- {
|
|
|
- title: '单位',
|
|
|
- key: 'untilName',
|
|
|
- minWidth: 150
|
|
|
- },
|
|
|
- {
|
|
|
- title: '应收数量',
|
|
|
- key: 'quantity',
|
|
|
- minWidth: 150
|
|
|
- },
|
|
|
- {
|
|
|
- title: '单价',
|
|
|
- key: 'price',
|
|
|
- minWidth: 150
|
|
|
- },
|
|
|
- {
|
|
|
- title: '到货日期',
|
|
|
- key: 'arriveTime',
|
|
|
- minWidth: 150
|
|
|
- },
|
|
|
- {
|
|
|
- title: '到货数量',
|
|
|
- key: 'arriveQty',
|
|
|
- minWidth: 150
|
|
|
- },
|
|
|
- {
|
|
|
- title: '金额',
|
|
|
- key: 'amount',
|
|
|
- minWidth: 150
|
|
|
- }
|
|
|
- ],
|
|
|
- columns3: [
|
|
|
- {
|
|
|
- title: '序号',
|
|
|
- type: 'index',
|
|
|
- width: 60,
|
|
|
- align: 'center'
|
|
|
- },
|
|
|
- {
|
|
|
- title: '日期',
|
|
|
- key: 'createdTime',
|
|
|
- minWidth: 150
|
|
|
- },
|
|
|
- {
|
|
|
- title: '物料类型',
|
|
|
- key: 'materialCategoryName',
|
|
|
- minWidth: 150
|
|
|
- },
|
|
|
- {
|
|
|
- title: '物料编码',
|
|
|
- key: 'materialCode',
|
|
|
- minWidth: 150
|
|
|
- },
|
|
|
- {
|
|
|
- title: '物料名称',
|
|
|
- key: 'materialName',
|
|
|
- minWidth: 150
|
|
|
- },
|
|
|
- {
|
|
|
- title: '物料规格',
|
|
|
- key: 'spec',
|
|
|
- minWidth: 150
|
|
|
- },
|
|
|
- {
|
|
|
- title: '单位',
|
|
|
- key: 'untilName',
|
|
|
- minWidth: 150
|
|
|
- },
|
|
|
- {
|
|
|
- title: '领料数量',
|
|
|
- key: 'quantity',
|
|
|
- minWidth: 150
|
|
|
- },
|
|
|
- {
|
|
|
- title: '单价',
|
|
|
- key: 'price',
|
|
|
- minWidth: 150
|
|
|
- },
|
|
|
- {
|
|
|
- title: '金额',
|
|
|
- key: 'amount',
|
|
|
- minWidth: 150
|
|
|
- },
|
|
|
- {
|
|
|
- title: '人员',
|
|
|
- key: 'userName',
|
|
|
- minWidth: 150
|
|
|
- },
|
|
|
- {
|
|
|
- title: '备注',
|
|
|
- key: 'remark',
|
|
|
- minWidth: 150
|
|
|
- }
|
|
|
- ],
|
|
|
- columns4: [
|
|
|
- {
|
|
|
- title: '会计期间',
|
|
|
- key: 'accPeriod',
|
|
|
- minWidth: 150
|
|
|
- },
|
|
|
- {
|
|
|
- title: '物料编码',
|
|
|
- key: 'materialCode',
|
|
|
- minWidth: 150
|
|
|
- },
|
|
|
- {
|
|
|
- title: '物料名称',
|
|
|
- key: 'materialName',
|
|
|
- minWidth: 150
|
|
|
- },
|
|
|
- {
|
|
|
- title: '单位',
|
|
|
- key: 'untilName',
|
|
|
- minWidth: 100
|
|
|
- },
|
|
|
- {
|
|
|
- title: '初期存结',
|
|
|
- align: 'center',
|
|
|
- children: [
|
|
|
- {
|
|
|
- title: '单价',
|
|
|
- key: 'beginBalancePrice',
|
|
|
- minWidth: 100
|
|
|
- },
|
|
|
- {
|
|
|
- title: '数量',
|
|
|
- key: 'beginBalanceQty',
|
|
|
- minWidth: 100
|
|
|
- },
|
|
|
- {
|
|
|
- title: '金额',
|
|
|
- key: 'beginBalanceAmount',
|
|
|
- minWidth: 100
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- title: '本期收入',
|
|
|
- align: 'center',
|
|
|
- children: [
|
|
|
- {
|
|
|
- title: '单价',
|
|
|
- key: 'curIncomePrice',
|
|
|
- minWidth: 100
|
|
|
- },
|
|
|
- {
|
|
|
- title: '数量',
|
|
|
- key: 'curIncomeQty',
|
|
|
- minWidth: 100
|
|
|
- },
|
|
|
- {
|
|
|
- title: '金额',
|
|
|
- key: 'curIncomeAmount',
|
|
|
- minWidth: 100
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- title: '本期发出',
|
|
|
- align: 'center',
|
|
|
- children: [
|
|
|
- {
|
|
|
- title: '单价',
|
|
|
- key: 'curSendPrice',
|
|
|
- minWidth: 100
|
|
|
- },
|
|
|
- {
|
|
|
- title: '数量',
|
|
|
- key: 'curSendQty',
|
|
|
- minWidth: 100
|
|
|
- },
|
|
|
- {
|
|
|
- title: '金额',
|
|
|
- key: 'curSendAmount',
|
|
|
- minWidth: 100
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- title: '本期存结',
|
|
|
- align: 'center',
|
|
|
- children: [
|
|
|
- {
|
|
|
- title: '单价',
|
|
|
- key: 'curBalancePrice',
|
|
|
- minWidth: 100
|
|
|
- },
|
|
|
- {
|
|
|
- title: '数量',
|
|
|
- key: 'curBalanceQty',
|
|
|
- minWidth: 100
|
|
|
- },
|
|
|
- {
|
|
|
- title: '金额',
|
|
|
- key: 'curBalanceAmount',
|
|
|
- minWidth: 100
|
|
|
- }
|
|
|
- ]
|
|
|
- }
|
|
|
- ],
|
|
|
- columns_4: [
|
|
|
- {
|
|
|
- title: '会计期间',
|
|
|
- key: 'accPeriod',
|
|
|
- minWidth: 150
|
|
|
- },
|
|
|
- {
|
|
|
- title: '物料编码',
|
|
|
- key: 'materialCode',
|
|
|
- minWidth: 150
|
|
|
- },
|
|
|
- {
|
|
|
- title: '物料名称',
|
|
|
- key: 'materialName',
|
|
|
- minWidth: 150
|
|
|
- },
|
|
|
- {
|
|
|
- title: '单位',
|
|
|
- key: 'untilName',
|
|
|
- minWidth: 100
|
|
|
- },
|
|
|
- {
|
|
|
- title: '单价',
|
|
|
- key: 'beginBalancePrice',
|
|
|
- minWidth: 100
|
|
|
- },
|
|
|
- {
|
|
|
- title: '数量',
|
|
|
- key: 'beginBalanceQty',
|
|
|
- minWidth: 100
|
|
|
- },
|
|
|
- {
|
|
|
- title: '金额',
|
|
|
- key: 'beginBalanceAmount',
|
|
|
- minWidth: 100
|
|
|
- },
|
|
|
- {
|
|
|
- title: '单价',
|
|
|
- key: 'curIncomePrice',
|
|
|
- minWidth: 100
|
|
|
- },
|
|
|
- {
|
|
|
- title: '数量',
|
|
|
- key: 'curIncomeQty',
|
|
|
- minWidth: 100
|
|
|
- },
|
|
|
- {
|
|
|
- title: '金额',
|
|
|
- key: 'curIncomeAmount',
|
|
|
- minWidth: 100
|
|
|
- },
|
|
|
- {
|
|
|
- title: '单价',
|
|
|
- key: 'curSendPrice',
|
|
|
- minWidth: 100
|
|
|
- },
|
|
|
- {
|
|
|
- title: '数量',
|
|
|
- key: 'curSendQty',
|
|
|
- minWidth: 100
|
|
|
- },
|
|
|
- {
|
|
|
- title: '金额',
|
|
|
- key: 'curSendAmount',
|
|
|
- minWidth: 100
|
|
|
- },
|
|
|
- {
|
|
|
- title: '单价',
|
|
|
- key: 'curBalancePrice',
|
|
|
- minWidth: 100
|
|
|
- },
|
|
|
- {
|
|
|
- title: '数量',
|
|
|
- key: 'curBalanceQty',
|
|
|
- minWidth: 100
|
|
|
- },
|
|
|
- {
|
|
|
- title: '金额',
|
|
|
- key: 'curBalanceAmount',
|
|
|
- minWidth: 100
|
|
|
- }
|
|
|
- ],
|
|
|
- columns5: [
|
|
|
- {
|
|
|
- title: '物料编码',
|
|
|
- key: 'materialCode',
|
|
|
- align: 'center',
|
|
|
- minWidth: 150
|
|
|
- },
|
|
|
- {
|
|
|
- title: '物料名称',
|
|
|
- key: 'materialName',
|
|
|
- align: 'center',
|
|
|
- minWidth: 150
|
|
|
- },
|
|
|
- {
|
|
|
- title: '实时库存',
|
|
|
- key: 'quantity',
|
|
|
- align: 'center',
|
|
|
- minWidth: 150
|
|
|
- },
|
|
|
- {
|
|
|
- title: '单位',
|
|
|
- key: 'untilName',
|
|
|
- align: 'center',
|
|
|
- minWidth: 100
|
|
|
- },
|
|
|
- {
|
|
|
- title: '领用数量',
|
|
|
- align: 'center',
|
|
|
- children: [
|
|
|
- {
|
|
|
- title: this.$dayjs().format('YYYY-MM'),
|
|
|
- key: 'firstTakeQty',
|
|
|
- align: 'center',
|
|
|
- minWidth: 100
|
|
|
- },
|
|
|
- {
|
|
|
- title: this.$dayjs(new Date().setMonth(new Date().getMonth() - 1)).format('YYYY-MM'),
|
|
|
- key: 'secTakeQty',
|
|
|
- align: 'center',
|
|
|
- minWidth: 100
|
|
|
- },
|
|
|
- {
|
|
|
- title: this.$dayjs(new Date().setMonth(new Date().getMonth() - 2)).format('YYYY-MM'),
|
|
|
- key: 'threeTakeQty',
|
|
|
- align: 'center',
|
|
|
- minWidth: 100
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- title: '近三月平均用量',
|
|
|
- key: 'nearlyAverTakeQty',
|
|
|
- align: 'center',
|
|
|
- minWidth: 100
|
|
|
- },
|
|
|
- {
|
|
|
- title: '采购周期(天)',
|
|
|
- key: 'safetyWarnDay',
|
|
|
- align: 'center',
|
|
|
- minWidth: 100
|
|
|
- },
|
|
|
- {
|
|
|
- title: '单次申购数量',
|
|
|
- key: 'averPurchaseQty',
|
|
|
- align: 'center',
|
|
|
- minWidth: 100
|
|
|
- }
|
|
|
- ],
|
|
|
- columns6: [
|
|
|
- {
|
|
|
- title: '月份',
|
|
|
- key: 'month',
|
|
|
- minWidth: 100
|
|
|
- },
|
|
|
- {
|
|
|
- title: '日期',
|
|
|
- key: 'date',
|
|
|
- minWidth: 150
|
|
|
- },
|
|
|
- {
|
|
|
- title: '单据号',
|
|
|
- key: 'billNo',
|
|
|
- minWidth: 150
|
|
|
- },
|
|
|
- {
|
|
|
- title: '物料编码',
|
|
|
- key: 'materialCode',
|
|
|
- minWidth: 150
|
|
|
- },
|
|
|
- {
|
|
|
- title: '物料名称',
|
|
|
- key: 'materialName',
|
|
|
- minWidth: 150
|
|
|
- },
|
|
|
- {
|
|
|
- title: '物料规格',
|
|
|
- key: 'spec',
|
|
|
- minWidth: 150
|
|
|
- },
|
|
|
- {
|
|
|
- title: '单位',
|
|
|
- key: 'unitName',
|
|
|
- minWidth: 150
|
|
|
- },
|
|
|
- {
|
|
|
- title: '类型',
|
|
|
- key: 'billTypeStr',
|
|
|
- minWidth: 150
|
|
|
- },
|
|
|
- {
|
|
|
- title: '收入数量',
|
|
|
- key: 'incomeQty',
|
|
|
- minWidth: 150
|
|
|
- },
|
|
|
- {
|
|
|
- title: '收入单价',
|
|
|
- key: 'incomePrice',
|
|
|
- minWidth: 150
|
|
|
- },
|
|
|
- {
|
|
|
- title: '收入金额',
|
|
|
- key: 'incomeAmount',
|
|
|
- minWidth: 150
|
|
|
- },
|
|
|
- {
|
|
|
- title: '发出数量',
|
|
|
- key: 'sendQty',
|
|
|
- minWidth: 150
|
|
|
- },
|
|
|
- {
|
|
|
- title: '发出单价',
|
|
|
- key: 'sendPrice',
|
|
|
- minWidth: 150
|
|
|
- },
|
|
|
- {
|
|
|
- title: '发出金额',
|
|
|
- key: 'sendAmount',
|
|
|
- minWidth: 150
|
|
|
- },
|
|
|
- {
|
|
|
- title: '结存数量',
|
|
|
- key: 'balanceQty',
|
|
|
- minWidth: 150
|
|
|
- },
|
|
|
- {
|
|
|
- title: '结存金额',
|
|
|
- key: 'balanceAmount',
|
|
|
- minWidth: 150
|
|
|
- }
|
|
|
- ],
|
|
|
- tableFilter1: [
|
|
|
- {
|
|
|
- name: 'Input',
|
|
|
- value: 'workKey',
|
|
|
- placeholder: '请输入关键字'
|
|
|
- },
|
|
|
- {
|
|
|
- name: 'DatePicker',
|
|
|
- value: 'yearMonth',
|
|
|
- placeholder: '请选择日期',
|
|
|
- type: 'month',
|
|
|
- unClearable: true
|
|
|
- },
|
|
|
- {
|
|
|
- name: 'Button',
|
|
|
- type: 'primary',
|
|
|
- text: '查询',
|
|
|
- e: 'search'
|
|
|
- },
|
|
|
- {
|
|
|
- name: 'Button',
|
|
|
- type: 'primary',
|
|
|
- text: '导出Excel',
|
|
|
- e: 'export'
|
|
|
- }
|
|
|
- ],
|
|
|
- tableFilter2: [
|
|
|
- {
|
|
|
- name: 'Input',
|
|
|
- value: 'workKey',
|
|
|
- placeholder: '请输入关键字'
|
|
|
- },
|
|
|
- {
|
|
|
- name: 'DatePicker',
|
|
|
- value: 'yearMonth',
|
|
|
- placeholder: '请选择日期',
|
|
|
- type: 'month',
|
|
|
- unClearable: true
|
|
|
- },
|
|
|
- {
|
|
|
- name: 'Button',
|
|
|
- type: 'primary',
|
|
|
- text: '查询',
|
|
|
- e: 'search'
|
|
|
- },
|
|
|
- {
|
|
|
- name: 'Button',
|
|
|
- type: 'primary',
|
|
|
- text: '导出Excel',
|
|
|
- e: 'export'
|
|
|
- }
|
|
|
- ],
|
|
|
- tableFilter3: [
|
|
|
- {
|
|
|
- name: 'Input',
|
|
|
- value: 'workKey',
|
|
|
- placeholder: '请输入关键字'
|
|
|
- },
|
|
|
- {
|
|
|
- name: 'DatePicker',
|
|
|
- value: 'yearMonth',
|
|
|
- placeholder: '请选择日期',
|
|
|
- unClearable: true,
|
|
|
- type: 'month'
|
|
|
- },
|
|
|
- {
|
|
|
- name: 'Button',
|
|
|
- type: 'primary',
|
|
|
- text: '查询',
|
|
|
- e: 'search'
|
|
|
- },
|
|
|
- {
|
|
|
- name: 'Button',
|
|
|
- type: 'primary',
|
|
|
- text: '导出Excel',
|
|
|
- e: 'export'
|
|
|
- }
|
|
|
- ],
|
|
|
- tableFilter4: [
|
|
|
- {
|
|
|
- name: 'Input',
|
|
|
- value: 'workKey',
|
|
|
- placeholder: '请输入关键字'
|
|
|
- },
|
|
|
- {
|
|
|
- name: 'DatePicker',
|
|
|
- value: 'yearMonth',
|
|
|
- placeholder: '请选择日期',
|
|
|
- type: 'month',
|
|
|
- unClearable: true
|
|
|
- },
|
|
|
- {
|
|
|
- name: 'Button',
|
|
|
- type: 'primary',
|
|
|
- text: '查询',
|
|
|
- e: 'search'
|
|
|
- },
|
|
|
- {
|
|
|
- name: 'Button',
|
|
|
- type: 'primary',
|
|
|
- text: '导出Excel',
|
|
|
- e: 'export'
|
|
|
- }
|
|
|
- ],
|
|
|
- tableFilter5: [
|
|
|
- {
|
|
|
- name: 'Input',
|
|
|
- value: 'workKey',
|
|
|
- placeholder: '请输入关键字'
|
|
|
- },
|
|
|
- {
|
|
|
- name: 'Button',
|
|
|
- type: 'primary',
|
|
|
- text: '查询',
|
|
|
- e: 'search'
|
|
|
- },
|
|
|
- {
|
|
|
- name: 'Button',
|
|
|
- type: 'primary',
|
|
|
- text: '导出Excel',
|
|
|
- e: 'export'
|
|
|
- }
|
|
|
- ],
|
|
|
- tableFilter6: [
|
|
|
- {
|
|
|
- name: 'Input',
|
|
|
- value: 'materialCode',
|
|
|
- placeholder: '请选择物料',
|
|
|
- icon: 'ios-add-circle-outline',
|
|
|
- e: 'showMaterial'
|
|
|
- },
|
|
|
- {
|
|
|
- name: 'DatePicker',
|
|
|
- value: 'yearMonth',
|
|
|
- placeholder: '请选择日期',
|
|
|
- type: 'month',
|
|
|
- unClearable: true
|
|
|
- },
|
|
|
- {
|
|
|
- name: 'Button',
|
|
|
- type: 'primary',
|
|
|
- text: '查询',
|
|
|
- e: 'search'
|
|
|
- },
|
|
|
- {
|
|
|
- name: 'Button',
|
|
|
- type: 'primary',
|
|
|
- text: '导出Excel',
|
|
|
- e: 'export'
|
|
|
- }
|
|
|
- ],
|
|
|
- params1: {
|
|
|
- pageIndex: 1,
|
|
|
- pageSize: 20,
|
|
|
- total: 0
|
|
|
- },
|
|
|
- params2: {
|
|
|
- pageIndex: 1,
|
|
|
- pageSize: 20,
|
|
|
- total: 0
|
|
|
- },
|
|
|
- params3: {
|
|
|
- pageIndex: 1,
|
|
|
- pageSize: 20,
|
|
|
- total: 0
|
|
|
- },
|
|
|
- params4: {},
|
|
|
- params5: {
|
|
|
- pageIndex: 1,
|
|
|
- pageSize: 20,
|
|
|
- total: 0
|
|
|
- },
|
|
|
- params6: {}
|
|
|
- }
|
|
|
- },
|
|
|
- methods: {
|
|
|
- tabClick (name) {
|
|
|
- this.tabName = name
|
|
|
- if (this.tabName === '1') {
|
|
|
- this.$refs.pykd.setModel('yearMonth', new Date())
|
|
|
- } else if (this.tabName === '2') {
|
|
|
- this.$refs.rkxsb.setModel('yearMonth', new Date())
|
|
|
- } else if (this.tabName === '3') {
|
|
|
- this.$refs.llsxb.setModel('yearMonth', new Date())
|
|
|
- } else if (this.tabName === '4') {
|
|
|
- this.$refs.wlsfhz.setModel('yearMonth', new Date())
|
|
|
- } else if (this.tabName === '6') {
|
|
|
- this.$refs.table.setModel('yearMonth', new Date())
|
|
|
- } // 物料进出信息要选择物料所以默认不查找列表
|
|
|
- if (this.tabName !== '6') {
|
|
|
- this.getList()
|
|
|
- }
|
|
|
- },
|
|
|
- cfm (type, formData) {
|
|
|
- if (type === 'add') {
|
|
|
- FacPriceAdd({
|
|
|
- ...formData,
|
|
|
- materialCode: formData.code
|
|
|
- }).then(res => {
|
|
|
- if (res.code === 0) {
|
|
|
- this.$Message.info(res.msg)
|
|
|
- this.getList()
|
|
|
- }
|
|
|
- })
|
|
|
- } else if (type === 'edit') {
|
|
|
- FacPriceChange({
|
|
|
- ...formData,
|
|
|
- factoryPriceId: formData.id
|
|
|
- }).then(res => {
|
|
|
- if (res.code === 0) {
|
|
|
- this.$Message.info(res.msg)
|
|
|
- this.getList()
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
- },
|
|
|
- getselectedList (list, multiple) {
|
|
|
- console.log('????????????????????-----')
|
|
|
- console.log(list)
|
|
|
- console.log(multiple)
|
|
|
- this.$refs.table.setModel('materialCode', list[0].code)
|
|
|
- this.params6.materialCode = list[0].code
|
|
|
- },
|
|
|
- // 检索条件事件处理
|
|
|
- eventHandle (option) {
|
|
|
- switch (option._evnet) {
|
|
|
- case 'search':
|
|
|
- this['params' + this.tabName].pageIndex = 1
|
|
|
- this['params' + this.tabName].workKey = option.workKey
|
|
|
- this['params' + this.tabName].yearMonth = option.yearMonth
|
|
|
- if (this.tabName === '6') {
|
|
|
- this.params6.materialCode = option.materialCode
|
|
|
- }
|
|
|
- let date = new Date(this.$dayjs(option.yearMonth).format('YYYY-MM')).getTime()
|
|
|
- let now = new Date(this.$dayjs().format('YYYY-MM')).getTime()
|
|
|
- if (date > now) {
|
|
|
- return this.$Message.error('日期不可大于当前月')
|
|
|
- }
|
|
|
- this.getList()
|
|
|
- break
|
|
|
- case 'export':
|
|
|
- if (this[`data${this.tabName}`].length < 1) return this.$Message.error('数据为空!')
|
|
|
- // exportExcel(this[`columns${this.tabName}`], this[`data${this.tabName}`], '库存报表')
|
|
|
- if (this.tabName === '1') {
|
|
|
- GetMonthStockCheck({
|
|
|
- ...this.params1,
|
|
|
- pageIndex: 1,
|
|
|
- pageSize: 99999
|
|
|
- }).then(res => {
|
|
|
- if (res.code === 0) {
|
|
|
- exportExcel(this[`columns${this.tabName}`], res.result.list, '盘盈亏单')
|
|
|
- }
|
|
|
- })
|
|
|
- } else if (this.tabName === '2') {
|
|
|
- GetStockInDocumentList({
|
|
|
- ...this.params2,
|
|
|
- pageIndex: 1,
|
|
|
- pageSize: 99999
|
|
|
- }).then(res => {
|
|
|
- if (res.code === 0) {
|
|
|
- exportExcel(this[`columns${this.tabName}`], res.result.list, '入库序时簿')
|
|
|
- }
|
|
|
- })
|
|
|
- } else if (this.tabName === '3') {
|
|
|
- GetStockTakeDocumentList({
|
|
|
- ...this.params3,
|
|
|
- pageIndex: 1,
|
|
|
- pageSize: 9999
|
|
|
- }).then(res => {
|
|
|
- if (res.code === 0) {
|
|
|
- exportExcel(this[`columns${this.tabName}`], res.result.list, '领料序时簿')
|
|
|
- }
|
|
|
- })
|
|
|
- } else if (this.tabName === '4') {
|
|
|
- GetMaterialStockInOutSum({
|
|
|
- ...this.params4,
|
|
|
- pageIndex: 1,
|
|
|
- pageSize: 99999
|
|
|
- }).then(res => {
|
|
|
- if (res.code === 0) {
|
|
|
- exportExcel(this.columns_4, res.result, '物料收发汇总')
|
|
|
- }
|
|
|
- })
|
|
|
- } else if (this.tabName === '5') {
|
|
|
- GetMaterialMonthSum({
|
|
|
- ...this.params5,
|
|
|
- pageIndex: 1,
|
|
|
- pageSize: 99999
|
|
|
- }).then(res => {
|
|
|
- if (res.code === 0) {
|
|
|
- exportExcel(this[`columns${this.tabName}`], res.result.list, '物料月汇总')
|
|
|
- }
|
|
|
- })
|
|
|
- } else if (this.tabName === '6') {
|
|
|
- GetStockWaterInOut({
|
|
|
- ...this.params6,
|
|
|
- pageIndex: 1,
|
|
|
- pageSize: 99999
|
|
|
- }).then(res => {
|
|
|
- if (res.code === 0) {
|
|
|
- exportExcel(this[`columns${this.tabName}`], res.result.list, '物料进出信息')
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
- break
|
|
|
- case 'showMaterial':
|
|
|
- this.show = true
|
|
|
- break
|
|
|
- }
|
|
|
- },
|
|
|
- changePage (pageIndex) {
|
|
|
- this['params' + this.tabName].pageIndex = pageIndex
|
|
|
- this.getList()
|
|
|
- },
|
|
|
- getList () {
|
|
|
- this['data' + this.tabName] = []
|
|
|
- if (this.tabName === '1') {
|
|
|
- GetMonthStockCheck(this.params1).then(res => {
|
|
|
- if (res.code === 0) {
|
|
|
- this.data1 = res.result.list
|
|
|
- this.params1.total = res.result.totalCount
|
|
|
- }
|
|
|
- })
|
|
|
- } else if (this.tabName === '2') {
|
|
|
- GetStockInDocumentList(this.params2).then(res => {
|
|
|
- if (res.code === 0) {
|
|
|
- this.data2 = res.result.list
|
|
|
- this.params2.total = res.result.totalCount
|
|
|
- }
|
|
|
- })
|
|
|
- } else if (this.tabName === '3') {
|
|
|
- GetStockTakeDocumentList(this.params3).then(res => {
|
|
|
- if (res.code === 0) {
|
|
|
- this.data3 = res.result.list
|
|
|
- this.params3.total = res.result.totalCount
|
|
|
- }
|
|
|
- })
|
|
|
- } else if (this.tabName === '4') {
|
|
|
- GetMaterialStockInOutSum(this.params4).then(res => {
|
|
|
- if (res.code === 0) {
|
|
|
- this.data4 = res.result
|
|
|
- }
|
|
|
- })
|
|
|
- } else if (this.tabName === '5') {
|
|
|
- GetMaterialMonthSum(this.params5).then(res => {
|
|
|
- if (res.code === 0) {
|
|
|
- this.data5 = res.result.list
|
|
|
- this.params5.total = res.result.totalCount
|
|
|
- }
|
|
|
- })
|
|
|
- } else if (this.tabName === '6') {
|
|
|
- GetStockWaterInOut(this.params6).then(res => {
|
|
|
- if (res.code === 0) {
|
|
|
- this.data6 = res.result.list
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- mounted () {
|
|
|
- this.tabClick('1')
|
|
|
- }
|
|
|
+ name: 'store_report',
|
|
|
+ components: {
|
|
|
+ MyTable,
|
|
|
+ MyModalMaterial,
|
|
|
+ TreeTable,
|
|
|
+ dateSelect
|
|
|
+ },
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ tabName: '1',
|
|
|
+ formData: {},
|
|
|
+ show: false,
|
|
|
+ data1: [],
|
|
|
+ data2: [],
|
|
|
+ data3: [],
|
|
|
+ data4: [],
|
|
|
+ data5: [],
|
|
|
+ data6: [],
|
|
|
+ data7:[],
|
|
|
+ columns1: [
|
|
|
+ {
|
|
|
+ title: '序号',
|
|
|
+ type: 'index',
|
|
|
+ width: 60,
|
|
|
+ align: 'center',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '盘点日期',
|
|
|
+ key: 'checkTime',
|
|
|
+ minWidth: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '盘点人',
|
|
|
+ key: 'userName',
|
|
|
+ minWidth: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '审核日期',
|
|
|
+ key: 'approvalTime',
|
|
|
+ minWidth: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '物料编码',
|
|
|
+ key: 'materialCode',
|
|
|
+ minWidth: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '物料名称',
|
|
|
+ key: 'materialName',
|
|
|
+ minWidth: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '物料规格',
|
|
|
+ key: 'spec',
|
|
|
+ minWidth: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '单位',
|
|
|
+ key: 'untilName',
|
|
|
+ minWidth: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '账存数量',
|
|
|
+ key: 'stockQty',
|
|
|
+ minWidth: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '实存数量',
|
|
|
+ key: 'actualQty',
|
|
|
+ minWidth: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '盘盈/亏',
|
|
|
+ key: 'checkDiffQty',
|
|
|
+ minWidth: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '单价',
|
|
|
+ key: 'price',
|
|
|
+ minWidth: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '盘盈/亏金额',
|
|
|
+ key: 'checkDiffAmout',
|
|
|
+ minWidth: 150,
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ columns2: [
|
|
|
+ {
|
|
|
+ title: '序号',
|
|
|
+ type: 'index',
|
|
|
+ width: 60,
|
|
|
+ align: 'center',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '物料编码',
|
|
|
+ key: 'materialCode',
|
|
|
+ minWidth: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '物料名称',
|
|
|
+ key: 'materialName',
|
|
|
+ minWidth: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '物料规格',
|
|
|
+ key: 'spec',
|
|
|
+ minWidth: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '采购合同号',
|
|
|
+ key: 'purchaseBillNo',
|
|
|
+ minWidth: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '供应商',
|
|
|
+ key: 'supplierName',
|
|
|
+ minWidth: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '单位',
|
|
|
+ key: 'untilName',
|
|
|
+ minWidth: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '应收数量',
|
|
|
+ key: 'quantity',
|
|
|
+ minWidth: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '单价',
|
|
|
+ key: 'price',
|
|
|
+ minWidth: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '到货日期',
|
|
|
+ key: 'arriveTime',
|
|
|
+ minWidth: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '到货数量',
|
|
|
+ key: 'arriveQty',
|
|
|
+ minWidth: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '金额',
|
|
|
+ key: 'amount',
|
|
|
+ minWidth: 150,
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ columns3: [
|
|
|
+ {
|
|
|
+ title: '序号',
|
|
|
+ type: 'index',
|
|
|
+ width: 60,
|
|
|
+ align: 'center',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '日期',
|
|
|
+ key: 'createdTime',
|
|
|
+ minWidth: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '物料类型',
|
|
|
+ key: 'materialCategoryName',
|
|
|
+ minWidth: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '物料编码',
|
|
|
+ key: 'materialCode',
|
|
|
+ minWidth: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '物料名称',
|
|
|
+ key: 'materialName',
|
|
|
+ minWidth: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '物料规格',
|
|
|
+ key: 'spec',
|
|
|
+ minWidth: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '单位',
|
|
|
+ key: 'untilName',
|
|
|
+ minWidth: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '领料数量',
|
|
|
+ key: 'quantity',
|
|
|
+ minWidth: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '单价',
|
|
|
+ key: 'price',
|
|
|
+ minWidth: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '金额',
|
|
|
+ key: 'amount',
|
|
|
+ minWidth: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '人员',
|
|
|
+ key: 'userName',
|
|
|
+ minWidth: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '备注',
|
|
|
+ key: 'remark',
|
|
|
+ minWidth: 150,
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ columns4: [
|
|
|
+ {
|
|
|
+ title: '会计期间',
|
|
|
+ key: 'accPeriod',
|
|
|
+ minWidth: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '物料编码',
|
|
|
+ key: 'materialCode',
|
|
|
+ minWidth: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '物料名称',
|
|
|
+ key: 'materialName',
|
|
|
+ minWidth: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '单位',
|
|
|
+ key: 'untilName',
|
|
|
+ minWidth: 100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '初期存结',
|
|
|
+ align: 'center',
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ title: '单价',
|
|
|
+ key: 'beginBalancePrice',
|
|
|
+ minWidth: 100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '数量',
|
|
|
+ key: 'beginBalanceQty',
|
|
|
+ minWidth: 100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '金额',
|
|
|
+ key: 'beginBalanceAmount',
|
|
|
+ minWidth: 100,
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '本期收入',
|
|
|
+ align: 'center',
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ title: '单价',
|
|
|
+ key: 'curIncomePrice',
|
|
|
+ minWidth: 100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '数量',
|
|
|
+ key: 'curIncomeQty',
|
|
|
+ minWidth: 100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '金额',
|
|
|
+ key: 'curIncomeAmount',
|
|
|
+ minWidth: 100,
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '本期发出',
|
|
|
+ align: 'center',
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ title: '单价',
|
|
|
+ key: 'curSendPrice',
|
|
|
+ minWidth: 100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '数量',
|
|
|
+ key: 'curSendQty',
|
|
|
+ minWidth: 100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '金额',
|
|
|
+ key: 'curSendAmount',
|
|
|
+ minWidth: 100,
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '本期存结',
|
|
|
+ align: 'center',
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ title: '单价',
|
|
|
+ key: 'curBalancePrice',
|
|
|
+ minWidth: 100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '数量',
|
|
|
+ key: 'curBalanceQty',
|
|
|
+ minWidth: 100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '金额',
|
|
|
+ key: 'curBalanceAmount',
|
|
|
+ minWidth: 100,
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ columns_4: [
|
|
|
+ {
|
|
|
+ title: '会计期间',
|
|
|
+ key: 'accPeriod',
|
|
|
+ minWidth: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '物料编码',
|
|
|
+ key: 'materialCode',
|
|
|
+ minWidth: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '物料名称',
|
|
|
+ key: 'materialName',
|
|
|
+ minWidth: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '单位',
|
|
|
+ key: 'untilName',
|
|
|
+ minWidth: 100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '单价',
|
|
|
+ key: 'beginBalancePrice',
|
|
|
+ minWidth: 100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '数量',
|
|
|
+ key: 'beginBalanceQty',
|
|
|
+ minWidth: 100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '金额',
|
|
|
+ key: 'beginBalanceAmount',
|
|
|
+ minWidth: 100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '单价',
|
|
|
+ key: 'curIncomePrice',
|
|
|
+ minWidth: 100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '数量',
|
|
|
+ key: 'curIncomeQty',
|
|
|
+ minWidth: 100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '金额',
|
|
|
+ key: 'curIncomeAmount',
|
|
|
+ minWidth: 100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '单价',
|
|
|
+ key: 'curSendPrice',
|
|
|
+ minWidth: 100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '数量',
|
|
|
+ key: 'curSendQty',
|
|
|
+ minWidth: 100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '金额',
|
|
|
+ key: 'curSendAmount',
|
|
|
+ minWidth: 100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '单价',
|
|
|
+ key: 'curBalancePrice',
|
|
|
+ minWidth: 100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '数量',
|
|
|
+ key: 'curBalanceQty',
|
|
|
+ minWidth: 100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '金额',
|
|
|
+ key: 'curBalanceAmount',
|
|
|
+ minWidth: 100,
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ columns5: [
|
|
|
+ {
|
|
|
+ title: '物料编码',
|
|
|
+ key: 'materialCode',
|
|
|
+ align: 'center',
|
|
|
+ minWidth: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '物料名称',
|
|
|
+ key: 'materialName',
|
|
|
+ align: 'center',
|
|
|
+ minWidth: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '实时库存',
|
|
|
+ key: 'quantity',
|
|
|
+ align: 'center',
|
|
|
+ minWidth: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '单位',
|
|
|
+ key: 'untilName',
|
|
|
+ align: 'center',
|
|
|
+ minWidth: 100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '领用数量',
|
|
|
+ align: 'center',
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ title: this.$dayjs().format('YYYY-MM'),
|
|
|
+ key: 'firstTakeQty',
|
|
|
+ align: 'center',
|
|
|
+ minWidth: 100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: this.$dayjs(
|
|
|
+ new Date().setMonth(new Date().getMonth() - 1)
|
|
|
+ ).format('YYYY-MM'),
|
|
|
+ key: 'secTakeQty',
|
|
|
+ align: 'center',
|
|
|
+ minWidth: 100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: this.$dayjs(
|
|
|
+ new Date().setMonth(new Date().getMonth() - 2)
|
|
|
+ ).format('YYYY-MM'),
|
|
|
+ key: 'threeTakeQty',
|
|
|
+ align: 'center',
|
|
|
+ minWidth: 100,
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '近三月平均用量',
|
|
|
+ key: 'nearlyAverTakeQty',
|
|
|
+ align: 'center',
|
|
|
+ minWidth: 100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '采购周期(天)',
|
|
|
+ key: 'safetyWarnDay',
|
|
|
+ align: 'center',
|
|
|
+ minWidth: 100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '单次申购数量',
|
|
|
+ key: 'averPurchaseQty',
|
|
|
+ align: 'center',
|
|
|
+ minWidth: 100,
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ columns6: [
|
|
|
+ {
|
|
|
+ title: '月份',
|
|
|
+ key: 'month',
|
|
|
+ minWidth: 100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '日期',
|
|
|
+ key: 'date',
|
|
|
+ minWidth: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '单据号',
|
|
|
+ key: 'billNo',
|
|
|
+ minWidth: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '物料编码',
|
|
|
+ key: 'materialCode',
|
|
|
+ minWidth: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '物料名称',
|
|
|
+ key: 'materialName',
|
|
|
+ minWidth: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '物料规格',
|
|
|
+ key: 'spec',
|
|
|
+ minWidth: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '单位',
|
|
|
+ key: 'unitName',
|
|
|
+ minWidth: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '类型',
|
|
|
+ key: 'billTypeStr',
|
|
|
+ minWidth: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '收入数量',
|
|
|
+ key: 'incomeQty',
|
|
|
+ minWidth: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '收入单价',
|
|
|
+ key: 'incomePrice',
|
|
|
+ minWidth: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '收入金额',
|
|
|
+ key: 'incomeAmount',
|
|
|
+ minWidth: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '发出数量',
|
|
|
+ key: 'sendQty',
|
|
|
+ minWidth: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '发出单价',
|
|
|
+ key: 'sendPrice',
|
|
|
+ minWidth: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '发出金额',
|
|
|
+ key: 'sendAmount',
|
|
|
+ minWidth: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '结存数量',
|
|
|
+ key: 'balanceQty',
|
|
|
+ minWidth: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '结存金额',
|
|
|
+ key: 'balanceAmount',
|
|
|
+ minWidth: 150,
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ tableFilter1: [
|
|
|
+ {
|
|
|
+ name: 'Input',
|
|
|
+ value: 'workKey',
|
|
|
+ placeholder: '请输入关键字',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: 'DatePicker',
|
|
|
+ value: 'yearMonth',
|
|
|
+ placeholder: '请选择日期',
|
|
|
+ type: 'month',
|
|
|
+ unClearable: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: 'Button',
|
|
|
+ type: 'primary',
|
|
|
+ text: '查询',
|
|
|
+ e: 'search',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: 'Button',
|
|
|
+ type: 'primary',
|
|
|
+ text: '导出Excel',
|
|
|
+ e: 'export',
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ tableFilter2: [
|
|
|
+ {
|
|
|
+ name: 'Input',
|
|
|
+ value: 'workKey',
|
|
|
+ placeholder: '请输入关键字',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: 'DatePicker',
|
|
|
+ value: 'yearMonth',
|
|
|
+ placeholder: '请选择日期',
|
|
|
+ type: 'month',
|
|
|
+ unClearable: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: 'Button',
|
|
|
+ type: 'primary',
|
|
|
+ text: '查询',
|
|
|
+ e: 'search',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: 'Button',
|
|
|
+ type: 'primary',
|
|
|
+ text: '导出Excel',
|
|
|
+ e: 'export',
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ tableFilter3: [
|
|
|
+ {
|
|
|
+ name: 'Input',
|
|
|
+ value: 'workKey',
|
|
|
+ placeholder: '请输入关键字',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: 'DatePicker',
|
|
|
+ value: 'yearMonth',
|
|
|
+ placeholder: '请选择日期',
|
|
|
+ unClearable: true,
|
|
|
+ type: 'month',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: 'Button',
|
|
|
+ type: 'primary',
|
|
|
+ text: '查询',
|
|
|
+ e: 'search',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: 'Button',
|
|
|
+ type: 'primary',
|
|
|
+ text: '导出Excel',
|
|
|
+ e: 'export',
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ tableFilter4: [
|
|
|
+ {
|
|
|
+ name: 'Input',
|
|
|
+ value: 'workKey',
|
|
|
+ placeholder: '请输入关键字',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: 'DatePicker',
|
|
|
+ value: 'yearMonth',
|
|
|
+ placeholder: '请选择日期',
|
|
|
+ type: 'month',
|
|
|
+ unClearable: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: 'Button',
|
|
|
+ type: 'primary',
|
|
|
+ text: '查询',
|
|
|
+ e: 'search',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: 'Button',
|
|
|
+ type: 'primary',
|
|
|
+ text: '导出Excel',
|
|
|
+ e: 'export',
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ tableFilter5: [
|
|
|
+ {
|
|
|
+ name: 'Input',
|
|
|
+ value: 'workKey',
|
|
|
+ placeholder: '请输入关键字',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: 'Button',
|
|
|
+ type: 'primary',
|
|
|
+ text: '查询',
|
|
|
+ e: 'search',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: 'Button',
|
|
|
+ type: 'primary',
|
|
|
+ text: '导出Excel',
|
|
|
+ e: 'export',
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ tableFilter6: [
|
|
|
+ {
|
|
|
+ name: 'Input',
|
|
|
+ value: 'materialCode',
|
|
|
+ placeholder: '请选择物料',
|
|
|
+ icon: 'ios-add-circle-outline',
|
|
|
+ e: 'showMaterial',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: 'DatePicker',
|
|
|
+ value: 'yearMonth',
|
|
|
+ placeholder: '请选择日期',
|
|
|
+ type: 'month',
|
|
|
+ unClearable: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: 'Button',
|
|
|
+ type: 'primary',
|
|
|
+ text: '查询',
|
|
|
+ e: 'search',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: 'Button',
|
|
|
+ type: 'primary',
|
|
|
+ text: '导出Excel',
|
|
|
+ e: 'export',
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ params1: {
|
|
|
+ pageIndex: 1,
|
|
|
+ pageSize: 20,
|
|
|
+ total: 0,
|
|
|
+ },
|
|
|
+ params2: {
|
|
|
+ pageIndex: 1,
|
|
|
+ pageSize: 20,
|
|
|
+ total: 0,
|
|
|
+ },
|
|
|
+ params3: {
|
|
|
+ pageIndex: 1,
|
|
|
+ pageSize: 20,
|
|
|
+ total: 0,
|
|
|
+ },
|
|
|
+ params4: {},
|
|
|
+ params5: {
|
|
|
+ pageIndex: 1,
|
|
|
+ pageSize: 20,
|
|
|
+ total: 0,
|
|
|
+ },
|
|
|
+ params6: {},
|
|
|
+ params7: {
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: 10,
|
|
|
+ total: 0,
|
|
|
+ beginTime:null,
|
|
|
+ endTime:null,
|
|
|
+ },
|
|
|
+ }
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ selectTime(){},
|
|
|
+ getPickingPage() {
|
|
|
+
|
|
|
+ axios.post('/stockWater/getPickingStatistics', {
|
|
|
+ ...this.params,
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+
|
|
|
+ //this.data7 = [{}]
|
|
|
+ console.log(this.data7)
|
|
|
+
|
|
|
+ })
|
|
|
+ },
|
|
|
+ tabClick(name) {
|
|
|
+ this.tabName = name
|
|
|
+ if (this.tabName === '1') {
|
|
|
+ this.$refs.pykd.setModel('yearMonth', new Date())
|
|
|
+ } else if (this.tabName === '2') {
|
|
|
+ this.$refs.rkxsb.setModel('yearMonth', new Date())
|
|
|
+ } else if (this.tabName === '3') {
|
|
|
+ this.$refs.llsxb.setModel('yearMonth', new Date())
|
|
|
+ } else if (this.tabName === '4') {
|
|
|
+ this.$refs.wlsfhz.setModel('yearMonth', new Date())
|
|
|
+ } else if (this.tabName === '6') {
|
|
|
+ this.$refs.table.setModel('yearMonth', new Date())
|
|
|
+ } // 物料进出信息要选择物料所以默认不查找列表
|
|
|
+ if (this.tabName !== '6') {
|
|
|
+ this.getList()
|
|
|
+ }
|
|
|
+ },
|
|
|
+ cfm(type, formData) {
|
|
|
+ if (type === 'add') {
|
|
|
+ FacPriceAdd({
|
|
|
+ ...formData,
|
|
|
+ materialCode: formData.code,
|
|
|
+ }).then((res) => {
|
|
|
+ if (res.code === 0) {
|
|
|
+ this.$Message.info(res.msg)
|
|
|
+ this.getList()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else if (type === 'edit') {
|
|
|
+ FacPriceChange({
|
|
|
+ ...formData,
|
|
|
+ factoryPriceId: formData.id,
|
|
|
+ }).then((res) => {
|
|
|
+ if (res.code === 0) {
|
|
|
+ this.$Message.info(res.msg)
|
|
|
+ this.getList()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
+ getselectedList(list, multiple) {
|
|
|
+ console.log('????????????????????-----')
|
|
|
+ console.log(list)
|
|
|
+ console.log(multiple)
|
|
|
+ this.$refs.table.setModel('materialCode', list[0].code)
|
|
|
+ this.params6.materialCode = list[0].code
|
|
|
+ },
|
|
|
+ // 检索条件事件处理
|
|
|
+ eventHandle(option) {
|
|
|
+ switch (option._evnet) {
|
|
|
+ case 'search':
|
|
|
+ this['params' + this.tabName].pageIndex = 1
|
|
|
+ this['params' + this.tabName].workKey = option.workKey
|
|
|
+ this['params' + this.tabName].yearMonth = option.yearMonth
|
|
|
+ if (this.tabName === '6') {
|
|
|
+ this.params6.materialCode = option.materialCode
|
|
|
+ }
|
|
|
+ let date = new Date(
|
|
|
+ this.$dayjs(option.yearMonth).format('YYYY-MM')
|
|
|
+ ).getTime()
|
|
|
+ let now = new Date(
|
|
|
+ this.$dayjs().format('YYYY-MM')
|
|
|
+ ).getTime()
|
|
|
+ if (date > now) {
|
|
|
+ return this.$Message.error('日期不可大于当前月')
|
|
|
+ }
|
|
|
+ this.getList()
|
|
|
+ break
|
|
|
+ case 'export':
|
|
|
+ if (this[`data${this.tabName}`].length < 1)
|
|
|
+ return this.$Message.error('数据为空!')
|
|
|
+ // exportExcel(this[`columns${this.tabName}`], this[`data${this.tabName}`], '库存报表')
|
|
|
+ if (this.tabName === '1') {
|
|
|
+ GetMonthStockCheck({
|
|
|
+ ...this.params1,
|
|
|
+ pageIndex: 1,
|
|
|
+ pageSize: 99999,
|
|
|
+ }).then((res) => {
|
|
|
+ if (res.code === 0) {
|
|
|
+ exportExcel(
|
|
|
+ this[`columns${this.tabName}`],
|
|
|
+ res.result.list,
|
|
|
+ '盘盈亏单'
|
|
|
+ )
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else if (this.tabName === '2') {
|
|
|
+ GetStockInDocumentList({
|
|
|
+ ...this.params2,
|
|
|
+ pageIndex: 1,
|
|
|
+ pageSize: 99999,
|
|
|
+ }).then((res) => {
|
|
|
+ if (res.code === 0) {
|
|
|
+ exportExcel(
|
|
|
+ this[`columns${this.tabName}`],
|
|
|
+ res.result.list,
|
|
|
+ '入库序时簿'
|
|
|
+ )
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else if (this.tabName === '3') {
|
|
|
+ GetStockTakeDocumentList({
|
|
|
+ ...this.params3,
|
|
|
+ pageIndex: 1,
|
|
|
+ pageSize: 9999,
|
|
|
+ }).then((res) => {
|
|
|
+ if (res.code === 0) {
|
|
|
+ exportExcel(
|
|
|
+ this[`columns${this.tabName}`],
|
|
|
+ res.result.list,
|
|
|
+ '领料序时簿'
|
|
|
+ )
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else if (this.tabName === '4') {
|
|
|
+ GetMaterialStockInOutSum({
|
|
|
+ ...this.params4,
|
|
|
+ pageIndex: 1,
|
|
|
+ pageSize: 99999,
|
|
|
+ }).then((res) => {
|
|
|
+ if (res.code === 0) {
|
|
|
+ exportExcel(
|
|
|
+ this.columns_4,
|
|
|
+ res.result,
|
|
|
+ '物料收发汇总'
|
|
|
+ )
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else if (this.tabName === '5') {
|
|
|
+ GetMaterialMonthSum({
|
|
|
+ ...this.params5,
|
|
|
+ pageIndex: 1,
|
|
|
+ pageSize: 99999,
|
|
|
+ }).then((res) => {
|
|
|
+ if (res.code === 0) {
|
|
|
+ exportExcel(
|
|
|
+ this[`columns${this.tabName}`],
|
|
|
+ res.result.list,
|
|
|
+ '物料月汇总'
|
|
|
+ )
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else if (this.tabName === '6') {
|
|
|
+ GetStockWaterInOut({
|
|
|
+ ...this.params6,
|
|
|
+ pageIndex: 1,
|
|
|
+ pageSize: 99999,
|
|
|
+ }).then((res) => {
|
|
|
+ if (res.code === 0) {
|
|
|
+ exportExcel(
|
|
|
+ this[`columns${this.tabName}`],
|
|
|
+ res.result.list,
|
|
|
+ '物料进出信息'
|
|
|
+ )
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ break
|
|
|
+ case 'showMaterial':
|
|
|
+ this.show = true
|
|
|
+ break
|
|
|
+ }
|
|
|
+ },
|
|
|
+ changePage(pageIndex) {
|
|
|
+ this['params' + this.tabName].pageIndex = pageIndex
|
|
|
+ this.getList()
|
|
|
+ },
|
|
|
+ getList() {
|
|
|
+ this['data' + this.tabName] = []
|
|
|
+ if (this.tabName === '1') {
|
|
|
+ GetMonthStockCheck(this.params1).then((res) => {
|
|
|
+ if (res.code === 0) {
|
|
|
+ this.data1 = res.result.list
|
|
|
+ this.params1.total = res.result.totalCount
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else if (this.tabName === '2') {
|
|
|
+ GetStockInDocumentList(this.params2).then((res) => {
|
|
|
+ if (res.code === 0) {
|
|
|
+ this.data2 = res.result.list
|
|
|
+ this.params2.total = res.result.totalCount
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else if (this.tabName === '3') {
|
|
|
+ GetStockTakeDocumentList(this.params3).then((res) => {
|
|
|
+ if (res.code === 0) {
|
|
|
+ this.data3 = res.result.list
|
|
|
+ this.params3.total = res.result.totalCount
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else if (this.tabName === '4') {
|
|
|
+ GetMaterialStockInOutSum(this.params4).then((res) => {
|
|
|
+ if (res.code === 0) {
|
|
|
+ this.data4 = res.result
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else if (this.tabName === '5') {
|
|
|
+ GetMaterialMonthSum(this.params5).then((res) => {
|
|
|
+ if (res.code === 0) {
|
|
|
+ this.data5 = res.result.list
|
|
|
+ this.params5.total = res.result.totalCount
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else if (this.tabName === '6') {
|
|
|
+ GetStockWaterInOut(this.params6).then((res) => {
|
|
|
+ if (res.code === 0) {
|
|
|
+ this.data6 = res.result.list
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
+ },
|
|
|
+ mounted() {
|
|
|
+ this.tabClick('1')
|
|
|
+ this.getPickingPage()
|
|
|
+ },
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
<style lang="less" scoped>
|
|
|
.container {
|
|
|
- height: 100%;
|
|
|
+ height: 100%;
|
|
|
}
|
|
|
/deep/ .ivu-tabs {
|
|
|
- height: 100%;
|
|
|
- .ivu-tabs-content {
|
|
|
- height: ~"calc(100% - 52px)"
|
|
|
- }
|
|
|
+ height: 100%;
|
|
|
+ .ivu-tabs-content {
|
|
|
+ height: ~'calc(100% - 52px)';
|
|
|
+ }
|
|
|
}
|
|
|
</style>
|