detailsPage.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746
  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"
  7. @click="backToList">返回列表
  8. </el-button>
  9. </div>
  10. <div class="add-customer-btn">
  11. <!--<el-button type="info" icon="el-icon-printer" size="small" @click.stop="openReport()">报表打印-->
  12. <!--</el-button>-->
  13. <el-button v-if="form.dispatchingWorkers == 2" type="warning" size="small" :disabled="option.dispatchWorkers" @click="editCustomer(2)">
  14. 撤销派工
  15. </el-button>
  16. <el-button v-else type="warning" size="small" :disabled="option.disabled && (form.dispatchingWorkers == 0 || form.dispatchingWorkers == 1)" @click="editCustomer(1)">
  17. 派工
  18. </el-button>
  19. <el-button type="primary" size="small"
  20. class="el-button--small-yh" :disabled="!option.disabled" @click.stop="openEdit">编辑
  21. </el-button>
  22. <el-button type="primary" size="small" :disabled="option.disabled" @click="editCustomer(0)">
  23. 保存数据
  24. </el-button>
  25. </div>
  26. </div>
  27. <trade-card title="基础资料" style="margin-top: 60px" v-loading="loadingBtn">
  28. <avue-form ref="form" class="trading-form" v-model="form" :option="option">
  29. <!--<template slot="corpName">-->
  30. <!-- &lt;!&ndash;<crop-select v-model="form.corpId" corpType="KH" :disabled="option.disabled"&ndash;&gt;-->
  31. <!-- &lt;!&ndash; @getCorpData="getCorpData"></crop-select>&ndash;&gt;-->
  32. <!-- -->
  33. <!--</template>-->
  34. <template slot="deviceName">
  35. <el-select v-model="form.deviceName" clearable
  36. @change='deviceNameChange' :disabled="option.disabled" filterable placeholder="请选择设备">
  37. <el-option
  38. v-for="item in deviceList"
  39. :key="item.cname"
  40. :label="item.cname"
  41. :value="item.cname">
  42. </el-option>
  43. </el-select>
  44. </template>
  45. <template slot="maintenanceWorkerId">
  46. <el-select v-model="form.maintenanceWorkerId" clearable
  47. @change='maintenanceWorkerIdChange' :disabled="option.disabled" filterable placeholder="请选择维修工">
  48. <el-option
  49. v-for="item in maintenanceWorkersList"
  50. :key="item.id"
  51. :label="item.realName"
  52. :value="item.id">
  53. </el-option>
  54. </el-select>
  55. </template>
  56. <template slot="maintenanceAmount">
  57. <el-input v-model="form.maintenanceAmount" type="number" disabled
  58. placeholder="请输入" size="small" :controls="false" style="width:100%;"></el-input>
  59. </template>
  60. </avue-form>
  61. </trade-card>
  62. <trade-card title="维修项目" v-loading="loadingBtn">
  63. <avue-crud ref="crud" :option="optionList" :data="data" :table-loading="loading" @saveColumn="saveColumn"
  64. @resetColumn="resetColumn" :cell-style="cellStyle">
  65. <template slot="headerSerial">
  66. <el-button type="primary" icon="el-icon-plus" size="mini" @click.stop="addRow"
  67. :disabled="option.disabled" circle></el-button>
  68. </template>
  69. <template slot="costName" slot-scope="{ row, index }">
  70. <el-input v-if="row.$cellEdit" v-model="row.costName"
  71. placeholder="请输入" size="small" :controls="false" style="width:100%;"></el-input>
  72. <span v-else>{{ row.costName }}</span>
  73. </template>
  74. <template slot="amount" slot-scope="{ row, index }">
  75. <el-input v-if="row.$cellEdit" v-model="row.amount"
  76. placeholder="请输入" size="small" :controls="false" style="width:100%;"
  77. @blur="amountblur">
  78. </el-input>
  79. <span v-else>{{ row.amount }}</span>
  80. </template>
  81. <template slot="remarks" slot-scope="{ row, index }">
  82. <el-input v-if="row.$cellEdit" v-model="row.remarks"
  83. placeholder="请输入" size="small" :controls="false" style="width:100%;"></el-input>
  84. <span v-else>{{ row.remarks }}</span>
  85. </template>
  86. <template slot="menu" slot-scope="{ row, index }">
  87. <el-button size="small" type="text" :disabled="option.disabled" @click="rowCell(row, index)">{{
  88. row.$cellEdit ? "保存" : "修改"
  89. }}</el-button>
  90. <el-button size="small" type="text" :disabled="option.disabled" @click="rowDel(row, index)">删除
  91. </el-button>
  92. </template>
  93. </avue-crud>
  94. </trade-card>
  95. <containerTitle title="上传附件"></containerTitle>
  96. <c-upload v-loading="loadingBtn" typeUpload="CD"
  97. deleteUrl="/api/blade-sales-part/maintenanceFiles/remove" :data="maintenanceFiles" display
  98. :enumerationValue="35.1"></c-upload>
  99. <dictbiz-dialog ref="dictbiz" title="添加单位" code="unit" parentId="1585962784498225154" @closed="getAllWorkDicts">
  100. </dictbiz-dialog>
  101. </div>
  102. </div>
  103. </template>
  104. <script>
  105. import { optionList } from "./js/optionList";
  106. import reportDialog from "@/components/report-dialog/main";
  107. import { multiply, sum, subtract } from "@/util/calculate";
  108. import {getList as yhgetList, userList} from "@/api/system/user";
  109. import {
  110. maintenanceDetail,
  111. maintenanceDispatchingWorkers,
  112. maintenanceFeesRemove, maintenanceRevokeDispatchingWorkers,
  113. maintenanceSubmit
  114. } from "@/api/basicData/maintenanceQ";
  115. import {
  116. bladeUserList,
  117. corpequipmentarchivesitemList,
  118. corpequipmentarchivesList,
  119. } from "@/api/basicData/EquipmentArchives";
  120. import {date} from "mockjs/src/mock/random/date";
  121. export default {
  122. name: "index",
  123. data() {
  124. return {
  125. // 设备list
  126. deviceList: [],
  127. // 维修工list
  128. maintenanceWorkersList: [],
  129. loadingBtn: false,
  130. addressTitle: null,
  131. form: {},
  132. form2: {
  133. },
  134. form3: {
  135. },
  136. data: [],
  137. option: {
  138. menuBtn: false,
  139. labelWidth: 90,
  140. disabled: false,
  141. dispatchWorkers: false,
  142. column: [
  143. {
  144. label: "客户名称",
  145. prop: "archivesId",
  146. type: "select",
  147. filterable:true,
  148. dicData:[],
  149. props: {
  150. label: 'corpName',
  151. value: 'id'
  152. },
  153. // rules: [
  154. // {
  155. // required: true,
  156. // message: "",
  157. // trigger: "blur"
  158. // }
  159. // ],
  160. change: (val) => {
  161. if(val.value == '') return
  162. for(let item of val.column.dicData) {
  163. if (val.value == item.id){
  164. this.form.corpName = item.corpName
  165. this.form.corpId = item.corpId
  166. this.form.corpTel = item.contactsTel
  167. this.form.deviceAddress = item.address
  168. this.form.corpDescribe = item.corpName
  169. // 设备名称
  170. corpequipmentarchivesitemList({pid:item.id}).then(res=>{
  171. this.findObject(this.option.column, "deviceName").dicData = res.data.data.records
  172. this.deviceList = res.data.data.records
  173. })
  174. break;
  175. }
  176. }
  177. },
  178. span: 8,
  179. },
  180. {
  181. label: "客户电话",
  182. prop: "corpTel",
  183. span: 8,
  184. rules: [
  185. {
  186. required: true,
  187. message: "",
  188. trigger: "blur"
  189. }
  190. ],
  191. },
  192. {
  193. label: "单号",
  194. prop: "sysNo",
  195. disabled:true,
  196. span: 8,
  197. },
  198. {
  199. label: "地址",
  200. prop: "deviceAddress",
  201. span: 24,
  202. rules: [
  203. {
  204. required: true,
  205. message: "",
  206. trigger: "blur"
  207. }
  208. ],
  209. },
  210. {
  211. label: "设备名称",
  212. prop: "deviceName",
  213. dicData:[],
  214. dataType: "string",
  215. type: "select",
  216. props: {
  217. label: 'cname',
  218. value: 'cname'
  219. },
  220. span: 8,
  221. change: (val) => {
  222. val.column.dicData.map(item=>{
  223. if (val.value == item.cname){
  224. this.form.deviceId = item.id
  225. this.form.deviceDescribe = item.cname
  226. this.form.categoryitem = item.categoryitem
  227. this.form.categoryitemId = item.categoryitemId
  228. this.form.factoryId = item.factoryId
  229. this.form.factoryName = item.factoryName
  230. }
  231. })
  232. },
  233. },
  234. {
  235. label: "报修日期",
  236. prop: "repairReportDate",
  237. type: "date",
  238. format: "yyyy-MM-dd",
  239. valueFormat: "yyyy-MM-dd 00:00:00",
  240. span: 8,
  241. },
  242. {
  243. label: "完成日期",
  244. prop: "completeDate",
  245. disabled: true,
  246. type: "date",
  247. format: "yyyy-MM-dd",
  248. valueFormat: "yyyy-MM-dd 00:00:00",
  249. span: 8,
  250. },
  251. {
  252. label: "故障描述",
  253. prop: "faultDescribe",
  254. type: "textarea",
  255. minRows: 3,
  256. span: 24,
  257. },
  258. {
  259. label: "维修工名称",
  260. prop: "maintenanceWorkerId",
  261. dicData:[],
  262. dataType: "string",
  263. type: "select",
  264. props: {
  265. label: 'realName',
  266. value: 'id'
  267. },
  268. span: 8,
  269. change: (val) => {
  270. if(val.value == '') return
  271. for(let item of val.column.dicData) {
  272. if (val.value == item.id){
  273. this.form.maintenanceWorkerName = item.name
  274. this.form.maintenanceWorkerTel = item.phone
  275. }
  276. }
  277. },
  278. },
  279. {
  280. label: "维修工电话",
  281. prop: "maintenanceWorkerTel",
  282. span: 8,
  283. },
  284. {
  285. label: "维修金额",
  286. prop: "maintenanceAmount",
  287. disabled:true,
  288. span: 8,
  289. type: "number",
  290. },
  291. {
  292. label: "客户描述",
  293. prop: "corpDescribe",
  294. type: "textarea",
  295. minRows: 3,
  296. span: 8,
  297. change:(val)=>{
  298. if (!this.form.corpId){
  299. this.form.corpName = val.value
  300. }
  301. }
  302. },
  303. {
  304. label: "设备描述",
  305. prop: "deviceDescribe",
  306. type: "textarea",
  307. minRows: 3,
  308. span: 8,
  309. change:(val)=>{
  310. if (!this.form.deviceId) {
  311. this.form.deviceName = val.value
  312. }
  313. }
  314. },
  315. {
  316. label: "备注",
  317. prop: "remarks",
  318. type: "textarea",
  319. minRows: 3,
  320. span: 8,
  321. }
  322. ]
  323. },
  324. // 商品信息列表配置
  325. optionList: {},
  326. // 商品产品下拉数据
  327. goodsoptions: [],
  328. // 附件
  329. maintenanceFiles: [],
  330. loading:false,
  331. };
  332. },
  333. props: {
  334. detailData: {
  335. type: Object
  336. }
  337. },
  338. components: {
  339. reportDialog
  340. },
  341. async created() {
  342. this.optionList = optionList
  343. // 获取字典数据
  344. this.getAllWorkDicts()
  345. // 查看是否要id调用详情
  346. if (this.detailData.id) {
  347. this.option.disabled = true
  348. this.getDetail(this.detailData.id);
  349. } else {
  350. // 报修日期默认当天
  351. var time = new Date();
  352. var day = ("0" + time.getDate()).slice(-2);
  353. var month = ("0" + (time.getMonth() + 1)).slice(-2);
  354. var today = time.getFullYear() + "-" + month + "-" + day;
  355. this.form.repairReportDate = today;
  356. }
  357. if (this.detailData.status == 1) {
  358. this.option.disabled = true;
  359. this.option.dispatchWorkers = true;
  360. }
  361. },
  362. methods: {
  363. // 获取下拉字典
  364. getAllWorkDicts() {
  365. // 获取地址信息
  366. // this.findObject(this.option.column, "deviceAddress").dicData = JSON.parse(localStorage.getItem('areaTypeTree'))
  367. // 获取客户名称(档案列表)
  368. corpequipmentarchivesList().then(res=>{
  369. this.findObject(this.option.column, "archivesId").dicData = res.data.data.records
  370. })
  371. bladeUserList({roleAlias:'维修工'}).then(res=>{
  372. console.log(res.data.data)
  373. this.findObject(this.option.column, "maintenanceWorkerId").dicData = res.data.data
  374. this.maintenanceWorkersList = res.data.data
  375. console.log(this.maintenanceWorkersList)
  376. })
  377. },
  378. cellStyle() {
  379. return "padding:0;height:40px;";
  380. },
  381. deviceNameChange(cname) {
  382. for (const item of this.deviceList) {
  383. if (item.cname == cname) {
  384. this.form.deviceId = item.srcId
  385. this.form.deviceDescribe = item.cname
  386. this.form.categoryitem = item.categoryitem
  387. this.form.categoryitemId = item.categoryitemId
  388. this.form.factoryId = item.factoryId
  389. this.form.factoryName = item.factoryName
  390. }
  391. }
  392. },
  393. maintenanceWorkerIdChange(id) {
  394. for (const item of this.maintenanceWorkersList) {
  395. if (item.id == id) {
  396. this.form.maintenanceWorkerName = item.name
  397. this.form.maintenanceWorkerTel = item.phone
  398. }
  399. }
  400. },
  401. // 维修项目的失焦事件
  402. amountblur(){
  403. let sum = 0
  404. this.data.map(item=>{
  405. sum += Number(item.amount)
  406. })
  407. this.form.maintenanceAmount = sum
  408. },
  409. amountChange() {
  410. let val = 0
  411. this.data.forEach(e => {
  412. val = sum(val, e.amount)
  413. this.form.purchaseAmount = val
  414. this.form.orderAmount = subtract(this.form.purchaseAmount, this.form.thisUsedProfit)
  415. })
  416. },
  417. // countChange(row) {
  418. // row.amount = multiply(row.price, row.storageInQuantity)
  419. // row.storageAmount = multiply(row.purchaseAmount, row.storageInQuantity)
  420. // let val = 0
  421. // this.data.forEach(e => {
  422. // val = sum(val, e.amount)
  423. // this.form.purchaseAmount = val
  424. // this.form.orderAmount = subtract(this.form.purchaseAmount, this.form.thisUsedProfit)
  425. // })
  426. // },
  427. // 获取详情数据
  428. getDetail(id) {
  429. this.loadingBtn = true
  430. maintenanceDetail({ id: id })
  431. .then(res => {
  432. this.form = res.data.data;
  433. this.data = res.data.data.maintenanceFees;
  434. this.maintenanceFiles = res.data.data.maintenanceFiles ? res.data.data.maintenanceFiles : [];
  435. })
  436. .finally(() => {
  437. this.loadingBtn = false;
  438. });
  439. },
  440. // 客户下拉框
  441. getCorpData(row) {
  442. if (row) {
  443. this.form.corpName = row.cname
  444. this.form.corpTel = row.tel
  445. } else {
  446. this.form.corpName = null
  447. this.form.corpTel = null
  448. }
  449. },
  450. addRow() {
  451. // this.data.push({ $cellEdit: true, storageId: this.form.storageId })
  452. this.$refs["form"].validate((valid, done) => {
  453. done();
  454. if (valid) {
  455. this.data.push({ $cellEdit: true, storageId: this.form.storageId })
  456. } else {
  457. return false;
  458. }
  459. });
  460. },
  461. rowCell(row, index) {
  462. if (!row.costName) {
  463. return this.$message.warning('维修项目不能为空');
  464. }
  465. if (!row.amount) {
  466. return this.$message.warning('金额不能我空');
  467. }
  468. if (row.$cellEdit == true) {
  469. this.$set(row, "$cellEdit", false);
  470. } else {
  471. this.$set(row, "$cellEdit", true);
  472. }
  473. },
  474. // 费用删除
  475. rowDel(row, index) {
  476. this.$confirm("确定删除数据?", {
  477. confirmButtonText: "确定",
  478. cancelButtonText: "取消",
  479. type: "warning"
  480. }).then(() => {
  481. if (row.id) {
  482. maintenanceFeesRemove({ids:row.id}).then(res => {
  483. this.$message({
  484. type: "success",
  485. message: "删除成功!"
  486. });
  487. this.data.splice(index, 1);
  488. });
  489. } else {
  490. this.$message({
  491. type: "success",
  492. message: "删除成功!"
  493. });
  494. this.data.splice(index, 1);
  495. }
  496. this.amountblur()
  497. });
  498. },
  499. //修改提交触发0 派工1 撤销派工2
  500. editCustomer(index) {
  501. this.$refs["form"].validate((valid, done) => {
  502. done();
  503. if (valid) {
  504. if (!this.form.corpName) {
  505. return this.$message.error('请维护客户描述');
  506. }
  507. if (!this.form.deviceDescribe) {
  508. return this.$message.error('请维护设备描述');
  509. }
  510. if(index == 1) {
  511. if (!this.form.maintenanceWorkerId) {
  512. return this.$message.error('请选择维修工');
  513. }
  514. if (!this.form.maintenanceWorkerTel) {
  515. return this.$message.error('请填写维修工电话');
  516. }
  517. }
  518. let arr = this.data.map(item=>{
  519. return {
  520. id:item.id?item.id:null,
  521. costId:item.costId?item.costId:null,
  522. costName:item.costName,
  523. amount:item.amount,
  524. number:1,
  525. price:item.amount,
  526. currency:'CNY',
  527. settlementAmount:item.settlementAmount?item.settlementAmount:0,
  528. remarks:item.remarks
  529. }
  530. })
  531. let list = this.maintenanceFiles.map(item=>{
  532. item.sort = 1
  533. return item
  534. })
  535. const obj = {
  536. id:this.form.id?this.form.id:null,
  537. sysNo:this.form.sysNo?this.form.sysNo:null,
  538. deviceId:this.form.deviceId,
  539. deviceName:this.form.deviceName,
  540. corpId:this.form.corpId,
  541. corpName:this.form.corpName,
  542. corpTel:this.form.corpTel,
  543. archivesId: this.form.archivesId,
  544. deviceAddress:this.form.deviceAddress,
  545. faultDescribe:this.form.faultDescribe,
  546. maintenanceWorkerId:this.form.maintenanceWorkerId,
  547. maintenanceWorkerName:this.form.maintenanceWorkerName,
  548. maintenanceWorkerTel:this.form.maintenanceWorkerTel,
  549. maintenanceAmount:this.form.maintenanceAmount,
  550. repairReportDate:this.form.repairReportDate,
  551. settlementAmount:this.form.settlementAmount?this.form.settlementAmount:0,
  552. remarks:this.form.remarks,
  553. status:this.form.status,
  554. categoryitem:this.form.categoryitem, // 功能分类
  555. factoryId:this.form.factoryId, // 工厂
  556. factoryName:this.form.factoryName, // 工厂
  557. deviceDescribe:this.form.deviceDescribe,
  558. corpDescribe:this.form.corpDescribe,
  559. categoryitemId:this.form.categoryitemId,
  560. maintenanceFees:arr,
  561. maintenanceFiles:list
  562. }
  563. this.loadingBtn = true;
  564. this.maintenanceSubmitfun(obj,index)
  565. } else {
  566. return false;
  567. }
  568. });
  569. },
  570. // 派工接口
  571. maintenanceDispatchingWorkersfun(obj){
  572. maintenanceDispatchingWorkers(obj).then(res=>{
  573. this.$message.success("派工成功");
  574. this.form = res.data.data;
  575. this.data = res.data.data.maintenanceFees;
  576. this.maintenanceFiles = res.data.data.maintenanceFiles ? res.data.data.maintenanceFiles : [];
  577. this.option.disabled = true;
  578. this.option.dispatchWorkers = true;
  579. })
  580. },
  581. // 撤销派工
  582. maintenanceRevokeDispatchingWorkersfun(obj){
  583. maintenanceRevokeDispatchingWorkers(obj).then(res=>{
  584. this.$message.success("撤销派工成功");
  585. this.form = res.data.data;
  586. this.data = res.data.data.maintenanceFees;
  587. this.maintenanceFiles = res.data.data.maintenanceFiles ? res.data.data.maintenanceFiles : [];
  588. this.option.disabled = true;
  589. this.option.dispatchWorkers = true;
  590. })
  591. },
  592. // 保存接口
  593. maintenanceSubmitfun(obj,index){
  594. maintenanceSubmit(obj).then(res => {
  595. this.form = res.data.data;
  596. // this.data = res.data.data.maintenanceFees;
  597. // this.maintenanceFiles = res.data.data.maintenanceFiles ? res.data.data.maintenanceFiles : [];
  598. this.detailData.status = 1
  599. this.option.disabled = true;
  600. this.option.dispatchWorkers = true;
  601. if (index == 0) {
  602. this.$message.success("保存成功");
  603. this.getDetail(this.form.id)
  604. }else if (index == 1) {
  605. this.maintenanceDispatchingWorkersfun(obj)
  606. }else if (index == 2) {
  607. this.maintenanceRevokeDispatchingWorkersfun(obj)
  608. }else {}
  609. this.$refs.crud.refreshTable();
  610. }).finally(() => {
  611. this.loadingBtn = false;
  612. });
  613. },
  614. async saveColumn() {
  615. const inSave = optionList
  616. if (inSave) {
  617. this.$nextTick(() => {
  618. this.$refs.crud.doLayout();
  619. });
  620. this.$message.success("保存成功");
  621. //关闭窗口
  622. this.$refs.crud.$refs.dialogColumn.columnBox = false;
  623. }
  624. },
  625. async resetColumn() {
  626. this.optionList = optionList;
  627. const inSave = optionList
  628. if (inSave) {
  629. this.$nextTick(() => {
  630. this.$refs.crud.doLayout();
  631. });
  632. this.getAllWorkDicts()
  633. this.$message.success("重置成功");
  634. this.$refs.crud.$refs.dialogColumn.columnBox = false;
  635. }
  636. },
  637. openEdit() {
  638. // this.detailData.status = 2
  639. if (this.form.dispatchingWorkers == 2) {
  640. this.option.dispatchWorkers = false
  641. } else {
  642. this.option.disabled = false
  643. }
  644. // this.option = this.$options.data().option;
  645. // this.$refs.crud.refreshTable();
  646. },
  647. //返回列表
  648. backToList() {
  649. this.$emit("goBack");
  650. },
  651. },
  652. watch: {
  653. // data: function (rows) {
  654. // let val = 0
  655. // rows.forEach(e => {
  656. // val = sum(val, e.amount)
  657. // this.form.purchaseAmount = val
  658. // this.form.orderAmount = subtract(this.form.purchaseAmount, this.form.thisUsedProfit)
  659. // })
  660. // }
  661. }
  662. };
  663. </script>
  664. <style lang="scss" scoped>
  665. .trading-form ::v-deep .el-form-item {
  666. margin-bottom: 8px !important;
  667. }
  668. ::v-deep .el-dialog__body {
  669. padding: 0px 20px 15px 20px;
  670. }
  671. ::v-deep .el-form-item__error {
  672. display: none !important;
  673. }
  674. .img-form ::v-deep .el-form-item {
  675. height: 150px;
  676. line-height: 150px;
  677. margin-bottom: 8px !important;
  678. }
  679. .img-form ::v-deep .avue-upload__icon {
  680. font-size: 20px;
  681. width: 150px;
  682. height: 150px;
  683. line-height: 150px;
  684. }
  685. ::v-deep .el-table .cell {
  686. padding: 0 2px !important;
  687. }
  688. ::v-deep .avue-crud .el-table .el-form-item__label {
  689. left: -1px;
  690. }
  691. .addressTabs {
  692. display: flex;
  693. justify-content: center;
  694. span {
  695. width: 100px;
  696. font-size: 18px;
  697. font-weight: 600;
  698. text-align: center;
  699. }
  700. }
  701. </style>