reimbursementList.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519
  1. <template>
  2. <div class="page">
  3. <el-form size="small" :inline="true" class="query-form" ref="searchForm" :model="searchForm" @keyup.enter.native="refreshList()" @submit.native.prevent>
  4. <el-form-item prop="businessCode">
  5. <el-input size="small" v-model="searchForm.businessCode" placeholder="报销批次" clearable></el-input>
  6. </el-form-item>
  7. <el-form-item prop="reimbursementBatch">
  8. <el-input size="small" v-model="searchForm.reimbursementBatch" placeholder="业务编号" clearable></el-input>
  9. </el-form-item>
  10. <el-form-item prop="invoiceNumber">
  11. <el-input size="small" v-model="searchForm.invoiceNumber" placeholder="发票号码" clearable></el-input>
  12. </el-form-item>
  13. <el-form-item prop="firmName">
  14. <el-input size="small" v-model="searchForm.firmName" placeholder="购方企业名称" clearable></el-input>
  15. </el-form-item>
  16. <el-form-item prop="proposer">
  17. <el-input size="small" v-model="searchForm.proposer" placeholder="项目经理" clearable></el-input>
  18. </el-form-item>
  19. <el-form-item prop="partner">
  20. <el-input size="small" v-model="searchForm.partner" placeholder="部门" clearable></el-input>
  21. </el-form-item>
  22. <el-form-item
  23. label="收入"
  24. class="priceFormItem"
  25. prop="income"
  26. >
  27. <el-input
  28. v-model="searchForm.beginIncome"
  29. onkeyup="value=value.replace(/[^\d]/g,'')"
  30. class="priceInput"
  31. style="width: 130px; margin-right: 10px"
  32. />-<el-input
  33. v-model="searchForm.endIncome"
  34. class="priceInput"
  35. onkeyup="value=value.replace(/[^\d]/g,'')"
  36. style="width: 130px; margin-left: 10px"
  37. />
  38. </el-form-item>
  39. <el-form-item label="开票日期" prop="makeTime">
  40. <el-date-picker
  41. v-model="searchDates"
  42. type="daterange"
  43. size="small"
  44. align="right"
  45. value-format="yyyy-MM-dd HH:mm:ss"
  46. unlink-panels
  47. range-separator="至"
  48. start-placeholder="开始日期"
  49. end-placeholder="结束日期"
  50. :picker-options="pickerOptions">
  51. </el-date-picker>
  52. </el-form-item>
  53. <el-form-item>
  54. <el-button type="primary" @click="refreshList()" size="small" icon="el-icon-search">查询</el-button>
  55. <el-button @click="resetSearch()" size="small" icon="el-icon-refresh-right">重置</el-button>
  56. </el-form-item>
  57. </el-form>
  58. <div class="bg-white top">
  59. <vxe-toolbar :refresh="{query: refreshList}" export print custom>
  60. <template #buttons>
  61. <el-row>
  62. <el-upload style="float: left"
  63. class="upload-demo"
  64. :on-success="uploadSuccess"
  65. :show-file-list="false"
  66. :before-upload="beforeUpload"
  67. :action="`${$http.BASE_URL}/assess/reimbursement/uploadFile`"
  68. multiple
  69. list-type="picture">
  70. <el-button size="small"
  71. icon="el-icon-upload"
  72. type="primary">点击上传</el-button>
  73. </el-upload>
  74. <el-button style="margin-left: 10px" v-if="hasPermission('assess:reimbursement:del')" :disabled="$refs.xTree && $refs.xTree.getCheckboxRecords().length === 0" type="danger" size="small" icon="el-icon-delete" @click="del()" plain>删除</el-button>
  75. <el-button v-if="hasPermission('assess:reimbursement:import')" type="default" @click="downloadTpl()" size="small">下载模板</el-button>
  76. <el-button style="margin-left: 10px" v-if="hasPermission('assess:reimbursement:addBatchReimbursement')" :disabled="$refs.xTree && $refs.xTree.getCheckboxRecords().length === 0" type="primary" size="small" icon="el-icon-edit" @click="editInvoiceGatheringTime()" plain>批量收款</el-button>
  77. <el-button v-if="hasPermission('assess:reimbursement:addBatchReimbursement')" type="primary" size="small" icon="el-icon-plus" @click="add()">批量报销</el-button>
  78. </el-row>
  79. </template>
  80. </vxe-toolbar>
  81. <div style="height: calc(100% - 80px);">
  82. <vxe-table
  83. ref="xTree"
  84. border="inner"
  85. auto-resize
  86. resizable
  87. height="auto"
  88. row-id="id"
  89. size="small"
  90. show-header-overflow
  91. show-overflow
  92. highlight-hover-row
  93. :print-config="{}"
  94. :export-config="{
  95. remote: true,
  96. filename: `兴光评估报销数据${moment(new Date()).format('YYYY-MM-DD')}`,
  97. sheetName: '兴光评估报销数据',
  98. exportMethod: exportMethod,
  99. types: ['xlsx'],
  100. modes: ['current', 'selected', 'all']
  101. }"
  102. :tree-config="{expandAll: true}"
  103. :loading="loading"
  104. :checkbox-config="{labelField: ''}"
  105. :data="dataList">
  106. <vxe-column type="checkbox" width="40px"> </vxe-column>
  107. <vxe-column width="140px" title="报销批次" field="businessCode" align="left" tree-node >
  108. <template slot-scope="scope">
  109. <el-link type="primary" :underline="false" v-if="scope.row.parentId == '0'" @click="view(scope.row.id)">{{scope.row.businessCode}}</el-link>
  110. <span v-else></span>
  111. </template>
  112. </vxe-column>
  113. <vxe-column width="100px" title="业务编号" field="reimbursementBatch" align="center" visible></vxe-column>
  114. <vxe-column width="100px" title="所属年份" field="year" align="center" visible></vxe-column>
  115. <vxe-column width="100px" title="发票代码" field="invoiceCode" align="center" visible></vxe-column>
  116. <vxe-column width="100px" title="发票号码" field="invoiceNumber" align="center">
  117. <template slot-scope="scope">
  118. <el-link type="primary" :underline="false" v-if="hasPermission('assess:reimbursement:view') && scope.row.parentId !== '0'" @click="viewInvoice(scope.row.id)">{{scope.row.invoiceNumber}}</el-link>
  119. <span v-else></span>
  120. </template>
  121. </vxe-column>
  122. <vxe-column width="100px" title="金额" field="money" align="center"></vxe-column>
  123. <vxe-column width="100px" title="税额" field="tax" align="center"></vxe-column>
  124. <vxe-column width="100px" title="收入" field="income" align="center"></vxe-column>
  125. <vxe-column width="100px" title="报销比例%" field="reimbursementRatio" align="center"></vxe-column>
  126. <vxe-column width="100px" title="状态" field="reimbursementStatus">
  127. <template slot-scope="scope">
  128. <el-tag type="success" v-if="scope.row.reimbursementStatus === '1'"> 已完成</el-tag>
  129. </template>
  130. </vxe-column>
  131. <vxe-column width="100px" title="可报金额" field="canReimbursementAmount" align="center">
  132. <template slot-scope="scope">
  133. <span style="font-weight: bold">{{scope.row.canReimbursementAmount}}</span>
  134. </template>
  135. </vxe-column>
  136. <vxe-column width="100px" title="已报金额" field="allAlreadyReimbursementQuota" align="center">
  137. <template slot-scope="scope">
  138. <span style="font-weight: bold">{{scope.row.allAlreadyReimbursementQuota}}</span>
  139. </template>
  140. </vxe-column>
  141. <vxe-column width="200px" title="购方企业名称" field="firmName" align="center"></vxe-column>
  142. <vxe-column width="100px" title="开票日期" field="makeTime" align="center"></vxe-column>
  143. <vxe-column width="150px" title="商品名称" field="name" align="center"></vxe-column>
  144. <vxe-column width="100px" title="项目经理" field="proposer" align="center"></vxe-column>
  145. <vxe-column width="100px" title="部门" field="partner" align="center"></vxe-column>
  146. <vxe-column width="100px" title="业务类型" field="businessType" align="center"></vxe-column>
  147. <vxe-column width="100px" title="收款日期" field="gatheringTime" align="center"></vxe-column>
  148. <vxe-column title="操作" width="300px" fixed="right" align="center">
  149. <template slot-scope="scope">
  150. <el-button v-if="hasPermission('assess:reimbursement:edit') && scope.row.businessFlag === '1'" type="text" icon="el-icon-edit" size="small" @click="editInvoiceBusiness(scope.row.id)">新增业务编码</el-button>
  151. <el-button v-if="hasPermission('assess:reimbursement:edit') && scope.row.businessCode!=='' && scope.row.parentId === '0' && scope.row.randomType === '1' " type="text" icon="el-icon-edit" size="small" @click="editBusiness(scope.row.id)">编辑业务编码</el-button>
  152. <el-button v-if="hasPermission('assess:reimbursement:edit') && (scope.row.businessCode==='' && scope.row.parentId === '0' && scope.row.businessFlag === '0')" type="text" icon="el-icon-edit" size="small" @click="editBusiness(scope.row.id)">新增业务编码</el-button>
  153. <el-button v-if="hasPermission('assess:reimbursement:edit') && scope.row.businessCode !== '' && !scope.row.reimbursementRatio && scope.row.parentId === '0'" type="text" icon="el-icon-edit" size="small" @click="editBusinessRatio(scope.row.id)">报销比例</el-button>
  154. <el-button v-if="hasPermission('assess:reimbursementBusiness:add') && scope.row.businessCode !== '' && scope.row.reimbursementRatio && scope.row.parentId === '0' && scope.row.reimbursementStatus === '0'" type="text" icon="el-icon-plus" size="small" @click="addBusinessInfo(scope.row.id, scope.row.businessCode)">业务报销</el-button>
  155. <el-button v-if="hasPermission('assess:reimbursementBusiness:view') && scope.row.businessCode !== '' && scope.row.reimbursementRatio && scope.row.parentId === '0'" type="text" icon="el-icon-view" size="small" @click="viewBusinessInfo(scope.row.id)">业务报销详情</el-button>
  156. <el-button v-if="hasPermission('assess:reimbursement:edit') && scope.row.parentId !== '0' && !scope.row.gatheringTime" type="text" icon="el-icon-edit" size="small" @click="editInvoice(scope.row.id)">收款</el-button>
  157. <el-button v-if="hasPermission('assess:reimbursement:edit') && scope.row.parentId !== '0'" type="text" icon="el-icon-edit" size="small" @click="modifyInvoice(scope.row.id)">修改</el-button>
  158. <el-button v-if="hasPermission('assess:reimbursement:del') && scope.row.parentId === '0'" type="text" icon="el-icon-delete" size="small" @click="delBusiness(scope.row.id)">删除</el-button>
  159. <el-button v-if="hasPermission('assess:reimbursement:del') && scope.row.parentId !== '0'" type="text" icon="el-icon-delete" size="small" @click="delInvoice(scope.row.id)">删除</el-button>
  160. </template>
  161. </vxe-column>
  162. </vxe-table>
  163. <vxe-pager
  164. background
  165. size="small"
  166. :current-page="tablePage.currentPage"
  167. :page-size="tablePage.pageSize"
  168. :total="tablePage.total"
  169. :page-sizes="[10, 20, 100, 1000, {label: '全量数据', value: 1000000}]"
  170. :layouts="['PrevPage', 'JumpNumber', 'NextPage', 'FullJump', 'Sizes', 'Total']"
  171. @page-change="currentChangeHandle">
  172. </vxe-pager>
  173. <reimbursement-select ref="reimbursementSelect" @doSubmit="selectBatchReimbursement"></reimbursement-select>
  174. </div>
  175. </div>
  176. <!-- 弹窗, 新增 / 修改 -->
  177. <reimbursementForm ref="reimbursementForm" @refreshDataList="refreshList"></reimbursementForm>
  178. <reimbursementGatheringTimeForm ref="reimbursementGatheringTimeForm" @refreshDataList="refreshList"></reimbursementGatheringTimeForm>
  179. <reimbursementRatioForm ref="reimbursementRatioForm" @refreshDataList="refreshList"></reimbursementRatioForm>
  180. <reimbursementBusinessForm ref="reimbursementBusinessForm" @refreshDataList="refreshList"></reimbursementBusinessForm>
  181. <reimbursementBusinessList ref="reimbursementBusinessList" @refreshDataList="refreshList"></reimbursementBusinessList>
  182. <reimbursementInvoiceForm ref="reimbursementInvoiceForm" @refreshDataList="refreshList"></reimbursementInvoiceForm>
  183. <reimbursementInvoiceModify ref="reimbursementInvoiceModify" @refreshDataList="refreshList"></reimbursementInvoiceModify>
  184. </div>
  185. </template>
  186. <script>
  187. import ReimbursementSys from '@/api/reimbursementSys/assess/reimbursementSysService'
  188. import XEUtils from 'xe-utils'
  189. import reimbursementForm from './reimbursementForm'
  190. import reimbursementGatheringTimeForm from './reimbursementGatheringTimeForm'
  191. import reimbursementRatioForm from './reimbursementRatioForm'
  192. import reimbursementInvoiceForm from './reimbursementInvoiceForm'
  193. import reimbursementInvoiceModify from './reimbursementInvoiceModify'
  194. import reimbursementBusinessForm from './reimbursementBusinessForm'
  195. import reimbursementSelect from './reimbursementSelectDialog'
  196. export default {
  197. data () {
  198. return {
  199. dataList: [],
  200. searchDates: '',
  201. searchForm: {
  202. reimbursementBatch: '',
  203. businessFlag: '',
  204. businessCode: '',
  205. invoiceNumber: '',
  206. proposer: '',
  207. partner: '',
  208. reimbursementRatio: '',
  209. randomType: '',
  210. firmName: '',
  211. beginDate: '',
  212. endDate: '',
  213. beginIncome: '',
  214. endIncome: ''
  215. },
  216. tablePage: {
  217. total: 0,
  218. currentPage: 1,
  219. pageSize: 10,
  220. orders: [{column: 'a.create_date', asc: false}]
  221. },
  222. loading: false,
  223. pickerOptions: {
  224. shortcuts: [{
  225. text: '最近一周',
  226. onClick (picker) {
  227. const end = new Date()
  228. const start = new Date()
  229. start.setTime(start.getTime() - 3600 * 1000 * 24 * 7)
  230. picker.$emit('pick', [start, end])
  231. }
  232. }, {
  233. text: '最近一个月',
  234. onClick (picker) {
  235. const end = new Date()
  236. const start = new Date()
  237. start.setTime(start.getTime() - 3600 * 1000 * 24 * 30)
  238. picker.$emit('pick', [start, end])
  239. }
  240. }, {
  241. text: '最近三个月',
  242. onClick (picker) {
  243. const end = new Date()
  244. const start = new Date()
  245. start.setTime(start.getTime() - 3600 * 1000 * 24 * 90)
  246. picker.$emit('pick', [start, end])
  247. }
  248. }]
  249. }
  250. }
  251. },
  252. watch: {
  253. searchDates () {
  254. if (this.searchDates) {
  255. this.searchForm.beginDate = this.searchDates[0]
  256. this.searchForm.endDate = this.searchDates[1]
  257. } else {
  258. this.searchForm.beginDate = ''
  259. this.searchForm.endDate = ''
  260. }
  261. }
  262. },
  263. components: {
  264. reimbursementForm,
  265. reimbursementGatheringTimeForm,
  266. reimbursementRatioForm,
  267. reimbursementInvoiceForm,
  268. reimbursementInvoiceModify,
  269. reimbursementBusinessForm,
  270. reimbursementSelect
  271. },
  272. ReimbursementSys: null,
  273. created () {
  274. this.reimbursementSys = new ReimbursementSys()
  275. },
  276. activated () {
  277. this.refreshList()
  278. },
  279. methods: {
  280. // 获取数据列表
  281. refreshList () {
  282. this.loading = true
  283. this.reimbursementSys.treeData({
  284. 'current': this.tablePage.currentPage,
  285. 'size': this.tablePage.pageSize,
  286. 'orders': this.tablePage.orders,
  287. ...this.searchForm
  288. }).then(({data}) => {
  289. this.dataList = data
  290. this.tablePage.total = data.total
  291. this.handleSearch()
  292. this.loading = false
  293. })
  294. },
  295. beforeUpload (file) {
  296. const isExcel = file.name.indexOf('.xls') >= 0 || file.name.indexOf('.xlsx') >= 0
  297. const isLt2M = file.size / 1024 / 1024 < 1
  298. if (!isExcel) {
  299. this.$message.error('只能上传xls、xlsx文件!')
  300. return false
  301. }
  302. if (!isLt2M) {
  303. this.$message.error('上传文件大小不能超过 10MB!')
  304. return false
  305. }
  306. this.loading = true
  307. return true
  308. },
  309. handleSearch () {
  310. let name = XEUtils.toValueString(this.searchForm.businessCode).trim()
  311. let options = { children: 'children' }
  312. let searchProps = ['name']
  313. this.dataList = XEUtils.searchTree(
  314. this.dataList.records, item => searchProps.some(key => XEUtils.toValueString(item[key]).indexOf(name) >= -1), options)
  315. this.$nextTick(() => {
  316. this.$refs.xTree.setAllTreeExpand(true)
  317. })
  318. },
  319. resetSearch () {
  320. this.$refs.searchForm.resetFields()
  321. this.refreshList()
  322. },
  323. uploadSuccess (res, file) {
  324. if (res.success) {
  325. this.$message.success({dangerouslyUseHTMLString: true,
  326. message: res.message})
  327. this.refreshList()
  328. } else {
  329. this.$message.error(res.message)
  330. this.refreshList()
  331. }
  332. },
  333. // 当前页
  334. currentChangeHandle ({ currentPage, pageSize }) {
  335. this.tablePage.currentPage = currentPage
  336. this.tablePage.pageSize = pageSize
  337. this.refreshList()
  338. },
  339. // 新增
  340. add () {
  341. this.$refs.reimbursementSelect.init()
  342. },
  343. // 修改
  344. editBusiness (id) {
  345. this.$refs.reimbursementForm.init('editBusiness', {id: id, parent: {id: '', name: ''}})
  346. },
  347. editInvoiceBusiness (id) {
  348. this.$refs.reimbursementForm.init('editInvoiceBusiness', {id: id, parent: {id: '', name: ''}})
  349. },
  350. // 修改
  351. editBusinessRatio (id) {
  352. this.$refs.reimbursementRatioForm.init('editBusinessRatio', {id: id, parent: {id: '', name: ''}})
  353. },
  354. // 修改
  355. addBusinessInfo (id, businessCode) {
  356. this.$refs.reimbursementBusinessForm.init('addBusinessInfo', {id: '', businessCodeId: id, businessCode: businessCode, parent: {id: '', name: ''}})
  357. },
  358. // 查看业务报销详情
  359. viewBusinessInfo (id) {
  360. this.$router.push({path: `/reimbursementSys/assess/reimbursementBusinessList`, query: {id: id, title: '业务报销详情'}})
  361. },
  362. // 修改发票收款日期
  363. editInvoiceGatheringTime (id) {
  364. let ids = id || this.$refs.xTree.getCheckboxRecords().map(item => {
  365. return item.id
  366. }).join(',')
  367. this.$refs.reimbursementGatheringTimeForm.init('edit', {id: ids, parent: {id: '', name: ''}})
  368. },
  369. // 修改发票信息
  370. editInvoice (id) {
  371. this.$refs.reimbursementInvoiceForm.init('editInvoice', {id: id, parent: {id: '', name: ''}})
  372. },
  373. // 修改发票信息
  374. modifyInvoice (id) {
  375. this.$refs.reimbursementInvoiceModify.init('modifyInvoice', {id: id, parent: {id: '', name: ''}})
  376. },
  377. // 查看
  378. view (id) {
  379. this.$refs.reimbursementForm.init('view', {id: id, parent: {id: '', name: ''}})
  380. },
  381. // 查看发票信息
  382. viewInvoice (id) {
  383. this.$refs.reimbursementInvoiceForm.init('viewInvoice', {id: id, parent: {id: '', name: ''}})
  384. },
  385. // 下载模板
  386. downloadTpl () {
  387. this.reimbursementSys.exportTemplate().then((res) => {
  388. // 将二进制流文件写入excel表,以下为重要步骤
  389. this.$utils.downloadExcel(res.data, '报销发票导入模板')
  390. }).catch(function (err) {
  391. if (err.response) {
  392. console.log(err.response)
  393. }
  394. })
  395. },
  396. // 删除
  397. delBusiness (id) {
  398. let ids = id || this.$refs.xTree.getCheckboxRecords().map(item => {
  399. return item.id
  400. }).join(',')
  401. this.$confirm(`确定删除该记录吗?`, '提示', {
  402. confirmButtonText: '确定',
  403. cancelButtonText: '取消',
  404. type: 'warning'
  405. }).then(() => {
  406. this.loading = true
  407. this.reimbursementSys.deleteBusiness(ids).then(({data}) => {
  408. this.loading = false
  409. this.$message({
  410. message: data,
  411. type: 'success',
  412. duration: 1500
  413. })
  414. this.refreshList()
  415. })
  416. this.refreshList()
  417. })
  418. },
  419. // 删除
  420. delInvoice (id) {
  421. let ids = id || this.$refs.xTree.getCheckboxRecords().map(item => {
  422. return item.id
  423. }).join(',')
  424. this.$confirm(`确定删除该记录吗?`, '提示', {
  425. confirmButtonText: '确定',
  426. cancelButtonText: '取消',
  427. type: 'warning'
  428. }).then(() => {
  429. this.loading = true
  430. this.reimbursementSys.deleteInvoice(ids).then(({data}) => {
  431. this.loading = false
  432. this.$message({
  433. message: data,
  434. type: 'success',
  435. duration: 1500
  436. })
  437. this.refreshList()
  438. })
  439. this.refreshList()
  440. })
  441. },
  442. // 删除
  443. del (id) {
  444. let ids = id || this.$refs.xTree.getCheckboxRecords().map(item => {
  445. return item.id
  446. }).join(',')
  447. this.$confirm(`确定删除该记录吗?`, '提示', {
  448. confirmButtonText: '确定',
  449. cancelButtonText: '取消',
  450. type: 'warning'
  451. }).then(() => {
  452. this.loading = true
  453. this.reimbursementSys.delete(ids).then(({data}) => {
  454. this.loading = false
  455. this.$message({
  456. message: data,
  457. type: 'success',
  458. duration: 1500
  459. })
  460. this.refreshList()
  461. })
  462. this.refreshList()
  463. })
  464. },
  465. // 自定义服务端导出
  466. exportMethod ({ options }) {
  467. // 传给服务端的参数
  468. const params = {
  469. 'current': this.tablePage.currentPage,
  470. 'size': this.tablePage.pageSize,
  471. 'orders': this.tablePage.orders,
  472. ...this.searchForm,
  473. filename: options.filename,
  474. sheetName: options.sheetName,
  475. isHeader: options.isHeader,
  476. original: options.original,
  477. mode: options.mode,
  478. selectIds: options.mode === 'selected' ? options.data.map(item => item.id) : [],
  479. exportFields: options.columns.map(column => column.property)
  480. }
  481. return this.reimbursementSys.exportExcel(params).then((res) => {
  482. // 将二进制流文件写入excel表,以下为重要步骤
  483. this.$utils.downloadExcel(res.data, options.filename)
  484. }).catch(function (err) {
  485. if (err.response) {
  486. console.log(err.response)
  487. }
  488. })
  489. },
  490. selectBatchReimbursement (invoices) {
  491. let invoiceNumbers = invoices.map(invoice => { return invoice.id }).join(',')
  492. this.loading = true
  493. this.reimbursementSys.addBatchReimbursement(invoiceNumbers).then(({data}) => {
  494. this.loading = false
  495. this.$message.success({dangerouslyUseHTMLString: true,
  496. message: data})
  497. this.refreshList()
  498. })
  499. }
  500. }
  501. }
  502. </script>