detail.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786
  1. <template>
  2. <div class="borderless" v-loading="pageLoading">
  3. <div class="customer-head">
  4. <div class="customer-back">
  5. <el-button
  6. type="danger"
  7. style="border: none;background: none;color: red"
  8. icon="el-icon-arrow-left"
  9. @click="backToList"
  10. :loading="btnLoading"
  11. >返回列表</el-button>
  12. </div>
  13. <div class="add-customer-btn">
  14. <el-button
  15. type="primary"
  16. size="small"
  17. class="el-button--small-yh"
  18. @click.stop="openEdit"
  19. v-if="disabled"
  20. >编 辑</el-button>
  21. <el-button
  22. v-if="form.id && loginUser === form.handingUser && form.confirmStatus !== 1"
  23. type="primary"
  24. size="small"
  25. class="el-button--small-yh"
  26. :loading="btnLoading"
  27. @click="submitConfirm"
  28. :disabled="!form.id || disabled"
  29. >提交确认</el-button>
  30. <el-button
  31. v-if="checker && form.status != 3"
  32. type="primary"
  33. size="small"
  34. class="el-button--small-yh"
  35. @click.stop="openCheckDialog">
  36. 审批
  37. </el-button>
  38. <el-button
  39. v-if="form.status > 0"
  40. @click.native="checkScheduleDialog = true,checkId=form.id"
  41. type="primary"
  42. size="small"
  43. >审核进度</el-button>
  44. <el-button
  45. type="primary"
  46. v-if="!checkDisabled"
  47. :disabled="!form.id || disabled || form.confirmStatus !== 1"
  48. size="small"
  49. @click="pleaseCheck"
  50. :loading="btnLoading"
  51. >请核</el-button>
  52. <el-button
  53. type="success"
  54. :disabled="!form.id"
  55. size="small"
  56. @click="copyDoc"
  57. :loading="btnLoading"
  58. v-if="false"
  59. >复制单据</el-button>
  60. <el-button
  61. type="primary"
  62. @click="editCustomer"
  63. size="small"
  64. :loading="btnLoading"
  65. >保存数据</el-button>
  66. </div>
  67. </div>
  68. <div class="customer-main">
  69. <containerTitle title="基础信息"/>
  70. <basic-container :showBtn="true">
  71. <avue-form
  72. ref="form"
  73. class="trading-form"
  74. v-model="form"
  75. :option="option"
  76. >
  77. <template slot="corpId">
  78. <crop-select
  79. v-model="form.corpId"
  80. @getCorpData="getKHData"
  81. corpType="KH"
  82. :disabled="disabled || checkDisabled || confirmDisabled"
  83. />
  84. </template>
  85. <template slot="chargeStatus">
  86. <el-switch
  87. v-model="form.chargeStatus"
  88. active-text="是"
  89. inactive-text="否"
  90. :active-value="1"
  91. :inactive-value="0"
  92. :disabled="disabled || checkDisabled || confirmDisabled"
  93. @change="chargeStatusChange"
  94. ></el-switch>
  95. </template>
  96. <template slot="handingUser">
  97. <el-select
  98. v-model="form.handingUser"
  99. filterable
  100. clearable
  101. size="small"
  102. placeholder="请选择"
  103. :disabled="disabled || checkDisabled || form.chargeStatus == 0 || confirmDisabled"
  104. @change="handingUserChange"
  105. >
  106. <el-option
  107. v-for="(item,index) in userList"
  108. :key="index"
  109. :label="item.realName"
  110. :value="item.id"
  111. ></el-option>
  112. </el-select>
  113. </template>
  114. <template slot="handingUserName">
  115. <el-select
  116. v-model="form.handingUserName"
  117. filterable
  118. clearable
  119. allow-create
  120. default-first-option
  121. size="small"
  122. placeholder="请选择"
  123. :disabled="disabled || checkDisabled || form.chargeStatus == 0 || confirmDisabled"
  124. >
  125. <el-option
  126. v-for="(item,index) in userList"
  127. :key="index"
  128. :label="item.realName"
  129. :value="item.realName"
  130. ></el-option>
  131. </el-select>
  132. </template>
  133. <template slot="external">
  134. <el-switch
  135. v-model="form.external"
  136. active-text="是"
  137. inactive-text="否"
  138. :active-value="1"
  139. :inactive-value="0"
  140. :disabled="disabled || checkDisabled || confirmDisabled"
  141. ></el-switch>
  142. </template>
  143. </avue-form>
  144. </basic-container>
  145. <containerTitle title="详情内容"/>
  146. <basic-container>
  147. <avue-crud
  148. ref="crud"
  149. :data="dataList"
  150. :option="tableOption"
  151. :cell-style="cellStyle"
  152. @saveColumn="saveColumn"
  153. @resetColumn="resetColumn"
  154. >
  155. <template slot="menuLeft">
  156. <el-button
  157. type="primary"
  158. icon="el-icon-plus"
  159. size="small"
  160. @click.stop="newDetails"
  161. :disabled="disabled || checkDisabled || confirmDisabled"
  162. >录入明细</el-button>
  163. <el-button
  164. type="info"
  165. icon="el-icon-printer"
  166. size="small"
  167. @click="openReport"
  168. >报表打印</el-button>
  169. </template>
  170. <template slot="menu" slot-scope="{ row, index }">
  171. <el-button
  172. size="small"
  173. icon="el-icon-edit"
  174. type="text"
  175. @click="rowCell(row, index)"
  176. :disabled="disabled || checkDisabled || confirmDisabled"
  177. >{{ row.$cellEdit ? "保存" : "修改" }}</el-button>
  178. <el-button
  179. size="small"
  180. icon="el-icon-upload"
  181. type="text"
  182. :disabled="disabled || checkDisabled || confirmDisabled"
  183. @click="annexOpen(row, index)"
  184. >附件</el-button>
  185. <el-button
  186. size="small"
  187. icon="el-icon-delete"
  188. type="text"
  189. @click="rowDel(row, index)"
  190. :disabled="disabled || checkDisabled || confirmDisabled"
  191. >删除</el-button>
  192. </template>
  193. <template slot="quantity" slot-scope="{ row, index }">
  194. <el-input-number
  195. v-if="row.$cellEdit"
  196. v-model="row.quantity"
  197. size="small"
  198. :controls="false"
  199. :precision="0"
  200. style="width: 100%"
  201. placeholder="数量"
  202. ></el-input-number>
  203. <span v-else>{{ row.quantity }}</span>
  204. </template>
  205. <template slot-scope="{ row, index }" slot="unit">
  206. <el-select
  207. v-if="row.$cellEdit"
  208. v-model="row.unit"
  209. size="small"
  210. clearable
  211. filterable
  212. >
  213. <el-option
  214. v-for="(item, index) in unitOption"
  215. :key="index"
  216. :label="item.dictValue"
  217. :value="item.dictValue"
  218. />
  219. </el-select>
  220. <span v-else>{{ row.unit }}</span>
  221. </template>
  222. <template slot="amount" slot-scope="{ row, index }">
  223. <el-input-number
  224. v-if="row.$cellEdit"
  225. v-model="row.amount"
  226. size="small"
  227. :controls="false"
  228. :precision="2"
  229. style="width: 100%"
  230. placeholder="金额"
  231. ></el-input-number>
  232. <span v-else>{{ row.amount }}</span>
  233. </template>
  234. </avue-crud>
  235. </basic-container>
  236. <containerTitle title="客户未收款"/>
  237. <basic-container>
  238. <avue-form
  239. ref="detailForm"
  240. class="trading-form"
  241. v-model="form"
  242. :option="detailOption"
  243. ></avue-form>
  244. </basic-container>
  245. </div>
  246. <el-dialog
  247. append-to-body
  248. title="审批"
  249. class="el-dialogDeep"
  250. :visible.sync="checkDialog"
  251. width="50%"
  252. :close-on-click-modal="false"
  253. :destroy-on-close="true"
  254. :close-on-press-escape="false"
  255. v-dialog-drag
  256. >
  257. <check
  258. :checkData="checkData"
  259. :checkDetail="false"
  260. :idList="[]"
  261. @choceCheckFun="choceCheckFun"
  262. />
  263. </el-dialog>
  264. <el-dialog
  265. append-to-body
  266. title="审批进度"
  267. class="el-dialogDeep"
  268. :visible.sync="checkScheduleDialog"
  269. width="40%"
  270. :close-on-click-modal="false"
  271. :destroy-on-close="true"
  272. :close-on-press-escape="false"
  273. v-dialog-drag
  274. >
  275. <check-schedule
  276. :checkId="checkId"
  277. :batchNo="batchNo"
  278. @choceScheduleFun="choceScheduleFun"
  279. />
  280. </el-dialog>
  281. <!-- 报表-->
  282. <report-dialog
  283. :switchDialog="switchDialog"
  284. :reportId="form.id"
  285. reportName="交接单"
  286. @onClose="onClose()"
  287. />
  288. <el-dialog
  289. title="附件"
  290. :visible.sync="dialogVisible"
  291. append-to-body
  292. width="70%">
  293. <c-upload
  294. typeUpload="PC"
  295. :basic="true"
  296. deleteUrl="/api/blade-client/common-file/remove"
  297. :data="orderList"
  298. :disabled="upLoadForm.status >= 2"
  299. :enumerationValue="124"
  300. ></c-upload>
  301. <span slot="footer" class="dialog-footer">
  302. <el-button @click="dialogVisible = false" size="small">取 消</el-button>
  303. <el-button type="primary" @click="saveAnnex" size="small" :disabled="upLoadForm.status >= 2">保 存</el-button>
  304. </span>
  305. </el-dialog>
  306. </div>
  307. </template>
  308. <script>
  309. import tableOption from "./config/customerContact.json";
  310. import {
  311. isDiscount,
  312. isPercentage,
  313. micrometerFormat,
  314. IntegerFormat
  315. } from "@/util/validate";
  316. import { gainUser } from "@/api/basicData/customerInquiry";
  317. import {getUserInfo} from "@/api/system/user";
  318. import {getDeptTree} from "@/api/system/dept";
  319. import { getCurrentDate } from "@/util/date";
  320. import { contrastObj, contrastList } from "@/util/contrastData";
  321. import check from "@/components/check/check";
  322. import checkSchedule from "@/components/check/checkSchedule";
  323. import {
  324. dataDetail,
  325. typeSave,
  326. removeGoods,
  327. pleaseCheck,
  328. saveAttached,
  329. getAttachment,
  330. submitConfirm} from "@/api/standAlone/handoverSheet";
  331. import reportDialog from "@/components/report-dialog/main";
  332. export default {
  333. name: "detail",
  334. props: {
  335. detailData: {
  336. type: Object
  337. }
  338. },
  339. components: {
  340. check,
  341. checkSchedule,
  342. reportDialog
  343. },
  344. data() {
  345. const validateHandingUser = (rule, value, callback) => {
  346. if (this.form.chargeStatus == 1 && !this.form.handingUser) {
  347. callback(new Error('接收人不能为空'))
  348. } else {
  349. callback()
  350. }
  351. }
  352. return {
  353. disabled: false,
  354. pageLoading: false,
  355. btnLoading: false,
  356. form: {},
  357. option: {
  358. menuBtn: false,
  359. labelWidth: 100,
  360. column: [
  361. {
  362. label: "客户名称",
  363. prop: "corpId",
  364. rules: [
  365. {
  366. required: true,
  367. message: " ",
  368. trigger: "change"
  369. }
  370. ],
  371. span: 8,
  372. slot: true,
  373. },
  374. {
  375. label: "交接日期",
  376. prop: "handoverDate",
  377. span: 8,
  378. type: "date",
  379. format: "yyyy-MM-dd",
  380. valueFormat: "yyyy-MM-dd HH:mm:ss",
  381. rules: [
  382. {
  383. required: true,
  384. message: " ",
  385. trigger: "blur"
  386. }
  387. ]
  388. },
  389. {
  390. label: "NO.",
  391. prop: "serialNo",
  392. disabled:true,
  393. span: 8,
  394. },
  395. {
  396. label: "交接人",
  397. prop: "handoverUserName",
  398. span: 8,
  399. },
  400. {
  401. label: "联系电话",
  402. prop: "contacts",
  403. span: 8,
  404. },
  405. {
  406. label: "是否收费",
  407. prop: "chargeStatus",
  408. span: 8,
  409. },
  410. {
  411. label: "接收人",
  412. prop: "handingUser",
  413. span: 8,
  414. rules: [
  415. {validator: validateHandingUser, trigger: 'change'}
  416. ]
  417. },
  418. {
  419. label: "是否外部交接单",
  420. prop: "external",
  421. span: 8,
  422. },
  423. {
  424. label: "交接备注",
  425. prop: "remarks",
  426. type: "textarea",
  427. minRows: 2,
  428. span: 24,
  429. },
  430. ],
  431. },
  432. detailForm: {},
  433. detailOption: {
  434. menuBtn: false,
  435. labelWidth: 100,
  436. column: [
  437. {
  438. label: "客户名称",
  439. prop: "corpName",
  440. disabled:true,
  441. span: 8,
  442. },
  443. {
  444. label: "未收金额",
  445. prop: "uncollectedAmount",
  446. disabled: true,
  447. span: 8,
  448. }
  449. ],
  450. },
  451. dataList: [],
  452. tableOption: {},
  453. goodsoptions: [],
  454. unitOption: [],
  455. selectionList: [],
  456. search: {},
  457. treeStyle: "height:" + (window.innerHeight - 315) + "px",
  458. goodsOption: {},
  459. loading: false,
  460. switchDialog: false, // 报表弹窗控制
  461. userList: [],
  462. dic: [],
  463. loginUser: '', // 登录人
  464. oldForm: {},
  465. oldDataList: [],
  466. checkDisabled: false, // 审核状态
  467. confirmDisabled: false, // 提交状态
  468. checker: false,
  469. checkId: '',
  470. batchNo:'',
  471. checkDialog: false,
  472. checkScheduleDialog: false,
  473. checkData: {},
  474. dialogVisible: false,
  475. orderList: [],
  476. upLoadForm: {},
  477. rowIndex: null, //暂存明细下标
  478. }
  479. },
  480. async created() {
  481. this.$set(this.form, 'handoverDate', getCurrentDate()); // 默认当前日期
  482. this.tableOption = await this.getColumnData(
  483. this.getColumnName(104),
  484. tableOption
  485. );
  486. gainUser().then(res => {
  487. this.userList = res.data.data;
  488. });
  489. getUserInfo().then(res => {
  490. this.loginUser = res.data.data.id;
  491. })
  492. getDeptTree().then(res => {
  493. this.dic = res.data.data
  494. })
  495. this.getWorkDicts('unit').then(res => {
  496. this.unitOption = res.data.data;
  497. })
  498. if (this.detailData.query) {
  499. this.disabled = true;
  500. this.option.column.map(e => {
  501. this.$set(e, 'disabled', true)
  502. })
  503. this.queryData(this.detailData.id);
  504. } else if (this.detailData.auditId) {
  505. this.checker = true;
  506. this.batchNo = this.detailData.check.batchNo
  507. this.queryData(this.detailData.id);
  508. }
  509. },
  510. filters: {
  511. IntegerFormat(num) {
  512. return IntegerFormat(num);
  513. },
  514. decimalFormat(num) {
  515. return num ? Number(num).toFixed(2) : "0.00";
  516. }
  517. },
  518. methods: {
  519. // 查询
  520. queryData(id) {
  521. this.pageLoading = true;
  522. dataDetail({id: id}).then(res => {
  523. this.form = res.data.data;
  524. this.dataList = this.form.itemList? this.form.itemList: [];
  525. delete this.form.itemList;
  526. this.oldForm = {...this.form};
  527. this.oldDataList = [...this.dataList];
  528. this.checkDisabled = this.form.status > 0? true: false;
  529. this.confirmDisabled = this.form.confirmStatus === 1? true: false;
  530. if (this.form.status > 0 || this.form.confirmStatus === 1) {
  531. this.option.column.map(e => {
  532. this.$set(e, 'disabled', true)
  533. })
  534. }
  535. }).finally(() => {
  536. this.pageLoading = false;
  537. })
  538. },
  539. //返回列表
  540. backToList() {
  541. this.$emit("goBack");
  542. },
  543. // 编辑按钮触发
  544. openEdit() {
  545. this.disabled = false;
  546. this.option.column.map(e => {
  547. if (this.checkDisabled || this.confirmDisabled) {
  548. this.$set(e, 'disabled', true)
  549. } else {
  550. if (e.prop != 'serialNo') {
  551. this.$set(e, 'disabled', false)
  552. }
  553. }
  554. })
  555. },
  556. // 复制
  557. copyDoc() {
  558. this.$emit("copyOrder", this.form.id);
  559. },
  560. //修改提交触发
  561. editCustomer(status) {
  562. this.$refs["form"].validate((valid, done) => {
  563. done();
  564. if (valid) {
  565. this.$set(this.form, 'itemList', this.dataList)
  566. this.form.itemList.forEach(item => {
  567. item.fileList = item.fileList? item.fileList: [];
  568. })
  569. this.btnLoading = true;
  570. typeSave(this.form).then(res => {
  571. this.$message({type: "success", message: this.form.id ? "修改成功!" : "新增成功!"});
  572. this.queryData(res.data.data);
  573. }).finally(() => {
  574. this.btnLoading = false;
  575. })
  576. } else {
  577. return false
  578. }
  579. })
  580. },
  581. cellStyle() {
  582. return "padding:0;height:40px;";
  583. },
  584. async saveColumn() {
  585. const inSave = await this.saveColumnData(
  586. this.getColumnName(104),
  587. this.tableOption
  588. );
  589. if (inSave) {
  590. this.$message.success("保存成功");
  591. //关闭窗口
  592. this.$refs.crud.$refs.dialogColumn.columnBox = false;
  593. this.$nextTick(() => {
  594. this.$refs.crud.doLayout()
  595. })
  596. }
  597. },
  598. async resetColumn() {
  599. this.tableOption = tableOption;
  600. const inSave = await this.delColumnData(
  601. this.getColumnName(104),
  602. tableOption
  603. );
  604. if (inSave) {
  605. this.$nextTick(() => {
  606. this.$refs.crud.doLayout()
  607. })
  608. this.$message.success("重置成功");
  609. //关闭窗口
  610. setTimeout(() => {
  611. this.$refs.crud.$refs.dialogColumn.columnBox = false;
  612. }, 1000);
  613. }
  614. },
  615. //录入明细
  616. newDetails() {
  617. this.$refs["form"].validate((valid, done) => {
  618. done()
  619. if (valid) {
  620. this.dataList.push({
  621. $cellEdit: true,
  622. })
  623. }
  624. })
  625. },
  626. rowCell(row, index) {
  627. if (row.$cellEdit == true) {
  628. this.$set(row, "$cellEdit", false);
  629. } else {
  630. this.$set(row, "$cellEdit", true);
  631. }
  632. },
  633. rowDel(row, index) {
  634. this.$confirm("确定删除数据?", {
  635. confirmButtonText: "确定",
  636. cancelButtonText: "取消",
  637. type: "warning"
  638. }).then(() => {
  639. if (row.id) {
  640. removeGoods(row.id).then(res => {
  641. this.$message({
  642. type: 'success',
  643. message: '删除成功!'
  644. })
  645. this.dataList.splice(row.$index, 1);
  646. })
  647. } else {
  648. this.$message({
  649. type: "success",
  650. message: "删除成功!"
  651. });
  652. this.dataList.splice(row.$index, 1);
  653. }
  654. });
  655. },
  656. getKHData(row) {
  657. this.$set(this.form, 'corpName', row.cname)
  658. },
  659. // 验证新旧值对比
  660. verification() {
  661. if (contrastObj(this.form, this.oldForm) ||
  662. contrastList(this.dataList, this.oldDataList)) {
  663. this.$confirm("数据发生变化未有提交记录, 是否提交?", "提示", {
  664. confirmButtonText: "确定",
  665. cancelButtonText: "取消",
  666. type: "warning"
  667. }).then(() => {
  668. this.editCustomer();
  669. }).catch(() => {
  670. return false; //取消改动数据
  671. })
  672. } else {
  673. return true;
  674. }
  675. },
  676. //打开审核
  677. openCheckDialog(){
  678. this.checkData = this.detailData.check
  679. this.checkDialog = true;
  680. },
  681. //关闭审核
  682. choceCheckFun(){
  683. this.checkDialog = false;
  684. },
  685. choceScheduleFun(){
  686. this.checkScheduleDialog = false
  687. },
  688. // 请核
  689. pleaseCheck() {
  690. if (this.verification()) {
  691. const data = {
  692. id : this.form.id,
  693. serialNo: this.form.serialNo,
  694. checkType: 'jjd',
  695. url: '/workManagement/handoverSheet/index',
  696. pageStatus:"this.$store.getters.handOverStatus",
  697. pageLabel:"交接单",
  698. checkFlag: 1,
  699. }
  700. this.btnLoading = true;
  701. pleaseCheck(data).then(res => {
  702. this.$message.success('请核成功')
  703. this.queryData(this.form.id)
  704. }).catch(() => {
  705. this.$message.error('请核失败')
  706. }).finally(() => {
  707. this.btnLoading = false;
  708. })
  709. }
  710. },
  711. // 报表
  712. openReport() {
  713. this.switchDialog =! this.switchDialog;
  714. },
  715. // 报表关闭
  716. onClose(val) {
  717. this.switchDialog = val;
  718. },
  719. //打开附件
  720. annexOpen(row, index) {
  721. this.dialogVisible = true
  722. this.upLoadForm = row
  723. if (row.id) {
  724. getAttachment({id: row.id}).then(res => {
  725. this.orderList = res.data.data? res.data.data: [];
  726. })
  727. } else {
  728. this.$set(row, 'fileList', row.fileList? row.fileList: []); // 新数据默认插入空
  729. this.orderList = [...row.fileList];
  730. this.rowIndex = index;
  731. }
  732. },
  733. //保存
  734. saveAnnex() {
  735. if (this.upLoadForm.id) {
  736. this.orderList.forEach(item => this.$set(item, 'pid', this.upLoadForm.id))
  737. saveAttached(this.orderList).then(res => {
  738. this.$nextTick(() => {
  739. this.dialogVisible = false;
  740. this.rowIndex = null;
  741. this.orderList = [];
  742. })
  743. })
  744. } else {
  745. this.dataList[this.rowIndex].fileList = [...this.orderList];
  746. this.$nextTick(() => {
  747. this.dialogVisible = false;
  748. this.rowIndex = null;
  749. this.orderList = [];
  750. })
  751. }
  752. },
  753. // 是否收费选择触发
  754. chargeStatusChange(data) {
  755. if (data === 0) this.form.handingUser = null;
  756. },
  757. // 接收人选择触发
  758. handingUserChange(data) {
  759. this.$set(this.form, 'handingUserName', this.userList.find(item => data == item.id)? this.userList.find(item => data == item.id).realName: null);
  760. },
  761. // 提交确认
  762. submitConfirm() {
  763. this.$confirm("提交确认?", "提示", {
  764. confirmButtonText: "确定",
  765. cancelButtonText: "取消",
  766. type: "warning"
  767. }).then(() => {
  768. this.btnLoading = true
  769. submitConfirm({id: this.form.id}).then(res => {
  770. this.$message.success('提交成功');
  771. this.queryData(this.form.id);
  772. }).finally(() => {
  773. this.btnLoading = false;
  774. })
  775. })
  776. },
  777. },
  778. }
  779. </script>
  780. <style scoped>
  781. </style>