list.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494
  1. <template>
  2. <a-card size="small" :bordered="false" class="salesManagementList-wrap">
  3. <a-spin :spinning="spinning" tip="Loading...">
  4. <!-- 搜索条件 -->
  5. <div ref="tableSearch" class="table-page-search-wrapper">
  6. <a-form layout="inline">
  7. <a-row :gutter="15">
  8. <a-col :md="6" :sm="24">
  9. <a-form-item label="创建时间">
  10. <rangeDate ref="rangeDate" :value="time" @change="dateChange" />
  11. </a-form-item>
  12. </a-col>
  13. <a-col :md="6" :sm="24">
  14. <a-form-item label="客户名称" :label-col="{ span:7 }" :wrapper-col="{ span:17}">
  15. <dealerSubareaScopeList ref="dealerSubareaScopeList" id="salesManagementList-buyerName" @change="custChange" />
  16. </a-form-item>
  17. </a-col>
  18. <a-col :md="6" :sm="24">
  19. <a-form-item label="销售单号">
  20. <a-input id="salesManagementList-salesBillNo" v-model.trim="queryParam.salesBillNo" allowClear placeholder="请输入销售单号"/>
  21. </a-form-item>
  22. </a-col>
  23. <template v-if="advanced">
  24. <a-col :md="6" :sm="24">
  25. <a-form-item label="采购单号">
  26. <a-input id="salesManagementList-purchaseBillNo" v-model.trim="queryParam.purchaseBillNo" allowClear placeholder="请输入采购单号"/>
  27. </a-form-item>
  28. </a-col>
  29. <a-col :md="6" :sm="24">
  30. <a-form-item label="打印状态">
  31. <v-select
  32. v-model="queryParam.printStatus"
  33. ref="printStatus"
  34. id="salesManagementList-printStatus"
  35. code="PRINT_STATUS"
  36. placeholder="请选择打印状态"
  37. allowClear></v-select>
  38. </a-form-item>
  39. </a-col>
  40. <a-col :md="6" :sm="24">
  41. <a-form-item label="业务状态">
  42. <v-select
  43. v-model="queryParam.billStatus"
  44. ref="billStatus"
  45. id="salesManagementList-billStatus"
  46. code="SALES_BILL_STATUS"
  47. placeholder="请选择业务状态"
  48. allowClear></v-select>
  49. </a-form-item>
  50. </a-col>
  51. <a-col :md="6" :sm="24">
  52. <a-form-item label="财务状态">
  53. <v-select
  54. v-model="queryParam.financialStatus"
  55. ref="financialStatus"
  56. id="salesManagementList-financialStatus"
  57. code="FINANCIAL_RECEIVE_STATUS"
  58. placeholder="请选择财务状态"
  59. allowClear></v-select>
  60. </a-form-item>
  61. </a-col>
  62. <a-col :md="6" :sm="24">
  63. <a-form-item label="单据来源">
  64. <v-select
  65. v-model="queryParam.salesBillSource"
  66. ref="salesBillSource"
  67. id="salesManagementList-salesBillSource"
  68. code="SALES_SOURCE"
  69. placeholder="请选择单据来源"
  70. allowClear></v-select>
  71. </a-form-item>
  72. </a-col>
  73. <a-col :md="6" :sm="24">
  74. <a-form-model-item label="所在区域">
  75. <subarea id="salesManagementList-subarea" v-model="queryParam.subareaSn"></subarea>
  76. </a-form-model-item>
  77. </a-col>
  78. <a-col :md="6" :sm="24">
  79. <a-form-model-item label="地区">
  80. <a-form-model-item prop="shippingAddrProvinceSn">
  81. <a-select id="salesManagementList-shippingAddrProvinceSn" allowClear v-model="queryParam.shippingAddrProvinceSn" placeholder="请选择省">
  82. <a-select-option v-for="item in addrProvinceList" :value="item.areaSn" :key="item.areaSn + 'a'">{{ item.name }}</a-select-option>
  83. </a-select>
  84. </a-form-model-item>
  85. </a-form-model-item>
  86. </a-col>
  87. </template>
  88. <a-col :md="6" :sm="24">
  89. <span class="table-page-search-submitButtons">
  90. <a-button type="primary" :disabled="disabled" @click="$refs.table.refresh(true)">查询</a-button>
  91. <a-button style="margin-left: 8px" :disabled="disabled" @click="resetSearchForm()">重置</a-button>
  92. <a @click="advanced=!advanced" style="margin-left: 8px">
  93. {{ advanced ? '收起' : '展开' }}
  94. <a-icon :type="advanced ? 'up' : 'down'"/>
  95. </a>
  96. </span>
  97. </a-col>
  98. </a-row>
  99. </a-form>
  100. </div>
  101. <!-- 操作按钮 -->
  102. <div class="table-operator">
  103. <a-button type="primary" class="button-error" v-if="$hasPermissions('B_salesAdd')" @click="handleAdd">新增</a-button>
  104. </div>
  105. <!-- alert -->
  106. <a-alert type="info" style="margin-bottom:10px">
  107. <div slot="message">
  108. <div>
  109. 总单数:<strong>{{ totalData&&(totalData.totalRecord || totalData.totalRecord==0) ? totalData.totalRecord : '--' }}</strong>;
  110. 总款数:<strong>{{ totalData&&(totalData.totalCategory || totalData.totalCategory==0) ? totalData.totalCategory : '--' }}</strong>;
  111. 总数量:<strong>{{ totalData&&(totalData.totalQty || totalData.totalQty==0) ? totalData.totalQty : '--' }}</strong>;
  112. 已下推数量:<strong>{{ totalData&&(totalData.totalPushedQty || totalData.totalPushedQty==0) ? totalData.totalPushedQty : '--' }}</strong>;
  113. 已发货数量:<strong>{{ totalData&&(totalData.totalDispatchQty || totalData.totalDispatchQty==0) ? totalData.totalDispatchQty : '--' }}</strong>;
  114. 已取消数量:<strong>{{ totalData&&(totalData.totalCancelQty || totalData.totalCancelQty==0) ? totalData.totalCancelQty : '--' }}</strong>;
  115. 待下推数量:<strong>{{ totalData&&(totalData.totalUnpushedQty || totalData.totalUnpushedQty==0) ? totalData.totalUnpushedQty : '--' }}</strong>;
  116. </div>
  117. <div>
  118. 总售价:<strong>{{ totalData&&(totalData.totalAmount || totalData.totalAmount==0) ? totalData.totalAmount : '--' }}</strong>元;
  119. 已下推金额::<strong>{{ totalData&&(totalData.totalPushedAmount || totalData.totalPushedAmount==0) ? totalData.totalPushedAmount : '--' }}</strong>元;
  120. 已取消金额::<strong>{{ totalData&&(totalData.totalCancelAmount || totalData.totalCancelAmount==0) ? totalData.totalCancelAmount : '--' }}</strong>元;
  121. 待下推金额::<strong>{{ totalData&&(totalData.totalUnpushedAmount || totalData.totalUnpushedAmount==0) ? totalData.totalUnpushedAmount : '--' }}</strong>元;
  122. 已发货金额::<strong>{{ totalData&&(totalData.totalDispatchAmount || totalData.totalDispatchAmount==0) ? totalData.totalDispatchAmount : '--' }}</strong>元;
  123. </div>
  124. </div>
  125. </a-alert>
  126. <!-- 列表 -->
  127. <s-table
  128. class="sTable fixPagination"
  129. ref="table"
  130. :style="{ height: tableHeight+102.5+'px' }"
  131. size="small"
  132. :rowKey="(record) => record.id"
  133. :columns="columns"
  134. :data="loadData"
  135. :scroll="{ x: 1620, y: tableHeight }"
  136. :defaultLoadData="false"
  137. bordered>
  138. <!-- 销售单号 -->
  139. <template slot="salesBillNo" slot-scope="text, record">
  140. <div v-if="$hasPermissions('B_salesDetail')">
  141. <a-badge :count="'改'+record.changeTimes" :offset="[16,-13]" v-if="record.changeTimes>0" class="badge-con-t">
  142. <span style="color: #00aaff;cursor: pointer;" @click="handleDetail(record)">{{ record.salesBillNo }}</span>
  143. </a-badge>
  144. <span v-else style="color: #00aaff;cursor: pointer;" @click="handleDetail(record)">{{ record.salesBillNo }}</span>
  145. </div>
  146. <div v-else>{{ record.salesBillNo }}</div>
  147. </template>
  148. <!-- 总数量 -->
  149. <template slot="totalQty" slot-scope="text, record">
  150. {{ record.totalQty }}
  151. </template>
  152. <!-- 操作 -->
  153. <template slot="action" slot-scope="text, record">
  154. <a-button
  155. size="small"
  156. type="link"
  157. class="button-warning"
  158. v-if="record.billStatus == 'WAIT_AUDIT'&&$hasPermissions('B_salesAudit')"
  159. @click="handleEexamine(record)"
  160. >审核</a-button>
  161. <a-button
  162. size="small"
  163. type="link"
  164. class="button-warning"
  165. v-if="record.billStatus == 'OUTING_WAREHOUSE'&&record.totalUnpushedQty>0&&$hasPermissions('B_salesDispatch')"
  166. @click="handleDispatch(record)"
  167. >下推</a-button>
  168. <a-button
  169. size="small"
  170. type="link"
  171. class="button-info"
  172. v-if="record.salesBillSource != 'PURCHASE' && (record.billStatus == 'WAIT_SUBMIT' || record.billStatus == 'WAIT_AUDIT' || record.billStatus == 'AUDIT_REJECT')&&$hasPermissions('B_salesEdit')"
  173. @click="handleEdit(record)"
  174. >
  175. 编辑
  176. </a-button>
  177. <a-button
  178. size="small"
  179. type="link"
  180. class="button-info"
  181. v-if="record.salesBillSource == 'PURCHASE' && (record.billStatus == 'WAIT_AUDIT'||record.billStatus == 'HQ_CHANGE')&&$hasPermissions('B_salesEdit')"
  182. @click="handleEdit(record)"
  183. >
  184. 改单
  185. </a-button>
  186. <a-button
  187. size="small"
  188. type="link"
  189. class="button-error"
  190. v-if="record.salesBillSource != 'PURCHASE' && (record.billStatus == 'WAIT_SUBMIT' || record.billStatus == 'WAIT_AUDIT' || record.billStatus == 'AUDIT_REJECT')&&$hasPermissions('B_salesDel')"
  191. @click="handleDel(record)"
  192. >
  193. 删除
  194. </a-button>
  195. <a-button
  196. size="small"
  197. type="link"
  198. class="button-error"
  199. v-if="record.salesBillSource == 'PURCHASE' && (record.billStatus == 'WAIT_AUDIT'||record.billStatus == 'HQ_CHANGE')&&$hasPermissions('B_salesDel')"
  200. @click="handleDel(record)"
  201. >
  202. 取消
  203. </a-button>
  204. <span v-if="!(record.billStatus == 'WAIT_AUDIT'&&$hasPermissions('B_salesAudit')) && !(record.billStatus == 'OUTING_WAREHOUSE'&&record.totalUnpushedQty>0&&$hasPermissions('B_salesDispatch')) && !(record.salesBillSource != 'PURCHASE' && (record.billStatus == 'WAIT_SUBMIT' || record.billStatus == 'WAIT_AUDIT' || record.billStatus == 'AUDIT_REJECT')&&$hasPermissions('B_salesEdit')) && !(record.salesBillSource == 'PURCHASE' && (record.billStatus == 'WAIT_AUDIT'||record.billStatus == 'HQ_CHANGE')&&$hasPermissions('B_salesEdit')) && !(record.salesBillSource != 'PURCHASE' && (record.billStatus == 'WAIT_SUBMIT' || record.billStatus == 'WAIT_AUDIT' || record.billStatus == 'AUDIT_REJECT')&&$hasPermissions('B_salesDel')) && !(record.salesBillSource == 'PURCHASE' && (record.billStatus == 'WAIT_AUDIT'||record.billStatus == 'HQ_CHANGE')&&$hasPermissions('B_salesDel'))">--</span>
  205. </template>
  206. </s-table>
  207. </a-spin>
  208. <!-- 选择客户弹框 -->
  209. <choose-custom-modal :show="openModal" @ok="chooseCustomOk" @cancel="openModal=false"></choose-custom-modal>
  210. <!-- 审核 -->
  211. <auditModal :openModal="visibleAudit" :spinning="spinningAudit" @close="visibleAudit=false" @ok="auditOrder('OUTING_WAREHOUSE')" @fail="auditOrder('AUDIT_REJECT')" />
  212. </a-card>
  213. </template>
  214. <script>
  215. import moment from 'moment'
  216. import getDate from '@/libs/getDate.js'
  217. import subarea from '@/views/common/subarea.js'
  218. import { getArea } from '@/api/data'
  219. import rangeDate from '@/views/common/rangeDate.vue'
  220. import { STable, VSelect } from '@/components'
  221. import auditModal from '@/views/common/auditModal.vue'
  222. import chooseCustomModal from './chooseCustomModal.vue'
  223. import dealerSubareaScopeList from '@/views/common/dealerSubareaScopeList.vue'
  224. import { salesList, salesDel, salesWriteAudit, salesCount } from '@/api/sales'
  225. import { findBySalesBillSn } from '@/api/dispatch'
  226. export default {
  227. name: 'TableList',
  228. components: { STable, VSelect, chooseCustomModal, dealerSubareaScopeList, rangeDate, auditModal, subarea },
  229. data () {
  230. return {
  231. spinning: false,
  232. advanced: false, // 高级搜索 展开/关闭
  233. disabled: false, // 查询、重置按钮是否可操作
  234. openModal: false, // 选择客户弹框是否显示
  235. tableHeight: 0,
  236. time: [
  237. moment(getDate.getThreeMonthDays().starttime, 'YYYY-MM-DD'),
  238. moment(getDate.getCurrMonthDays().endtime, 'YYYY-MM-DD')
  239. ],
  240. // 查询参数
  241. queryParam: {
  242. beginDate: getDate.getThreeMonthDays().starttime,
  243. endDate: getDate.getCurrMonthDays().endtime,
  244. buyerSn: undefined, // 客户名称
  245. salesBillNo: '', // 销售单号
  246. purchaseBillNo: '',
  247. printStatus: undefined,
  248. billStatus: undefined, // 业务状态
  249. financialStatus: undefined, // 财务状态
  250. salesBillSource: undefined,
  251. subareaSn: undefined,
  252. shippingAddrProvinceSn: undefined
  253. },
  254. totalData: {
  255. totalAmount: 0,
  256. totalCategory: 0,
  257. totalQty: 0,
  258. totalRecord: 0,
  259. totalPushedQty: 0,
  260. totalDispatchQty: 0,
  261. totalCancelQty: 0,
  262. totalUnpushedQty: 0,
  263. totalPushedAmount: 0,
  264. totalCancelAmount: 0,
  265. totalUnpushedAmount: 0,
  266. totalDispatchAmount: 0
  267. },
  268. // 表头
  269. columns: [
  270. { title: '序号', dataIndex: 'no', width: 60, align: 'center' },
  271. { title: '创建时间', dataIndex: 'createDate', width: 100, align: 'center', customRender: function (text) { return text || '--' } },
  272. { title: '销售单号', scopedSlots: { customRender: 'salesBillNo' }, width: 120, align: 'center' },
  273. { title: '采购单号', dataIndex: 'purchaseBillNo', width: 120, align: 'center', customRender: function (text) { return text || '--' } },
  274. { title: '客户名称', dataIndex: 'buyerName', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
  275. { title: '总数量', dataIndex: 'totalQty', scopedSlots: { customRender: 'totalQty' }, width: 60, align: 'center' },
  276. { title: '总售价', dataIndex: 'totalAmount', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? ('¥' + text) : '--') } },
  277. { title: '已下推数量', dataIndex: 'totalPushedQty', width: 60, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
  278. { title: '已发货数量', dataIndex: 'totalDispatchQty', width: 60, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
  279. { title: '已取消数量', dataIndex: 'totalCancelQty', width: 60, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
  280. { title: '待下推数量', dataIndex: 'totalUnpushedQty', width: 60, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
  281. { title: '收款方式', dataIndex: 'settleStyleSnDictValue', width: 80, align: 'center', customRender: function (text) { return text || '--' } },
  282. { title: '审核时间', dataIndex: 'auditDate', width: 100, align: 'center', customRender: function (text) { return text || '--' } },
  283. { title: '最近备货时间', dataIndex: 'lastStockUpDate', width: 100, align: 'center', customRender: function (text) { return text || '--' } },
  284. { title: '业务状态', dataIndex: 'billStatusDictValue', width: 100, align: 'center', customRender: function (text) { return text || '--' } },
  285. { title: '财务状态', dataIndex: 'financialStatusDictValue', width: 100, align: 'center', customRender: function (text) { return text || '--' } },
  286. { title: '打印次数', dataIndex: 'detailPrintTimes', width: 50, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
  287. { title: '操作', scopedSlots: { customRender: 'action' }, width: 150, align: 'center', fixed: 'right' }
  288. ],
  289. // 加载数据方法 必须为 Promise 对象
  290. loadData: parameter => {
  291. this.disabled = true
  292. this.spinning = true
  293. delete parameter.tableId
  294. delete parameter.index
  295. // 查询总计
  296. salesCount(Object.assign(parameter, this.queryParam)).then(res => {
  297. this.totalData = Object.assign(this.totalData, res.data || {})
  298. })
  299. return salesList(Object.assign(parameter, this.queryParam)).then(res => {
  300. const data = res.data
  301. const no = (data.pageNo - 1) * data.pageSize
  302. for (var i = 0; i < data.list.length; i++) {
  303. data.list[i].no = no + i + 1
  304. }
  305. this.disabled = false
  306. this.spinning = false
  307. return data
  308. })
  309. },
  310. addrProvinceList: [], // 省下拉
  311. visibleAudit: false,
  312. auditInfo: null,
  313. spinningAudit: false
  314. }
  315. },
  316. methods: {
  317. // 时间 change
  318. dateChange (date) {
  319. this.queryParam.beginDate = date[0]
  320. this.queryParam.endDate = date[1]
  321. },
  322. custChange (val) {
  323. this.queryParam.buyerSn = val.key
  324. },
  325. // 新增
  326. handleAdd () {
  327. this.openModal = true
  328. },
  329. // 选择客户成功
  330. chooseCustomOk (data) {
  331. this.$router.push({ name: 'salesAdd', params: { sn: data.salesBillSn } })
  332. },
  333. // 下推
  334. handleDispatch (row) {
  335. this.spinning = true
  336. findBySalesBillSn({ salesBillSn: row.salesBillSn }).then(res => {
  337. this.spinning = false
  338. if (res.status == 200) {
  339. this.$router.push({ name: 'waitDispatch', params: { salesBillSn: row.salesBillSn, dispatchBillSn: res.data.dispatchBillSn } })
  340. }
  341. })
  342. },
  343. // 审核
  344. handleEexamine (row) {
  345. this.auditInfo = row
  346. this.visibleAudit = true
  347. },
  348. auditOrder (billStatus) {
  349. this.spinningAudit = true
  350. salesWriteAudit({
  351. salesBillSn: this.auditInfo.salesBillSn,
  352. billStatus: billStatus
  353. }).then(res => {
  354. if (res.status == 200) {
  355. this.visibleAudit = false
  356. this.$message.success(res.message)
  357. this.$refs.table.refresh()
  358. this.spinningAudit = false
  359. if (billStatus == 'OUTING_WAREHOUSE') {
  360. this.handleDispatch({ salesBillSn: this.auditInfo.salesBillSn })
  361. }
  362. } else {
  363. this.visibleAudit = false
  364. this.spinningAudit = false
  365. }
  366. })
  367. },
  368. // 详情
  369. handleDetail (row) {
  370. this.$router.push({ name: 'salesDetail', params: { sn: row.salesBillSn } })
  371. },
  372. // 编辑
  373. handleEdit (row) {
  374. this.$router.push({ name: 'salesEdit', params: { sn: row.salesBillSn } })
  375. },
  376. // 删除
  377. handleDel (row) {
  378. const _this = this
  379. this.$confirm({
  380. title: '提示',
  381. content: row.salesBillSource == 'PURCHASE' ? '确认要取消吗?' : '确认要删除吗?',
  382. centered: true,
  383. closable: true,
  384. onOk () {
  385. _this.spinning = true
  386. salesDel({ salesBillSn: row.salesBillSn }).then(res => {
  387. if (res.status == 200) {
  388. _this.$message.success(res.message)
  389. _this.$refs.table.refresh()
  390. _this.spinning = false
  391. } else {
  392. _this.spinning = false
  393. }
  394. })
  395. }
  396. })
  397. },
  398. // 重置
  399. resetSearchForm () {
  400. this.$refs.rangeDate.resetDate(this.time)
  401. this.queryParam.beginDate = getDate.getThreeMonthDays().starttime
  402. this.queryParam.endDate = getDate.getCurrMonthDays().endtime
  403. this.$refs.dealerSubareaScopeList.resetForm()
  404. this.queryParam.buyerSn = undefined
  405. this.queryParam.salesBillNo = ''
  406. this.queryParam.purchaseBillNo = ''
  407. this.queryParam.printStatus = undefined
  408. this.queryParam.billStatus = undefined
  409. this.queryParam.financialStatus = undefined
  410. this.queryParam.salesBillSource = undefined
  411. this.queryParam.subareaSn = undefined
  412. this.queryParam.shippingAddrProvinceSn = undefined
  413. this.$refs.table.refresh(true)
  414. },
  415. // 省/市/区
  416. getArea (leve, sn) {
  417. let params
  418. if (leve == 'province') {
  419. params = { type: '2' }
  420. } else {
  421. params = { parentId: sn, type: leve == 'city' ? '3' : '4' }
  422. }
  423. getArea(params).then(res => {
  424. if (res.status == 200) {
  425. if (leve == 'province') {
  426. this.addrProvinceList = res.data || []
  427. } else if (leve == 'city') {
  428. this.addrCityList = res.data || []
  429. } else if (leve == 'district') {
  430. this.addrDistrictList = res.data || []
  431. }
  432. } else {
  433. if (leve == 'province') {
  434. this.addrProvinceList = []
  435. } else if (leve == 'city') {
  436. this.addrCityList = []
  437. } else if (leve == 'district') {
  438. this.addrDistrictList = []
  439. }
  440. }
  441. })
  442. },
  443. pageInit () {
  444. const _this = this
  445. this.$nextTick(() => { // 页面渲染完成后的回调
  446. _this.setTableH()
  447. })
  448. this.getArea('province')
  449. },
  450. setTableH () {
  451. const tableSearchH = this.$refs.tableSearch.offsetHeight
  452. this.tableHeight = window.innerHeight - tableSearchH - 310
  453. }
  454. },
  455. watch: {
  456. advanced (newValue, oldValue) {
  457. const _this = this
  458. setTimeout(() => {
  459. _this.setTableH()
  460. }, 400)
  461. }
  462. },
  463. mounted () {
  464. if (!this.$store.state.app.isNewTab) { // 页签刷新时调用
  465. this.pageInit()
  466. this.resetSearchForm()
  467. }
  468. },
  469. activated () {
  470. // 如果是新页签打开,则重置当前页面
  471. if (this.$store.state.app.isNewTab) {
  472. this.pageInit()
  473. this.resetSearchForm()
  474. }
  475. },
  476. beforeRouteEnter (to, from, next) {
  477. next(vm => {})
  478. }
  479. }
  480. </script>
  481. <style lang="less">
  482. .salesManagementList-wrap{
  483. .sTable{
  484. margin-top: 10px;
  485. .badge-con-t{
  486. .ant-badge-count{
  487. transform: scale(0.8);
  488. font-size: 13px;
  489. }
  490. }
  491. }
  492. }
  493. </style>