detailsPage.vue 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749
  1. <template>
  2. <div>
  3. <div class="customer-head">
  4. <div class="customer-back">
  5. <el-button type="danger" style="border: none;background: none;color: red" icon="el-icon-arrow-left"
  6. @click="backToList(0)">返回列表
  7. </el-button>
  8. </div>
  9. <div class="add-customer-btn">
  10. <el-button class="el-button&#45;&#45;small-yh" style="margin-right: 10px" type="primary" size="small" v-if="!editButton"
  11. @click="confirmEditing">编辑
  12. </el-button>
  13. <el-button class="el-button--small-yh" type="primary" size="small" v-if="form.statusName != '已入库'"
  14. @click="editCustomer">保存数据
  15. </el-button>
  16. <el-button class="el-button--small-yh" type="success" size="small"
  17. v-if="form.statusName == '待入库' || form.statusName == '已撤销'" @click="complete">入库完成
  18. </el-button>
  19. <el-button class="el-button--small-yh" type="success" size="small" v-if="form.statusName == '已入库'"
  20. @click="revoke">撤销入库
  21. </el-button>
  22. </div>
  23. </div>
  24. <div style="margin-top: 50px">
  25. <trade-card title="基础信息">
  26. <avue-form :option="optionForm" v-model="form" ref="form"></avue-form>
  27. </trade-card>
  28. <trade-card title="明细信息">
  29. <el-tabs v-model="activeName" type="card">
  30. <el-tab-pane label="入库明细" name="sale_detail">
  31. <avue-crud :option="optionContacts" v-model="formContacts" ref="formContacts"
  32. :data="form.shipItemsList" :key="key" @row-save="rowSave" @row-update="rowUpdate"
  33. @resetColumn="resetColumnTwo('formContacts', 'optionContacts', 'optionContactsBack', 274.1)"
  34. @saveColumn="saveColumnTwo('formContacts', 'optionContacts', 'optionContactsBack', 274.1)">
  35. <template slot-scope="{type,size,row,index,disabled}" slot="menu">
  36. <el-button :size="size" :disabled="disabled" :type="type"
  37. :icon="row.$cellEdit ? 'el-icon-plus' : 'el-icon-edit'"
  38. @click="$refs.formContacts.rowEdit(row, index)">编辑
  39. </el-button>
  40. <el-button icon="el-icon-delete" :size="size" :disabled="disabled" :type="type"
  41. @click="rowDelBox(row, index)">删除
  42. </el-button>
  43. </template>
  44. <template slot="menuLeft">
  45. <el-button type="success" size="small" icon="el-icon-bottom" @click="excelBox = true">导入
  46. </el-button>
  47. <el-button type="primary" icon="el-icon-printer" size="small"
  48. @click="handlePrint">打印</el-button>
  49. </template>
  50. </avue-crud>
  51. </el-tab-pane>
  52. <el-tab-pane label="采购信息" name="payment_details">
  53. <avue-crud :option="optionPaymentDetails" ref="payment_details" :data="form.shipVOList" :key="key"
  54. @resetColumn="resetColumnTwo('payment_details', 'optionPaymentDetails', 'optionPaymentDetailsBack', 274.2)"
  55. @saveColumn="saveColumnTwo('payment_details', 'optionPaymentDetails', 'optionPaymentDetailsBack', 274.2)">
  56. </avue-crud>
  57. </el-tab-pane>
  58. <el-tab-pane label="历史记录" name="outbound_records">
  59. <avue-crud :option="optionOutboundRecords" ref="outbound_records" :data="form.historyList"
  60. :key="key"
  61. @resetColumn="resetColumnTwo('outbound_records', 'optionOutboundRecords', 'optionOutboundRecordsBack', 274.3)"
  62. @saveColumn="saveColumnTwo('outbound_records', 'optionOutboundRecords', 'optionOutboundRecordsBack', 274.3)">
  63. </avue-crud>
  64. </el-tab-pane>
  65. </el-tabs>
  66. </trade-card>
  67. <report-dialog :switchDialog="switchDialog" :reportId="form.id" @onClose="onClose()"></report-dialog>
  68. </div>
  69. <el-dialog title="导入明细" append-to-body :visible.sync="excelBox" v-if="excelBox" width="555px"
  70. :close-on-click-modal="false" v-dialog-drag>
  71. <avue-form :option="excelOption" v-model="excelForm" table-loading="excelLoading" :upload-before="uploadBefore"
  72. :upload-after="uploadAfter">
  73. <template slot="excelTemplate">
  74. <el-button type="primary" @click="derivation">
  75. 点击下载<i class="el-icon-download el-icon--right"></i>
  76. </el-button>
  77. </template>
  78. </avue-form>
  79. <p style="text-align: center;color: #DC0505">
  80. 温馨提示 第一次导入时请先下载模板
  81. </p>
  82. </el-dialog>
  83. </div>
  84. </template>
  85. <script>
  86. import {
  87. getDetails,
  88. tradingBox,
  89. submit,
  90. warehousingComplete,
  91. revoke,
  92. goodsDetail,
  93. dotList,
  94. getWarehouseKeeper
  95. } from "@/api/tirePartsMall/purchasingManagement/warehouseEntryOrder";
  96. import { dateFormat } from "@/util/date";
  97. import { getToken } from "@/util/auth";
  98. import { getMenu } from "@/api/system/menu";
  99. import reportDialog from "@/components/report-dialog/main";
  100. export default {
  101. name: "detailsPage",
  102. data() {
  103. return {
  104. switchDialog: false,
  105. activeName: "sale_detail",
  106. disabled: false,
  107. excelBox: false,
  108. excelOption: {
  109. submitBtn: false,
  110. emptyBtn: false,
  111. column: [
  112. {
  113. label: "模板下载",
  114. prop: "excelTemplate",
  115. formslot: true,
  116. span: 24
  117. },
  118. {
  119. label: "导入明细",
  120. prop: "excelFile",
  121. type: "upload",
  122. drag: true,
  123. loadText: "上传中,请稍等",
  124. accept: '.xls,.xlsx',
  125. span: 24,
  126. propsHttp: {
  127. res: "data"
  128. },
  129. tip: "请上传 .xls,.xlsx 标准格式文件",
  130. action: "/api/blade-sales-part/ship/import-item"
  131. }
  132. ]
  133. },
  134. excelForm: {},
  135. form: {
  136. shipItemsList: [],
  137. shipVOList: [],
  138. historyList: []
  139. },
  140. key: 0,
  141. optionForm: {
  142. disabled: false,
  143. menuBtn: false,
  144. labelWidth: 100,
  145. columnBtn: false,
  146. span: 8,
  147. column: [
  148. {
  149. label: "业务对象",
  150. prop: "customerId",
  151. disabled:false,
  152. type: 'select',
  153. props: {
  154. label: 'cname',
  155. value: 'id'
  156. },
  157. dicUrl: '/api/blade-sales-part/corpsDesc/listAll?corpType=GYS',
  158. rules: [
  159. {
  160. required: true,
  161. message: " ",
  162. trigger: "blur"
  163. }
  164. ]
  165. },
  166. {
  167. label: "仓库",
  168. prop: "storageId",
  169. search: true,
  170. overHidden: true,
  171. type: 'select',
  172. dicUrl: "/api/blade-sales-part/storageDesc/listAll",
  173. disabled:false,
  174. props: {
  175. label: 'cname',
  176. value: 'id'
  177. },
  178. rules: [
  179. {
  180. required: true,
  181. message: " ",
  182. trigger: "blur"
  183. }
  184. ],
  185. // change:(data)=>{
  186. // // console.log(this.$refs);
  187. // getWarehouseKeeper({salesCompanyId:this.form.storageId}).then((res)=>{
  188. // console.log(res.data.data);
  189. // this.form.stockClerkId = res.data.data[0].id
  190. // })
  191. // }
  192. },
  193. {
  194. label: '库管',
  195. prop: "stockClerkId",
  196. type: 'select',
  197. disabled:false,
  198. props: {
  199. label: 'realName',
  200. value: 'id'
  201. },
  202. dicUrl: '/api/blade-user/stockClerkList',
  203. rules: [{
  204. required: true,
  205. message: " ",
  206. trigger: "blur"
  207. }]
  208. },
  209. {
  210. label: "商品数量",
  211. prop: "goodsTotalNum",
  212. search: false,
  213. overHidden: true,
  214. disabled:false,
  215. // width: 120,
  216. // rules: [
  217. // {
  218. // required: true,
  219. // message: " ",
  220. // trigger: "blur"
  221. // }
  222. // ]
  223. },
  224. {
  225. label: "业务日期",
  226. prop: "createTime",
  227. disabled:false,
  228. type: "datetime",
  229. value: dateFormat(new Date(), 'yyyy-MM-dd hh:mm:ss'),
  230. format: "yyyy-MM-dd HH:mm",
  231. valueFormat: "yyyy-MM-dd HH:mm:ss",
  232. rules: [
  233. {
  234. required: true,
  235. message: "",
  236. trigger: "blur"
  237. }
  238. ]
  239. },
  240. {
  241. label: "入库单号",
  242. prop: "ordNo",
  243. disabled:false,
  244. },
  245. {
  246. label: "来源单号",
  247. prop: "srcOrdNo",
  248. disabled:false,
  249. }, {
  250. label: '备注',
  251. disabled:false,
  252. prop: "remarks",
  253. type: 'textarea',
  254. span: 16,
  255. minRows: 1
  256. }
  257. ]
  258. },
  259. formContacts: {},
  260. optionContacts: {},
  261. optionContactsBack: {
  262. align: "center",
  263. addBtn: true,
  264. addBtnText: "录入明细",
  265. refreshBtn: false,
  266. editBtn: false,
  267. delBtn: false,
  268. border: true,
  269. menuWidth: 120,
  270. stripe: true,
  271. index: true,
  272. menu: true,
  273. dialogTop: 25,
  274. disabled:false,
  275. dialogWidth: "80%",
  276. column: [{
  277. label: '商品名称',
  278. prop: 'goodsId',
  279. width: 200,
  280. overHidden: true,
  281. filterable: true,
  282. type: 'select',
  283. props: {
  284. label: 'cname',
  285. value: 'id'
  286. },
  287. dicUrl: '/api/blade-sales-part/goodsDesc/goodsListAll'
  288. }, {
  289. label: '物料编码',
  290. prop: 'goodsNo',
  291. overHidden: true,
  292. width: 140
  293. }, {
  294. label: "品牌",
  295. prop: 'brandId',
  296. width: 100,
  297. overHidden: true,
  298. type: 'select',
  299. props: {
  300. label: 'cname',
  301. value: 'id'
  302. },
  303. dicUrl: '/api/blade-sales-part/brandDesc/listAll'
  304. }, {
  305. label: "规格型号",
  306. prop: "propertyName",
  307. overHidden: true,
  308. rules: [{
  309. required: true,
  310. message: " ",
  311. trigger: "blur"
  312. }]
  313. }, {
  314. label: "花纹",
  315. prop: "pattern",
  316. overHidden: true
  317. }, {
  318. label: "商品描述",
  319. prop: "goodsDescription",
  320. overHidden: true
  321. }, {
  322. label: "批次号",
  323. prop: "dot",
  324. type: "select",
  325. disabled: false,
  326. allowCreate: true,
  327. filterable: true,
  328. dicData: [],
  329. props: {
  330. label: "dot",
  331. value: "dot"
  332. },
  333. overHidden: true
  334. }, {
  335. label: "单位",
  336. prop: 'units',
  337. type: "select",
  338. props: {
  339. label: "dictValue",
  340. value: "dictValue"
  341. },
  342. dicUrl: "/api/blade-system/dict-biz/dictionary?code=unit"
  343. }, {
  344. label: "单价",
  345. prop: "price",
  346. ovrHidden: true,
  347. rules: [{
  348. required: true,
  349. message: " ",
  350. trigger: "blur"
  351. }]
  352. }, {
  353. label: "入库数量",
  354. prop: "goodsNum",
  355. disabled: true,
  356. ovrHidden: true,
  357. }, {
  358. label: "实际数量",
  359. prop: "sendNum",
  360. overHidden: true,
  361. rules: [{
  362. required: true,
  363. message: " ",
  364. trigger: "blur"
  365. }]
  366. }, {
  367. label: "备注",
  368. prop: "remarks",
  369. overHidde: true
  370. }]
  371. },
  372. optionPaymentDetails: {},
  373. optionPaymentDetailsBack: {
  374. align: "center",
  375. addBtn: false,
  376. refreshBtn: false,
  377. editBtn: false,
  378. delBtn: false,
  379. border: true,
  380. menuWidth: 120,
  381. stripe: true,
  382. index: true,
  383. menu: false,
  384. column: [
  385. {
  386. label: "入库单号",
  387. prop: "billno",
  388. disabled: true
  389. },
  390. {
  391. label: "来源单号",
  392. prop: "ordNo",
  393. disabled: true
  394. },
  395. {
  396. label: "业务来源",
  397. prop: "stockTime",
  398. type: "date",
  399. searchRange: true,
  400. searchDefaultTime: [
  401. "00:00:00",
  402. "23:59:59"
  403. ],
  404. format: "yyyy-MM-dd",
  405. valueFormat: "yyyy-MM-dd HH:mm:ss",
  406. overHidden: true
  407. },
  408. {
  409. prop: "itemId",
  410. label: "地址",
  411. type: "select",
  412. props: {
  413. label: "cname",
  414. value: "id"
  415. },
  416. dicData: [],
  417. overHidden: true,
  418. filterable: true,
  419. rules: [
  420. {
  421. required: true,
  422. message: "请选择",
  423. trigger: "blur"
  424. }
  425. ]
  426. },
  427. {
  428. prop: "length",
  429. label: "联系人",
  430. overHidden: true
  431. },
  432. {
  433. prop: "thickness",
  434. label: "电话",
  435. overHidden: true
  436. },
  437. {
  438. prop: "remarks",
  439. label: "备注",
  440. disabled:false,
  441. overHidden: true,
  442. cell: true
  443. }
  444. ]
  445. },
  446. optionOutboundRecords: {},
  447. optionOutboundRecordsBack: {
  448. align: "center",
  449. addBtn: false,
  450. refreshBtn: false,
  451. editBtn: false,
  452. delBtn: false,
  453. border: true,
  454. menuWidth: 120,
  455. index: true,
  456. stripe: true,
  457. menu: false,
  458. column: [{
  459. prop: "operatorName",
  460. label: "操作人",
  461. overHidden: true,
  462. showColumn: false,
  463. width: 120,
  464. }, {
  465. prop: "operateStatus",
  466. label: "状态",
  467. overHidden: true,
  468. }, {
  469. prop: "operateTime",
  470. label: "时间",
  471. overHidden: true,
  472. searchDefaultTime: ["00:00:00", "23:59:59"],
  473. format: "yyyy-MM-dd",
  474. valueFormat: "yyyy-MM-dd HH:mm:ss",
  475. }]
  476. }
  477. }
  478. },
  479. props: {
  480. onLoad: Object,
  481. detailData: Object
  482. },
  483. async created() {
  484. this.optionContacts = await this.getColumnData(this.getColumnName(274.1), this.optionContactsBack);
  485. this.findObject(this.optionContacts.column, "goodsId").change = ({ value, column }) => {
  486. if (this.formContacts.goodsId !== value) {
  487. goodsDetail({ id: value }).then(res => {
  488. this.formContacts.goodsNo = res.data.data.code
  489. this.formContacts.brandId = res.data.data.brandId
  490. this.formContacts.brandName = res.data.data.brandName
  491. this.formContacts.propertyName = res.data.data.specificationAndModel
  492. this.formContacts.pattern = res.data.data.brandItem
  493. this.formContacts.goodsDescription = res.data.data.goodsDescription
  494. this.formContacts.units = res.data.data.unit
  495. this.findObject(this.optionContacts.column, "goodsNum").disabled = true
  496. if (res.data.data.whether == 0) {
  497. this.findObject(this.optionContacts.column, "dot").disabled = true
  498. } else {
  499. this.findObject(this.optionContacts.column, "dot").disabled = false
  500. dotList({
  501. storageId: this.form.storageId,
  502. goodsId: this.formContacts.goodsId
  503. }).then(res => {
  504. this.findObject(this.optionContacts.column, "dot").dicData = res.data.data
  505. })
  506. }
  507. })
  508. }
  509. }
  510. this.optionPaymentDetails = await this.getColumnData(this.getColumnName(274.2), this.optionPaymentDetailsBack);
  511. this.optionOutboundRecords = await this.getColumnData(this.getColumnName(274.3), this.optionOutboundRecordsBack);
  512. this.key++
  513. if (this.onLoad.id && this.detailData.id) {
  514. this.refresh(this.onLoad.id, true)
  515. this.$set(this.optionForm,'disabled',true)
  516. this.$set(this.optionContacts,'disabled',true)
  517. } else if (this.onLoad.id) {
  518. console.log(2);
  519. this.refresh(this.onLoad.id, true)
  520. }
  521. },
  522. components: {
  523. reportDialog
  524. },
  525. methods: {
  526. derivation() {
  527. window.open(
  528. `/api/blade-sales-part/ship/export-item?${this.website.tokenHeader
  529. }=${getToken()}`
  530. );
  531. },
  532. uploadAfter(res, done, loading, column) {
  533. if (res instanceof Array) {
  534. this.form.shipItemsList = this.form.shipItemsList.concat(res)
  535. }
  536. this.excelBox = false;
  537. loading = false;
  538. done();
  539. },
  540. uploadBefore(file, done, loading) {
  541. done();
  542. loading = true;
  543. },
  544. //撤销
  545. revoke() {
  546. this.$refs["form"].validate((valid, done) => {
  547. done();
  548. if (valid) {
  549. const loading = this.$loading({
  550. lock: true,
  551. text: '加载中',
  552. spinner: 'el-icon-loading',
  553. background: 'rgba(255,255,255,0.7)'
  554. });
  555. revoke({
  556. ...this.form,
  557. bizTypeName: "SHGD"
  558. }).then(res => {
  559. this.$message.success("撤销成功");
  560. this.refresh(res.data.data.id)
  561. loading.close();
  562. }).finally(() => {
  563. loading.close();
  564. });
  565. }
  566. })
  567. },
  568. //编辑
  569. confirmEditing(){
  570. if(this.form.statusName == '待入库'){
  571. this.$set(this.optionForm,'disabled',false)
  572. this.$set(this.optionContacts,'disabled',false)
  573. this.optionForm.column.forEach(item=>{
  574. if(item.prop == 'remarks' || item.prop == 'customerId' || item.prop == 'storageId' || item.prop == 'createTime' || item.prop == 'stockClerkId'){
  575. item.disabled = false
  576. }else{
  577. item.disabled = true
  578. }
  579. })
  580. this.optionContacts.column.forEach(item=>{
  581. if(item.prop == 'remarks'){
  582. item.disabled = false
  583. }else{
  584. item.disabled = true
  585. }
  586. })
  587. }else{
  588. this.$set(this.optionForm,'disabled',false)
  589. this.$set(this.optionContacts,'disabled',false)
  590. this.optionForm.column.forEach(item=>{
  591. if(item.prop == 'remarks'){
  592. item.disabled = false
  593. }else{
  594. item.disabled = true
  595. }
  596. })
  597. this.optionContacts.column.forEach(item=>{
  598. if(item.prop == 'remarks'){
  599. item.disabled = false
  600. }else{
  601. item.disabled = true
  602. }
  603. })
  604. }
  605. },
  606. complete() {
  607. this.$refs["form"].validate((valid, done) => {
  608. done();
  609. if (valid) {
  610. const loading = this.$loading({
  611. lock: true,
  612. text: '加载中',
  613. spinner: 'el-icon-loading',
  614. background: 'rgba(255,255,255,0.7)'
  615. });
  616. warehousingComplete({
  617. ...this.form,
  618. bizTypeName: "SHGD"
  619. }).then(res => {
  620. this.$message.success("保存成功");
  621. this.refresh(res.data.data.id)
  622. loading.close();
  623. }).finally(() => {
  624. loading.close();
  625. });
  626. }
  627. })
  628. },
  629. //修改提交触发
  630. editCustomer() {
  631. if (this.form.shipItemsList.length == 0) {
  632. return this.$message.warning('请明细不能为空')
  633. }
  634. this.$refs["form"].validate((valid, done) => {
  635. done();
  636. if (valid) {
  637. const loading = this.$loading({
  638. lock: true,
  639. text: '加载中',
  640. spinner: 'el-icon-loading',
  641. background: 'rgba(255,255,255,0.7)'
  642. });
  643. this.form.customerName=this.form.$customerId
  644. submit({
  645. ...this.form,
  646. bizTypeName: "SHGD"
  647. }).then(res => {
  648. this.$message.success("保存成功");
  649. this.refresh(res.data.data.id);
  650. loading.close();
  651. }).finally(() => {
  652. loading.close();
  653. });
  654. } else {
  655. return false;
  656. }
  657. });
  658. },
  659. refresh(id, type) {
  660. const loading = this.$loading({
  661. lock: true,
  662. text: '加载中',
  663. spinner: 'el-icon-loading',
  664. background: 'rgba(255,255,255,0.7)'
  665. })
  666. getDetails({ id: id }).then(res => {
  667. this.form = res.data.data
  668. loading.close();
  669. }).catch(() => {
  670. loading.close();
  671. })
  672. },
  673. rowDelBox(row, index) {
  674. this.$confirm("确定将选择数据删除?", {
  675. confirmButtonText: "确定",
  676. cancelButtonText: "取消",
  677. type: "warning"
  678. }).then(() => {
  679. if (row.id) {
  680. tradingBox(row.id).then(res => {
  681. this.form.shipItemsList.splice(index, 1);
  682. this.$message.success("操作成功!");
  683. });
  684. } else {
  685. this.form.shipItemsList.splice(index, 1);
  686. this.$message.success("操作成功!");
  687. }
  688. }
  689. );
  690. },
  691. rowSave(form, done, loading) {
  692. console.log(form)
  693. done(form)
  694. },
  695. rowUpdate(form, index, done, loading) {
  696. console.log(form)
  697. done(form);
  698. },
  699. handlePrint() {
  700. this.switchDialog = !this.switchDialog;
  701. },
  702. onClose(val) {
  703. this.switchDialog = val;
  704. },
  705. //自定义列保存
  706. async saveColumnTwo(ref, option, optionBack, code) {
  707. /**
  708. * 已定义全局方法,直接使用,saveColumnData保存列数据方法,参数传值(表格名称,当前表格的option数据)
  709. * 已定义全局方法,直接使用,getColumnName方法用来获取枚举值,参数根据自己定义的code值获取中文名
  710. * 一定要执行异步操作,要等接口成功返回,才能执行下一行代码
  711. */
  712. const inSave = await this.saveColumnData(this.getColumnName(code), this[option]);
  713. if (inSave) {
  714. this.$message.success("保存成功");
  715. //关闭窗口b
  716. this.$refs[ref].$refs.dialogColumn.columnBox = false;
  717. }
  718. },
  719. //自定义列重置
  720. async resetColumnTwo(ref, option, optionBack, code) {
  721. this[option] = this[optionBack];
  722. const inSave = await this.delColumnData(this.getColumnName(code), this[optionBack]);
  723. if (inSave) {
  724. this.$message.success("重置成功");
  725. this.$refs[ref].$refs.dialogColumn.columnBox = false;
  726. }
  727. },
  728. backToList(type) {
  729. this.$emit("backToList", type);
  730. }
  731. }
  732. }
  733. </script>
  734. <style lang="scss" scoped>
  735. ::v-deep .el-form-item {
  736. margin-bottom: 8px !important;
  737. }
  738. </style>