index.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745
  1. <template>
  2. <div>
  3. <basic-container v-show="!detailsOpen">
  4. <avue-crud :option="option" :search.sync="search" v-model="form" :table-loading="loading" :data="dataList"
  5. ref="crud" :key="key" @on-load="onLoad" @search-change="searchChange" @row-del="rowDel"
  6. @expand-change="expandChange" @refresh-change="refreshChange"
  7. @resetColumn="resetColumnTwo('crud', 'option', 'optionList', 401)"
  8. @saveColumn="saveColumnTwo('crud', 'option', 'optionList', 401)" :page.sync="page">
  9. <template slot-scope="{ row }" slot="expand">
  10. <avue-crud :data="row.itemData" :option="itemOption" :table-loading="row.itemLoading" :cell-style="cellStyle"
  11. class="itemTable"></avue-crud>
  12. </template>
  13. <template slot-scope="{ row }" slot="status">
  14. <span v-for="(item, index) in orderStatusList" :key="index">
  15. <span v-if="item.dictKey == row.status" :style="{ background: item.colour }" class="bottomBox">
  16. {{ item.dictValue }}
  17. </span>
  18. </span>
  19. </template>
  20. <template slot-scope="{ row }" slot="actualPaymentStatus">
  21. <span v-for="(item, index) in actualStatusList" :key="index">
  22. <span v-if="item.dictKey == row.actualPaymentStatus" :style="{ background: item.colour }" class="bottomBox">
  23. {{ item.dictValue }}
  24. </span>
  25. </span>
  26. </template>
  27. <template slot-scope="{ row }" slot="returnsStatus">
  28. <span v-for="(item, index) in returnStatusList" :key="index">
  29. <span v-if="item.dictKey == row.returnsStatus" :style="{ background: item.colour }" class="bottomBox">
  30. {{ item.dictValue }}
  31. </span>
  32. </span>
  33. </template>
  34. <template slot-scope="{type,size,row,index}" slot="menu">
  35. <!-- <el-button :size="size" :type="type" @click="check(row)">查看</el-button> -->
  36. <!-- 判断是否一键采购过 然后展示不同的判断按钮-->
  37. <el-button v-if="row.shortcutWarehousingStatus == '1'" :size="size" :type="type"
  38. :disabled="row.status != '录入' && row.item >= 1" @click="$refs.crud.rowDel(row, index)">删除</el-button>
  39. <el-button v-else :size="size" :type="type"
  40. :disabled="row.status != '录入' && row.status != '待确认' && row.item >= 1 || row.numberRows >= 1"
  41. @click="$refs.crud.rowDel(row, index)">删除</el-button>
  42. <el-button v-if="row.confirmWarehouse != 1" :size="size" :type="type"
  43. @click="confirm(row, index, 1)">确认入库</el-button>
  44. <el-button v-else :size="size" :type="type" @click="confirm(row, index, 2)">撤销入库</el-button>
  45. <el-button v-if="row.whetherRedeem != 1" :size="size" :type="type"
  46. @click="confirm(row, index, 3)">确认赎回</el-button>
  47. <el-button v-else :size="size" :type="type" @click="confirm(row, index, 4)">撤销赎回</el-button>
  48. </template>
  49. <template slot="corpNameSearch">
  50. <crop-select v-model="search.corpId" corpType="KH" :refresh="false"></crop-select>
  51. </template>
  52. <template slot="notCompleteSearch">
  53. <el-checkbox v-model="search.notComplete" true-label="1"></el-checkbox>
  54. </template>
  55. <template slot-scope="{type,size,row,$index}" slot="menuLeft">
  56. <el-button icon="el-icon-plus" type="primary" :size="size" @click="detailsOpen = true">新建订单</el-button>
  57. <el-button type="warning" icon="el-icon-download" size="small" @click="outExport">导出</el-button>
  58. </template>
  59. <template slot-scope="{ row, index }" slot="ordNo">
  60. <span style="color: #409EFF;cursor: pointer" @click.stop="editOpen(row, 2)">{{ row.ordNo }}
  61. </span>
  62. </template>
  63. <template slot-scope="{ row, index }" slot="srcOrdNo">
  64. <span style="color: #409EFF;cursor: pointer" @click.stop="editOpen(row, 3)">{{ row.srcOrdNo }}
  65. </span>
  66. </template>
  67. </avue-crud>
  68. </basic-container>
  69. <detailsPage v-if="detailsOpen" :onLoad="form" :detailData="detailData" @backToList="backToList"></detailsPage>
  70. </div>
  71. </template>
  72. <script>
  73. import { getList, remove, getGoodsInfo, confirmWarehouse, revokeWarehouse,confirmRedeem,revokeRedeem } from "@/api/tirePartsMall/salesManagement/saleOrder";
  74. import detailsPage from "./detailsPage"
  75. import { getDetails } from "@/api/tirePartsMall/salesManagement/saleOrder";
  76. import { getToken } from "@/util/auth";
  77. export default {
  78. name: "index",
  79. components: {
  80. detailsPage
  81. },
  82. data() {
  83. return {
  84. orderStatusList: [],
  85. actualStatusList: [],
  86. returnStatusList: [],
  87. detailsOpen: false,
  88. loading: false,
  89. search: {},
  90. form: {},
  91. dataList: [],
  92. detailData: {},
  93. page: {
  94. pageSize: 20,
  95. currentPage: 1,
  96. total: 0,
  97. pageSizes: [10, 20, 30, 40, 50, 100, 200, 300, 400, 500]
  98. },
  99. key: 0,
  100. itemOption: {
  101. align: "center",
  102. header: false,
  103. border: true,
  104. menu: false,
  105. column: [
  106. {
  107. label: '商品名称',
  108. prop: 'goodsId',
  109. width: 200,
  110. // disabled: false,
  111. // remote: true,
  112. overHidden: true,
  113. // type: 'select',
  114. // // dicData: [],
  115. // props: {
  116. // label: 'cname',
  117. // value: 'id'
  118. // },
  119. // dicUrl: "/api/blade-sales-part/goodsDesc/goodsListAll"
  120. }, {
  121. label: '数量',
  122. prop: 'goodsNum',
  123. overHidden: true,
  124. disabled: false,
  125. width: 100,
  126. rules: [{
  127. required: true,
  128. message: " ",
  129. trigger: "blur"
  130. }, {
  131. validator: (rule, value, callback) => {
  132. console.log(this.formContacts.inventory);
  133. if (value < 0) {
  134. callback(new Error("数量不能小于0"));
  135. } else {
  136. callback();
  137. }
  138. },
  139. trigger: "blur"
  140. }]
  141. },
  142. {
  143. label: '价格',
  144. prop: 'price',
  145. overHidden: true,
  146. width: 100,
  147. disabled: false,
  148. rules: [{
  149. required: true,
  150. message: " ",
  151. trigger: "blur"
  152. }, {
  153. validator: (rule, value, callback) => {
  154. if (value < 0) {
  155. callback(new Error("价格不能小于0"));
  156. } else {
  157. callback();
  158. }
  159. },
  160. trigger: "blur"
  161. }]
  162. },
  163. {
  164. label: '库存',
  165. prop: 'inventory',
  166. overHidden: true,
  167. hide: true,
  168. width: 100
  169. }, {
  170. label: '批次号',
  171. prop: 'dot',
  172. type: "select",
  173. disabled: true,
  174. allowCreate: true,
  175. filterable: true,
  176. dicData: [],
  177. props: {
  178. label: "dot",
  179. value: "dot"
  180. },
  181. dicUrl: "/api/blade-sales-part/stockDesc/dotList",
  182. overHidden: true,
  183. }, {
  184. label: '商品编码',
  185. prop: 'goodsNo',
  186. overHidden: true,
  187. disabled: false,
  188. width: 100
  189. },
  190. // {
  191. // label: '品牌',
  192. // prop: 'brandId',
  193. // disabled: false,
  194. // width: 100,
  195. // overHidden: true,
  196. // type: 'select',
  197. // props: {
  198. // label: 'cname',
  199. // value: 'id'
  200. // },
  201. // dicUrl: '/api/blade-sales-part/brandDesc/listAll?type=PP'
  202. // },
  203. {
  204. label: '品牌',
  205. prop: 'brandName',
  206. overHidden: true,
  207. disabled: false,
  208. width: 100
  209. },
  210. {
  211. label: '规格型号',
  212. prop: 'propertyName',
  213. overHidden: true,
  214. disabled: false,
  215. width: 100
  216. }, {
  217. label: '花纹',
  218. prop: 'pattern',
  219. overHidden: true,
  220. disabled: false,
  221. width: 100
  222. }, {
  223. label: '商品描述',
  224. prop: 'goodsDescription',
  225. disabled: false,
  226. overHidden: true,
  227. width: 100
  228. },
  229. {
  230. label: '收货数量',
  231. prop: 'sendNum',
  232. overHidden: true,
  233. width: 100,
  234. disabled: true,
  235. editDisplay: false,
  236. addDisplay: false
  237. }
  238. ]
  239. },
  240. option: {},
  241. optionList: {
  242. viewBtn: false,
  243. editBtn: false,
  244. delBtn: false,
  245. addBtn: false,
  246. index: true,
  247. span: 8,
  248. border: true,
  249. height: "auto",
  250. searchMenuPosition: "right",
  251. align: "center",
  252. size: "small",
  253. menuWidth: 170,
  254. searchSpan: 6,
  255. searchMenuSpan: 24,
  256. searchIcon: true,
  257. searchIndex: 3,
  258. highlightCurrentRow: true,
  259. expand: true,
  260. expandWidth: 60,
  261. dialogWidth: "70%",
  262. summaryText: "合计",
  263. showSummary: true,
  264. sumColumnList: [{
  265. name: 'goodsTotalNum',
  266. type: 'sum',
  267. decimals: 0
  268. }, {
  269. name: 'totalMoney',
  270. type: 'sum',
  271. decimals: 2
  272. },],
  273. column: [{
  274. label: '采购单号',
  275. prop: "ordNo",
  276. search: true,
  277. overHidden: true,
  278. },
  279. // {
  280. // label: '来源单号',
  281. // prop: "srcOrdNo",
  282. // search: true,
  283. // overHidden: true,
  284. // },
  285. // {
  286. // label: "业务来源",
  287. // prop: "businessSource",
  288. // overHidden: true,
  289. // search: true,
  290. // type: 'select',
  291. // dicUrl: "/api/blade-system/dict-biz/dictionary?code=business_Source",
  292. // props: {
  293. // label: "dictValue",
  294. // value: "dictKey"
  295. // }
  296. // },
  297. {
  298. label: '所属公司',
  299. prop: "salesCompanyName",
  300. overHidden: true,
  301. }, {
  302. label: '业务对象',
  303. prop: "customerName",
  304. type: 'select',
  305. search: true,
  306. overHidden: true,
  307. filterable: true,
  308. remote: true,
  309. props: {
  310. label: 'cname',
  311. value: 'cname',
  312. res: 'data.records'
  313. },
  314. dicUrl: '/api/blade-sales-part/corpsDesc/list?current=1&size=20&corpType=GYS&cname={{key}}',
  315. }, {
  316. label: '资金方',
  317. prop: "fundingPartyName",
  318. type: 'select',
  319. search: true,
  320. overHidden: true,
  321. filterable: true,
  322. remote: true,
  323. props: {
  324. label: 'cname',
  325. value: 'cname',
  326. res: 'data.records'
  327. },
  328. dicUrl: '/api/blade-sales-part/corpsDesc/list?current=1&size=20&corpType=GYS&cname={{key}}',
  329. },
  330. {
  331. label: '显示已完成',
  332. prop: 'notComplete',
  333. overHidden: true,
  334. hide: true,
  335. search: true,
  336. searchslot: true
  337. }, {
  338. label: '仓库',
  339. prop: "storageName",
  340. search: true,
  341. // remote:true,
  342. overHidden: true,
  343. type: 'select',
  344. props: {
  345. label: 'cname',
  346. value: 'cname'
  347. },
  348. dicUrl: '/api/blade-sales-part/storageDesc/listAll?cname={{key}}',
  349. }, {
  350. label: '行数',
  351. prop: "numberRows",
  352. overHidden: true,
  353. }, {
  354. label: '商品名称',
  355. prop: "goodsNameJoin",
  356. search: true,
  357. overHidden: true,
  358. // filterable: true,
  359. // remote:true,
  360. // type: 'select',
  361. // props: {
  362. // label: 'cname',
  363. // value: 'cname',
  364. // res: 'data.records'
  365. // },
  366. // dicUrl: "/api/blade-sales-part/goodsDesc/list?current=1&size=20&cname={{key}}"
  367. }, {
  368. label: '数量',
  369. prop: "goodsTotalNum",
  370. overHidden: true,
  371. },
  372. // {
  373. // label: '金额',
  374. // prop: "totalMoney",
  375. // overHidden: true,
  376. // },
  377. {
  378. label: '已付金额',
  379. prop: "paymentAmountTl",
  380. disabled: true
  381. },
  382. {
  383. label: '融资金额',
  384. prop: "fundingAmount",
  385. overHidden: true,
  386. },
  387. {
  388. label: '可用金额',
  389. prop: "availableAmount",
  390. overHidden: true,
  391. },
  392. {
  393. label: '利息',
  394. prop: "interest",
  395. overHidden: true,
  396. },
  397. {
  398. label: '状态',
  399. prop: "status",
  400. search: true,
  401. overHidden: true,
  402. type: 'select',
  403. dicUrl: "/api/blade-system/dict-biz/dictionary?code=procurement_Status",
  404. props: {
  405. label: "dictValue",
  406. value: "dictKey"
  407. }
  408. },
  409. {
  410. label: '结算状态',
  411. prop: "actualPaymentStatus",
  412. searchProp: 'actualPaymentType',
  413. search: true,
  414. overHidden: true,
  415. type: 'select',
  416. dicData: [
  417. {
  418. label: "待付款",
  419. value: 1,
  420. },
  421. {
  422. label: "已付款",
  423. value: 2,
  424. },
  425. {
  426. label: "尾款",
  427. value: 3,
  428. }
  429. ],
  430. // dicUrl: "/api/blade-system/dict-biz/dictionary?code=settlement_Status",
  431. // props: {
  432. // label: "dictValue",
  433. // value: "dictKey"
  434. // }
  435. },
  436. // {
  437. // label: '应结日期',
  438. // prop: "dueDate",
  439. // overHidden: true,
  440. // },
  441. {
  442. label: '退货状态',
  443. prop: "returnsStatus",
  444. overHidden: true,
  445. },
  446. {
  447. label: "制单人",
  448. prop: "createUserName",
  449. searchProp: "createUser",
  450. overHidden: true,
  451. width: 100,
  452. filterable: true,
  453. remote: true,
  454. type: "select",
  455. dicUrl: "/api/blade-user/page?size=20&current=1&account={{key}}",
  456. props: {
  457. label: "account",
  458. value: "id",
  459. res: 'data.records'
  460. }
  461. }, {
  462. label: "制单日期",
  463. prop: "createTime",
  464. searchProp: "createTimeList",
  465. type: "date",
  466. overHidden: true,
  467. width: 100,
  468. searchRange: true,
  469. searchDefaultTime: ["00:00:00", "23:59:59"],
  470. format: "yyyy-MM-dd",
  471. valueFormat: "yyyy-MM-dd HH:mm:ss"
  472. }, {
  473. label: '业务日期',
  474. prop: "businesDate",
  475. overHidden: true,
  476. searchProp: "businesDateList",
  477. type: "date",
  478. search: true,
  479. width: 100,
  480. searchRange: true,
  481. searchDefaultTime: ["00:00:00", "23:59:59"],
  482. format: "yyyy-MM-dd",
  483. valueFormat: "yyyy-MM-dd HH:mm:ss"
  484. }, {
  485. label: "更新人",
  486. prop: "updateUserName",
  487. searchProp: "updateUser",
  488. overHidden: true,
  489. width: 100,
  490. filterable: true,
  491. remote: true,
  492. type: "select",
  493. dicUrl: "/api/blade-user/page?size=20&current=1&account={{key}}",
  494. props: {
  495. label: "account",
  496. value: "id",
  497. res: 'data.records'
  498. }
  499. }, {
  500. label: "更新日期",
  501. prop: "updateTime",
  502. searchProp: "updateTimeList",
  503. type: "date",
  504. overHidden: true,
  505. width: 100,
  506. searchRange: true,
  507. searchDefaultTime: ["00:00:00", "23:59:59"],
  508. format: "yyyy-MM-dd",
  509. valueFormat: "yyyy-MM-dd HH:mm:ss"
  510. }]
  511. }
  512. }
  513. },
  514. activated() {
  515. setTimeout(() => {
  516. console.log(this.$route.query, 400);
  517. // 主页快捷跳转来的 直接打开新建订单
  518. if (this.$route.query.showTrue) {
  519. this.$store.commit("IN_FINACING_STATUS");
  520. this.detailsOpen = true;
  521. }
  522. if (this.$route.query.check) {
  523. this.editOpen({ id: this.$route.query.check.srcBillId }, 1)
  524. this.$store.commit("IN_FINACING_STATUS");
  525. }
  526. if (this.$route.query.type == 'F') {
  527. this.editOpen({ id: this.$route.query.detail.srcParentId }, 1)
  528. }
  529. if (this.$route.query.srcId) {
  530. this.editOpen({ id: this.$route.query.srcId }, 1)
  531. this.$store.commit("IN_FINACING_STATUS");
  532. }
  533. this.detailData = {
  534. id: this.$route.query.check.billId,
  535. check: this.$route.query.check,
  536. auditId: this.$route.query.check.id
  537. };
  538. }, 100);
  539. },
  540. async created() {
  541. this.option = await this.getColumnData(this.getColumnName(401), this.optionList);
  542. this.key++
  543. let i = 0;
  544. this.option.column.forEach(item => {
  545. if (item.search) i++
  546. })
  547. this.getWorkDicts("procurement_Status").then(res => {
  548. this.orderStatusList = res.data.data
  549. });
  550. this.getWorkDicts("settlement_Status").then(res => {
  551. this.actualStatusList = res.data.data
  552. });
  553. this.getWorkDicts("return_Status").then(res => {
  554. this.returnStatusList = res.data.data
  555. });
  556. },
  557. methods: {
  558. // 导出
  559. outExport() {
  560. console.log(this.search, 412)
  561. let config = { params: { ...this.search } }
  562. if (config.params) {
  563. for (const propName of Object.keys(config.params)) {
  564. const value = config.params[propName];
  565. if (value !== null && typeof (value) !== "undefined") {
  566. if (value instanceof Array) {
  567. for (const key of Object.keys(value)) {
  568. let params = propName + '[' + key + ']';
  569. config.params[params] = value[key]
  570. }
  571. delete config.params[propName]
  572. }
  573. }
  574. }
  575. }
  576. config.params.bsType = 'RZCG'
  577. console.log(config, 427)
  578. const routeData = this.$router.resolve({
  579. path: '/api/blade-sales-part/order/listExport', //跳转目标下载地址
  580. query: {
  581. ...config.params //括号内是要传递给新窗口的参数
  582. }
  583. })
  584. window.open(routeData.href.slice(1, routeData.href.length) + '&' + `${this.website.tokenHeader}=${getToken()}`);
  585. },
  586. check(row) {
  587. this.form = row
  588. this.detailsOpen = true
  589. },
  590. backToList(type) {
  591. this.form = {}
  592. this.detailsOpen = false
  593. if (type === 0) {
  594. this.detailData = {}
  595. }
  596. this.$store.commit("OUT_FINACING_STATUS");
  597. this.onLoad(this.page, this.search)
  598. },
  599. editOpen(row, status) {
  600. this.form = row
  601. this.detailData = {
  602. id: row.id,
  603. status: status
  604. };
  605. console.log(status);
  606. this.$store.commit("IN_FINACING_STATUS");
  607. this.detailsOpen = true;
  608. },
  609. //刷新
  610. refreshChange() {
  611. this.onLoad(this.page, this.search)
  612. },
  613. confirm(row, index, type) {
  614. if (type == 1) {
  615. confirmWarehouse(row).then(res => {
  616. this.$message.success("确认成功");
  617. this.onLoad(this.page, this.search)
  618. })
  619. }
  620. if (type == 2) {
  621. revokeWarehouse(row).then(res => {
  622. this.$message.success("撤销成功");
  623. this.onLoad(this.page, this.search)
  624. })
  625. }
  626. if (type == 3) {
  627. confirmRedeem(row).then(res => {
  628. this.$message.success("确认成功");
  629. this.onLoad(this.page, this.search)
  630. })
  631. }
  632. if (type == 4) {
  633. revokeRedeem(row).then(res => {
  634. this.$message.success("撤销成功");
  635. this.onLoad(this.page, this.search)
  636. })
  637. }
  638. },
  639. rowDel(form, index) {
  640. this.$confirm('此操作将永久删除该行, 是否继续?', '提示', {
  641. confirmButtonText: '确定',
  642. cancelButtonText: '取消',
  643. type: 'warning'
  644. }).then(() => {
  645. remove({ id: form.id }).then(res => {
  646. this.$message({
  647. type: 'success',
  648. message: '删除成功!'
  649. });
  650. this.dataList.splice(index, 1);
  651. this.onLoad(this.page)
  652. })
  653. }).catch(() => {
  654. });
  655. },
  656. // 点击搜索触发
  657. searchChange(params, done) {
  658. this.page.currentPage = 1
  659. done();
  660. this.onLoad(this.page, params)
  661. },
  662. onLoad(page, params = {}) {
  663. params = {
  664. ...params,
  665. current: page.currentPage,
  666. size: page.pageSize,
  667. bsType: "RZCG",
  668. ...Object.assign(params, this.search)
  669. }
  670. this.loading = true
  671. this.dataList.forEach(item => {
  672. this.$refs.crud.toggleRowExpansion(item, false);
  673. });
  674. getList(params).then(res => {
  675. if (res.data.data.records) {
  676. res.data.data.records.forEach(e => {
  677. e.itemLoading = true;
  678. });
  679. }
  680. this.dataList = res.data.data.records
  681. this.page.total = res.data.data.total
  682. this.$nextTick(() => {
  683. this.$refs.crud.doLayout()
  684. this.$refs.crud.dicInit()
  685. })
  686. this.loading = false
  687. }).finally(() => {
  688. this.loading = false
  689. })
  690. },
  691. expandChange(row) {
  692. if (!row.itemData) {
  693. getDetails({ id: row.id })
  694. .then(res => {
  695. this.dataList[row.$index].itemData = res.data.data.orderItemsList;
  696. })
  697. .finally(() => {
  698. this.dataList[row.$index].itemLoading = false;
  699. });
  700. }
  701. },
  702. //自定义列保存
  703. async saveColumnTwo(ref, option, optionBack, code) {
  704. /**
  705. * 已定义全局方法,直接使用,saveColumnData保存列数据方法,参数传值(表格名称,当前表格的option数据)
  706. * 已定义全局方法,直接使用,getColumnName方法用来获取枚举值,参数根据自己定义的code值获取中文名
  707. * 一定要执行异步操作,要等接口成功返回,才能执行下一行代码
  708. */
  709. const inSave = await this.saveColumnData(this.getColumnName(code), this[option]);
  710. if (inSave) {
  711. this.$message.success("保存成功");
  712. //关闭窗口
  713. this.$refs[ref].$refs.dialogColumn.columnBox = false;
  714. }
  715. },
  716. //自定义列重置
  717. async resetColumnTwo(ref, option, optionBack, code) {
  718. this[option] = this[optionBack];
  719. const inSave = await this.delColumnData(this.getColumnName(code), this[optionBack]);
  720. if (inSave) {
  721. this.$message.success("重置成功");
  722. this.$refs[ref].$refs.dialogColumn.columnBox = false;
  723. }
  724. }
  725. }
  726. }
  727. </script>
  728. <style scoped>
  729. .bottomBox {
  730. padding: 3px 6px;
  731. border-radius: 12px;
  732. color: #fff;
  733. font-size: 10px;
  734. }
  735. /deep/ .el-col-md-8 {
  736. width: 24.33333%;
  737. }
  738. </style>