|
@@ -4,7 +4,8 @@
|
|
<div class="salesCard">
|
|
<div class="salesCard">
|
|
<a-tabs default-active-key="1" size="large" :tab-bar-style="{marginBottom: '24px', paddingLeft: '16px'}">
|
|
<a-tabs default-active-key="1" size="large" :tab-bar-style="{marginBottom: '24px', paddingLeft: '16px'}">
|
|
<div class="table-operator" style="margin-bottom: 8px;margin-top: 8px;" slot="tabBarExtraContent">
|
|
<div class="table-operator" style="margin-bottom: 8px;margin-top: 8px;" slot="tabBarExtraContent">
|
|
- <a-select style="margin-left: 8px" v-model="queryParam.useType" placeholder="请选择">
|
|
|
|
|
|
+
|
|
|
|
+ <a-select style="margin-left: 8px;width:150px" v-model="queryParam.useType" placeholder="请选择">
|
|
<a-select-option
|
|
<a-select-option
|
|
v-for="(label,value) in useTypeMap"
|
|
v-for="(label,value) in useTypeMap"
|
|
:key="value"
|
|
:key="value"
|
|
@@ -12,6 +13,14 @@
|
|
:value="parseInt(value)">{{ label }}
|
|
:value="parseInt(value)">{{ label }}
|
|
</a-select-option>
|
|
</a-select-option>
|
|
</a-select>
|
|
</a-select>
|
|
|
|
+ <a-select style="margin-left: 8px;width:150px" v-model="queryParam.typeId" placeholder="请选择">
|
|
|
|
+ <a-select-option
|
|
|
|
+ v-for="{name,id} in typeList"
|
|
|
|
+ :key="id"
|
|
|
|
+ :label="name"
|
|
|
|
+ :value="id">{{ name }}
|
|
|
|
+ </a-select-option>
|
|
|
|
+ </a-select>
|
|
<a-button style="margin-left: 8px" type="default" @click="getData()">查询</a-button>
|
|
<a-button style="margin-left: 8px" type="default" @click="getData()">查询</a-button>
|
|
<a-button style="margin-left: 8px" type="primary" @click="handlePrint()">打印</a-button>
|
|
<a-button style="margin-left: 8px" type="primary" @click="handlePrint()">打印</a-button>
|
|
<a-button style="margin-left: 8px" type="primary" @click="doExport()">导出</a-button>
|
|
<a-button style="margin-left: 8px" type="primary" @click="doExport()">导出</a-button>
|
|
@@ -58,7 +67,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import { getMonthReport, exportMonthReport } from '@/api/report/sbinfo'
|
|
|
|
|
|
+import { getMonthReport, exportMonthReport, getSbType } from '@/api/report/sbinfo'
|
|
import { Chart } from '@antv/g2'
|
|
import { Chart } from '@antv/g2'
|
|
import PrintInSbInfoTypeReport from '@/views/dashboard/modules/PrintInSbInfoTypeReport'
|
|
import PrintInSbInfoTypeReport from '@/views/dashboard/modules/PrintInSbInfoTypeReport'
|
|
import DetailMeasureLogReport from '@/views/dashboard/modules/DetailMeasureLogReport'
|
|
import DetailMeasureLogReport from '@/views/dashboard/modules/DetailMeasureLogReport'
|
|
@@ -82,8 +91,10 @@ export default {
|
|
loading: false,
|
|
loading: false,
|
|
useTypeMap: {},
|
|
useTypeMap: {},
|
|
queryParam: {
|
|
queryParam: {
|
|
- useType: 4
|
|
|
|
|
|
+ useType: 4,
|
|
|
|
+ typeId: ''
|
|
},
|
|
},
|
|
|
|
+ typeList: [],
|
|
visible: true,
|
|
visible: true,
|
|
chart: null, // 创建一个chart变量
|
|
chart: null, // 创建一个chart变量
|
|
chartsData: [],
|
|
chartsData: [],
|
|
@@ -126,6 +137,10 @@ export default {
|
|
},
|
|
},
|
|
created () {
|
|
created () {
|
|
this.useTypeMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.SB_USE_TYPE)
|
|
this.useTypeMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.SB_USE_TYPE)
|
|
|
|
+ getSbType().then(res => {
|
|
|
|
+ console.log(res)
|
|
|
|
+ this.typeList = res.data
|
|
|
|
+ })
|
|
},
|
|
},
|
|
mounted () {
|
|
mounted () {
|
|
this.$nextTick(function () {
|
|
this.$nextTick(function () {
|