detailsPage.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809
  1. <template>
  2. <div class="borderless" v-loading="allloading">
  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" v-if="detailData.status == 1" class="el-button--small-yh "
  11. :disabled="form.status > 0" @click.stop="openEdit">编辑
  12. </el-button>
  13. <el-button class="el-button--small-yh" type="primary" :disabled="loadingBtn || detailData.status == 1"
  14. size="small" @click="editCustomer">保存数据
  15. </el-button>
  16. </div>
  17. </div>
  18. <div class="customer-main">
  19. <containerTitle title="基础资料"></containerTitle>
  20. <basic-container>
  21. <avue-form class="trading-form" ref="form" v-model="form" :option="option">
  22. <template slot="parities">
  23. <el-input-number v-model="form.parities" size="small" :controls="false" style="width: 100%"
  24. placeholder="请输入 默认汇率" :disabled="detailData.status == 1"></el-input-number>
  25. </template>
  26. <template slot="standardMoney">
  27. <el-switch v-model="form.standardMoney" :active-value="1" :inactive-value="0"
  28. :disabled="detailData.status == 1">
  29. </el-switch>
  30. </template>
  31. <!-- <template slot="paritiesType">
  32. <avue-select v-model="form.paritiesType" placeholder="请选择汇率类型" :disabled="detailData.status == 1"
  33. :dic="typeData" @change="paritiesChange"></avue-select>
  34. </template> -->
  35. <template slot="annual">
  36. <avue-date v-model="form.annual" placeholder="请选择汇率年度" :disabled="detailData.status == 1" type="year"
  37. @change="annualChange" valueFormat="yyyy"></avue-date>
  38. </template>
  39. <template v-if="form.paritiesType == '日汇率'" slot="moon">
  40. <avue-select v-model="form.moon" placeholder="请选择月份" :disabled="detailData.status == 1" :dic="MoonData"
  41. @change="MoonChange"></avue-select>
  42. </template>
  43. <template slot="button">
  44. <el-button v-if="form.code != 'CNY'" size="small" type="primary" @click="createExRate"
  45. :disabled="detailData.status == 1 || dataList.length != 0">产生汇率项目</el-button>
  46. <div v-else></div>
  47. </template>
  48. </avue-form>
  49. </basic-container>
  50. <containerTitle v-if="form.code != 'CNY'" title="基础明细"></containerTitle>
  51. <basic-container v-if="form.code != 'CNY'">
  52. <avue-crud ref="crud" v-model="crudForm" :option="optionList" id="out-table" :search.sync="search"
  53. :header-cell-class-name="headerClassName" :data="dataList" :table-loading="loading" :cell-style="cellStyle"
  54. @row-save="rowSave" @row-update="rowUpdate" @search-change="searchChange" @search-reset="resetChange"
  55. @selection-change="selectionChange">
  56. <template slot="menuLeft">
  57. <el-button type="danger" size="small" @click.stop="BatchDelete"
  58. :disabled="detailData.status == 1 || selectionList.length == 0">一键删除</el-button>
  59. </template>
  60. <template v-if="!row.$cellEdit" slot="menu" slot-scope="{row}">
  61. <el-button type="text" size="small" @click="editFun(row)">编辑
  62. </el-button>
  63. <el-button type="text" size="small" @click="rowDel(row)">删除
  64. </el-button>
  65. </template>
  66. </avue-crud>
  67. </basic-container>
  68. </div>
  69. </div>
  70. </template>
  71. <script>
  72. import { typeSave, dataDetail, delItem, bcurexrateDetails, bcurexrateList } from "@/api/iosBasicData/rateManagement";
  73. import { optionList } from "./js/optionList";
  74. import reportDialog from "@/components/report-dialog/main";
  75. export default {
  76. name: "detailsPage",
  77. data() {
  78. return {
  79. typeData: [
  80. {
  81. label: "年汇率",
  82. value: "年汇率"
  83. },
  84. {
  85. label: "月汇率",
  86. value: "月汇率"
  87. },
  88. {
  89. label: "日汇率",
  90. value: "日汇率"
  91. }
  92. ],
  93. MoonData: [
  94. {
  95. label: "一月",
  96. value: 1
  97. },
  98. {
  99. label: "二月",
  100. value: 2
  101. },
  102. {
  103. label: "三月",
  104. value: 3
  105. },
  106. {
  107. label: "四月",
  108. value: 4
  109. },
  110. {
  111. label: "五月",
  112. value: 5
  113. },
  114. {
  115. label: "六月",
  116. value: 6
  117. },
  118. {
  119. label: "七月",
  120. value: 7
  121. },
  122. {
  123. label: "八月",
  124. value: 8
  125. },
  126. {
  127. label: "九月",
  128. value: 9
  129. },
  130. {
  131. label: "十月",
  132. value: 10
  133. },
  134. {
  135. label: "十一月",
  136. value: 11
  137. },
  138. {
  139. label: "十二月",
  140. value: 12
  141. },
  142. ],
  143. time: "",
  144. search: {
  145. annual: '2024'
  146. },
  147. crudForm: {},
  148. loading: false,
  149. allloading: false,
  150. loadingBtn: false,
  151. form: {},
  152. dataList: [],
  153. drawer: false,
  154. tableHeight: 0,
  155. option: {
  156. menuBtn: false,
  157. labelWidth: 100,
  158. disabled: false,
  159. column: [
  160. {
  161. label: "货币代码",
  162. prop: "code",
  163. span: 6,
  164. rules: [{
  165. required: true,
  166. message: "请输入代码",
  167. trigger: "blur"
  168. }]
  169. },
  170. {
  171. label: "国际三字码",
  172. prop: "unCode",
  173. span: 6,
  174. },
  175. {
  176. label: "中文名称",
  177. prop: "cnName",
  178. span: 6,
  179. rules: [{
  180. required: true,
  181. message: "请输入中文名称",
  182. trigger: "blur"
  183. }]
  184. },
  185. {
  186. label: "英文名称",
  187. prop: "enName",
  188. span: 6,
  189. rules: [{
  190. required: true,
  191. message: "请输入英文名称",
  192. trigger: "blur"
  193. }]
  194. },
  195. {
  196. label: "货币符号",
  197. prop: "symbol",
  198. span: 6,
  199. },
  200. {
  201. label: "是否本币",
  202. prop: "isLocal",
  203. type: "select",
  204. span: 6,
  205. dicData: [{
  206. label: '非本币',
  207. value: 0
  208. }, {
  209. label: '本币',
  210. value: 1
  211. }],
  212. value: 0
  213. },
  214. {
  215. label: "对本币汇率",
  216. prop: "exrate",
  217. span: 6,
  218. },
  219. {
  220. label: "国家代码",
  221. prop: "cntyCode",
  222. span: 6
  223. },
  224. {
  225. label: "国家名称",
  226. prop: "cntyName",
  227. span: 6
  228. },
  229. {
  230. label: "汇率类型",
  231. prop: "paritiesType",
  232. type: "select",
  233. filterable: true,
  234. clearable: false,
  235. props: {
  236. label: "dictValue",
  237. value: "dictValue"
  238. },
  239. dicData: [
  240. {
  241. dictValue: "年汇率",
  242. dictKey: 0
  243. },
  244. {
  245. dictValue: "月汇率",
  246. dictKey: 1
  247. },
  248. {
  249. dictValue: "日汇率",
  250. dictKey: 2
  251. }
  252. ],
  253. span: 6,
  254. },
  255. {
  256. label: "汇率年度",
  257. prop: "annual",
  258. type: "year",
  259. valueFormat: "yyyy",
  260. span: 6,
  261. },
  262. {
  263. label: "月份",
  264. prop: "moon",
  265. span: 6,
  266. display: false,
  267. },
  268. {
  269. label: "状态",
  270. prop: "status",
  271. span: 6,
  272. type: "select",
  273. dicData: [{
  274. label: '启用',
  275. value: 0
  276. }, {
  277. label: '停用',
  278. value: 1
  279. }],
  280. value: 0
  281. },
  282. {
  283. label: "备注",
  284. prop: "remarks",
  285. type: 'textarea',
  286. width: "180",
  287. span: 24,
  288. minRows: 3,
  289. slot: true
  290. },
  291. {
  292. prop: "button",
  293. span: 6
  294. }
  295. ]
  296. },
  297. optionList: optionList,
  298. selectionList: [],
  299. };
  300. },
  301. props: {
  302. detailData: {
  303. type: Object
  304. }
  305. },
  306. components: {
  307. reportDialog
  308. },
  309. created() {
  310. this.$set(this.form, "standardMoney", 0);
  311. if (this.detailData.id) {
  312. this.getDetail(this.detailData.id);
  313. }
  314. if (this.detailData.status == 1) {
  315. this.$set(this.option, 'disabled', true)
  316. }
  317. this.optionList.height = 450;
  318. },
  319. methods: {
  320. selectionChange(list) {
  321. this.selectionList = list
  322. },
  323. // paritiesChange(row) {
  324. // let obj = {
  325. // current: 1,
  326. // size: 20,
  327. // type: row,
  328. // code: this.form.code,
  329. // exrateYear: this.form.annual,
  330. // }
  331. // if (row == "日汇率") {
  332. // this.findObject(this.option.column, "moon").display = true;
  333. // this.search.annual = this.form.annual
  334. // this.search.moon = this.form.moon
  335. // this.search.paritiesType = row
  336. // } else if (row == "月汇率") {
  337. // this.findObject(this.option.column, "moon").display = false;
  338. // this.search.annual = this.form.annual
  339. // this.search.moon = null
  340. // this.form.moon=null
  341. // this.search.paritiesType = row
  342. // } else {
  343. // this.findObject(this.option.column, "moon").display = false;
  344. // this.search.annual = this.form.annual
  345. // this.search.moon = null
  346. // this.form.moon=null
  347. // this.search.paritiesType = row
  348. // }
  349. // },
  350. annualChange(row) {
  351. this.search.annual = row
  352. this.search.moon = this.form.moon
  353. this.search.paritiesType = this.form.paritiesType
  354. this.searchChange(this.search)
  355. },
  356. MoonChange(row) {
  357. this.search.annual = this.form.annual
  358. this.search.moon = row
  359. this.search.paritiesType = this.form.paritiesType
  360. this.searchChange(this.search)
  361. },
  362. searchChange(params, done) {
  363. // if (params.paritiesType == "日汇率") {
  364. // this.findObject(this.option.column, "moon").display = true;
  365. // // this.findObject(this.option.column, "annual").display = false;
  366. // } else {
  367. // this.findObject(this.option.column, "moon").display = false;
  368. // // this.findObject(this.option.column, "annual").display = true;
  369. // }
  370. let obj = {
  371. current: 1,
  372. size: 35,
  373. type: params.paritiesType,
  374. code: this.form.code,
  375. exrateYear: params.annual,
  376. exrateMonth: params.moon
  377. }
  378. bcurexrateList(obj).then(res => {
  379. this.dataList = res.data.data.records;
  380. done();
  381. })
  382. },
  383. resetChange() {
  384. },
  385. // 编辑明细
  386. editFun(row) {
  387. console.log(row, '编辑')
  388. this.$refs.crud.rowCell(row, row.$index)
  389. },
  390. // 编辑点击保存
  391. rowSave(row, done, loading) {
  392. done(row)
  393. },
  394. // 编辑点击保存
  395. rowUpdate(row, index, done, loading) {
  396. done(row);
  397. },
  398. // 批量删除
  399. BatchDelete() {
  400. if (this.selectionList.length === 0) {
  401. this.$message.warning("请选择至少一条数据");
  402. return;
  403. }
  404. this.$confirm("确定将选择数据删除?", {
  405. confirmButtonText: "确定",
  406. cancelButtonText: "取消",
  407. type: "warning"
  408. }).then(() => {
  409. let arrId = this.selectionList.map(item => {
  410. return item.id
  411. })
  412. bcurexrateDetails(arrId.join(',')).then(res => {
  413. this.$message.success('操作成功')
  414. this.searchChange(this.search)
  415. })
  416. })
  417. },
  418. // 删除
  419. rowDel(row) {
  420. this.$confirm("确定将选择数据删除?", {
  421. confirmButtonText: "确定",
  422. cancelButtonText: "取消",
  423. type: "warning"
  424. }).then(() => {
  425. bcurexrateDetails(row.id).then(res => {
  426. this.$message.success('操作成功')
  427. this.dataList.splice(row.$index, 1)
  428. })
  429. })
  430. },
  431. cellStyle() {
  432. return "padding:0;height:40px;";
  433. },
  434. // 详情
  435. getDetail(id) {
  436. this.allloading = true
  437. dataDetail(id)
  438. .then(res => {
  439. this.form = res.data.data
  440. this.form.annual = this.form.annual + ''
  441. })
  442. .finally(() => {
  443. this.allloading = false;
  444. });
  445. },
  446. //修改提交触发
  447. editCustomer() {
  448. this.$refs["form"].validate((valid, done) => {
  449. console.log(this.dataList);
  450. done();
  451. if (valid) {
  452. this.loadingBtn = true;
  453. if (this.form.id) {
  454. // delItem({ id: this.form.id }).then(res => {
  455. // if (res.data.code == 200) {
  456. typeSave({
  457. ...this.form,
  458. curExrateList: this.dataList
  459. })
  460. .then(res => {
  461. this.$message.success("保存成功");
  462. this.getDetail(res.data.data.id);
  463. })
  464. .finally(() => {
  465. this.loadingBtn = false;
  466. });
  467. // }
  468. // });
  469. } else {
  470. typeSave({
  471. ...this.form,
  472. curExrateList: this.dataList
  473. })
  474. .then(res => {
  475. this.$message.success("保存成功");
  476. this.getDetail(res.data.data.id);
  477. })
  478. .finally(() => {
  479. this.loadingBtn = false;
  480. });
  481. }
  482. } else {
  483. return false;
  484. }
  485. });
  486. },
  487. openEdit() {
  488. this.$set(this.detailData, 'status', 2)
  489. this.$set(this.option, 'disabled', false)
  490. // const data = {
  491. // moduleName: "xxb",
  492. // tableName: "primary_school",
  493. // billId: this.form.id,
  494. // no: localStorage.getItem("browserID"),
  495. // billNo: this.form.exrateYear + "-" + this.form.moon
  496. // };
  497. // this.checkLock(data).then(res => {
  498. // if (res.data.code == 200) {
  499. // 上锁接口
  500. // this.onLock(data).then(re => {
  501. // if (re.data.code == 200) {
  502. // this.$set(this.detailData,'status',2)
  503. // this.$set(this.option,'disabled',false)
  504. // // this.option = this.$options.data().option;
  505. // }
  506. // });
  507. // }
  508. // });
  509. },
  510. //返回列表
  511. backToList() {
  512. if (this.form.id) {
  513. this.unLock({
  514. moduleName: "xxb",
  515. tableName: "primary_school",
  516. billId: this.form.id,
  517. billNo: this.form.exrateYear + "-" + this.form.moon
  518. });
  519. }
  520. this.$emit("goBack");
  521. this.leaveDetailsKey(this.$route.name);
  522. },
  523. // 产生汇率项目
  524. createExRate() {
  525. this.$refs["form"].validate((valid, done) => {
  526. done();
  527. if (valid) {
  528. this.toggleForm();
  529. const loading = this.$loading({
  530. lock: true,
  531. text: '加载中',
  532. spinner: 'el-icon-loading',
  533. background: 'rgba(255,255,255,0.7)'
  534. });
  535. // 拿有id 的数据
  536. // let arrId = []
  537. // for (let item of this.dataList) {
  538. // if (item.id) {
  539. // arrId.push(item.id)
  540. // }
  541. // }
  542. // // 删除有ID的数据
  543. // bcurexrateDetails(arrId.join(',')).then(res=>{})
  544. this.dataList = [];
  545. if (this.form.paritiesType == "年汇率") {
  546. const loading = this.$loading({
  547. lock: true,
  548. text: '加载中',
  549. spinner: 'el-icon-loading',
  550. background: 'rgba(255,255,255,0.7)'
  551. });
  552. this.form.exrateMonth = "";
  553. const data = {
  554. exrateYear: this.form.annual,
  555. exrateReceivable: this.form.exrate,
  556. exratePayable: this.form.exrate,
  557. exrateReceipts: this.form.exrate,
  558. exratePayment: this.form.exrate,
  559. code: this.form.code,
  560. cnName: this.form.cnName,
  561. enName: this.form.enName,
  562. type: this.form.paritiesType
  563. };
  564. this.dataList.push(data);
  565. typeSave({
  566. ...this.form,
  567. curExrateList: this.dataList
  568. }).then(res => {
  569. this.$message.success("操作成功");
  570. this.getDetail(res.data.data.id);
  571. }).finally(() => {
  572. this.loadingBtn = false;
  573. loading.close();
  574. });
  575. } else if (this.form.paritiesType == "月汇率") {
  576. const loading = this.$loading({
  577. lock: true,
  578. text: '加载中',
  579. spinner: 'el-icon-loading',
  580. background: 'rgba(255,255,255,0.7)'
  581. });
  582. this.form.exrateMonth = "";
  583. for (let i = 1; i <= 12; i++) {
  584. const data = {
  585. exrateYear: this.form.annual,
  586. // exrateMonth: i + "月",
  587. exrateMonth: i,
  588. exrateReceivable: this.form.exrate,
  589. exratePayable: this.form.exrate,
  590. exrateReceipts: this.form.exrate,
  591. exratePayment: this.form.exrate,
  592. code: this.form.code,
  593. cnName: this.form.cnName,
  594. enName: this.form.enName,
  595. type: this.form.paritiesType
  596. };
  597. this.dataList.push(data);
  598. }
  599. typeSave({
  600. ...this.form,
  601. curExrateList: this.dataList
  602. }).then(res => {
  603. this.$message.success("操作成功");
  604. this.getDetail(res.data.data.id);
  605. }).finally(() => {
  606. this.loadingBtn = false;
  607. loading.close();
  608. });
  609. } else if (this.form.paritiesType == "日汇率") {
  610. const loading = this.$loading({
  611. lock: true,
  612. text: '加载中',
  613. spinner: 'el-icon-loading',
  614. background: 'rgba(255,255,255,0.7)'
  615. });
  616. const days = this.getCountDays(this.form.annual, this.form.moon);
  617. for (let i = 1; i <= days; i++) {
  618. const data = {
  619. exrateYear: this.form.annual,
  620. // exrateMonth: this.form.moon + "月",
  621. exrateMonth: this.form.moon,
  622. // exrateDay: i + "号",
  623. exrateDay: i,
  624. exrateReceivable: this.form.exrate,
  625. exratePayable: this.form.exrate,
  626. exrateReceipts: this.form.exrate,
  627. exratePayment: this.form.exrate,
  628. code: this.form.code,
  629. cnName: this.form.cnName,
  630. enName: this.form.enName,
  631. };
  632. this.dataList.push(data);
  633. }
  634. typeSave({
  635. ...this.form,
  636. curExrateList: this.dataList
  637. }).then(res => {
  638. this.$message.success("操作成功");
  639. this.getDetail(res.data.data.id);
  640. }).finally(() => {
  641. this.loadingBtn = false;
  642. loading.close();
  643. });
  644. }
  645. }
  646. });
  647. },
  648. // 获取一个月的天数
  649. getCountDays(curDate, month) {
  650. let date = new Date(curDate);
  651. date.setMonth(month);
  652. date.setDate(0);
  653. return date.getDate();
  654. },
  655. toggleForm() {
  656. if (this.form.paritiesType == "日汇率") {
  657. // this.findObject(this.optionList.column, "exrateDay").hide = false;
  658. this.findObject(this.optionList.column, "exrateMonth").hide = false;
  659. } else if (this.form.paritiesType == "月汇率") {
  660. // this.findObject(this.optionList.column, "exrateDay").hide = true;
  661. this.findObject(this.optionList.column, "exrateMonth").hide = false;
  662. } else {
  663. // this.findObject(this.optionList.column, "exrateDay").hide = true;
  664. this.findObject(this.optionList.column, "exrateMonth").hide = true;
  665. }
  666. },
  667. // 更改表格颜色
  668. headerClassName(tab) {
  669. //颜色间隔
  670. let back = ""
  671. if (tab.columnIndex >= 0 && tab.column.level === 1) {
  672. if (tab.columnIndex % 2 === 0) {
  673. back = "back-one"
  674. } else if (tab.columnIndex % 2 === 1) {
  675. back = "back-two"
  676. }
  677. }
  678. return back;
  679. },
  680. },
  681. watch: {
  682. "form.paritiesType": {
  683. // 执行方法
  684. handler(row, newValue) {
  685. let obj = {
  686. current: 1,
  687. size: 20,
  688. type: row,
  689. code: this.form.code,
  690. exrateYear: this.form.annual,
  691. }
  692. if (row == "日汇率") {
  693. this.findObject(this.option.column, "moon").display = true;
  694. this.search.annual = this.form.annual
  695. this.search.moon = this.form.moon
  696. this.search.paritiesType = row
  697. // this.searchChange(this.search)
  698. // console.log("日汇率", this.search)
  699. // this.findObject(this.option.column, "annual").display = false;
  700. } else if (row == "月汇率") {
  701. this.findObject(this.option.column, "moon").display = false;
  702. this.search.annual = this.form.annual
  703. this.search.moon = null
  704. this.form.moon=null
  705. this.search.paritiesType = row
  706. // this.searchChange(this.search)
  707. // console.log("月汇率", this.search)
  708. // this.findObject(this.option.column, "annual").display = false;
  709. } else {
  710. // this.findObject(this.option.column, "moon").display = false;
  711. this.search.annual = this.form.annual
  712. this.search.moon = null
  713. this.form.moon=null
  714. this.search.paritiesType = row
  715. // this.searchChange(this.search)
  716. // console.log("年汇率", this.search)
  717. // this.findObject(this.option.column, "annual").display = true;
  718. }
  719. if (this.form.code) {
  720. // 查明细信息
  721. obj={...obj,...this.search}
  722. this.searchChange(obj)
  723. }
  724. },
  725. deep: false, // 深度监听
  726. immediate: false // 第一次改变就执行
  727. },
  728. // "form.annual": {
  729. // // 执行方法
  730. // handler(row, newValue) {
  731. // this.search.annual = row
  732. // this.search.moon = this.form.moon
  733. // this.search.paritiesType = this.form.paritiesType
  734. // this.searchChange(this.search)
  735. // },
  736. // deep: false, // 深度监听
  737. // immediate: false // 第一次改变就执行
  738. // },
  739. // "form.moon": {
  740. // // 执行方法
  741. // handler(row, newValue) {
  742. // this.search.annual = this.form.annual
  743. // this.search.moon = row
  744. // this.search.paritiesType = this.form.paritiesType
  745. // this.searchChange(this.search)
  746. // },
  747. // deep: false, // 深度监听
  748. // immediate: false // 第一次改变就执行
  749. // },
  750. "search.paritiesType": {
  751. handler(row, newValue) {
  752. if (row == "日汇率") {
  753. this.findObject(this.optionList.column, "moon").search = true;
  754. // this.findObject(this.option.column, "annual").display = false;
  755. } else {
  756. this.findObject(this.optionList.column, "moon").search = false;
  757. this.search.moon = ''
  758. // this.findObject(this.option.column, "annual").display = false;
  759. }
  760. },
  761. deep: false, // 深度监听
  762. immediate: false // 第一次改变就执行
  763. }
  764. }
  765. };
  766. </script>
  767. <style lang="scss" scoped>
  768. .trading-form ::v-deep .el-form-item {
  769. margin-bottom: 4px !important;
  770. }
  771. ::v-deep .el-form-item__error {
  772. display: none !important;
  773. }
  774. .schoolupload ::v-deep .el-upload-list {
  775. display: none;
  776. }
  777. .abnormal ::v-deep .el-dialog__body {
  778. padding: 10px 20px;
  779. }
  780. ::v-deep#out-table .back-one {
  781. background: #ecf5ff !important;
  782. }
  783. ::v-deep#out-table .back-two {
  784. background: #ecf5ff !important;
  785. }
  786. .headerCellClass {
  787. color: #fff !important;
  788. background: #a4cf57 !important;
  789. }
  790. </style>