index.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899
  1. <template>
  2. <div id="ActivityList">
  3. <el-radio-group
  4. v-model="type"
  5. @change="changeSearch"
  6. style="margin-bottom: 10px"
  7. >
  8. <el-radio-button :label="0">应收账款</el-radio-button>
  9. <el-radio-button :label="1">机构分成</el-radio-button>
  10. <el-radio-button :label="2">业务员提成</el-radio-button>
  11. <el-radio-button :label="3">佣金结算</el-radio-button>
  12. </el-radio-group>
  13. <search-box-new
  14. ref="searchBox"
  15. :formData="formData"
  16. :formList="formList"
  17. @search="search"
  18. @init="init"
  19. />
  20. <picture-list
  21. :key="type + 'a'"
  22. :fn="getCountOrderNum"
  23. :list="showTabList[type]"
  24. ></picture-list>
  25. <table-list
  26. :key="type"
  27. rowKey="id"
  28. ref="tableList"
  29. :tableSets="tableSet"
  30. :tableData="tableData"
  31. :navText="navText"
  32. :loading="loading"
  33. :setIndex="setIndex"
  34. @load="load"
  35. >
  36. <template slot="customize">
  37. <el-button @click="openDialog({}, 4)" type="success">
  38. 坏账设置
  39. </el-button>
  40. <el-button @click="batchExport" type="primary"> 导出excel </el-button>
  41. </template>
  42. <template slot="predictPayTime" slot-scope="props">
  43. <span v-if="props.scope.row.creditStatus == 1">已结清</span>
  44. <span style="color: red" v-else>
  45. {{ $methodsTools.onlyForma(props.scope.row.predictPayTime) || "--" }}
  46. </span>
  47. </template>
  48. <template slot="noteType" slot-scope="props">
  49. <div v-if="!props.scope.row.noteId || props.scope.row.noteType == 1">
  50. --
  51. </div>
  52. <div v-else>
  53. <div :class="'tip' + props.scope.row.noteType">
  54. <span v-for="(text, idx) in backText(props.scope.row)" :key="idx">
  55. <span v-if="props.scope.row.noteType == 3">周</span>
  56. {{ text }}
  57. <span v-if="props.scope.row.noteType == 4">日</span>
  58. <i></i>
  59. </span>
  60. </div>
  61. <div>{{ props.scope.row.dayTime }}</div>
  62. </div>
  63. </template>
  64. <template slot="divideCheckStatus" slot-scope="props">
  65. <div>
  66. {{
  67. divideCheckStatus(
  68. props.scope.row.orderSn,
  69. props.scope.row.payStatus,
  70. props.scope.row.checkStatus
  71. )
  72. }}
  73. <span style="color: #409eff" v-if="props.scope.row.roleName">
  74. ({{ props.scope.row.roleName }})
  75. </span>
  76. </div>
  77. </template>
  78. <template slot="status" slot-scope="props">
  79. {{ backStatus(props.scope) }}
  80. </template>
  81. <template slot="btn" slot-scope="props">
  82. <el-button
  83. v-if="props.scope.row.oId"
  84. type="text"
  85. @click="openDialog(props.scope.row, 3)"
  86. >
  87. 查看详情
  88. </el-button>
  89. <el-button
  90. v-if="type == 0"
  91. type="text"
  92. :disabled="props.scope.row.creditStatus == 1"
  93. @click="openDialog(props.scope.row, 0)"
  94. >
  95. 催款提醒
  96. </el-button>
  97. <template v-else>
  98. <el-button
  99. type="text"
  100. v-if="!props.scope.row.orderSn"
  101. :disabled="
  102. !(
  103. props.scope.row.payStatus === 0 ||
  104. props.scope.row.payStatus === 4
  105. )
  106. "
  107. @click="openDialog(props.scope.row, 1)"
  108. >
  109. 点击支付
  110. </el-button>
  111. <el-button
  112. v-else
  113. type="text"
  114. :disabled="props.scope.row.checkStatus !== 0"
  115. @click="openDialog(props.scope.row, 1)"
  116. >
  117. 点击审核
  118. </el-button>
  119. <el-button
  120. type="text"
  121. style="color: #e6a23c"
  122. @click="openDialog(props.scope.row, 2)"
  123. >
  124. 修改备注
  125. </el-button>
  126. </template>
  127. </template>
  128. </table-list>
  129. <pagination
  130. :total="total"
  131. :pageSize.sync="formData.pageSize"
  132. :currentPage.sync="formData.pageNum"
  133. @search="search"
  134. />
  135. <dislog-tip
  136. :dialogVisible.sync="tipDialogVisible"
  137. :orderInfo="activeOrderInfo"
  138. @search="search"
  139. />
  140. <!-- 订单详情 -->
  141. <dislog-order-details
  142. :orderSn="activeOrderInfo.orderSn"
  143. :orderFrom="activeOrderInfo.orderFrom"
  144. :dialogVisible.sync="orderDialogVisible"
  145. />
  146. <arap-remarks
  147. :info="activeOrderInfo"
  148. @search="search"
  149. :dialogVisible.sync="remarkDialogVisible"
  150. />
  151. <dislog-set
  152. :dialogVisible.sync="examineDialogVisible"
  153. @search="search"
  154. :info="activeOrderInfo"
  155. @update="update"
  156. ></dislog-set>
  157. <!-- 坏账设置 -->
  158. <dislog-bad-bill
  159. :dialogVisible.sync="badBillDialogVisible"
  160. ></dislog-bad-bill>
  161. </div>
  162. </template>
  163. <script>
  164. import dislogSet from "../components/audit/dislogSet.vue";
  165. import searchBoxNew from "@/components/searchBoxNew";
  166. import tableList from "@/components/tableList";
  167. import pagination from "@/components/pagination";
  168. import dislogTip from "./dislogTip.vue";
  169. import dislogOrderDetails from "../components/dislogOrderDetails.vue";
  170. import arapRemarks from "../components/arapRemarks.vue";
  171. import pictureList from "@/components/Comon/pictureList.vue";
  172. import dislogBadBill from "../components/dislogBadBill.vue";
  173. import { exportFn } from "@/utils/index.js";
  174. import {
  175. orderList,
  176. companyList,
  177. orderExport,
  178. tenantExport,
  179. sellerExport,
  180. countOrderNum,
  181. commissionList,
  182. sellerPercentageList,
  183. monthOrderList,
  184. commissionExport,
  185. } from "@/api/financed/index";
  186. export default {
  187. name: "cost",
  188. components: {
  189. searchBoxNew,
  190. tableList,
  191. pagination,
  192. dislogTip,
  193. dislogOrderDetails,
  194. arapRemarks,
  195. dislogSet,
  196. pictureList,
  197. dislogBadBill,
  198. },
  199. data() {
  200. return {
  201. value5: [],
  202. showTabList: [
  203. [
  204. {
  205. label: "未收账款",
  206. prop: "orderUncollectedTotal",
  207. img: "未收款",
  208. },
  209. ],
  210. [
  211. {
  212. label: "待付分成",
  213. prop: "payMoneyTotal",
  214. img: "未收款",
  215. },
  216. {
  217. label: "待扣分成",
  218. prop: "deductMoneyTotal",
  219. img: "已退款",
  220. },
  221. {
  222. label: "已扣分成",
  223. prop: "unDeductMoneyTotal",
  224. img: "成本金额",
  225. },
  226. {
  227. label: "已付分成",
  228. prop: "unPayMoneyTotal",
  229. img: "已收款",
  230. },
  231. ],
  232. [
  233. {
  234. label: "待付分成",
  235. prop: "payMoneyTotal",
  236. img: "未收款",
  237. },
  238. {
  239. label: "待扣分成",
  240. prop: "deductMoneyTotal",
  241. img: "已退款",
  242. },
  243. {
  244. label: "已扣分成",
  245. prop: "unDeductMoneyTotal",
  246. img: "成本金额",
  247. },
  248. {
  249. label: "已付分成",
  250. prop: "unPayMoneyTotal",
  251. img: "已收款",
  252. },
  253. ],
  254. [
  255. {
  256. label: "待付佣金",
  257. prop: "payMoneyTotal",
  258. img: "未收款",
  259. },
  260. {
  261. label: "已付佣金",
  262. prop: "unPayMoneyTotal",
  263. img: "已收款",
  264. },
  265. ],
  266. ],
  267. loading: false, //当前表单加载是否加载动画
  268. navText: {
  269. title: "应收应付",
  270. index: 0,
  271. ch: "条",
  272. num: true,
  273. choice: false,
  274. addHide: true,
  275. dontNum: false,
  276. openCheckMore: true,
  277. changeWidth: "240px",
  278. custom: false,
  279. },
  280. formData: {
  281. pageSize: 10,
  282. pageNum: 1,
  283. },
  284. // 表单
  285. tableSet0: [
  286. {
  287. label: "坏账",
  288. prop: "badBill",
  289. hidden: true,
  290. scope: "isOptions",
  291. options: [
  292. {
  293. label: "否",
  294. value: false,
  295. },
  296. {
  297. label: "是",
  298. value: true,
  299. style: {
  300. color: "red",
  301. },
  302. },
  303. ],
  304. },
  305. {
  306. label: "下单时间",
  307. prop: "buyTime",
  308. hidden: true,
  309. scope: "aTimeList",
  310. },
  311. {
  312. label: "订单单号",
  313. prop: "orderSn",
  314. hidden: true,
  315. },
  316. {
  317. label: "机构名称",
  318. prop: "tenantName",
  319. hidden: true,
  320. },
  321. {
  322. label: "业务员",
  323. prop: "createUsername",
  324. hidden: true,
  325. },
  326. {
  327. label: "业务号",
  328. prop: "createNo",
  329. hidden: true,
  330. },
  331. {
  332. label: "合同金额(元)",
  333. prop: "orderPrice",
  334. hidden: true,
  335. },
  336. {
  337. label: "已收账款(元)",
  338. prop: "orderReceived",
  339. hidden: true,
  340. },
  341. {
  342. label: "已退金额(元)",
  343. prop: "orderRefunded",
  344. hidden: true,
  345. },
  346. {
  347. label: "未收账款(元)",
  348. prop: "orderUncollected",
  349. hidden: true,
  350. },
  351. {
  352. label: "预收时间",
  353. hidden: true,
  354. prop: "predictReceiveTime",
  355. scope: "aTimeList",
  356. },
  357. {
  358. label: "剩余天数",
  359. prop: "predictReceiveDay",
  360. hidden: true,
  361. },
  362. {
  363. label: "提醒设置",
  364. prop: "noteType",
  365. scope: "solt",
  366. soltName: "noteType",
  367. hidden: true,
  368. },
  369. {
  370. label: "最新提醒",
  371. prop: "lastTime",
  372. hidden: true,
  373. scope: "aTimeList",
  374. },
  375. ],
  376. tableSet1: [
  377. {
  378. label: "时间",
  379. prop: "monthTime",
  380. hidden: true,
  381. width: 140,
  382. },
  383. {
  384. label: "订单单号",
  385. prop: "orderSn",
  386. hidden: true,
  387. },
  388. {
  389. label: "类型",
  390. prop: "billType",
  391. scope: "type",
  392. hidden: true,
  393. values: {
  394. 1: "月份",
  395. 2: "季度",
  396. 3: "半年",
  397. 4: "年度",
  398. 6: "完单",
  399. 7: "退款",
  400. },
  401. },
  402. {
  403. label: "机构名称",
  404. prop: "tenantName",
  405. hidden: true,
  406. },
  407. {
  408. label: "已付分成(元)",
  409. prop: "payMoney",
  410. hidden: true,
  411. scope: "solt",
  412. soltName: "status",
  413. },
  414. {
  415. label: "已扣分成(元)",
  416. prop: "deductMoney",
  417. hidden: true,
  418. scope: "solt",
  419. soltName: "status",
  420. },
  421. {
  422. label: "待付分成(元)",
  423. prop: "payMoney",
  424. hidden: true,
  425. scope: "solt",
  426. soltName: "status",
  427. },
  428. {
  429. label: "待扣分成(元)",
  430. prop: "deductMoney",
  431. hidden: true,
  432. scope: "solt",
  433. soltName: "status",
  434. },
  435. {
  436. label: "预付时间",
  437. prop: "predictPayTime",
  438. hidden: true,
  439. scope: "aTimeList",
  440. hidden: true,
  441. },
  442. {
  443. label: "剩余天数",
  444. prop: "predictPayDay",
  445. hidden: true,
  446. },
  447. {
  448. label: "审核状态",
  449. prop: "divideCheckStatus",
  450. hidden: true,
  451. scope: "solt",
  452. soltName: "divideCheckStatus",
  453. },
  454. {
  455. label: "支付时间",
  456. prop: "payTime",
  457. scope: "aTimeList",
  458. hidden: true,
  459. },
  460. {
  461. label: "备注",
  462. prop: "remark",
  463. hidden: true,
  464. },
  465. ],
  466. tableSet2: [
  467. {
  468. label: "时间",
  469. prop: "monthTime",
  470. hidden: true,
  471. width: 140,
  472. },
  473. {
  474. label: "订单单号",
  475. prop: "orderSn",
  476. hidden: true,
  477. },
  478. {
  479. label: "类型",
  480. prop: "billType",
  481. scope: "type",
  482. hidden: true,
  483. values: {
  484. 1: "月份",
  485. 2: "季度",
  486. 3: "半年",
  487. 4: "年度",
  488. 6: "完单",
  489. 7: "退款",
  490. },
  491. },
  492. {
  493. label: "机构名称",
  494. prop: "tenantName",
  495. hidden: true,
  496. },
  497. {
  498. label: "业务员",
  499. prop: "createUsername",
  500. hidden: true,
  501. },
  502. {
  503. label: "业务号",
  504. prop: "createNo",
  505. hidden: true,
  506. },
  507. {
  508. label: "已付提成(元)",
  509. prop: "payMoney",
  510. hidden: true,
  511. scope: "solt",
  512. soltName: "status",
  513. },
  514. {
  515. label: "已扣提成(元)",
  516. prop: "deductMoney",
  517. hidden: true,
  518. scope: "solt",
  519. soltName: "status",
  520. },
  521. {
  522. label: "待付提成(元)",
  523. prop: "payMoney",
  524. hidden: true,
  525. scope: "solt",
  526. soltName: "status",
  527. },
  528. {
  529. label: "待扣提成(元)",
  530. prop: "deductMoney",
  531. hidden: true,
  532. scope: "solt",
  533. soltName: "status",
  534. },
  535. {
  536. label: "审核状态",
  537. prop: "divideCheckStatus",
  538. hidden: true,
  539. scope: "solt",
  540. soltName: "divideCheckStatus",
  541. },
  542. {
  543. label: "支付时间",
  544. prop: "payTime",
  545. scope: "aTimeList",
  546. scope: "aTimeList",
  547. hidden: true,
  548. },
  549. {
  550. label: "备注",
  551. prop: "remark",
  552. hidden: true,
  553. },
  554. ],
  555. tableSet3: [
  556. {
  557. label: "时间",
  558. prop: "monthTime",
  559. hidden: true,
  560. width: 140,
  561. },
  562. {
  563. label: "订单单号",
  564. prop: "orderSn",
  565. hidden: true,
  566. },
  567. {
  568. label: "机构名称",
  569. prop: "tenantName",
  570. hidden: true,
  571. },
  572. {
  573. label: "已付佣金(元)",
  574. prop: "payMoney",
  575. hidden: true,
  576. scope: "solt",
  577. soltName: "status",
  578. },
  579. {
  580. label: "待付佣金(元)",
  581. prop: "payMoney",
  582. hidden: true,
  583. scope: "solt",
  584. soltName: "status",
  585. },
  586. {
  587. label: "审核状态",
  588. prop: "divideCheckStatus",
  589. hidden: true,
  590. scope: "solt",
  591. soltName: "divideCheckStatus",
  592. },
  593. {
  594. label: "支付时间",
  595. prop: "payTime",
  596. hidden: true,
  597. },
  598. {
  599. label: "备注",
  600. prop: "remark",
  601. hidden: true,
  602. },
  603. ],
  604. tableData: [], //表单数据
  605. total: 0, //一共多少条
  606. tipDialogVisible: false,
  607. orderDialogVisible: false,
  608. remarkDialogVisible: false,
  609. examineDialogVisible: false,
  610. badBillDialogVisible: false,
  611. type: 0,
  612. activeOrderInfo: {},
  613. roleList: [],
  614. countInfo: {},
  615. spanData: {},
  616. maps: new Map(),
  617. };
  618. },
  619. created() {
  620. this.init();
  621. },
  622. methods: {
  623. divideCheckStatus(type, e1, e2) {
  624. var a = "";
  625. if (type) {
  626. switch (e2) {
  627. case -1:
  628. a = "未通过";
  629. break;
  630. case 0:
  631. a = "待审核";
  632. break;
  633. case 1:
  634. a = "已通过";
  635. break;
  636. case 2:
  637. a = "待支付";
  638. break;
  639. case 3:
  640. a = "已支付";
  641. break;
  642. default:
  643. break;
  644. }
  645. } else {
  646. switch (e1) {
  647. case 0:
  648. a = "待支付";
  649. break;
  650. case 1:
  651. a = "已打款";
  652. break;
  653. case 2:
  654. a = "待审核";
  655. break;
  656. case 3:
  657. a = "打款中";
  658. break;
  659. case 4:
  660. a = "打款失败";
  661. break;
  662. default:
  663. break;
  664. }
  665. }
  666. return a;
  667. },
  668. openDialog(data, type) {
  669. this.activeOrderInfo = data;
  670. this.activeOrderInfo.checkFrom = this.type + 1;
  671. this[
  672. ["tip", "examine", "remark", "order", "badBill"][type] + "DialogVisible"
  673. ] = true;
  674. },
  675. batchExport() {
  676. const fn = [orderExport, tenantExport, sellerExport, commissionExport][
  677. this.type
  678. ];
  679. fn(this.formData).then((res) => {
  680. if (res.msg) {
  681. exportFn(
  682. res.msg,
  683. `导出${
  684. ["应收应付", "机构分成", "业务员提成", "佣金结算"][this.type]
  685. }数据`
  686. );
  687. } else {
  688. this.$message.error("导出失败");
  689. }
  690. });
  691. },
  692. backText(row) {
  693. const type = row.noteType;
  694. if (type == 2) {
  695. return ["每天"];
  696. }
  697. const key = ["weekTime", "monthTime"][type - 3];
  698. let data = row[key].split(",").sort((a, b) => a - b);
  699. return data;
  700. },
  701. setIndex(index) {
  702. return index + 1;
  703. },
  704. changeSearch() {
  705. this.maps.clear()
  706. this.search(2);
  707. },
  708. getDataList() {
  709. const fn = [orderList, companyList, sellerPercentageList, commissionList][
  710. this.type
  711. ];
  712. fn(this.formData)
  713. .then((res) => {
  714. this.type != 0 &&
  715. res.rows.forEach((e) => {
  716. e.children = [];
  717. e.hasChildren = true;
  718. e.monthTime = this.parseTime(e.monthTime, "{y}-{m}");
  719. });
  720. this.tableData = res.rows;
  721. this.total = res.total;
  722. this.navText.index = res.total;
  723. })
  724. .finally(() => {
  725. this.loading = false;
  726. });
  727. },
  728. load(tree, treeNode, resolve) {
  729. monthOrderList({ divideLogId: tree.id })
  730. .then((res) => {
  731. // id冲突会报错
  732. res.data.forEach((e) => {
  733. e.oId = e.id;
  734. e.id = e.id + 100086;
  735. e.billType = e.orderType + 5;
  736. e.monthTime = this.parseTime(e.orderTime, "{y}-{m}-{d}");
  737. if (this.type == 3 || this.type == 2) {
  738. e.divideCompanyMoney =
  739. this.type == 2 ? e.divideSellerMoney : e.brokerage;
  740. }
  741. });
  742. resolve(res.data);
  743. })
  744. .catch(() => {
  745. resolve([]);
  746. });
  747. this.maps.set(tree.id, { tree, treeNode, resolve });
  748. },
  749. update(parentId) {
  750. const { tree, treeNode, resolve } = this.maps.get(parentId);
  751. this.$set(
  752. this.$refs.tableList.$refs.pagerset.store.states.lazyTreeNodeMap,
  753. parentId,
  754. []
  755. );
  756. if (tree) {
  757. this.load(tree, treeNode, resolve);
  758. }
  759. },
  760. // 切换已付待付
  761. backStatus({ row, column }) {
  762. let { payStatus, oId } = row;
  763. let { label, property } = column;
  764. if (oId) {
  765. property =
  766. property == "payMoney" ? "divideCompanyMoney" : "divideMoney";
  767. payStatus = payStatus != 3 ? 0 : 1;
  768. } else {
  769. payStatus = payStatus != 1 ? 0 : 1;
  770. }
  771. return ["0.00", row[property]][
  772. (label.indexOf("已") != -1 ? 0 : 1) ^ payStatus
  773. ];
  774. },
  775. changeData(data) {
  776. if (this.type == 0) {
  777. return data;
  778. }
  779. let total = 0;
  780. let arr = [];
  781. data.forEach((ele) => {
  782. const monthList = ele.monthList;
  783. delete ele.monthList;
  784. this.spanData[total] = monthList.length;
  785. total += monthList.length;
  786. monthList.map((e) => {
  787. Object.keys(e).forEach((key) => {
  788. e[key] = e[key] || ele[key];
  789. });
  790. });
  791. arr.push(...monthList);
  792. });
  793. return arr;
  794. },
  795. search(v) {
  796. this.loading = true;
  797. if (v === 2) {
  798. this.formData = {
  799. pageSize: 10,
  800. pageNum: 1,
  801. month: [],
  802. };
  803. }
  804. this.getDataList();
  805. },
  806. init() {
  807. this.getRoleList();
  808. this.search(2);
  809. },
  810. getRoleList() {
  811. this.$api.obtainRoleList().then((res) => {
  812. this.roleList = res.rows;
  813. });
  814. },
  815. getCountOrderNum() {
  816. return countOrderNum({ totalType: this.type + 1 }).then((res) => {
  817. return Promise.resolve(res);
  818. });
  819. },
  820. },
  821. computed: {
  822. tableSet() {
  823. return this["tableSet" + this.type];
  824. },
  825. formList() {
  826. const key = ["订单", "分成", "提成", "分成"][this.type];
  827. let data = [
  828. {
  829. prop: "tenantId",
  830. placeholder: "机构选择",
  831. scope: "systemtenantlist",
  832. },
  833. ];
  834. if (this.type != 0) {
  835. data.push(
  836. {
  837. prop: "monthTime",
  838. scope: "moreMonth",
  839. },
  840. {
  841. prop: "payStatus",
  842. placeholder: "审核状态",
  843. scope: "select",
  844. options: [
  845. { label: "待支付", value: 0 },
  846. { label: "已打款", value: 1 },
  847. { label: "待审核", value: 2 },
  848. { label: "打款中", value: 3 },
  849. { label: "打款失败", value: 4 },
  850. ],
  851. }
  852. );
  853. }
  854. if (this.type == 0) {
  855. data.push(
  856. {
  857. prop: "badBill",
  858. placeholder: "坏账选择",
  859. scope: "select",
  860. options: [
  861. { label: "是", value: 1 },
  862. { label: "否", value: 2 },
  863. ],
  864. },
  865. {
  866. prop1: "startTime",
  867. prop2: "endTime",
  868. placeholder1: key + "开始时间",
  869. placeholder2: key + "结束时间",
  870. scope: "moreDataPicker",
  871. },
  872. {
  873. prop: "orderSn",
  874. placeholder: "订单单号",
  875. }
  876. );
  877. }
  878. if (this.type == 0 || this.type == 2) {
  879. data.push({
  880. prop: "keyNo",
  881. placeholder: "业务员号",
  882. });
  883. }
  884. return data;
  885. },
  886. },
  887. };
  888. </script>
  889. <style lang="scss" scoped>
  890. .tip4,
  891. .tip3 {
  892. white-space: normal;
  893. i::before {
  894. content: ",";
  895. }
  896. }
  897. </style>