增加单据导出的埋点
This commit is contained in:
@@ -109,6 +109,7 @@
|
||||
<!-- 操作按钮区域 -->
|
||||
<div class="table-operator" style="margin-top: 5px">
|
||||
<a-button v-if="btnEnableList.indexOf(1)>-1" @click="myHandleAdd" type="primary" icon="plus">新增</a-button>
|
||||
<a-button v-if="isShowExcel" type="primary" icon="download" @click="handleExport">导出</a-button>
|
||||
<a-dropdown>
|
||||
<a-menu slot="overlay">
|
||||
<a-menu-item key="1" v-if="btnEnableList.indexOf(1)>-1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
|
||||
@@ -194,6 +195,7 @@
|
||||
<!-- 表单区域 -->
|
||||
<purchase-in-modal ref="modalForm" @ok="modalFormOk" @close="modalFormClose"></purchase-in-modal>
|
||||
<bill-detail ref="modalDetail" @ok="modalFormOk" @close="modalFormClose"></bill-detail>
|
||||
<bill-excel-iframe ref="billExcelIframe" @ok="modalFormOk" @close="modalFormClose"></bill-excel-iframe>
|
||||
</a-card>
|
||||
</a-col>
|
||||
</a-row>
|
||||
@@ -202,6 +204,7 @@
|
||||
<script>
|
||||
import PurchaseInModal from './modules/PurchaseInModal'
|
||||
import BillDetail from './dialog/BillDetail'
|
||||
import BillExcelIframe from '@/components/tools/BillExcelIframe'
|
||||
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
||||
import { BillListMixin } from './mixins/BillListMixin'
|
||||
import JEllipsis from '@/components/jeecg/JEllipsis'
|
||||
@@ -213,6 +216,7 @@
|
||||
components: {
|
||||
PurchaseInModal,
|
||||
BillDetail,
|
||||
BillExcelIframe,
|
||||
JEllipsis,
|
||||
JDate
|
||||
},
|
||||
|
||||
@@ -2,7 +2,7 @@ import Vue from 'vue'
|
||||
import {getAction } from '@/api/manage'
|
||||
import { FormTypes } from '@/utils/JEditableTableUtil'
|
||||
import {findBillDetailByNumber, findBySelectSup, findBySelectCus, findBySelectRetail, getUserList, getAccount,
|
||||
getCurrentSystemConfig} from '@/api/api'
|
||||
getCurrentSystemConfig, getPlatformConfigByKey} from '@/api/api'
|
||||
import { getCheckFlag } from "@/utils/util"
|
||||
|
||||
export const BillListMixin = {
|
||||
@@ -10,6 +10,9 @@ export const BillListMixin = {
|
||||
return {
|
||||
/* 原始审核是否开启 */
|
||||
checkFlag: true,
|
||||
/* 单据Excel是否开启 */
|
||||
isShowExcel: false,
|
||||
billExcelUrl: '',
|
||||
supList: [],
|
||||
cusList: [],
|
||||
retailList: [],
|
||||
@@ -120,6 +123,14 @@ export const BillListMixin = {
|
||||
this.checkFlag = getCheckFlag(multiBillType, multiLevelApprovalFlag, this.prefixNo)
|
||||
}
|
||||
})
|
||||
getPlatformConfigByKey({ "platformKey": "bill_excel_url" }).then((res) => {
|
||||
if (res && res.code === 200) {
|
||||
if(res.data.platformValue) {
|
||||
this.isShowExcel = true
|
||||
this.billExcelUrl = res.data.platformValue + '?no='
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
initSupplier() {
|
||||
let that = this;
|
||||
@@ -193,6 +204,11 @@ export const BillListMixin = {
|
||||
handleRestDefault() {
|
||||
Vue.ls.remove(this.prefixNo)
|
||||
this.initColumnsSetting()
|
||||
},
|
||||
//导出单据
|
||||
handleExport() {
|
||||
this.$refs.billExcelIframe.show(this.model, this.billExcelUrl, 150)
|
||||
this.$refs.billExcelIframe.title = "确认导出"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -929,12 +929,12 @@
|
||||
getMaxBarCode({}).then((res)=> {
|
||||
if (res && res.code === 200) {
|
||||
this.maxBarCodeInfo = res.data.barCode - 0
|
||||
this.maxBarCodeInfo = this.maxBarCodeInfo + 1
|
||||
this.maxBarCodeInfo = this.maxBarCodeInfo
|
||||
target.setValues([{rowKey: row.id, values: {barCode: this.maxBarCodeInfo, commodityUnit: unit?unit:''}}])
|
||||
}
|
||||
})
|
||||
} else {
|
||||
this.maxBarCodeInfo = this.maxBarCodeInfo + 1
|
||||
this.maxBarCodeInfo = this.maxBarCodeInfo
|
||||
target.setValues([{rowKey: row.id, values: {barCode: this.maxBarCodeInfo, commodityUnit: unit?unit:''}}])
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user