receiptSettleDetailsPage.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772
  1. <template>
  2. <div class="borderless">
  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 class="upper_right_button">
  9. <el-button
  10. type="primary"
  11. size="small"
  12. @click="editHandle"
  13. v-if="editDisable"
  14. >编 辑</el-button>
  15. <el-button type="primary"
  16. size="small"
  17. :disabled="!form.id || editDisable"
  18. @click="postMessage"
  19. >发送消息</el-button>
  20. <el-button type="warning"
  21. size="small"
  22. class="el-button--small-yh"
  23. :buttonLoading="buttonLoading"
  24. :disabled="!form.id || editDisable"
  25. @click.stop="confirmSettlement"
  26. >{{financeDisabled?"收费":"撤销收费"}}
  27. </el-button>
  28. <el-button class="el-button--small-yh"
  29. type="primary"
  30. size="small"
  31. :buttonLoading="buttonLoading"
  32. :disabled="!financeDisabled || editDisable"
  33. @click.stop="saveSettlement"
  34. >保存数据
  35. </el-button>
  36. </div>
  37. </div>
  38. </div>
  39. <div class="customer-main">
  40. <containerTitle title="基础信息"></containerTitle>
  41. <basic-container>
  42. <avue-form class="trading-form" ref="form" v-model="form" :option="option">
  43. <template slot="corpId">
  44. <crop-select
  45. v-model="form.corpId"
  46. corpType="KG"
  47. :disabled="!financeDisabled || editDisable"
  48. @getCorpData="returnBack"
  49. style="width: 100%"
  50. ></crop-select>
  51. </template>
  52. <template slot="accountNo">
  53. <el-select v-model="form.accountNo"
  54. placeholder="请选择"
  55. :disabled="!financeDisabled || editDisable"
  56. @change="accountNoChange"
  57. clearable
  58. filterable>
  59. <el-option v-for="(item,index) in form.bankList"
  60. :key="index"
  61. :label="item.accountNo"
  62. :value="item.accountNo"
  63. >
  64. </el-option>
  65. </el-select>
  66. </template>
  67. <template slot="caseOverPayment">
  68. <el-input
  69. placeholder="请输入"
  70. clearable
  71. v-model="form.caseOverPayment"
  72. @change="caseOverPaymentChange"
  73. v-input-limit="2"
  74. :disabled="dataList.length == 0 || !financeDisabled || editDisable"
  75. ></el-input>
  76. </template>
  77. <template slot="remark">
  78. <el-input type="textarea"
  79. v-model="form.remark"
  80. size="small"
  81. rows="2"
  82. autocomplete="off"
  83. placeholder="">
  84. </el-input>
  85. </template>
  86. </avue-form>
  87. </basic-container>
  88. <containerTitle title="明细列表"></containerTitle>
  89. <basic-container>
  90. <avue-crud :option="itemsOption"
  91. :data="dataList"
  92. ref="crud"
  93. v-model="itemsForm"
  94. :page.sync="page"
  95. @search-reset="searchReset"
  96. @row-update="rowUpdate"
  97. @selection-change="selectionChange"
  98. @current-change="currentChange"
  99. @size-change="sizeChange"
  100. @refresh-change="refreshChange">
  101. <template slot="menuLeft">
  102. <el-button type="primary"
  103. size="small"
  104. icon="el-icon-shopping-cart-2"
  105. :disabled="!financeDisabled || editDisable"
  106. :buttonLoading="buttonLoading"
  107. @click="selectRecipt"
  108. >选择销售合同
  109. </el-button>
  110. </template>
  111. <template slot-scope="{ row }" slot="currency">
  112. <el-select v-if="row.$cellEdit" v-model="row.currency" size="small" placeholder="请选择 币别" clearable filterable>
  113. <el-option v-for="(item,index) in currencyDic" :key="index" :label="item.dictValue" :value="item.dictValue"></el-option>
  114. </el-select>
  115. <span v-else>{{ row.currency }}</span>
  116. </template>
  117. <template slot="thisAmount" slot-scope="{ row }">
  118. <span v-if="row.$cellEdit" class="required_fields">*</span>
  119. <el-input
  120. v-if="row.$cellEdit"
  121. v-model="row.thisAmount"
  122. style="width: 90%"
  123. placeholder="请输入"
  124. size="small"
  125. oninput='this.value=this.value.replace(/[^(\d.)]/g,"").replace(/^(\d+)\.(\d\d).*$/, "$1.$2")'
  126. ></el-input>
  127. <span v-else>{{ row.thisAmount }}</span>
  128. </template>
  129. <template slot-scope="scope" slot="menu">
  130. <el-button
  131. type="text"
  132. size="small"
  133. icon="el-icon-edit"
  134. :disabled="!financeDisabled || editDisable"
  135. @click.stop="rowCell(scope.row,scope.index)"
  136. > {{ scope.row.$cellEdit ? '修改完成' : '修改' }}
  137. </el-button>
  138. <el-button
  139. type="text"
  140. size="small"
  141. icon="el-icon-delete"
  142. :disabled="!financeDisabled || editDisable"
  143. @click.stop="rowDel(scope.row,scope.index)"
  144. >删除
  145. </el-button>
  146. </template>
  147. </avue-crud>
  148. </basic-container>
  149. <el-dialog
  150. title="导入销售"
  151. append-to-body
  152. class="el-dialogDeep"
  153. :visible.sync="billDetailDialog"
  154. width="60%"
  155. :close-on-click-modal="false"
  156. :destroy-on-close="true"
  157. :close-on-press-escape="false"
  158. top="10vh"
  159. v-dialog-drag>
  160. <bill-detail
  161. :params="params"
  162. :billType="billType"
  163. @closeFun="closeBillDetail"
  164. @importProMent="importProMent"
  165. >
  166. </bill-detail>
  167. </el-dialog>
  168. </div>
  169. <messagePost
  170. v-if="messageVisble"
  171. ref="messagePost"
  172. @closeDialog="closeDialog"
  173. ></messagePost>
  174. </div>
  175. </template>
  176. <script>
  177. import option from "./configuration/detailsPage.json";
  178. import { getDetail } from "@/api/financialManagement/financialManagement"
  179. import { getDetails,modify,cancelModify,saveOrEdit } from "@/api/financialManagement/paymentRequest";
  180. import billDetail from "@/components/bill/billDetailList";
  181. import _ from "lodash";
  182. import { getlistBankBy,deleteDetail } from "@/api/financialManagement/paymentRequest";
  183. import { contrastObj,contrastList } from "@/util/contrastData";
  184. import {getUserInfo} from "@/api/system/user";
  185. import {getCorpDetail} from "@/api/maintenance/overpayment";
  186. export default {
  187. name: "receiptDetailsPage",
  188. props: {
  189. detailData: {
  190. type: Object
  191. }
  192. },
  193. components:{
  194. billDetail,
  195. },
  196. data() {
  197. return {
  198. category: '',
  199. form: {},
  200. itemsForm:{},
  201. params:{},
  202. buttonLoading:false,
  203. itemsOption: option,
  204. option: {
  205. menuBtn: false,
  206. labelWidth: 100,
  207. column: [
  208. {
  209. label: '系统号',
  210. prop: 'sysNo',
  211. span: 8,
  212. disabled: true
  213. },{
  214. label: '合同号',
  215. prop: 'srcOrderno',
  216. span: 8,
  217. rules: [
  218. {
  219. required: false,
  220. message: ' ',
  221. trigger: 'blur'
  222. }
  223. ]
  224. }, {
  225. label: '往来单位',
  226. prop: 'corpId',
  227. sort:true,
  228. span: 8,
  229. rules: [
  230. {
  231. required: false,
  232. message: ' ',
  233. trigger: 'blur'
  234. }
  235. ]
  236. },
  237. {
  238. label: '银行账号',
  239. prop: 'accountNo',
  240. span: 8,
  241. rules: [
  242. {
  243. required: false,
  244. message: ' ',
  245. trigger: 'blur'
  246. }
  247. ]
  248. },
  249. {
  250. label: '开户银行',
  251. prop: 'accountBank',
  252. span: 8,
  253. rules: [
  254. {
  255. required: false,
  256. message: ' ',
  257. trigger: 'blur'
  258. }
  259. ]
  260. }, {
  261. label: '银行户头',
  262. prop: 'accountName',
  263. span: 8,
  264. rules: [
  265. {
  266. required: false,
  267. message: ' ',
  268. trigger: 'blur'
  269. }
  270. ]
  271. },
  272. {
  273. label: '人民币金额',
  274. prop: 'amount',
  275. span: 8,
  276. rules: [
  277. {
  278. pattern: /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,
  279. message: ' ',
  280. trigger: 'blur'
  281. },
  282. {
  283. required: false,
  284. message: ' ',
  285. trigger: 'blur'
  286. }
  287. ]
  288. },
  289. {
  290. label: '外币金额',
  291. prop: 'foreignAmount',
  292. display: true,
  293. span: 8,
  294. rules: [
  295. {
  296. pattern: /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,
  297. message: ' ',
  298. trigger: 'blur'
  299. }
  300. ]
  301. },
  302. {
  303. label: '使用溢付款',
  304. prop: 'caseOverPayment',
  305. display: false,
  306. span: 8,
  307. rules: [
  308. {
  309. pattern: /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,
  310. message: ' ',
  311. trigger: 'blur'
  312. }
  313. ]
  314. },
  315. {
  316. label: '溢付款余额',
  317. prop: 'overPayment',
  318. display: false,
  319. disabled: true,
  320. span: 8,
  321. rules: [
  322. {
  323. pattern: /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,
  324. message: ' ',
  325. trigger: 'blur'
  326. }
  327. ]
  328. },
  329. {
  330. label: '收款日期',
  331. prop: 'time',
  332. span: 8,
  333. type:"date",
  334. rules: [
  335. {
  336. required: false,
  337. message: ' ',
  338. trigger: 'blur'
  339. }
  340. ]
  341. },
  342. {
  343. label: '制单人',
  344. prop: 'createUserName',
  345. span: 8,
  346. disabled:true,
  347. rules: [
  348. {
  349. required: false,
  350. message: ' ',
  351. trigger: 'blur'
  352. }
  353. ]
  354. }, {
  355. label: '制单日期',
  356. prop: 'createTime',
  357. span: 8,
  358. type:"date",
  359. disabled:true,
  360. rules: [
  361. {
  362. required: false,
  363. message: ' ',
  364. trigger: 'blur'
  365. }
  366. ]
  367. },
  368. {
  369. label: '备注',
  370. prop: 'remark',
  371. span:24,
  372. row:2,
  373. rules: [
  374. {
  375. required: false,
  376. message: ' ',
  377. trigger: 'blur'
  378. }
  379. ]
  380. },
  381. ],
  382. },
  383. id:'',
  384. dataList: [],
  385. currencyDic:[],
  386. page: {
  387. pageSize: 10,
  388. pagerCount: 5,
  389. total: 0,
  390. },
  391. billDetailDialog:false,
  392. financeDisabled:true,
  393. billType:"收费",
  394. // 明细本次金额总计
  395. allAmount: 0,
  396. // 消息弹窗
  397. messageVisble: false,
  398. //新旧数据对比
  399. oldForm:{},
  400. oldDataList:[],
  401. financeStatusDic:[{
  402. value: '正常',
  403. label: '正常'
  404. },
  405. {
  406. value: '停用',
  407. label: '停用'
  408. }],
  409. editDisable: false, //编辑状态禁用
  410. }
  411. },
  412. created() {
  413. // 人民币金额默认为0
  414. this.$set(this.form,"amount", 0)
  415. getUserInfo().then(res=>{
  416. this.category = res.data.data.billType
  417. if (this.category == 2) {
  418. this.$set(this.form,"overPayment", 0)
  419. this.$set(this.form,"caseOverPayment", 0)
  420. this.option.column.forEach(item => {
  421. if (item.prop == 'caseOverPayment' || item.prop == 'overPayment') {
  422. item.display = true
  423. }
  424. if (item.prop == 'foreignAmount') {
  425. item.display = false
  426. }
  427. })
  428. }
  429. })
  430. //币别
  431. this.getWorkDicts("currency").then(res =>{
  432. this.currencyDic = res.data.data
  433. })
  434. this.detailData.disabled && (this.editDisable = true)
  435. if (this.detailData.id) {
  436. this.buttonLoading = true
  437. this.id = this.detailData.id;//字符串转数字 超长用BigInt
  438. getDetail(this.id).then(res => {
  439. this.afterEcho(res.data.data)
  440. }).finally(()=>{
  441. this.buttonLoading = false
  442. })
  443. }else{
  444. this.form.financeStatus = "待结算"
  445. this.oldForm.financeStatus = "待结算"
  446. }
  447. },
  448. mounted() {
  449. },
  450. methods: {
  451. //选择客户
  452. returnBack(corpValue){
  453. this.corpId = corpValue.id
  454. getlistBankBy(corpValue.id).then(res =>{
  455. this.$set(this.form,"bankList",res.data)
  456. })
  457. // 溢付款余额获取
  458. if (this.category == 2) {
  459. getCorpDetail({corpId:corpValue.id}).then(res => {
  460. this.form.overPayment = res.data.data? res.data.data.balanceOverpaymen: 0
  461. })
  462. }
  463. },
  464. //选择卡号
  465. accountNoChange(value){
  466. this.form.bankList.forEach(item =>{
  467. if(item.accountNo == value){
  468. this.$set(this.form,"accountBank",item.accountBank)
  469. this.$set(this.form,"accountName",item.accountName)
  470. }
  471. })
  472. },
  473. selectRecipt(){
  474. if(!this.form.corpId){
  475. this.$message.warning("请先选择客户!")
  476. return
  477. }
  478. this.params = {
  479. corpId: this.form.corpId
  480. }
  481. this.billDetailDialog = true;
  482. },
  483. closeBillDetail(){
  484. this.billDetailDialog = false;
  485. },
  486. importProMent(list){
  487. list.forEach((item,index) =>{
  488. item.accId = item.id;
  489. item.srcOrderno = item.accSysNo
  490. item.billNo = item.srcBillNo
  491. delete item.id;
  492. this.$refs.crud.rowCellAdd(item);
  493. })
  494. //明细列表所有合同号 去重 加, 为主表合同号
  495. this.$set(this.form,'srcOrderno',Array.from(new Set(this.dataList.map(item =>{ return item.srcOrderno}))).join(','))
  496. this.billDetailDialog = false;
  497. },
  498. rowUpdate(row, index, done) {
  499. done(row);
  500. },
  501. rowCell(row,index){
  502. // row.$cellEdit = !row.$cellEdit
  503. this.$refs.crud.rowCell(row, index)
  504. },
  505. rowDel(row,index){
  506. if (row.id) {
  507. deleteDetail({ids: row.id}).then(res => {
  508. this.$message({
  509. type: "success",
  510. message: "操作成功!"
  511. });
  512. this.dataList.splice(index, 1);
  513. })
  514. } else {
  515. this.dataList.splice(index, 1);
  516. }
  517. },
  518. searchReset() {
  519. console.log('1')
  520. },
  521. selectionChange() {
  522. console.log('1')
  523. },
  524. currentChange() {
  525. console.log('1')
  526. },
  527. sizeChange() {
  528. console.log('1')
  529. },
  530. refreshChange() {
  531. console.log('1')
  532. },
  533. confirmSettlement(status){
  534. if (!this.form.corpId) return this.$message.error('往来单位不能为空')
  535. this.$refs["form"].validate((valid,done) => {
  536. done();
  537. if(valid && this.verificationData()){
  538. this.$confirm("是否确认收费?", "提示", {
  539. confirmButtonText: "确认",
  540. cancelButtonText: "取消",
  541. type: "warning",
  542. }).then(()=>{
  543. for (let i = 0; i < this.dataList.length; i++) {
  544. if (this.dataList[i].thisAmount == null || this.dataList[i].thisAmount == 0 ) {
  545. return this.$message.error(`第${i + 1}行的本次金额不能为空`);
  546. }
  547. }
  548. this.buttonLoading = true
  549. this.form.billNo = this.dataList.map(item =>{return item.billNo}).join(",")
  550. if (this.category == 2 && this.financeDisabled) {
  551. this.allAmount = 0;
  552. this.form.amount = this.form.amount? this.form.amount: 0
  553. this.dataList.forEach(e => {
  554. this.allAmount = Number(this.allAmount) + Number(e.thisAmount)
  555. })
  556. if (this.allAmount == 0 && this.form.amount == 0) {
  557. return this.$message.error('人民币金额不能为空')
  558. } else if (Number(this.allAmount) > 0 && (Number(this.form.amount) > Number(this.allAmount))) {
  559. this.form.caseOverPayment = 0;
  560. } else if (Number(this.allAmount) > 0 && (Number(this.form.amount) < Number(this.allAmount))) {
  561. this.form.caseOverPayment = Number(this.allAmount) - Number(this.form.amount)
  562. if (Number(this.form.caseOverPayment) > Number(this.form.overPayment)) {
  563. return this.$message.error('溢付款余额不足,无法收费')
  564. }
  565. }
  566. }
  567. const params = {
  568. ...this.form,
  569. billType:"收费",
  570. itemsList:this.dataList
  571. }
  572. if(this.financeDisabled){
  573. modify(params).then(res =>{
  574. this.$message.success("操作成功!")
  575. this.afterEcho(res.data.data)
  576. }).finally(()=>{
  577. this.buttonLoading = false
  578. })
  579. }else{
  580. cancelModify(params).then(res =>{
  581. this.$message.success("操作成功!")
  582. this.afterEcho(res.data.data)
  583. }).finally(()=>{
  584. this.buttonLoading = false
  585. })
  586. }
  587. })
  588. if(status === true){
  589. this.$emit("goBack");
  590. }
  591. }
  592. })
  593. },
  594. saveSettlement(){
  595. this.$refs["form"].validate((valid,done) => {
  596. done();
  597. if(valid){
  598. for (let i = 0; i < this.dataList.length; i++) {
  599. if (this.dataList[i].thisAmount === (null || "")) {
  600. return this.$message.error(`第${i + 1}行的本次金额不能为空`);
  601. }
  602. }
  603. this.buttonLoading = true
  604. this.form.billNo = this.dataList.map(item =>{return item.billNo}).join(",")
  605. const params = {
  606. ...this.form,
  607. billType:"收费",
  608. itemsList:this.dataList,
  609. settlementType:1
  610. }
  611. // 如果有id解锁,没有跳过
  612. this.form.id && this.unLock({moduleName: 'sf',tableName: 'finance_settlement', billId: this.form.id})
  613. saveOrEdit(params).then(res=>{
  614. this.$message.success("操作成功!")
  615. this.detailData.disabled = true
  616. this.editDisable = true
  617. this.afterEcho(res.data.data)
  618. }).finally(()=>{
  619. this.buttonLoading = false
  620. })
  621. }})
  622. },
  623. async afterEcho(data){
  624. this.form = data;
  625. // 溢付款余额获取
  626. if (this.category == 2) {
  627. await getCorpDetail({corpId: this.form.corpId}).then(res => {
  628. if (Number(this.form.overPayment) != (res.data.data? res.data.data.balanceOverpaymen: '0.00')) {
  629. this.form.overPayment = res.data.data? res.data.data.balanceOverpaymen: '0.00'
  630. }
  631. })
  632. }
  633. this.oldForm = Object.assign({},this.form);
  634. this.financeDisabled = this.form.financeStatus === "待结算"?true:false;
  635. if(this.financeDisabled || !this.editDisable){
  636. this.option.column.forEach(item =>{
  637. if( item.prop === "remark"){
  638. this.$set(item,"disabled",false)
  639. }else if( item.prop === "createUserName" || item.prop === "createTime" || item.prop === "sysNo" || item.prop === "overPayment"){
  640. this.$set(item,"disabled",true)
  641. }else{
  642. this.$set(item,"disabled",false)
  643. }
  644. })
  645. }
  646. if(this.financeDisabled === false || this.editDisable){
  647. this.option.column.forEach(item =>{
  648. if( item.prop === "remark"){
  649. this.$set(item,"disabled",false)
  650. }else if( item.prop === "createUserName" || item.prop === "createTime" || item.prop === "sysNo"){
  651. this.$set(item,"disabled",true)
  652. }else{
  653. this.$set(item,"disabled",true)
  654. }
  655. })
  656. }
  657. if(data.itemsList){
  658. this.dataList = data.itemsList
  659. this.oldDataList = this.deepClone(data.itemsList)
  660. }
  661. },
  662. verificationData(){
  663. if(contrastObj(this.form,this.oldForm) || contrastList(this.dataList,this.oldDataList)
  664. ){
  665. this.$confirm("数据发生变化,请先提交保存!", "提示", {
  666. confirmButtonText: "保存",
  667. cancelButtonText: "取消",
  668. type: "warning",
  669. }).then(() => {
  670. this.saveSettlement()
  671. }).catch(()=>{
  672. return false
  673. })
  674. }else{
  675. return true
  676. }
  677. },
  678. backToList(){
  679. if(contrastObj(this.form,this.oldForm) || contrastList(this.dataList,this.oldDataList)
  680. ){
  681. this.$confirm("是否保存当前页面?", "提示", {
  682. confirmButtonText: "保存",
  683. cancelButtonText: "取消",
  684. type: "warning",
  685. }).then(() => {
  686. this.saveSettlement()
  687. }).catch(()=>{
  688. this.$emit("goBack");
  689. })
  690. }else{
  691. this.$emit("goBack");
  692. }
  693. },
  694. // 溢付款更改时
  695. caseOverPaymentChange() {
  696. if (!this.form.caseOverPayment) this.form.caseOverPayment = 0;
  697. if (Number(this.form.caseOverPayment) > Number(this.form.overPayment)) {
  698. this.form.caseOverPayment = 0;
  699. return this.$message.error('本次使用的溢付款不能超过总溢付款')
  700. }
  701. },
  702. // 发送消息
  703. postMessage() {
  704. this.messageVisble = true
  705. this.$nextTick(() => {
  706. this.$refs.messagePost.init()
  707. })
  708. },
  709. closeDialog() {
  710. this.messageVisble = false
  711. },
  712. editHandle() {
  713. const data = {
  714. moduleName: 'sf',
  715. tableName: 'finance_settlement',
  716. billId: this.form.id,
  717. no: 1
  718. }
  719. this.checkLock(data).then(res => {
  720. if (res.data.code == 200) {
  721. this.onLock(data).then(response => {
  722. })
  723. this.detailData.disabled = false;
  724. this.editDisable = false;
  725. this.buttonLoading = true
  726. getDetail(this.form.id).then(data => {
  727. this.afterEcho(data.data.data)
  728. }).finally(()=>{
  729. this.buttonLoading = false
  730. })
  731. }
  732. }).catch(error => {
  733. }).finally(() => {
  734. this.buttonLoading = false
  735. })
  736. },
  737. }
  738. }
  739. </script>
  740. <style lang="scss" scoped>
  741. ::v-deep .el-form-item {
  742. margin-bottom: 0;
  743. }
  744. .trading-form ::v-deep .el-form-item {
  745. margin-bottom: 8px !important;
  746. }
  747. .required_fields{
  748. color: #F56C6C;
  749. display:inline-block;
  750. width: 7%
  751. }
  752. .upper_right_button{
  753. display: flex;
  754. position: fixed;
  755. right: 12px;
  756. top: 47px;
  757. }
  758. </style>