dislogOrderList.vue 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  1. <template>
  2. <BaseDialog
  3. width="1400px"
  4. :isShowFooter="false"
  5. :isShow.sync="isShow"
  6. :title="title"
  7. @open="init"
  8. >
  9. <div class="des df">
  10. <p>机构名称:{{ info.tenantName }}</p>
  11. <p>账期类型:{{ ["月份", "季度", "半年", "年度"][info.billType] }}</p>
  12. <p>时间:{{ info.monthTime }}</p>
  13. </div>
  14. <search-box-new
  15. ref="searchBox"
  16. class="search_box_page"
  17. :redIcon="false"
  18. :formData="formData"
  19. :formList="formList"
  20. @search="search(3)"
  21. @init="init"
  22. />
  23. <picture-list ref="pictureList" :list="showStatisticsList"></picture-list>
  24. <table-list
  25. rowKey="id"
  26. ref="tableList"
  27. :tableSets="tableSet"
  28. :tableData="tableData"
  29. :navText="navText"
  30. :loading="loading"
  31. >
  32. <template slot="customize">
  33. <el-button v-if="isEdit" @click="exportSH" type="primary">
  34. 批量审核
  35. </el-button>
  36. <el-button v-else @click="batchExport" type="info" plain>
  37. 导出excel
  38. </el-button>
  39. </template>
  40. <template slot="predictPayTime" slot-scope="props">
  41. <span v-if="props.scope.row.creditStatus == 1">已结清</span>
  42. <span style="color: red" v-else>
  43. {{ $methodsTools.onlyForma(props.scope.row.predictPayTime) || "--" }}
  44. </span>
  45. </template>
  46. <template slot="predictPayDay" slot-scope="props">
  47. <span
  48. :style="{ color: props.scope.row.predictPayDay < 0 ? 'red' : '' }"
  49. >
  50. {{ props.scope.row.predictPayDay || "--" }}
  51. </span>
  52. </template>
  53. <template slot="divideCheckStatus" slot-scope="props">
  54. <div v-if="props.scope.row.billType != 7">
  55. {{
  56. divideCheckStatus(
  57. props.scope.row.orderSn,
  58. props.scope.row.payStatus,
  59. props.scope.row.checkStatus
  60. )
  61. }}
  62. <span style="color: #409eff" v-if="props.scope.row.roleName">
  63. ({{ props.scope.row.roleName }})
  64. </span>
  65. </div>
  66. </template>
  67. <template slot="btn" slot-scope="props">
  68. <el-button type="text" @click="openDialog(props.scope.row, 1)">
  69. 详情
  70. </el-button>
  71. <el-button
  72. type="text"
  73. :disabled="
  74. props.scope.row.checkStatus !== 0 ||
  75. getRoles(props.scope.row.roleId)
  76. "
  77. @click="openDialog([props.scope.row])"
  78. >
  79. 审核
  80. </el-button>
  81. </template>
  82. </table-list>
  83. <pagination1
  84. :total="total"
  85. :pageSize.sync="formData.pageSize"
  86. :currentPage.sync="formData.pageNum"
  87. @search="search(3)"
  88. />
  89. </BaseDialog>
  90. </template>
  91. <script>
  92. import pictureList from "@/components/Comon/pictureList.vue";
  93. export default {
  94. name: "SaasMasterPlatformDislogOrderList",
  95. props: {
  96. dialogVisible: {
  97. type: Boolean,
  98. default: false,
  99. },
  100. info: {
  101. type: Object,
  102. default: () => {
  103. return {};
  104. },
  105. },
  106. },
  107. data() {
  108. return {
  109. statisticsList: [
  110. {
  111. label: "订单金额",
  112. img: "未收款",
  113. value: 0,
  114. },
  115. {
  116. label: "税前佣金",
  117. img: "已退款",
  118. value: 0,
  119. },
  120. {
  121. label: "完单分成",
  122. img: "成本金额",
  123. value: 0,
  124. },
  125. {
  126. label: "应付分成",
  127. img: "成本金额",
  128. value: 0,
  129. },
  130. ],
  131. loading: false,
  132. navText: {
  133. title: "机构分成",
  134. index: 0,
  135. ch: "条",
  136. num: true,
  137. choice: true,
  138. addHide: true,
  139. dontNum: true,
  140. openCheckMore: false,
  141. changeWidth: "280px",
  142. custom: false,
  143. tableColor: true,
  144. },
  145. formData: {
  146. pageSize: 10,
  147. pageNum: 1,
  148. },
  149. formList: [
  150. {
  151. prop: "checkStatus",
  152. placeholder: "审核状态",
  153. scope: "select",
  154. options: [
  155. { label: "待审核", value: 2 },
  156. { label: "已通过", value: 1 },
  157. ],
  158. },
  159. {
  160. prop: "checkStatus",
  161. placeholder: "分成类型",
  162. scope: "select",
  163. options: [
  164. { label: "退款扣除", value: 2 },
  165. { label: "完单分成", value: 1 },
  166. ],
  167. },
  168. {
  169. prop: "date",
  170. scope: "datePickerA",
  171. placeholder: "完单时间",
  172. type: "date",
  173. },
  174. {
  175. prop: "orderSn",
  176. placeholder: "输入订单号",
  177. },
  178. ],
  179. tableSet: [
  180. {
  181. label: "完单时间",
  182. hidden: true,
  183. width: 140,
  184. },
  185. {
  186. label: "订单日期",
  187. prop: "orderSn",
  188. width: "180",
  189. hidden: true,
  190. },
  191. {
  192. label: "订单号",
  193. prop: "orderSn",
  194. width: "180",
  195. hidden: true,
  196. },
  197. {
  198. label: "分成类型",
  199. prop: "billType",
  200. scope: "type",
  201. hidden: true,
  202. values: {
  203. 1: "退款扣除",
  204. 2: "完单分成",
  205. },
  206. },
  207. {
  208. label: "订单金额",
  209. prop: "tenantName",
  210. hidden: true,
  211. },
  212. {
  213. label: "税前佣金",
  214. prop: "payMoney",
  215. hidden: true,
  216. scope: "formatPrice",
  217. },
  218. {
  219. label: "完单分成",
  220. prop: "closeOrderMoney",
  221. hidden: true,
  222. scope: "formatPrice",
  223. },
  224. {
  225. label: "税前佣金",
  226. prop: "deductMoney",
  227. hidden: true,
  228. scope: "formatPrice",
  229. },
  230. {
  231. label: "审核状态",
  232. prop: "divideCheckStatus",
  233. hidden: true,
  234. scope: "solt",
  235. soltName: "divideCheckStatus",
  236. },
  237. ],
  238. tableData: [],
  239. total: 0,
  240. };
  241. },
  242. methods: {
  243. init() {
  244. console.log(this.info, 789);
  245. // this.navText.choice = !!this.isEdit;
  246. },
  247. batchExport() {
  248. tenantExport(this.formData).then((res) => {
  249. if (res.msg) {
  250. exportFn(res.msg, "导出机构分成数据");
  251. } else {
  252. this.$message.error("导出失败");
  253. }
  254. });
  255. },
  256. },
  257. computed: {
  258. isShow: {
  259. get() {
  260. return this.dialogVisible;
  261. },
  262. set(val) {
  263. this.$emit("update:dialogVisible", false);
  264. },
  265. },
  266. isEdit() {
  267. return this.info.isEdit;
  268. },
  269. title() {
  270. return this.isEdit ? "订单审核" : "订单列表";
  271. },
  272. showStatisticsList() {
  273. if (this.isEdit) {
  274. this.statisticsList.splice(2, 1);
  275. }
  276. return this.statisticsList;
  277. },
  278. },
  279. components: {
  280. pictureList,
  281. },
  282. };
  283. </script>
  284. <style lang="scss" scoped>
  285. .des {
  286. margin-top: -20px;
  287. p {
  288. margin: 10px 40px 10px 0;
  289. }
  290. }
  291. .search_box_page {
  292. /deep/ .el-select {
  293. width: 120px;
  294. }
  295. /deep/ .el-form-item__content > .el-input {
  296. width: 190px;
  297. }
  298. }
  299. </style>