detailsPage.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673
  1. <template>
  2. <div class="borderless" v-loading="pageLoading">
  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">返回列表
  7. </el-button>
  8. </div>
  9. <div class="add-customer-btn">
  10. <el-button type="primary" size="small" :disabled="form.status>0" v-if="detailData.status == 1"
  11. class="el-button--small-yh " @click.stop="openEdit">编辑
  12. </el-button>
  13. <el-button type="primary" @click="editCustomer" :loading="subLoading" v-if="detailData.status != 1"
  14. size="small">保存数据
  15. </el-button>
  16. <el-dropdown style="padding: 0 6px;line-height: 0">
  17. <el-button type="primary" size="small" :loading="subLoading" :disabled="!form.id">
  18. 审核处理<i class="el-icon-arrow-down el-icon--right"></i>
  19. </el-button>
  20. <el-dropdown-menu slot="dropdown">
  21. <el-dropdown-item :disabled="form.status>0" @click.native="auditCheck">提交审核</el-dropdown-item>
  22. <el-dropdown-item :disabled="form.status<1" @click.native="checkScheduleDialog = true">审核进度
  23. </el-dropdown-item>
  24. </el-dropdown-menu>
  25. </el-dropdown>
  26. </div>
  27. </div>
  28. <div class="customer-main" v-loading="subLoading">
  29. <trade-card title="基础信息">
  30. <avue-form ref="form" class="trading-form" v-model="form" :option="option">
  31. <template slot="purchaserId">
  32. <crop-select v-model="form.purchaserId" corpType="KH" :refresh="false" @getCorpData="getKHData"
  33. :disabled="detailData.status == 1"></crop-select>
  34. </template>
  35. <template slot="corpId">
  36. <crop-select v-model="form.corpId" corpType="GYS" :refresh="false" @getCorpData="getGYSData"
  37. :disabled="detailData.status == 1"></crop-select>
  38. </template>
  39. <template slot="storageId">
  40. <el-cascader v-model="form.storageId" :options="storagetreeList" :show-all-levels="false"
  41. :disabled="detailData.status == 1" :props="{ checkStrictly: true, emitPath: false, label: 'title' }"
  42. clearable @change="storagetreeChange">
  43. </el-cascader>
  44. </template>
  45. </avue-form>
  46. </trade-card>
  47. <trade-card title="出库明细">
  48. <avue-crud ref="crud" :data="itemsVOList" :option="tableOption" @row-del="rowDel" @saveColumn="saveColumn"
  49. @resetColumn="resetColumn" :cell-style="cellStyle" @row-save="rowSave" @row-update="addUpdate">
  50. <template slot="menuLeft">
  51. <el-button type="primary" icon="el-icon-plus" size="small" :disabled="detailData.status == 1"
  52. @click.stop="addRow">录入明细
  53. </el-button>
  54. <el-button type="success" icon="el-icon-bottom" size="small" @click.stop="getTemplate">下载模板
  55. </el-button>
  56. <!-- <el-button type="info" icon="el-icon-top" size="small" :disabled="detailData.status == 1"
  57. @click.stop="addRow">导入
  58. </el-button> -->
  59. <el-button type="info" icon="el-icon-printer" size="small" @click.stop="openReport()">报表打印</el-button>
  60. </template>
  61. <template slot="headerSerial">
  62. <el-button type="primary" icon="el-icon-plus" size="mini" @click.stop="addRow"
  63. :disabled="detailData.status == 1" circle></el-button>
  64. </template>
  65. <template slot="oneCode" slot-scope="{ row, index }">
  66. <el-popover placement="right" width="160" trigger="click">
  67. <el-image style="width: 160px; height: 80px" :src="row.oneCode" :fit="fit"></el-image>
  68. <el-button v-if="row.oneCode" type="text" slot="reference">查看</el-button>
  69. </el-popover>
  70. </template>
  71. <template slot="qrCode" slot-scope="{ row, index }">
  72. <el-popover placement="right" width="300" trigger="click">
  73. <el-image style="width: 300px; height: 300px" :src="row.qrCode" :fit="fit"></el-image>
  74. <el-button v-if="row.qrCode" type="text" slot="reference">查看</el-button>
  75. </el-popover>
  76. </template>
  77. <template slot="storageInQuantityForm" slot-scope="{ row,disabled }">
  78. <el-input-number size="small" v-model="row.storageInQuantity" @change="calculateChange(row)"
  79. :controls="false" style="width:100%" placeholder="请输入"></el-input-number>
  80. </template>
  81. <template slot="priceForm" slot-scope="{ row,disabled }">
  82. <el-input-number size="small" v-model="row.price" @change="calculateChange(row)" :controls="false"
  83. style="width:100%" placeholder="请输入"></el-input-number>
  84. </template>
  85. <template slot="menu" slot-scope="{ row, index }">
  86. <div style="display:flex;justify-content: center;">
  87. <el-button size="small" icon="el-icon-edit" type="text" @click="rowCell(row, index)"
  88. :disabled="disabled || detailData.status == 1">{{ row.$cellEdit ? "保存" : "编辑" }}</el-button>
  89. <el-button size="small" icon="el-icon-delete" type="text" @click="rowDel(row, index)"
  90. :disabled="detailData.status == 1">删除</el-button>
  91. <!-- <el-button size="small" icon="el-icon-printer" type="text" @click="rowPrint(row, index)" :disabled="!row.id">
  92. 打印</el-button> -->
  93. <div style="display:flex;flex-direction: column;justify-content: center;margin-left: 10px;">
  94. <el-tooltip effect="dark" content="向上移动" placement="top">
  95. <i v-if="index != 0" :disabled="detailData.status == 1" class="el-icon-arrow-up"
  96. @click="moveUp(row, index)" style="color:#409EFF;"></i>
  97. </el-tooltip>
  98. <el-tooltip effect="dark" content="向下移动" placement="bottom"> <i v-if="index != (itemsVOList.length - 1)"
  99. :disabled="detailData.status == 1" class="el-icon-arrow-down" @click="moveDown(row, index)"
  100. style="color:#409EFF;"></i></el-tooltip>
  101. </div>
  102. </div>
  103. </template>
  104. </avue-crud>
  105. </trade-card>
  106. <fee-info ref="feeInfo" :orderFeesList="orderFeesList" :disabled="detailData.status == 1"
  107. feeUrl="/blade-purchase-sales/entranceOrder/removeOrderFees" :optionType="'CMY'" :itemType="'D'"
  108. :inCropId="true" :tabShow="2" @beforeFinance="beforeFinance" :delType="2" :billingShow="false" />
  109. <!-- <upload-file ref="uploadFile" title="合同附件" :disabled="detailData.status == 1" :orderFilesList="orderFilesList"
  110. delUrl="" /> -->
  111. <containerTitle title="上传附件"></containerTitle>
  112. <c-upload typeUpload="CD" deleteUrl="/api/trade-purchase/woodHarvestingCloud/removeByFileId" :data="orderFilesList" display
  113. :enumerationValue="85.6" :disabled="detailData.status == 1"></c-upload>
  114. <el-dialog append-to-body title="审核进度" class="el-dialogDeep" :visible.sync="checkScheduleDialog" width="40%"
  115. :close-on-click-modal="false" :destroy-on-close="true" :close-on-press-escape="false" v-dialog-drag>
  116. <check-schedule :checkId="form.id" :batchNo="batchNo" @choceScheduleFun="choceScheduleFun">
  117. </check-schedule>
  118. </el-dialog>
  119. </div>
  120. </div>
  121. </template>
  122. <script>
  123. import { detail, submit, checkWarehousing, getStoragetree, getStorage, getAllgoods, financingExcess } from "@/api/purchasingManagement/inStock";
  124. import tableOption from "./config/customerContact.json";
  125. import feeInfo from "@/components/fee-info/main";
  126. import checkSchedule from "../../../components/check/checkSchedule";
  127. import uploadFile from "@/components/upload-file/main";
  128. import { getToken } from "@/util/auth";
  129. import { contrastObj, contrastList } from "@/util/contrastData";
  130. import { getCurrentDate } from "@/util/date";
  131. export default {
  132. name: "detailsPageEdit",
  133. data() {
  134. return {
  135. form: {},
  136. checkScheduleDialog: false,
  137. tableOption: {},
  138. option: {
  139. disabled: false,
  140. menuBtn: false,
  141. labelWidth: 100,
  142. column: [
  143. {
  144. label: "货权人",
  145. prop: "purchaserId",
  146. rules: [
  147. {
  148. required: true,
  149. message: "",
  150. trigger: "blur"
  151. }
  152. ],
  153. span: 6
  154. },
  155. {
  156. label: "出库日期",
  157. prop: "stockTime",
  158. type: "datetime",
  159. format: "yyyy-MM-dd HH:mm:ss",
  160. valueFormat: "yyyy-MM-dd HH:mm:ss",
  161. rules: [
  162. {
  163. required: true,
  164. message: "",
  165. trigger: "blur"
  166. }
  167. ],
  168. span: 6
  169. },
  170. {
  171. label: "仓库",
  172. prop: "storageId",
  173. rules: [
  174. {
  175. required: true,
  176. message: "",
  177. trigger: "blur"
  178. }
  179. ],
  180. span: 6
  181. },
  182. {
  183. label: "提单号",
  184. prop: "billNo",
  185. span: 6
  186. },
  187. {
  188. label: "业务类型",
  189. prop: "businessType",
  190. type: "select",
  191. props: {
  192. label: "dictValue",
  193. value: "dictKey"
  194. },
  195. dicData: [],
  196. span: 6
  197. },
  198. {
  199. label: "车船号",
  200. prop: "vehicleShipNumber",
  201. span: 6
  202. },
  203. {
  204. label: "供应商",
  205. prop: "corpId",
  206. span: 6
  207. },
  208. {
  209. label: "出库单号",
  210. prop: "sysNo",
  211. disabled: true,
  212. span: 6
  213. },
  214. {
  215. label: "审核状态",
  216. prop: "status",
  217. type: "select",
  218. dataType: 'number',
  219. props: {
  220. label: "dictValue",
  221. value: "dictKey"
  222. },
  223. dicData: [],
  224. disabled: true,
  225. span: 6
  226. },
  227. {
  228. label: "备注",
  229. prop: "orderRemark",
  230. type: "textarea",
  231. minRows: 2,
  232. span: 18
  233. },
  234. ]
  235. },
  236. itemsVOList: [],
  237. orderFeesList: [],
  238. orderFilesList: [],
  239. subLoading: false,
  240. pageLoading: false,
  241. batchNo: '',
  242. storagetreeList: [],
  243. oldform: {},
  244. olditemsVOList: [],
  245. oldorderFeesList: [],
  246. oldorderFilesList: [],
  247. };
  248. },
  249. props: {
  250. detailData: {
  251. type: Object
  252. }
  253. },
  254. components: {
  255. feeInfo,
  256. checkSchedule,
  257. uploadFile
  258. },
  259. async created() {
  260. if (this.detailData.status == 1) {
  261. this.option.disabled = true;
  262. }
  263. if (this.detailData.id) {
  264. this.getDetail(this.detailData.id);
  265. }
  266. this.tableOption = await this.getColumnData(
  267. this.getColumnName(191),
  268. tableOption
  269. );
  270. getStoragetree().then(res => {
  271. this.storagetreeList = res.data.data;
  272. })
  273. this.getWorkDicts("approval_status").then(res => {
  274. this.findObject(this.option.column, "status").dicData =
  275. res.data.data;
  276. });
  277. this.getWorkDicts("CMY_business_type").then(res => {
  278. this.findObject(this.option.column, "businessType").dicData =
  279. res.data.data;
  280. });
  281. getAllgoods().then(res => {
  282. this.findObject(this.tableOption.column, "itemId").dicData =
  283. res.data.data;
  284. })
  285. this.getWorkDicts("unit").then(res => {
  286. this.findObject(this.tableOption.column, "unit").dicData =
  287. res.data.data;
  288. });
  289. if (this.$route.query.generateId) {
  290. this.getGenerate(this.$route.query.generateId);
  291. }
  292. },
  293. methods: {
  294. cellStyle() {
  295. return "padding:0;height:40px;";
  296. },
  297. getStorage() {
  298. getStorage({ storageTypeId: this.form.storageId }).then(res => {
  299. this.findObject(this.tableOption.column, "storageId").dicData = res.data;
  300. })
  301. },
  302. storagetreeChange(row) {
  303. if (row) {
  304. if (this.itemsVOList.length > 0) {
  305. this.getStorage()
  306. this.itemsVOList.forEach(e => {
  307. e.storageId = null
  308. })
  309. this.$message.warning("请重新选择库区!")
  310. }
  311. } else {
  312. if (this.itemsVOList.length > 0) {
  313. this.findObject(this.tableOption.column, "storageId").dicData = []
  314. this.itemsVOList.forEach(e => {
  315. e.storageId = null
  316. })
  317. this.$message.warning("请重新选择库区!")
  318. }
  319. }
  320. },
  321. getKHData(row) {
  322. this.form.purchaser = row.cname
  323. },
  324. getGYSData(row) {
  325. this.form.corpName = row.cname
  326. },
  327. choceScheduleFun() {
  328. this.checkScheduleDialog = false
  329. },
  330. addRow() {
  331. this.$refs["form"].validate((valid, done) => {
  332. done();
  333. if (valid) {
  334. this.itemsVOList.push({ $cellEdit: true });
  335. this.getStorage()
  336. } else {
  337. return false;
  338. }
  339. });
  340. },
  341. rowCell(row, index) {
  342. this.$refs.crud.rowCell(row, index)
  343. },
  344. rowSave(form, done) {
  345. done()
  346. },
  347. addUpdate(form, index, done, loading) {
  348. done()
  349. },
  350. rowDel(row) {
  351. this.$confirm("确定删除数据?", {
  352. confirmButtonText: "确定",
  353. cancelButtonText: "取消",
  354. type: "warning"
  355. }).then(() => {
  356. this.$message({
  357. type: "success",
  358. message: "删除成功!"
  359. });
  360. this.itemsVOList.splice(row.$index, 1);
  361. });
  362. },
  363. getDetail(id) {
  364. this.pageLoading = true;
  365. detail(id)
  366. .then(res => {
  367. this.form = res.data.data;
  368. this.itemsVOList = res.data.data.itemsVOList;
  369. this.orderFeesList = res.data.data.orderFeesList;
  370. this.orderFilesList = res.data.data.orderFilesList;
  371. this.oldform = this.deepClone(res.data.data);
  372. this.olditemsVOList = this.deepClone(res.data.data.itemsVOList);
  373. this.oldorderFeesList = this.deepClone(res.data.data.orderFeesList);
  374. this.oldorderFilesList = this.deepClone(res.data.data.orderFilesList);
  375. this.getStorage()
  376. })
  377. .finally(() => {
  378. this.pageLoading = false;
  379. });
  380. },
  381. getGenerate(id) {
  382. this.pageLoading = true;
  383. detail(id)
  384. .then(res => {
  385. delete res.data.data.id
  386. delete res.data.data.createTime
  387. delete res.data.data.createUser
  388. delete res.data.data.createUserName
  389. delete res.data.data.sysNo
  390. delete res.data.data.status
  391. res.data.data.stockTime = getCurrentDate()
  392. res.data.data.itemsVOList.forEach(e => {
  393. delete e.id
  394. })
  395. this.form = res.data.data;
  396. this.itemsVOList = res.data.data.itemsVOList.filter(item => item.isIssue == 0);
  397. this.oldform = this.deepClone(res.data.data);
  398. this.olditemsVOList = this.deepClone(res.data.data.itemsVOList.filter(item => item.isIssue == 0));
  399. this.getStorage()
  400. })
  401. .finally(() => {
  402. this.pageLoading = false;
  403. });
  404. },
  405. //修改提交触发
  406. editCustomer(status) {
  407. this.$refs["form"].validate((valid, done) => {
  408. done();
  409. if (valid) {
  410. for (let i = 0; i < this.itemsVOList.length; i++) {
  411. if (this.itemsVOList[i].$cellEdit) {
  412. return this.$message.error('请保存明细')
  413. }
  414. }
  415. let orderFeesList = this.$refs.feeInfo.submitData();
  416. this.subLoading = true;
  417. let data = {
  418. ...this.form,
  419. billType: 'CK',
  420. itemsVOList: this.itemsVOList,
  421. orderFeesList: orderFeesList,
  422. orderFilesList: this.orderFilesList
  423. };
  424. submit(data).then(res => {
  425. this.form = res.data.data;
  426. this.itemsVOList = res.data.data.itemsVOList;
  427. this.orderFeesList = res.data.data.orderFeesList;
  428. this.orderFilesList = res.data.data.orderFilesList;
  429. this.oldform = this.deepClone(res.data.data);
  430. this.olditemsVOList = this.deepClone(res.data.data.itemsVOList);
  431. this.oldorderFeesList = this.deepClone(res.data.data.orderFeesList);
  432. this.oldorderFilesList = this.deepClone(res.data.data.orderFilesList);
  433. this.$message({
  434. type: "success",
  435. message: "保存成功!"
  436. });
  437. if (status == "goBack") {
  438. this.$emit("goBack");
  439. }
  440. })
  441. .finally(() => {
  442. this.subLoading = false;
  443. });
  444. } else {
  445. return false;
  446. }
  447. });
  448. },
  449. //请核
  450. auditCheck() {
  451. let orderFeesList = this.$refs.feeInfo.submitData();
  452. if (orderFeesList.length == 0) {
  453. this.$confirm("没有应收费用,是否继续提交?", {
  454. confirmButtonText: "确定",
  455. cancelButtonText: "取消",
  456. type: "warning"
  457. }).then(() => {
  458. financingExcess({ id: this.form.purchaserId }).then(res => {
  459. if (res.data.data == '操作成功') {
  460. this.$confirm("确定审核此订单?", {
  461. confirmButtonText: "确定",
  462. cancelButtonText: "取消",
  463. type: "warning"
  464. }).then(() => {
  465. this.buttonLoading = true
  466. const data = {
  467. id: this.form.id,
  468. checkType: 'CK',
  469. url: '/salesManagement/outStock/index',
  470. pageStatus: "this.$store.getters.entranceXsStatus",
  471. pageLabel: "出库管理",
  472. checkFlag: 2,
  473. }
  474. checkWarehousing(data).then(res => {
  475. if (res.data.success) {
  476. this.$message.success("操作成功!")
  477. this.viewDisabled = true
  478. this.approverDisabled = true
  479. }
  480. })
  481. }).finally(() => {
  482. this.buttonLoading = false
  483. })
  484. } else {
  485. this.$confirm("此订单余额不足,是否继续确认提交审核?", {
  486. confirmButtonText: "确定",
  487. cancelButtonText: "取消",
  488. type: "warning"
  489. }).then(() => {
  490. this.buttonLoading = true
  491. const data = {
  492. id: this.form.id,
  493. checkType: 'CK',
  494. url: '/salesManagement/outStock/index',
  495. pageStatus: "this.$store.getters.entranceXsStatus",
  496. pageLabel: "出库管理",
  497. checkFlag: 2,
  498. }
  499. checkWarehousing(data).then(res => {
  500. if (res.data.success) {
  501. this.$message.success("操作成功!")
  502. this.viewDisabled = true
  503. this.approverDisabled = true
  504. }
  505. })
  506. }).finally(() => {
  507. this.buttonLoading = false
  508. })
  509. }
  510. })
  511. })
  512. } else {
  513. financingExcess({ id: this.form.purchaserId }).then(res => {
  514. if (res.data.data == '操作成功') {
  515. this.$confirm("确定审核此订单?", {
  516. confirmButtonText: "确定",
  517. cancelButtonText: "取消",
  518. type: "warning"
  519. }).then(() => {
  520. this.buttonLoading = true
  521. const data = {
  522. id: this.form.id,
  523. checkType: 'CK',
  524. url: '/salesManagement/outStock/index',
  525. pageStatus: "this.$store.getters.entranceXsStatus",
  526. pageLabel: "出库管理",
  527. checkFlag: 2,
  528. }
  529. checkWarehousing(data).then(res => {
  530. if (res.data.success) {
  531. this.$message.success("操作成功!")
  532. this.viewDisabled = true
  533. this.approverDisabled = true
  534. }
  535. })
  536. }).finally(() => {
  537. this.buttonLoading = false
  538. })
  539. } else {
  540. this.$confirm("此订单余额不足,是否继续确认提交审核?", {
  541. confirmButtonText: "确定",
  542. cancelButtonText: "取消",
  543. type: "warning"
  544. }).then(() => {
  545. this.buttonLoading = true
  546. const data = {
  547. id: this.form.id,
  548. checkType: 'CK',
  549. url: '/salesManagement/outStock/index',
  550. pageStatus: "this.$store.getters.entranceXsStatus",
  551. pageLabel: "出库管理",
  552. checkFlag: 2,
  553. }
  554. checkWarehousing(data).then(res => {
  555. if (res.data.success) {
  556. this.$message.success("操作成功!")
  557. this.viewDisabled = true
  558. this.approverDisabled = true
  559. }
  560. })
  561. }).finally(() => {
  562. this.buttonLoading = false
  563. })
  564. }
  565. })
  566. }
  567. },
  568. getTemplate() {
  569. window.open(`/api/trade-purchase/woodHarvestingCloud/export-template?${this.website.tokenHeader}=${getToken()}`)
  570. },
  571. //返回列表
  572. backToList() {
  573. let orderFeesList = this.$refs.feeInfo.submitData();
  574. if (
  575. contrastObj(this.form, this.oldform) ||
  576. contrastList(this.itemsVOList, this.olditemsVOList) ||
  577. contrastList(orderFeesList, this.oldorderFeesList) ||
  578. contrastList(this.orderFilesList, this.oldorderFilesList)
  579. ) {
  580. this.$confirm("数据发生变化未有提交记录, 是否提交?", "提示", {
  581. confirmButtonText: "确定",
  582. cancelButtonText: "取消",
  583. type: "warning"
  584. })
  585. .then(() => {
  586. this.editCustomer("goBack");
  587. })
  588. .catch(() => {
  589. this.$emit("goBack");
  590. });
  591. } else {
  592. this.$emit("goBack");
  593. }
  594. },
  595. openEdit() {
  596. this.detailData.status = 2;
  597. this.option.disabled = false;
  598. this.$refs.crud.refreshTable();
  599. },
  600. calculateChange(row) {
  601. row.storageAmount = (row.storageInQuantity ? row.storageInQuantity : 0) * (row.price ? row.price : 0)
  602. },
  603. beforeFinance(feesData, callback) {
  604. let params = {}
  605. //暂时默认通过 之后优化
  606. params.valid = true
  607. params.parentId = this.form.id
  608. callback(params)
  609. },
  610. openReport() {
  611. this.$router.push(`/myiframe/urlPath?name=preview-木材库-出库单.ureport.xml&src=${this.website.reportUrl}/preview?_u=blade-木材库-出库单.ureport.xml&id=${this.form.id}`);
  612. },
  613. moveUp(row, index) {
  614. this.itemsVOList[index] = this.itemsVOList.splice(index - 1, 1, row)[0]
  615. },
  616. moveDown(row, index) {
  617. this.itemsVOList[index] = this.itemsVOList.splice(index + 1, 1, row)[0]
  618. },
  619. async saveColumn() {
  620. const inSave = await this.saveColumnData(
  621. this.getColumnName(191),
  622. this.tableOption
  623. );
  624. if (inSave) {
  625. this.$nextTick(() => {
  626. this.$refs.crud.doLayout();
  627. });
  628. this.$message.success("保存成功");
  629. //关闭窗口
  630. this.$refs.crud.$refs.dialogColumn.columnBox = false;
  631. }
  632. },
  633. async resetColumn() {
  634. this.tableOption = tableOption;
  635. const inSave = await this.delColumnData(
  636. this.getColumnName(191),
  637. tableOption
  638. );
  639. if (inSave) {
  640. this.$nextTick(() => {
  641. this.$refs.crud.doLayout();
  642. });
  643. this.$message.success("重置成功");
  644. //关闭窗口
  645. setTimeout(() => {
  646. this.$refs.crud.$refs.dialogColumn.columnBox = false;
  647. }, 1000);
  648. }
  649. }
  650. },
  651. watch: {
  652. }
  653. };
  654. </script>
  655. <style lang="scss" scoped>
  656. .trading-form ::v-deep .el-form-item {
  657. margin-bottom: 8px !important;
  658. }
  659. ::v-deep .el-form-item__error {
  660. display: none !important;
  661. }
  662. ::v-deep .select-component {
  663. display: flex !important;
  664. }
  665. </style>