给单据中移除原来的excel导出逻辑
This commit is contained in:
@@ -135,7 +135,7 @@
|
||||
<script>
|
||||
import BillDetail from '../bill/dialog/BillDetail'
|
||||
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
||||
import { getNowFormatYear, openDownloadDialog, sheet2blob} from "@/utils/util"
|
||||
import { getNowFormatYear } from "@/utils/util"
|
||||
import {getAction} from '@/api/manage'
|
||||
import {findBySelectSup, findBillDetailByNumber, getAllOrganizationTreeByUser} from '@/api/api'
|
||||
import JEllipsis from '@/components/jeecg/JEllipsis'
|
||||
|
||||
@@ -116,7 +116,7 @@
|
||||
</template>
|
||||
<script>
|
||||
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
||||
import { getNowFormatYear, getMpListShort, openDownloadDialog, sheet2blob} from "@/utils/util"
|
||||
import { getNowFormatYear, getMpListShort } from "@/utils/util"
|
||||
import {getAction} from '@/api/manage'
|
||||
import {findBySelectSup, getAllOrganizationTreeByUser} from '@/api/api'
|
||||
import JEllipsis from '@/components/jeecg/JEllipsis'
|
||||
|
||||
@@ -96,7 +96,7 @@
|
||||
<script>
|
||||
import DebtAccountList from './modules/DebtAccountList'
|
||||
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
||||
import { getNowFormatYear, openDownloadDialog, sheet2blob} from "@/utils/util"
|
||||
import { getNowFormatYear } from "@/utils/util"
|
||||
import { getAction } from '@/api/manage'
|
||||
import {findBySelectCus} from '@/api/api'
|
||||
import JEllipsis from '@/components/jeecg/JEllipsis'
|
||||
|
||||
@@ -136,7 +136,7 @@
|
||||
<script>
|
||||
import BillDetail from '../bill/dialog/BillDetail'
|
||||
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
||||
import { getNowFormatYear, openDownloadDialog, sheet2blob} from "@/utils/util"
|
||||
import { getNowFormatYear } from "@/utils/util"
|
||||
import {getAction} from '@/api/manage'
|
||||
import {findBySelectOrgan, findBillDetailByNumber, getUserList, getAllOrganizationTreeByUser} from '@/api/api'
|
||||
import JEllipsis from '@/components/jeecg/JEllipsis'
|
||||
|
||||
@@ -110,7 +110,7 @@
|
||||
</template>
|
||||
<script>
|
||||
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
||||
import { getNowFormatYear, openDownloadDialog, sheet2blob} from "@/utils/util"
|
||||
import { getNowFormatYear } from "@/utils/util"
|
||||
import {getAction} from '@/api/manage'
|
||||
import {findBySelectOrgan, getAllOrganizationTreeByUser} from '@/api/api'
|
||||
import JEllipsis from '@/components/jeecg/JEllipsis'
|
||||
|
||||
@@ -107,7 +107,7 @@
|
||||
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
||||
import { getAction } from '@/api/manage'
|
||||
import {queryMaterialCategoryTreeList} from '@/api/api'
|
||||
import { getMpListShort, openDownloadDialog, sheet2blob} from "@/utils/util"
|
||||
import { getMpListShort } from "@/utils/util"
|
||||
import JEllipsis from '@/components/jeecg/JEllipsis'
|
||||
import moment from 'moment'
|
||||
import Vue from 'vue'
|
||||
|
||||
@@ -136,7 +136,7 @@
|
||||
<script>
|
||||
import BillDetail from '../bill/dialog/BillDetail'
|
||||
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
||||
import { getNowFormatYear, openDownloadDialog, sheet2blob} from "@/utils/util"
|
||||
import { getNowFormatYear } from "@/utils/util"
|
||||
import {getAction} from '@/api/manage'
|
||||
import {findBySelectOrgan, findBillDetailByNumber, getUserList, getAllOrganizationTreeByUser} from '@/api/api'
|
||||
import JEllipsis from '@/components/jeecg/JEllipsis'
|
||||
|
||||
@@ -110,7 +110,7 @@
|
||||
</template>
|
||||
<script>
|
||||
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
||||
import { getNowFormatYear, openDownloadDialog, sheet2blob} from "@/utils/util"
|
||||
import { getNowFormatYear } from "@/utils/util"
|
||||
import {getAction} from '@/api/manage'
|
||||
import {findBySelectOrgan, getAllOrganizationTreeByUser} from '@/api/api'
|
||||
import JEllipsis from '@/components/jeecg/JEllipsis'
|
||||
|
||||
@@ -116,7 +116,7 @@
|
||||
</template>
|
||||
<script>
|
||||
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
||||
import { getNowFormatYear, getMpListShort, openDownloadDialog, sheet2blob} from "@/utils/util"
|
||||
import { getNowFormatYear, getMpListShort } from "@/utils/util"
|
||||
import {getAction} from '@/api/manage'
|
||||
import {findBySelectRetail, getAllOrganizationTreeByUser} from '@/api/api'
|
||||
import JEllipsis from '@/components/jeecg/JEllipsis'
|
||||
|
||||
@@ -116,7 +116,7 @@
|
||||
</template>
|
||||
<script>
|
||||
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
||||
import { getNowFormatYear, getMpListShort, openDownloadDialog, sheet2blob} from "@/utils/util"
|
||||
import { getNowFormatYear, getMpListShort } from "@/utils/util"
|
||||
import {getAction} from '@/api/manage'
|
||||
import {findBySelectCus, getAllOrganizationTreeByUser} from '@/api/api'
|
||||
import JEllipsis from '@/components/jeecg/JEllipsis'
|
||||
|
||||
@@ -77,7 +77,7 @@
|
||||
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
||||
import JEllipsis from '@/components/jeecg/JEllipsis'
|
||||
import {getAction} from '@/api/manage'
|
||||
import { getMpListShort, openDownloadDialog, sheet2blob} from "@/utils/util"
|
||||
import { getMpListShort } from "@/utils/util"
|
||||
import Vue from 'vue'
|
||||
export default {
|
||||
name: "StockWarningReport",
|
||||
|
||||
@@ -96,7 +96,7 @@
|
||||
<script>
|
||||
import DebtAccountList from './modules/DebtAccountList'
|
||||
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
||||
import { getNowFormatYear, openDownloadDialog, sheet2blob} from "@/utils/util"
|
||||
import { getNowFormatYear } from "@/utils/util"
|
||||
import { getAction } from '@/api/manage'
|
||||
import {findBySelectSup} from '@/api/api'
|
||||
import JEllipsis from '@/components/jeecg/JEllipsis'
|
||||
|
||||
@@ -71,7 +71,6 @@
|
||||
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
||||
import JEllipsis from '@/components/jeecg/JEllipsis'
|
||||
import { findBillDetailByNumber } from '@/api/api'
|
||||
import { openDownloadDialog, sheet2blob} from "@/utils/util"
|
||||
import { mixinDevice } from '@/utils/mixin'
|
||||
|
||||
export default {
|
||||
@@ -181,13 +180,16 @@
|
||||
})
|
||||
},
|
||||
exportExcel() {
|
||||
let aoa = [['单据编号', '类型', '条码', '名称', '仓库名称', '数量', '日期']]
|
||||
let list = []
|
||||
let head = '单据编号,类型,条码,名称,仓库名称,数量,日期'
|
||||
for (let i = 0; i < this.dataSource.length; i++) {
|
||||
let item = []
|
||||
let ds = this.dataSource[i]
|
||||
let item = [ds.number, ds.type, ds.barCode, ds.materialName, ds.depotName, ds.basicNumber, ds.operTime]
|
||||
aoa.push(item)
|
||||
item.push(ds.number, ds.type, ds.barCode, ds.materialName, ds.depotName, ds.basicNumber, ds.operTime)
|
||||
list.push(item)
|
||||
}
|
||||
openDownloadDialog(sheet2blob(aoa), '商品库存流水')
|
||||
let tip = '商品库存流水查询'
|
||||
this.handleExportXlsPost('商品库存流水', '商品库存流水', head, tip, list)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user