list.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443
  1. <template>
  2. <div>
  3. <a-card size="small" :bordered="false" class="salesDetailsList-wrap searchBottomSpace">
  4. <!-- 搜索条件 -->
  5. <div class="table-page-search-wrapper" ref="tableSearch">
  6. <a-form-model
  7. id="salesSlipReportList-form"
  8. ref="ruleForm"
  9. class="form-model-con"
  10. layout="inline"
  11. :model="queryParam"
  12. :rules="rules"
  13. @keyup.enter.native="handleSearch">
  14. <a-row :gutter="15">
  15. <a-col :md="6" :sm="24">
  16. <a-form-model-item label="销售日期" prop="time">
  17. <rangeDate ref="rangeDate" :value="queryParam.time" @change="dateChange" />
  18. </a-form-model-item>
  19. </a-col>
  20. <a-col :md="6" :sm="24">
  21. <a-form-model-item label="销售单号">
  22. <a-input id="salesDetailsList-salesBillNo" v-model.trim="queryParam.salesBillNo" allowClear placeholder="请输入销售单号"/>
  23. </a-form-model-item>
  24. </a-col>
  25. <a-col :md="6" :sm="24">
  26. <a-form-model-item label="产品编码">
  27. <a-input id="salesDetailsList-productCode" v-model.trim="queryParam.productCode" allowClear placeholder="请输入产品编码"/>
  28. </a-form-model-item>
  29. </a-col>
  30. <a-col :md="6" :sm="24">
  31. <a-form-model-item label="产品名称">
  32. <a-input id="salesDetailsList-productName" v-model.trim="queryParam.productName" allowClear placeholder="请输入产品名称"/>
  33. </a-form-model-item>
  34. </a-col>
  35. <a-col :md="6" :sm="24">
  36. <a-form-model-item label="客户名称">
  37. <a-input id="salesDetailsList-dealerName" v-model.trim="queryParam.dealerName" allowClear placeholder="请输入客户名称"/>
  38. </a-form-model-item>
  39. </a-col>
  40. <a-col :md="6" :sm="24">
  41. <a-form-model-item label="客户级别">
  42. <v-select
  43. v-model="queryParam.dealerLevel"
  44. ref="dealerLevel"
  45. id="salesDetailsList-dealerLevel"
  46. code="DEALER_LEVEL"
  47. placeholder="请选择客户级别"
  48. allowClear></v-select>
  49. </a-form-model-item>
  50. </a-col>
  51. <template v-if="advanced">
  52. <a-col :md="6" :sm="24">
  53. <a-form-model-item label="品牌分类">
  54. <v-select code="BRAND_TYPE" id="salesDetailsList-productBrandTypeSn" v-model="queryParam.productBrandTypeSn" allowClear placeholder="请选择品牌分类"></v-select>
  55. </a-form-model-item>
  56. </a-col>
  57. <a-col :md="6" :sm="24">
  58. <a-form-model-item label="产品品牌">
  59. <ProductBrand id="salesDetailsList-productBrandSn" :brandType="queryParam.productBrandTypeSn" v-model="queryParam.productBrandSn"></ProductBrand>
  60. </a-form-model-item>
  61. </a-col>
  62. <a-col :md="6" :sm="24">
  63. <a-form-model-item label="产品分类">
  64. <ProductType id="salesDetailsList-productType" placeholder="请选择产品分类" @change="changeProductType" v-model="productType"></ProductType>
  65. </a-form-model-item>
  66. </a-col>
  67. <a-col :md="6" :sm="24">
  68. <a-form-model-item label="出库仓库">
  69. <chooseWarehouse ref="warehouse" isPermission v-model="queryParam.warehouseSn"></chooseWarehouse>
  70. </a-form-model-item>
  71. </a-col>
  72. <a-col :md="6" :sm="24">
  73. <a-form-model-item label="所在区域">
  74. <subarea id="salesDetailsList-subareaSn" ref="subarea" @change="subareaChange"></subarea>
  75. </a-form-model-item>
  76. </a-col>
  77. <a-col :md="6" :sm="24">
  78. <a-form-model-item label="区域负责人">
  79. <BizUser v-model="queryParam.subareaArea.bizUserSn"></BizUser>
  80. </a-form-model-item>
  81. </a-col>
  82. <a-col :md="6" :sm="24">
  83. <a-form-model-item label="地区">
  84. <AreaList id="salesDetailsList-areaList" changeOnSelect ref="areaList" @change="areaChange" defValKey="id"></AreaList>
  85. </a-form-model-item>
  86. </a-col>
  87. <a-col :md="6" :sm="24">
  88. <a-form-model-item label="促销产品">
  89. <a-select v-model="queryParam.giftFLag" placeholder="请选择促销产品" allowClear>
  90. <a-select-option value="1">
  91. </a-select-option>
  92. <a-select-option value="0">
  93. </a-select-option>
  94. </a-select>
  95. </a-form-model-item>
  96. </a-col>
  97. </template>
  98. <a-col :md="12" :sm="24" style="margin-bottom: 10px;">
  99. <a-button
  100. type="primary"
  101. class="button-info"
  102. size="small"
  103. @click="handleStock"
  104. id="salesDetailsList-stockDate">盘点区间日期</a-button>
  105. <a-button style="margin-left: 5px" type="primary" @click="handleSearch" :disabled="disabled" id="salesDetailsList-refresh">查询</a-button>
  106. <a-button style="margin-left: 5px" @click="resetSearchForm" :disabled="disabled" id="salesDetailsList-reset">重置</a-button>
  107. <a-button
  108. style="margin-left: 5px"
  109. type="primary"
  110. class="button-warning"
  111. @click="handleExport"
  112. :disabled="disabled"
  113. :loading="exportLoading"
  114. v-if="$hasPermissions('B_salesDetailsExport')"
  115. id="salesDetailsList-export">导出</a-button>
  116. <a @click="advanced=!advanced" style="margin-left: 5px">
  117. {{ advanced ? '收起' : '展开' }}
  118. <a-icon :type="advanced ? 'up' : 'down'"/>
  119. </a>
  120. </a-col>
  121. </a-row>
  122. </a-form-model>
  123. </div>
  124. </a-card>
  125. <a-card size="small" :bordered="false">
  126. <a-spin :spinning="spinning" tip="Loading...">
  127. <!-- 列表 -->
  128. <s-table
  129. class="sTable"
  130. ref="table"
  131. size="small"
  132. :rowKey="(record) => record.no"
  133. rowKeyName="no"
  134. :columns="columns"
  135. :data="loadData"
  136. :style="{ height: tableHeight+84.5+'px' }"
  137. :scroll="{ x: 2480 , y: tableHeight }"
  138. :defaultLoadData="false"
  139. bordered>
  140. <template slot="footer">
  141. <a-row :gutter="15">
  142. <a-col :md="4" :sm="24">数量:{{ (totalData && (totalData.qty || totalData.qty==0)) ? totalData.qty : '--' }}</a-col>
  143. <a-col :md="4" :sm="24" v-if="$hasPermissions('M_salesDetailsList_salesPrice')">实售价:{{ (totalData && (totalData.totalRealSaleAmount || totalData.totalRealSaleAmount==0)) ? toThousands(totalData.totalRealSaleAmount) : '--' }}</a-col>
  144. <a-col :md="4" :sm="24" v-if="$hasPermissions('M_salesDetailsList_salesPrice')">开单价:{{ (totalData && (totalData.totalAmount || totalData.totalAmount==0)) ? toThousands(totalData.totalAmount) : '--' }}</a-col>
  145. <a-col :md="4" :sm="24" v-if="$hasPermissions('M_salesDetailsList_costPrice')">成本:{{ (totalData && (totalData.totalRealCost || totalData.totalRealCost==0)) ? toThousands(totalData.totalRealCost) : '--' }}</a-col>
  146. <a-col :md="4" :sm="24" v-if="$hasPermissions('M_salesDetailsList_salesPrice')">优惠金额:{{ (totalData && (totalData.discountAmount || totalData.discountAmount==0)) ? toThousands(totalData.discountAmount) : '--' }}</a-col>
  147. <!-- <a-col :md="4" :sm="24" v-if="$hasPermissions('M_salesDetailsList_salesPrice')">折后金额:{{ (totalData && (totalData.discountedAmount || totalData.discountedAmount==0)) ? toThousands(totalData.discountedAmount) : '--' }}</a-col>
  148. <a-col :md="4" :sm="24" v-if="$hasPermissions('M_salesDetailsList_salesPrice')">折扣金额:{{ (totalData && (totalData.discountAmount || totalData.discountAmount==0)) ? toThousands(totalData.discountAmount) : '--' }}</a-col> -->
  149. </a-row>
  150. </template>
  151. </s-table>
  152. </a-spin>
  153. <!-- 导出提示框 -->
  154. <reportModal :visible="showExport" @close="showExport=false"></reportModal>
  155. </a-card>
  156. </div>
  157. </template>
  158. <script>
  159. import { commonMixin } from '@/utils/mixin'
  160. import getDate from '@/libs/getDate.js'
  161. import { STable, VSelect } from '@/components'
  162. import rangeDate from '@/views/common/rangeDate.vue'
  163. import subarea from '@/views/common/subarea.js'
  164. import custList from '@/views/common/custList.vue'
  165. import reportModal from '@/views/common/reportModal.vue'
  166. import AreaList from '@/views/common/areaList.js'
  167. import ProductBrand from '@/views/common/productBrand.js'
  168. import ProductType from '@/views/common/productType.js'
  169. import chooseWarehouse from '@/views/common/chooseWarehouse'
  170. import BizUser from '@/views/common/bizUser.js'
  171. import { hdExportExcel } from '@/libs/exportExcel'
  172. import { reportSalesBillDetailList, reportSalesBillDetailCount, reportSalesBillDetailExport } from '@/api/reportData'
  173. export default {
  174. name: 'SalesDetailsList',
  175. mixins: [commonMixin],
  176. components: { STable, VSelect, rangeDate, custList, subarea, ProductBrand, ProductType, reportModal, AreaList, chooseWarehouse, BizUser },
  177. data () {
  178. return {
  179. spinning: false,
  180. advanced: false, // 高级搜索 展开/关闭
  181. tableHeight: 0,
  182. showExport: false,
  183. queryParam: { // 查询条件
  184. time: [
  185. getDate.getCurrMonthDays().starttime,
  186. getDate.getCurrMonthDays().endtime
  187. ],
  188. beginDate: getDate.getCurrMonthDays().starttime,
  189. endDate: getDate.getCurrMonthDays().endtime,
  190. salesBillNo: '',
  191. productCode: '',
  192. productName: '',
  193. dealerName: '',
  194. dealerLevel: undefined,
  195. productBrandTypeSn: undefined,
  196. productBrandSn: undefined, // 产品品牌
  197. productTypeSn1: '', // 产品一级分类
  198. productTypeSn2: '', // 产品二级分类
  199. productTypeSn3: '', // 产品三级分类
  200. subareaArea: {
  201. subareaSn: undefined,
  202. subareaAreaSn: undefined,
  203. bizUserSn: undefined
  204. },
  205. dealerProvinceSn: undefined,
  206. dealerCitySn: undefined,
  207. dealerCountySn: undefined,
  208. warehouseSn: undefined,
  209. giftFLag: undefined
  210. },
  211. productType: [],
  212. rules: {
  213. 'time': [{ required: true, message: '请选择销售日期', trigger: 'change' }]
  214. },
  215. disabled: false, // 查询、重置按钮是否可操作
  216. exportLoading: false,
  217. // 加载数据方法 必须为 Promise 对象
  218. loadData: parameter => {
  219. this.disabled = true
  220. this.spinning = true
  221. const params = Object.assign(parameter, this.queryParam)
  222. return reportSalesBillDetailList(params).then(res => {
  223. let data
  224. if (res.status == 200) {
  225. data = res.data
  226. this.getCount(params)
  227. const no = (data.pageNo - 1) * data.pageSize
  228. for (var i = 0; i < data.list.length; i++) {
  229. data.list[i].no = no + i + 1
  230. }
  231. this.disabled = false
  232. }
  233. this.spinning = false
  234. return data
  235. })
  236. },
  237. totalData: null
  238. }
  239. },
  240. computed: {
  241. columns () {
  242. const _this = this
  243. const arr = [
  244. { title: '区域', dataIndex: 'subareaArea.subareaName', width: 100, align: 'center', customRender: function (text) { return text || '--' } },
  245. { title: '分区', dataIndex: 'subareaArea.subareaAreaName', width: 100, align: 'center', customRender: function (text) { return text || '--' } },
  246. { title: '区域负责人', dataIndex: 'subareaArea.bizUserName', width: 100, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
  247. { title: '销售单号', dataIndex: 'salesBillNo', width: 140, align: 'center', customRender: function (text) { return text || '--' } },
  248. { title: '出库仓库', dataIndex: 'warehouseName', width: 120, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
  249. { title: '省份', dataIndex: 'dealerProvinceName', width: 90, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
  250. { title: '客户名称', dataIndex: 'dealerName', width: 120, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
  251. { title: '客户级别', dataIndex: 'dealerLevelDictValue', width: 120, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
  252. { title: '直接绑定客户名称', dataIndex: 'directDealerName', width: 120, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
  253. { title: '间接绑定客户名称', dataIndex: 'indirectDealerName', width: 120, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
  254. { title: '开单日期', dataIndex: 'createDate', width: 130, align: 'center', customRender: function (text) { return text || '--' } },
  255. { title: '销售日期', dataIndex: 'salesTime', width: 130, align: 'center', customRender: function (text) { return text || '--' } },
  256. { title: '品牌', dataIndex: 'productBrandName', width: 130, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
  257. { title: '二级分类', dataIndex: 'productTypeName2', width: 130, align: 'center', customRender: function (text) { return text || '--' } },
  258. { title: '产品名称', dataIndex: 'productName', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
  259. { title: '产品编码', dataIndex: 'productCode', width: 150, align: 'center', customRender: function (text) { return text || '--' } },
  260. { title: '单位', dataIndex: 'productUnit', width: 50, align: 'center', customRender: function (text) { return text || '--' } },
  261. { title: '销售数量', dataIndex: 'qty', width: 70, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } }
  262. // { title: '成本价', dataIndex: 'totalRealCost', width: 70, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
  263. // { title: '实售价', dataIndex: 'totalRealSaleAmount', width: 70, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
  264. // { title: '开单价', dataIndex: 'totalAmount', width: 70, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
  265. // { title: '市级价', dataIndex: 'totalCityAmount', width: 70, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
  266. // { title: '直接差价', dataIndex: 'directRebateAmount', width: 70, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
  267. // { title: '间接差价', dataIndex: 'indirectRebateAmount', width: 70, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
  268. // { title: '折后单价', dataIndex: 'discountedPrice', width: 70, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
  269. // { title: '折扣金额', dataIndex: 'discountAmount', width: 70, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
  270. ]
  271. if (this.$hasPermissions('M_salesDetailsList_costPrice')) { // 成本价权限
  272. arr.splice(16, 0, { title: '成本价', dataIndex: 'totalRealCost', width: 70, align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
  273. }
  274. if (this.$hasPermissions('M_salesDetailsList_salesPrice')) { // 售价权限
  275. arr.push({ title: '实售价', dataIndex: 'totalRealSaleAmount', width: 70, align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
  276. arr.push({ title: '开单价', dataIndex: 'totalAmount', width: 70, align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
  277. }
  278. if (this.$hasPermissions('M_salesDetailsList_cityPrice')) { // 市级价权限
  279. arr.push({ title: '市级价', dataIndex: 'totalCityAmount', width: 70, align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
  280. }
  281. if (this.$hasPermissions('M_salesDetailsList_salesPrice')) { // 售价权限
  282. arr.push({ title: '直接差价', dataIndex: 'directRebateAmount', width: 70, align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
  283. arr.push({ title: '间接差价', dataIndex: 'indirectRebateAmount', width: 70, align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
  284. arr.push({ title: '优惠金额', dataIndex: 'discountAmount', width: 70, align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
  285. // arr.push({ title: '折后单价', dataIndex: 'discountedPrice', width: 70, align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
  286. // arr.push({ title: '折扣金额', dataIndex: 'discountAmount', width: 70, align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
  287. }
  288. arr.push({ title: '操作员', dataIndex: 'operatorName', width: 150, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true })
  289. return arr
  290. }
  291. },
  292. watch: {
  293. advanced (newValue, oldValue) {
  294. const _this = this
  295. this.$nextTick(() => { // 页面渲染完成后的回调
  296. _this.setTableH()
  297. })
  298. },
  299. '$store.state.app.winHeight' (newValue, oldValue) { // 窗口变更时,需同时更改表格高度
  300. this.setTableH()
  301. }
  302. },
  303. methods: {
  304. // 盘点库存日期
  305. handleStock () {
  306. this.$message.info('无盘点区间的起始/终止时间,请自行选择日期区间查询!')
  307. },
  308. // 总计
  309. getCount (params) {
  310. reportSalesBillDetailCount(params).then(res => {
  311. if (res.status == 200 && res.data) {
  312. this.totalData = res.data
  313. } else {
  314. this.totalData = null
  315. }
  316. })
  317. },
  318. handleSearch () {
  319. const _this = this
  320. this.$refs.ruleForm.validate(valid => {
  321. if (valid) {
  322. _this.$refs.table.refresh(true)
  323. } else {
  324. _this.$message.error('请选择销售日期')
  325. return false
  326. }
  327. })
  328. },
  329. // 创建时间 change
  330. dateChange (date) {
  331. if (date[0] && date[1]) {
  332. this.queryParam.time = date
  333. } else {
  334. this.queryParam.time = []
  335. }
  336. this.queryParam.beginDate = date[0] || ''
  337. this.queryParam.endDate = date[1] || ''
  338. },
  339. custChange (val) {
  340. this.queryParam.dealerSn = val.key
  341. },
  342. subareaChange (val) {
  343. this.queryParam.subareaArea.subareaSn = val[0] ? val[0] : undefined
  344. this.queryParam.subareaArea.subareaAreaSn = val[1] ? val[1] : undefined
  345. },
  346. // 重置
  347. resetSearchForm () {
  348. this.queryParam.time = [
  349. getDate.getCurrMonthDays().starttime,
  350. getDate.getCurrMonthDays().endtime
  351. ]
  352. this.$refs.rangeDate.resetDate(this.queryParam.time)
  353. this.queryParam.beginDate = getDate.getCurrMonthDays().starttime
  354. this.queryParam.endDate = getDate.getCurrMonthDays().endtime
  355. this.queryParam.salesBillNo = ''
  356. this.queryParam.productCode = ''
  357. this.queryParam.productName = ''
  358. this.queryParam.dealerName = ''
  359. this.queryParam.dealerLevel = undefined
  360. this.queryParam.productBrandTypeSn = undefined
  361. this.queryParam.productBrandSn = undefined
  362. this.queryParam.productTypeSn1 = ''
  363. this.queryParam.productTypeSn2 = ''
  364. this.queryParam.productTypeSn3 = ''
  365. this.queryParam.subareaArea.subareaSn = undefined
  366. this.queryParam.subareaArea.subareaAreaSn = undefined
  367. this.queryParam.subareaArea.bizUserSn = undefined
  368. this.queryParam.dealerProvinceSn = undefined
  369. this.queryParam.dealerCitySn = undefined
  370. this.queryParam.dealerCountySn = undefined
  371. this.queryParam.warehouseSn = undefined
  372. this.queryParam.giftFLag = undefined
  373. if (this.advanced) {
  374. this.$refs.subarea.clearData()
  375. this.$refs.areaList.clearData()
  376. }
  377. this.productType = []
  378. this.totalData = null
  379. this.$refs.ruleForm.resetFields()
  380. this.$refs.table.clearTable()
  381. },
  382. // 导出
  383. handleExport () {
  384. const _this = this
  385. this.$refs.ruleForm.validate(valid => {
  386. if (valid) {
  387. const params = _this.queryParam
  388. _this.$store.state.app.curActionPermission = 'B_salesDetailsExport'
  389. _this.showExport = true
  390. _this.exportLoading = true
  391. _this.spinning = true
  392. hdExportExcel(reportSalesBillDetailExport, params, '销售明细(开单统计)报表', function () {
  393. _this.exportLoading = false
  394. _this.spinning = false
  395. _this.$store.state.app.curActionPermission = ''
  396. })
  397. } else {
  398. return false
  399. }
  400. })
  401. },
  402. // 产品分类 change
  403. changeProductType (val, opt) {
  404. this.queryParam.productTypeSn1 = val[0] ? val[0] : ''
  405. this.queryParam.productTypeSn2 = val[1] ? val[1] : ''
  406. this.queryParam.productTypeSn3 = val[2] ? val[2] : ''
  407. },
  408. areaChange (val) {
  409. this.queryParam.dealerProvinceSn = val[0] ? val[0] : ''
  410. this.queryParam.dealerCitySn = val[1] ? val[1] : ''
  411. this.queryParam.dealerCountySn = val[2] ? val[2] : ''
  412. },
  413. pageInit () {
  414. const _this = this
  415. this.$nextTick(() => { // 页面渲染完成后的回调
  416. _this.setTableH()
  417. })
  418. _this.resetSearchForm()
  419. },
  420. setTableH () {
  421. const tableSearchH = this.$refs.tableSearch.offsetHeight
  422. this.tableHeight = window.innerHeight - tableSearchH - 230
  423. }
  424. },
  425. mounted () {
  426. if (!this.$store.state.app.isNewTab) { // 页签刷新时调用
  427. this.pageInit()
  428. }
  429. },
  430. activated () {
  431. // 如果是新页签打开,则重置当前页面
  432. if (this.$store.state.app.isNewTab) {
  433. this.pageInit()
  434. }
  435. },
  436. beforeRouteEnter (to, from, next) {
  437. next(vm => {})
  438. }
  439. }
  440. </script>