index.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759
  1. <template>
  2. <div class="pageIndexClass">
  3. <div class="content">
  4. <byTable :source="sourceList.data" :pagination="sourceList.pagination" :config="config" :loading="loading" :selectConfig="selectConfig"
  5. highlight-current-row :action-list="[
  6. {
  7. text: '新建报价单',
  8. action: () => newPriceSheet(),
  9. },
  10. ]" @get-list="getList">
  11. <template #code="{ item }">
  12. <div style="width: 100%">
  13. <a style="color: #409eff; cursor: pointer; word-break: break-all" @click="pushProcessApproval(item)">{{ item.code }}</a>
  14. </div>
  15. </template>
  16. <template #amount="{ item }">
  17. <div>
  18. <span style="padding-right: 4px">{{ item.currency }}</span>
  19. <span>{{ moneyFormat(item.amount, 2) }}</span>
  20. </div>
  21. </template>
  22. <template #advanceRatio="{ item }">
  23. <div>
  24. <span>{{ item.advanceRatio }}%</span>
  25. </div>
  26. </template>
  27. <template #status="{ item }">
  28. <div>
  29. <span :style="getStyle(item.status)">{{
  30. dictValueLabel(item.status, status)
  31. }}</span>
  32. </div>
  33. </template>
  34. </byTable>
  35. </div>
  36. <el-dialog title="打印" v-if="openPrint" v-model="openPrint" width="860">
  37. <div id="printMe">
  38. <div id="pdfDom" style="width: 800px; padding: 16px; font-size: 12px !important">
  39. <div style="font-size: 18px; text-align: center">
  40. {{
  41. getLabel(
  42. printDetails.sellCorporationId,
  43. corporationList,
  44. "nameEn"
  45. )
  46. }}
  47. </div>
  48. <div style="text-align: center">
  49. {{ printDetails.sellCountryName }},{{
  50. printDetails.sellProvinceName
  51. }},{{ printDetails.sellCityName }},{{ printDetails.sellAddress }}
  52. </div>
  53. <div style="
  54. font-size: 14px;
  55. color: #409eff;
  56. text-align: center;
  57. padding-top: 16px;
  58. ">
  59. QUOTATION
  60. </div>
  61. <div style="padding-top: 8px">
  62. <div>Reference NO. : {{ printDetails.code }}</div>
  63. <div style="display: flex">
  64. <div style="width: 50%">
  65. DATE:
  66. {{ moment(printDetails.createTime).format("DD/MMM/yyyy") }}
  67. </div>
  68. <div style="width: 50%">Valid Date:</div>
  69. </div>
  70. </div>
  71. <div style="border: 1px solid black; display: flex">
  72. <div style="width: 50%; border-right: 1px solid black">
  73. <div style="color: #409eff">VENDOR:</div>
  74. <div>
  75. {{
  76. getLabel(
  77. printDetails.sellCorporationId,
  78. corporationList,
  79. "nameEn"
  80. )
  81. }}
  82. </div>
  83. <div style="padding: 16px 0">
  84. {{ printDetails.sellCountryName }},{{
  85. printDetails.sellProvinceName
  86. }},{{ printDetails.sellCityName }},{{
  87. printDetails.sellAddress
  88. }}
  89. </div>
  90. <div>
  91. {{ printDetails.sellContactName }},{{
  92. printDetails.sellContactNumber
  93. }}
  94. </div>
  95. </div>
  96. <div style="width: 50%">
  97. <div style="color: #409eff">BUYER:</div>
  98. <div>
  99. {{
  100. getLabel(printDetails.buyCorporationId, customerList, "name")
  101. }}
  102. </div>
  103. <div style="padding: 16px 0">
  104. {{ printDetails.buyCountryName }},{{
  105. printDetails.buyProvinceName
  106. }},{{ printDetails.buyCityName }},{{ printDetails.buyAddress }}
  107. </div>
  108. <div>
  109. {{ printDetails.buyContactName }},{{
  110. printDetails.buyContactNumber
  111. }}
  112. </div>
  113. </div>
  114. </div>
  115. <div style="height: 16px"></div>
  116. <div style="border: 1px solid black">
  117. <div style="display: flex; width: 100%">
  118. <div style="
  119. width: 33%;
  120. border-bottom: 1px solid black;
  121. border-right: 1px solid black;
  122. ">
  123. <div style="color: #409eff">COUNTRY OF ORIGIN:</div>
  124. <div>{{ printDetails.sellCountryName }}</div>
  125. </div>
  126. <div style="
  127. width: 34%;
  128. border-bottom: 1px solid black;
  129. border-right: 1px solid black;
  130. ">
  131. <div style="color: #409eff">COUNTRY OF DESTINATION:</div>
  132. <div>{{ printDetails.buyCountryName }}</div>
  133. </div>
  134. <div style="width: 33%; border-bottom: 1px solid black">
  135. <div style="color: #409eff">PLACE OF DISCHARGE:</div>
  136. <div>{{ printDetails.transportRemark }}</div>
  137. </div>
  138. </div>
  139. <div style="display: flex; width: 100%">
  140. <div style="
  141. width: 33%;
  142. border-bottom: 1px solid black;
  143. border-right: 1px solid black;
  144. ">
  145. <div style="color: #409eff">TERMS OF DELIVERY:</div>
  146. <div>
  147. {{ dictValueLabel(printDetails.tradeMethods, tradeMethods) }}
  148. </div>
  149. </div>
  150. <div style="
  151. width: 34%;
  152. border-bottom: 1px solid black;
  153. border-right: 1px solid black;
  154. ">
  155. <div style="color: #409eff">CURRENCY:</div>
  156. <div>
  157. {{ dictValueLabel(printDetails.currency, accountCurrency) }}
  158. </div>
  159. </div>
  160. <div style="width: 33%; border-bottom: 1px solid black">
  161. <div style="color: #409eff">EXPORT BY/VIA:</div>
  162. <div>
  163. {{
  164. dictValueLabel(printDetails.transportMethod, shippingMethod)
  165. }}
  166. </div>
  167. </div>
  168. </div>
  169. <div style="display: flex; width: 100%">
  170. <div style="width: 33%; border-right: 1px solid black">
  171. <div style="color: #409eff">DELIVERY TIME:</div>
  172. </div>
  173. <div style="width: 67%">
  174. <div style="color: #409eff">TERMS OF PAYMENT:</div>
  175. <div>{{ printDetails.remark }}</div>
  176. </div>
  177. </div>
  178. </div>
  179. <div style="height: 16px"></div>
  180. <div class="baseRow" style="display: flex; color: #409eff">
  181. <div class="contentRow" style="width: 50px; text-align: center">
  182. NO.
  183. </div>
  184. <div class="contentRow" style="width: calc(100% - 450px); text-align: center">
  185. COMMODITY, SPECIFICATION
  186. </div>
  187. <div class="contentRow" style="width: 100px; text-align: center">
  188. UNIT
  189. </div>
  190. <div class="contentRow" style="width: 100px; text-align: center">
  191. QUANTITY
  192. </div>
  193. <div class="contentRow" style="width: 100px; text-align: center">
  194. UNIT PRICE
  195. </div>
  196. <div class="contentRow" style="width: 100px; text-align: center">
  197. TOTAL PRICE
  198. </div>
  199. </div>
  200. <div v-if="
  201. printDetails.quotationProductList &&
  202. printDetails.quotationProductList.length > 0
  203. ">
  204. <div class="baseRow" style="display: flex" v-for="(item, index) in printDetails.quotationProductList" :key="item.productId">
  205. <div class="contentRow" style="width: 50px; text-align: center">
  206. {{ index + 1 }}
  207. </div>
  208. <div class="contentRow" style="width: calc(100% - 450px); text-align: center">
  209. {{ item.productName }}
  210. </div>
  211. <div class="contentRow" style="width: 100px; text-align: center">
  212. {{ item.productUnit }}
  213. </div>
  214. <div class="contentRow" style="width: 100px; text-align: center">
  215. {{ item.quantity }}
  216. </div>
  217. <div class="contentRow" style="width: 100px; text-align: center">
  218. {{ item.price }}
  219. </div>
  220. <div class="contentRow" style="width: 100px; text-align: center">
  221. {{ item.amount }}
  222. </div>
  223. </div>
  224. </div>
  225. <div class="baseRow" style="display: flex; color: #409eff">
  226. <div class="contentRow" style="width: calc(100% - 400px); text-align: center">
  227. SUBTOTAL:
  228. </div>
  229. <div class="contentRow" style="width: 100px; text-align: center"></div>
  230. <div class="contentRow" style="width: 100px; text-align: center">
  231. {{ statistics("quantity", 0) }}
  232. </div>
  233. <div class="contentRow" style="width: 100px; text-align: center"></div>
  234. <div class="contentRow" style="width: 100px; text-align: center">
  235. {{ statistics("amount", 2) }}
  236. </div>
  237. </div>
  238. <div v-if="
  239. printDetails.quotationPayList &&
  240. printDetails.quotationPayList.length > 0
  241. ">
  242. <div class="baseRow" style="display: flex" v-for="(item, index) in printDetails.quotationPayList" :key="index">
  243. <div class="contentRow" style="
  244. width: calc(100% - 100px);
  245. text-align: right;
  246. color: #409eff;
  247. ">
  248. {{ item.payName }}:
  249. </div>
  250. <div class="contentRow" style="width: 100px; text-align: center">
  251. {{ item.amount }}
  252. </div>
  253. </div>
  254. </div>
  255. <div class="baseRow" style="display: flex">
  256. <div class="contentRow" style="
  257. width: calc(100% - 100px);
  258. text-align: right;
  259. color: #409eff;
  260. ">
  261. TOTAL PRICE:
  262. </div>
  263. <div class="contentRow" style="width: 100px; text-align: center">
  264. {{ getAllMoney(statistics("amount", 2)) }}
  265. </div>
  266. </div>
  267. <div class="baseRow" style="display: flex; border-bottom: 1px solid black">
  268. <div class="contentRow" style="width: 100%">
  269. {{
  270. translateIntoEnglish(printDetails.amount, printDetails.currency)
  271. }}
  272. </div>
  273. </div>
  274. <!-- <div style="height: 16px"></div>
  275. <div class="baseRow" style="color: #409eff">
  276. <div class="contentRow" style="width: 100%">ACCOUNT INFORMATION:</div>
  277. </div>
  278. <div class="baseRow" style="border-bottom: 1px solid black">
  279. <div class="contentRow" style="width: 100%">
  280. <div style="line-height: 24px; padding-left: 4px; word-break: break-all; word-wrap: break-word">
  281. Beneficiary Name: {{ printDetails.beneficiaryName }}
  282. </div>
  283. <div style="line-height: 24px; padding-left: 4px; word-break: break-all; word-wrap: break-word">
  284. Beneficiary Bank: {{ printDetails.beneficiaryBank }}
  285. </div>
  286. <div style="line-height: 24px; padding-left: 4px; word-break: break-all; word-wrap: break-word">
  287. Beneficiary Bank Address: {{ printDetails.beneficiaryBankAddress }}
  288. </div>
  289. <div style="line-height: 24px; padding-left: 4px; word-break: break-all; word-wrap: break-word">
  290. Beneficiary Account Number: {{ printDetails.beneficiaryAccountNumber }}
  291. </div>
  292. <div style="line-height: 24px; padding-left: 4px; word-break: break-all; word-wrap: break-word">Swift Code: {{ printDetails.swiftCode }}</div>
  293. <div style="line-height: 24px; padding-left: 4px; word-break: break-all; word-wrap: break-word">
  294. Beneficiary Address: {{ printDetails.beneficiaryAddress }}
  295. </div>
  296. </div>
  297. </div> -->
  298. <div style="height: 32px"></div>
  299. <div style="display: flex">
  300. <div style="width: 50%">
  301. <div style="color: #409eff">CONFIRMED BY VENDOR:</div>
  302. <div>
  303. {{
  304. getLabel(
  305. printDetails.sellCorporationId,
  306. corporationList,
  307. "nameEn"
  308. )
  309. }}
  310. </div>
  311. </div>
  312. <div style="width: 50%">
  313. <div style="color: #409eff">CONFIRMED BY BUYER:</div>
  314. <div>
  315. {{
  316. getLabel(printDetails.buyCorporationId, customerList, "name")
  317. }}
  318. </div>
  319. </div>
  320. </div>
  321. </div>
  322. </div>
  323. <template #footer>
  324. <el-button @click="openPrint = false" size="default">取消</el-button>
  325. <el-button v-print="printObj" size="default">打印</el-button>
  326. <el-button type="primary" @click="clickDownload()" size="default">下载PDF</el-button>
  327. </template>
  328. </el-dialog>
  329. </div>
  330. </template>
  331. <script setup>
  332. import { computed, ref } from "vue";
  333. import byTable from "@/components/byTable/index";
  334. import moment from "moment";
  335. import useUserStore from "@/store/modules/user";
  336. const route = useRoute();
  337. const { proxy } = getCurrentInstance();
  338. const accountList = ref([]);
  339. const corporationList = ref([]);
  340. const customerList = ref([]);
  341. const tradeMethods = ref([]);
  342. const accountCurrency = ref([]);
  343. const shippingMethod = ref([]);
  344. const status = ref([
  345. {
  346. label: "草稿",
  347. value: 0,
  348. },
  349. {
  350. label: "审批中",
  351. value: 10,
  352. },
  353. {
  354. label: "驳回",
  355. value: 20,
  356. },
  357. {
  358. label: "审批通过",
  359. value: 30,
  360. },
  361. {
  362. label: "终止",
  363. value: 99,
  364. },
  365. ]);
  366. const sourceList = ref({
  367. data: [],
  368. pagination: {
  369. total: 0,
  370. pageNum: 1,
  371. pageSize: 10,
  372. keyword: "",
  373. status: "",
  374. sellCorporationId: "",
  375. },
  376. });
  377. const loading = ref(false);
  378. const selectConfig = computed(() => {
  379. return [
  380. {
  381. label: "审批状态",
  382. prop: "status",
  383. data: status.value,
  384. },
  385. {
  386. label: "业务公司",
  387. prop: "sellCorporationId",
  388. data: corporationList.value,
  389. },
  390. ];
  391. });
  392. const config = computed(() => {
  393. return [
  394. {
  395. attrs: {
  396. label: "报价单号",
  397. slot: "code",
  398. width: 200,
  399. },
  400. },
  401. {
  402. attrs: {
  403. label: "业务公司",
  404. prop: "sellCorporationId",
  405. "min-width": 220,
  406. },
  407. render(type) {
  408. let text = "";
  409. if (corporationList.value && corporationList.value.length > 0) {
  410. let data = corporationList.value.filter((item) => item.value == type);
  411. if (data && data.length > 0) {
  412. text = data[0].label;
  413. }
  414. }
  415. return text;
  416. },
  417. },
  418. {
  419. attrs: {
  420. label: "报价人",
  421. prop: "userName",
  422. width: 160,
  423. },
  424. },
  425. {
  426. attrs: {
  427. label: "报价时间",
  428. prop: "createTime",
  429. width: 160,
  430. },
  431. },
  432. {
  433. attrs: {
  434. label: "客户名称",
  435. prop: "buyCorporationId",
  436. "min-width": 220,
  437. },
  438. render(type) {
  439. let text = "";
  440. if (customerList.value && customerList.value.length > 0) {
  441. let data = customerList.value.filter((item) => item.value == type);
  442. if (data && data.length > 0) {
  443. text = data[0].label;
  444. }
  445. }
  446. return text;
  447. },
  448. },
  449. {
  450. attrs: {
  451. label: "报价金额",
  452. slot: "amount",
  453. width: 140,
  454. },
  455. },
  456. {
  457. attrs: {
  458. label: "预付比例",
  459. slot: "advanceRatio",
  460. width: 120,
  461. },
  462. },
  463. {
  464. attrs: {
  465. label: "审批状态",
  466. prop: "status",
  467. width: 140,
  468. slot: "status",
  469. },
  470. },
  471. {
  472. attrs: {
  473. label: "操作",
  474. width: "180",
  475. align: "center",
  476. fixed: "right",
  477. },
  478. renderHTML(row) {
  479. return [
  480. {
  481. attrs: {
  482. label: "复制",
  483. type: "primary",
  484. text: true,
  485. },
  486. el: "button",
  487. click() {
  488. clickCopy(row);
  489. },
  490. },
  491. {
  492. attrs: {
  493. label: "打印",
  494. type: "primary",
  495. text: true,
  496. },
  497. el: "button",
  498. click() {
  499. clickPrint(row);
  500. },
  501. },
  502. row.status == 30
  503. ? {
  504. attrs: {
  505. label: "生成合同",
  506. type: "primary",
  507. text: true,
  508. },
  509. el: "button",
  510. click() {
  511. generateContract(row);
  512. },
  513. }
  514. : {},
  515. ];
  516. },
  517. },
  518. ];
  519. });
  520. const getDict = () => {
  521. proxy
  522. .post("/saleQuotation/page", { pageNum: 1, pageSize: 999 })
  523. .then((res) => {
  524. accountList.value = res.rows.map((item) => {
  525. return {
  526. label: item.alias,
  527. value: item.id,
  528. };
  529. });
  530. });
  531. proxy.post("/corporation/page", { pageNum: 1, pageSize: 999 }).then((res) => {
  532. corporationList.value = res.rows.map((item) => {
  533. return {
  534. ...item,
  535. label: item.name,
  536. value: item.id,
  537. };
  538. });
  539. });
  540. proxy.post("/customer/page", { pageNum: 1, pageSize: 999 }).then((res) => {
  541. customerList.value = res.rows.map((item) => {
  542. return {
  543. ...item,
  544. label: item.name,
  545. value: item.id,
  546. };
  547. });
  548. });
  549. proxy
  550. .post("/dictTenantData/page", {
  551. pageNum: 1,
  552. pageSize: 999,
  553. dictCode: "trade_mode",
  554. tenantId: useUserStore().user.tenantId,
  555. })
  556. .then((res) => {
  557. if (res.rows && res.rows.length > 0) {
  558. tradeMethods.value = res.rows.map((item) => {
  559. return {
  560. label: item.dictValue,
  561. value: item.dictKey,
  562. };
  563. });
  564. }
  565. });
  566. proxy
  567. .post("/dictTenantData/page", {
  568. pageNum: 1,
  569. pageSize: 999,
  570. dictCode: "account_currency",
  571. tenantId: useUserStore().user.tenantId,
  572. })
  573. .then((res) => {
  574. if (res.rows && res.rows.length > 0) {
  575. accountCurrency.value = res.rows.map((item) => {
  576. return {
  577. label: item.dictValue,
  578. value: item.dictKey,
  579. };
  580. });
  581. }
  582. });
  583. proxy
  584. .post("/dictTenantData/page", {
  585. pageNum: 1,
  586. pageSize: 999,
  587. dictCode: "shipping_method",
  588. tenantId: useUserStore().user.tenantId,
  589. })
  590. .then((res) => {
  591. if (res.rows && res.rows.length > 0) {
  592. shippingMethod.value = res.rows.map((item) => {
  593. return {
  594. label: item.dictValue,
  595. value: item.dictKey,
  596. };
  597. });
  598. }
  599. });
  600. };
  601. const getList = async (req) => {
  602. sourceList.value.pagination = { ...sourceList.value.pagination, ...req };
  603. loading.value = true;
  604. proxy.post("/saleQuotation/page", sourceList.value.pagination).then((res) => {
  605. sourceList.value.data = res.rows;
  606. sourceList.value.pagination.total = res.total;
  607. setTimeout(() => {
  608. loading.value = false;
  609. }, 200);
  610. });
  611. };
  612. getDict();
  613. if (route.query.code) {
  614. sourceList.value.pagination.keyword = route.query.code;
  615. }
  616. getList();
  617. const newPriceSheet = () => {
  618. proxy.$router.replace({
  619. path: "/platform_manage/process/processApproval",
  620. query: {
  621. flowKey: "sale_quotation_flow",
  622. flowName: "报价审批流程",
  623. random: proxy.random(),
  624. },
  625. });
  626. };
  627. const clickCopy = (item) => {
  628. proxy.$router.replace({
  629. path: "/platform_manage/process/processApproval",
  630. query: {
  631. flowKey: "sale_quotation_flow",
  632. flowName: "报价审批流程",
  633. priceSheetId: item.id,
  634. random: proxy.random(),
  635. },
  636. });
  637. };
  638. const openPrint = ref(false);
  639. const printDetails = ref({});
  640. const clickPrint = (row) => {
  641. printDetails.value = {};
  642. openPrint.value = true;
  643. proxy.post("/saleQuotation/detail", { id: row.id }).then((res) => {
  644. printDetails.value = res;
  645. });
  646. };
  647. const clickDownload = () => {
  648. proxy.getPdf("报价单PDF文件");
  649. };
  650. const statistics = (label, index) => {
  651. let num = 0;
  652. if (
  653. printDetails.value.quotationProductList &&
  654. printDetails.value.quotationProductList.length > 0
  655. ) {
  656. printDetails.value.quotationProductList.map((item) => {
  657. if (item[label]) {
  658. num = parseFloat(Number(num) + Number(item[label])).toFixed(index);
  659. }
  660. });
  661. }
  662. return num;
  663. };
  664. const getLabel = (key, list, label) => {
  665. let text = "";
  666. if (list && list.length > 0) {
  667. let data = list.filter((item) => item.id === key);
  668. if (data && data.length > 0) {
  669. text = data[0][label];
  670. }
  671. }
  672. return text;
  673. };
  674. const getAllMoney = (num) => {
  675. let money = num;
  676. if (
  677. printDetails.value.quotationPayList &&
  678. printDetails.value.quotationPayList.length > 0
  679. ) {
  680. printDetails.value.quotationPayList.map((item) => {
  681. if (item.amount) {
  682. money = parseFloat(Number(money) + Number(item.amount)).toFixed(2);
  683. }
  684. });
  685. }
  686. return money;
  687. };
  688. const generateContract = (row) => {
  689. proxy.$router.replace({
  690. path: "/platform_manage/process/processApproval",
  691. query: {
  692. flowKey: "contract_flow",
  693. flowName: "销售合同审批流程",
  694. random: proxy.random(),
  695. priceSheetId: row.id,
  696. },
  697. });
  698. };
  699. const pushProcessApproval = (row) => {
  700. proxy.$router.push({
  701. path: "/platform_manage/process/processApproval",
  702. query: {
  703. flowKey: "sale_quotation_flow",
  704. id: row.flowId,
  705. processType: 20,
  706. random: proxy.random(),
  707. flowName: "报价单详情",
  708. },
  709. });
  710. return;
  711. };
  712. const printObj = ref({
  713. id: "printMe",
  714. popTitle: "",
  715. extraCss:
  716. "https://cdn.bootcdn.net/ajax/libs/animate.css/4.1.1/animate.compat.css, https://cdn.bootcdn.net/ajax/libs/hover.css/2.3.1/css/hover-min.css",
  717. extraHead: '<meta http-equiv="Content-Language"content="zh-cn"/>',
  718. });
  719. const getStyle = (status) => {
  720. if (status == 10) {
  721. return {
  722. color: "#FF9315",
  723. };
  724. } else if (status == 30) {
  725. return {
  726. color: "#39C55A",
  727. };
  728. } else if (status == 20 || status == 99) {
  729. return {
  730. color: "#FF655B",
  731. };
  732. } else {
  733. return {};
  734. }
  735. };
  736. </script>
  737. <style lang="scss" scoped>
  738. .tenant {
  739. padding: 20px;
  740. }
  741. ::v-deep(.el-input-number .el-input__inner) {
  742. text-align: left;
  743. }
  744. .baseRow {
  745. min-height: 24px;
  746. border-top: 1px solid black;
  747. border-left: 1px solid black;
  748. }
  749. .contentRow {
  750. border-right: 1px solid black;
  751. line-height: 24px;
  752. padding-left: 4px;
  753. }
  754. </style>