detailsPage.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793
  1. <template>
  2. <div>
  3. <div class="borderless">
  4. <div class="customer-head">
  5. <div class="customer-back">
  6. <el-button type="danger" style="border: none;background: none;color: red" icon="el-icon-arrow-left" @click="backToList">
  7. 返回列表
  8. </el-button>
  9. </div>
  10. <div class="add-customer-btn">
  11. <el-button v-if="form.status == 1" size="small" @click="disabled(0)">
  12. 启用
  13. </el-button>
  14. <el-button v-if="form.status == 0" size="small" @click="disabled(1)">
  15. 禁用
  16. </el-button>
  17. <el-button type="primary" size="small" @click="editCustomer">
  18. 保存数据
  19. </el-button>
  20. </div>
  21. </div>
  22. <trade-card title="基础资料" style="margin-top: 60px">
  23. <avue-form ref="form" class="trading-form" v-model="form" :option="option">
  24. <template slot="goodsTypeId">
  25. <div style="display:flex;">
  26. <avue-cascader :emit-path="false" check-strictly :show-all-levels="false" v-model="form.goodsTypeId" placeholder="请选择产品分类" :dic="goodsTypeList" :props="props"></avue-cascader>
  27. <i class="el-icon-circle-plus-outline" style="font-size:18px;line-height: 32px;margin-left:4px" @click="goodsTypeVisible = true"></i>
  28. </div>
  29. </template>
  30. <template slot="unit">
  31. <div style="display:flex;">
  32. <avue-select v-model="form.unit" filterable placeholder="请选择单位" :dic="unitList" :props="props2"></avue-select>
  33. <i class="el-icon-circle-plus-outline" style="font-size:18px;line-height: 32px;margin-left:4px" @click="$refs.dictbiz.open()"></i>
  34. </div>
  35. </template>
  36. <template slot="whether">
  37. <el-switch v-model="form.whether" active-text="是" inactive-text="否" active-value="1" inactive-value="0" @change="whetherChange"/>
  38. </template>
  39. <template slot="whetherIntegral">
  40. <el-switch v-model="form.whetherIntegral" active-text="是" inactive-text="否" active-value="1" inactive-value="0" @change="whetherIntegralChange"/>
  41. </template>
  42. </avue-form>
  43. </trade-card>
  44. <trade-card title="库存管理" v-loading="loadingBtn">
  45. <avue-crud ref="crud" :option="optionList" :data="data" :table-loading="loading" @saveColumn="saveColumn"
  46. @resetColumn="resetColumn" :cell-style="cellStyle" @row-update="rowUpdate" @row-save="rowSave">
  47. <!--<template slot="headerSerial">-->
  48. <!-- <el-button type="primary" icon="el-icon-plus" size="mini" @click.stop="addRow"-->
  49. <!-- :disabled="detailData.status == 1" circle></el-button>-->
  50. <!--</template>-->
  51. <template slot="storageIdHeader" slot-scope="{column}">
  52. <span style="color: #409EFF;cursor: pointer" @click.stop="storageVisible = true">仓库</span>
  53. </template>
  54. <template slot="menu" slot-scope="{ row, index }">
  55. <el-button size="small" type="text" @click="rowCell(row, index)">{{ row.$cellEdit ? "保存" : "修改" }}
  56. </el-button>
  57. <!--<el-button size="small" type="text" @click="rowDel(row, index)">删除</el-button>-->
  58. </template>
  59. </avue-crud>
  60. </trade-card>
  61. <containerTitle title="主图附件"></containerTitle>
  62. <c-upload :data="filesList" display deleteUrl="/api/blade-client/goodsfiles/delete" :enumerationValue="160" />
  63. <el-dialog title="设置产品分类" v-dialogDrag :visible.sync="goodsTypeVisible" class="avue-dialog"
  64. width="80%" append-to-body @closed="goodsTypeClosed">
  65. <span>
  66. <!-- <avue-form :key="reload" ref="goodsType" v-model="form2" :option="option2" style="margin-top:20px"></avue-form> -->
  67. <goods-type></goods-type>
  68. </span>
  69. <div class="avue-dialog__footer">
  70. <el-button @click="goodsTypeVisible = false" size="mini">取 消</el-button>
  71. <el-button @click="saveGoodstype" type="primary" size="mini">确 定</el-button>
  72. </div>
  73. </el-dialog>
  74. <el-dialog title="添加仓库" v-dialogDrag :visible.sync="storageVisible" class="avue-dialog avue-dialog--top" width="30%" append-to-body @closed="storageClosed">
  75. <span>
  76. <avue-form :key="reload2" ref="storage" v-model="form3" :option="option3" style="margin-top:20px"></avue-form>
  77. </span>
  78. <div class="avue-dialog__footer">
  79. <el-button @click="storageVisible = false" size="mini">取 消</el-button>
  80. <el-button @click="savestorage" type="primary" size="mini">确 定</el-button>
  81. </div>
  82. </el-dialog>
  83. <dictbiz-dialog ref="dictbiz" title="添加单位" code="unit" parentId="1585962784498225154" @closed="getAllWorkDicts"></dictbiz-dialog>
  84. </div>
  85. </div>
  86. </template>
  87. <script>
  88. import { getGoodstype, getDetails, goodsTypesubmit, getStoragetype, submit, itemRemove, disabled, getStoragelist, storagesubmit } from "@/api/basicData/product";
  89. import { optionList } from "./js/optionList";
  90. import goodsType from '@/components/goodsType/index'
  91. import {getList} from "@/api/basicData/client";
  92. import {getList as getListpp } from "@/api/tirePartsMall/basicData/brandPage";
  93. export default {
  94. name: "index",
  95. data() {
  96. return {
  97. loadingBtn: false,
  98. goodsTypeVisible: false,
  99. storageVisible: false,
  100. form: {},
  101. form2: {},
  102. form3: {},
  103. data: [],
  104. option: {
  105. menuBtn: false,
  106. labelWidth: 100,
  107. column: [
  108. {
  109. label: "名称",
  110. prop: "cname",
  111. span: 16,
  112. rules: [{
  113. required: true,
  114. message: "请输入通知标题",
  115. trigger: "blur"
  116. }]
  117. },
  118. {
  119. label: "产品分类",
  120. prop: "goodsTypeId",
  121. type: 'select',
  122. dicData: [],
  123. props: {
  124. label: 'detailedAddress',
  125. value: 'detailedAddress'
  126. },
  127. filterable: true,
  128. span: 8,
  129. rules: [{
  130. required: true,
  131. message: "请输入通知标题",
  132. trigger: "blur"
  133. }]
  134. },
  135. {
  136. label: "单位",
  137. prop: "unit",
  138. type: "select",
  139. props: {
  140. label: "dictValue",
  141. value: "dictValue"
  142. },
  143. dicUrl: "/api/blade-system/dict-biz/dictionary?code=unit",
  144. span: 8,
  145. rules: [{
  146. required: true,
  147. message: "请输入通知标题",
  148. trigger: "blur"
  149. }]
  150. },
  151. {
  152. label: "零售价",
  153. prop: "standardPrice",
  154. type: 'number',
  155. minRows: 0,
  156. controls: false,
  157. span: 8,
  158. rules: [{
  159. required: true,
  160. message: "请输入通知标题",
  161. trigger: "blur"
  162. }]
  163. },
  164. {
  165. label: "售价1",
  166. prop: "wholesalePrice",
  167. type: 'number',
  168. minRows: 0,
  169. controls: false,
  170. span: 8,
  171. rules: [{
  172. required: true,
  173. message: "请输入通知标题",
  174. trigger: "blur"
  175. }]
  176. },
  177. {
  178. label: "售价2",
  179. prop: "repairDepotPrice",
  180. type: 'number',
  181. minRows: 0,
  182. controls: false,
  183. span: 8,
  184. rules: [{
  185. required: true,
  186. message: "请输入通知标题",
  187. trigger: "blur"
  188. }]
  189. },
  190. {
  191. label: "售价3",
  192. prop: "storePrice",
  193. type: 'number',
  194. minRows: 0,
  195. controls: false,
  196. span: 8,
  197. rules: [{
  198. required: true,
  199. message: "请输入通知标题",
  200. trigger: "blur"
  201. }]
  202. },
  203. {
  204. label: "售价4",
  205. prop: "price",
  206. type: 'number',
  207. minRows: 0,
  208. controls: false,
  209. span: 8,
  210. rules: [{
  211. required: true,
  212. message: "请输入通知标题",
  213. trigger: "blur"
  214. }]
  215. },
  216. {
  217. label: "进货价",
  218. prop: "purchasePrice",
  219. type: 'number',
  220. minRows: 0,
  221. controls: false,
  222. span: 8,
  223. rules: [{
  224. required: true,
  225. message: "请输入通知标题",
  226. trigger: "blur"
  227. }]
  228. },
  229. {
  230. label: "特价",
  231. prop: "specialOffer",
  232. type: 'number',
  233. minRows: 0,
  234. controls: false,
  235. span: 8,
  236. rules: [{
  237. required: true,
  238. message: "请输入通知标题",
  239. trigger: "blur"
  240. }]
  241. },
  242. {
  243. label: "销售数量",
  244. prop: "salesVolumes",
  245. type: 'number',
  246. minRows: 0,
  247. controls: false,
  248. span: 8
  249. },
  250. {
  251. label: "标签",
  252. prop: "label",
  253. type: 'checkbox',
  254. dataType: "string",
  255. props: {
  256. label: "dictValue",
  257. value: "dictValue"
  258. },
  259. dicUrl: "/api/blade-system/dict-biz/dictionary?code=label",
  260. span: 8,
  261. },
  262. {
  263. label: "是否管理批次号",
  264. prop: "whether",
  265. labelWidth:120,
  266. span: 8,
  267. rules: [{
  268. required: true,
  269. message: "请输入通知标题",
  270. trigger: "blur"
  271. }]
  272. },
  273. {
  274. label: "是否为积分商品",
  275. prop: "whetherIntegral",
  276. labelWidth:120,
  277. span: 8,
  278. rules: [{
  279. required: true,
  280. message: "请输入通知标题",
  281. trigger: "blur"
  282. }]
  283. },
  284. {
  285. label: "门店积分",
  286. prop: "storeIntegral",
  287. type: 'number',
  288. minRows: 0,
  289. controls: false,
  290. disabled:true,
  291. span: 6,
  292. value:0,
  293. rules: [{
  294. pattern:/^[+]{0,1}(\d+)$/,
  295. message:"必须为正整数",
  296. trigger:"blur"
  297. }]
  298. },
  299. {
  300. label: "推荐人积分",
  301. prop: "referenceIntegral",
  302. type: 'number',
  303. minRows: 0,
  304. controls: false,
  305. disabled:true,
  306. span: 6,
  307. value:0,
  308. rules: [{
  309. pattern:/^[+]{0,1}(\d+)$/,
  310. message:"必须为正整数",
  311. trigger:"blur"
  312. }]
  313. },
  314. {
  315. label: "业务员积分",
  316. prop: "salesmanIntegral",
  317. type: 'number',
  318. minRows: 0,
  319. controls: false,
  320. disabled:true,
  321. span: 6,
  322. value:0,
  323. rules: [{
  324. pattern:/^[+]{0,1}(\d+)$/,
  325. message:"必须为正整数",
  326. trigger:"blur"
  327. }]
  328. },
  329. {
  330. label: "商品积分",
  331. prop: "integral",
  332. type: 'number',
  333. minRows: 0,
  334. controls: false,
  335. disabled:true,
  336. span: 6,
  337. value:0,
  338. rules: [{
  339. pattern:/^[+]{0,1}(\d+)$/,
  340. message:"必须为正整数",
  341. trigger:"blur"
  342. }]
  343. },
  344. {
  345. label: "厂家",
  346. prop: "corpId",
  347. type: "select",
  348. props: {
  349. label: "cname",
  350. value: "id"
  351. },
  352. dicData: [],
  353. span: 8,
  354. },
  355. // {
  356. // label: "采购日期",
  357. // prop: "exitDate",
  358. // type: "date",
  359. // format: "yyyy-MM-dd",
  360. // valueFormat: "yyyy-MM-dd 00:00:00",
  361. // span: 6,
  362. // },
  363. {
  364. label: "规格",
  365. prop: "specs",
  366. span: 8,
  367. },
  368. {
  369. label: "品牌",
  370. prop: "brand",
  371. type: "select",
  372. props: {
  373. label: "cname",
  374. value: "id"
  375. },
  376. dicData: [],
  377. span: 8,
  378. },
  379. {
  380. label: "备注",
  381. prop: "remarks",
  382. type: "textarea",
  383. minRows: 3,
  384. span: 24,
  385. }
  386. ]
  387. },
  388. option2: {
  389. menuBtn: false,
  390. labelWidth: 80,
  391. column: [
  392. {
  393. label: "分类名称",
  394. prop: "cname",
  395. rules: [
  396. {
  397. required: true,
  398. message: "",
  399. trigger: "blur"
  400. }
  401. ],
  402. span: 24,
  403. },
  404. {
  405. label: "上级类型",
  406. prop: "parentId",
  407. dicData: [],
  408. type: "tree",
  409. props: {
  410. label: "title",
  411. value: "id"
  412. },
  413. span: 24,
  414. }
  415. ]
  416. },
  417. option3: {
  418. menuBtn: false,
  419. labelWidth: 80,
  420. column: [
  421. {
  422. label: "仓库名称",
  423. prop: "cname",
  424. rules: [
  425. {
  426. required: true,
  427. message: "",
  428. trigger: "blur"
  429. }
  430. ],
  431. span: 24,
  432. },
  433. {
  434. label: "仓库编码",
  435. prop: "code",
  436. rules: [
  437. {
  438. required: true,
  439. message: "",
  440. trigger: "blur"
  441. }
  442. ],
  443. span: 24,
  444. },
  445. {
  446. label: "上级类型",
  447. prop: "parentId",
  448. dicData: [],
  449. type: "tree",
  450. props: {
  451. label: 'cname',
  452. value: 'id'
  453. },
  454. span: 24,
  455. }
  456. ]
  457. },
  458. filesList: [],
  459. props: {
  460. label: 'title',
  461. value: 'value'
  462. },
  463. props2: {
  464. label: 'dictValue',
  465. value: 'dictValue'
  466. },
  467. goodsTypeList: [],
  468. unitList: [],
  469. optionList: {},
  470. // admin 权限
  471. roleNameqx:[]
  472. };
  473. },
  474. components: {
  475. goodsType
  476. },
  477. props: {
  478. detailData: {
  479. type: Object
  480. }
  481. },
  482. async created() {
  483. this.optionList = await this.getColumnData(
  484. this.getColumnName(218),
  485. optionList
  486. );
  487. if (await this.detailData.goodsTypeId){
  488. this.form.goodsTypeId = this.detailData.goodsTypeId;
  489. }
  490. if (this.detailData.id) {
  491. this.getDetail(this.detailData.id);
  492. }else {
  493. let arr = localStorage.getItem('roleName').split(',')
  494. // this.whetherIntegralChange(this.form.whetherIntegral)
  495. if (arr.indexOf('admin') != -1) {
  496. this.findObject(this.option.column, "storeIntegral").disabled = false
  497. this.findObject(this.option.column, "referenceIntegral").disabled = false
  498. this.findObject(this.option.column, "salesmanIntegral").disabled = false
  499. this.findObject(this.option.column, "integral").disabled = false
  500. }
  501. }
  502. if (this.detailData.status == 1) {
  503. this.option.disabled = true;
  504. }
  505. // 获取供应商数据
  506. this.getListfun()
  507. this.getListppfun()
  508. this.getAllWorkDicts()
  509. },
  510. methods: {
  511. // 获取供应商数据
  512. getListfun(){
  513. getList(1,20, {corpType:'GYS'}).then(res=>{
  514. console.log(res.data)
  515. this.findObject(this.option.column, "corpId").dicData = res.data.data.records
  516. })
  517. },
  518. // 获取品牌数据
  519. getListppfun(){
  520. getListpp({
  521. current: 1,
  522. size: 20,
  523. }).then(res=>{
  524. this.findObject(this.option.column, "brand").dicData = res.data.data.records
  525. })
  526. },
  527. getAllWorkDicts() {
  528. getGoodstype().then(res => {
  529. this.goodsTypeList = res.data.data;
  530. this.findObject(this.option2.column, "parentId").dicData = res.data.data;
  531. });
  532. getStoragelist().then(res => {
  533. this.findObject(this.optionList.column, "storageId").dicData = res.data;
  534. this.findObject(this.option3.column, "parentId").dicData = res.data;
  535. });
  536. this.getWorkDicts("unit").then(res => {
  537. this.unitList = res.data.data;
  538. });
  539. },
  540. cellStyle() {
  541. return "padding:0;height:40px;";
  542. },
  543. addRow() {
  544. this.data.push({$cellEdit: true})
  545. },
  546. rowCell(row, index) {
  547. this.$refs.crud.rowCell(row, index)
  548. },
  549. rowSave(form, done) {
  550. done()
  551. },
  552. rowUpdate(form, index, done) {
  553. done()
  554. },
  555. rowDel(row, index) {
  556. this.$confirm("确定删除数据?", {
  557. confirmButtonText: "确定",
  558. cancelButtonText: "取消",
  559. type: "warning"
  560. }).then(() => {
  561. if (row.id) {
  562. itemRemove({ids: row.id}).then(res => {
  563. this.$message({
  564. type: "success",
  565. message: "删除成功!"
  566. });
  567. this.data.splice(index, 1);
  568. });
  569. } else {
  570. this.$message({
  571. type: "success",
  572. message: "删除成功!"
  573. });
  574. this.data.splice(index, 1);
  575. }
  576. });
  577. },
  578. disabled(val) {
  579. disabled({ id: this.form.id, status: val }).then(res => {
  580. this.getDetail(this.detailData.id);
  581. })
  582. },
  583. saveGoodstype() {
  584. this.$refs["goodsType"].validate((valid, done) => {
  585. done();
  586. if (valid) {
  587. goodsTypesubmit({ ...this.form2, status: 0 }).then(res => {
  588. this.getAllWorkDicts()
  589. })
  590. this.goodsTypeVisible = false
  591. } else {
  592. return false;
  593. }
  594. });
  595. },
  596. savestorage() {
  597. // this.$refs["storage"].validate((valid, done) => {
  598. // done();
  599. // if (valid) {
  600. // storagesubmit({ ...this.form3, status: 0 }).then(res => {
  601. // this.getAllWorkDicts()
  602. // })
  603. // this.storageVisible = false
  604. // } else {
  605. // return false;
  606. // }
  607. // });
  608. this.getAllWorkDicts()
  609. this.goodsTypeVisible = false
  610. },
  611. goodsTypeClosed() {
  612. // this.reload = Math.random();
  613. // this.form2 = this.$options.data().form2
  614. },
  615. storageClosed() {
  616. this.reload2 = Math.random();
  617. this.form3 = this.$options.data().form3
  618. },
  619. getDetail(id) {
  620. this.loadingBtn = true
  621. getDetails({ goodsId: id })
  622. .then(res => {
  623. this.form = res.data.data;
  624. this.data = res.data.data.stockGoodsList;
  625. this.filesList = res.data.data.filesList
  626. // 判断是否是admin 权限
  627. this.roleNameqx = localStorage.getItem('roleName').split(',')
  628. let arr = localStorage.getItem('roleName').split(',')
  629. // this.whetherIntegralChange(this.form.whetherIntegral)
  630. if (arr.indexOf('admin') != -1 && res.data.data.whetherIntegral == 0) {
  631. this.findObject(this.option.column, "storeIntegral").disabled = false
  632. this.findObject(this.option.column, "referenceIntegral").disabled = false
  633. this.findObject(this.option.column, "salesmanIntegral").disabled = false
  634. this.findObject(this.option.column, "integral").disabled = false
  635. }
  636. this.whetherChange(res.data.data.whether)
  637. })
  638. .finally(() => {
  639. this.loadingBtn = false;
  640. });
  641. },
  642. // 是否为积分商品的change事件
  643. whetherIntegralChange(val){
  644. console.log(val,557)
  645. if (this.form.whetherIntegral == 1) {
  646. // disabled:true,
  647. this.findObject(this.option.column, "storeIntegral").disabled = true
  648. this.findObject(this.option.column, "referenceIntegral").disabled = true
  649. this.findObject(this.option.column, "salesmanIntegral").disabled = true
  650. this.findObject(this.option.column, "integral").disabled = true
  651. // 四个售价变成正整数
  652. this.findObject(this.option.column, "wholesalePrice").rules[0].pattern = /^[+]{0,1}(\d+)$/
  653. this.findObject(this.option.column, "repairDepotPrice").rules[0].pattern = /^[+]{0,1}(\d+)$/
  654. this.findObject(this.option.column, "storePrice").rules[0].pattern = /^[+]{0,1}(\d+)$/
  655. this.findObject(this.option.column, "price").rules[0].pattern = /^[+]{0,1}(\d+)$/
  656. }else if (this.form.whetherIntegral == 0 && this.roleNameqx.indexOf('admin') != -1) {
  657. this.findObject(this.option.column, "storeIntegral").disabled = false
  658. this.findObject(this.option.column, "referenceIntegral").disabled = false
  659. this.findObject(this.option.column, "salesmanIntegral").disabled = false
  660. this.findObject(this.option.column, "integral").disabled = false
  661. }
  662. },
  663. // 是否管理批次号的change事件
  664. whetherChange(val){
  665. console.log(val)
  666. if (val == 0||val==null) {
  667. this.findObject(this.optionList.column, "lotNo").hide = true
  668. this.findObject(this.optionList.column, "lotNo").showColumn = false
  669. } else {
  670. this.findObject(this.optionList.column, "lotNo").hide = false
  671. this.findObject(this.optionList.column, "lotNo").showColumn = true
  672. }
  673. },
  674. //修改提交触发
  675. editCustomer() {
  676. this.$refs["form"].validate((valid, done) => {
  677. done();
  678. if (valid) {
  679. this.loadingBtn = true;
  680. submit({
  681. ...this.form,
  682. code: this.form.cname,
  683. type: 0,
  684. stockGoodsList: this.data,
  685. filesList: this.filesList
  686. }).then(res => {
  687. this.$message.success("保存成功");
  688. this.form = res.data.data;
  689. this.data = res.data.data.stockGoodsList;
  690. this.filesList = res.data.data.filesList;
  691. setTimeout(() => {
  692. this.backToList()
  693. }, 1000);
  694. }).finally(() => {
  695. this.loadingBtn = false;
  696. });
  697. } else {
  698. return false;
  699. }
  700. });
  701. },
  702. async saveColumn() {
  703. const inSave = await this.saveColumnData(
  704. this.getColumnName(218),
  705. this.optionList
  706. );
  707. if (inSave) {
  708. this.$nextTick(() => {
  709. this.$refs.crud.doLayout();
  710. });
  711. this.$message.success("保存成功");
  712. //关闭窗口
  713. this.$refs.crud.$refs.dialogColumn.columnBox = false;
  714. }
  715. },
  716. async resetColumn() {
  717. this.optionList = optionList;
  718. const inSave = await this.delColumnData(
  719. this.getColumnName(218),
  720. optionList
  721. );
  722. if (inSave) {
  723. this.$nextTick(() => {
  724. this.$refs.crud.doLayout();
  725. });
  726. this.getAllWorkDicts()
  727. this.$message.success("重置成功");
  728. this.$refs.crud.$refs.dialogColumn.columnBox = false;
  729. }
  730. },
  731. //返回列表
  732. backToList() {
  733. this.$emit("goBack");
  734. }
  735. },
  736. };
  737. </script>
  738. <style lang="scss" scoped>
  739. .trading-form ::v-deep .el-form-item {
  740. margin-bottom: 8px !important;
  741. }
  742. ::v-deep .el-dialog__body {
  743. padding: 0px 20px 15px 20px;
  744. }
  745. ::v-deep .el-form-item__error {
  746. display: none !important;
  747. }
  748. .img-form ::v-deep .el-form-item {
  749. height: 150px;
  750. line-height: 150px;
  751. margin-bottom: 8px !important;
  752. }
  753. .img-form ::v-deep .avue-upload__icon {
  754. font-size: 20px;
  755. width: 150px;
  756. height: 150px;
  757. line-height: 150px;
  758. }
  759. ::v-deep .el-table .cell {
  760. padding: 0 2px !important;
  761. }
  762. ::v-deep .avue-crud .el-table .el-form-item__label {
  763. left: -1px;
  764. }
  765. .addressTabs {
  766. display: flex;
  767. justify-content: center;
  768. span {
  769. width: 100px;
  770. font-size: 18px;
  771. font-weight: 600;
  772. text-align: center;
  773. }
  774. }
  775. </style>