index.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386
  1. <template>
  2. <div class="m-container">
  3. <h2>
  4. <div class="squrt"></div>
  5. 费用审核列表
  6. </h2>
  7. <div class="m-core">
  8. <!-- 搜索标题 -->
  9. <save-form
  10. :inline="true"
  11. class="searchForm"
  12. ref="searchForm"
  13. :model.sync="searchForm"
  14. >
  15. <el-form-item>
  16. <el-input
  17. v-model.trim="searchForm.search"
  18. clearable
  19. @keyup.enter.native="search"
  20. placeholder="乐团名称/编号"
  21. ></el-input>
  22. </el-form-item>
  23. <el-form-item>
  24. <el-select
  25. class="multiple"
  26. v-model.trim="searchForm.organId"
  27. filterable
  28. clearable
  29. placeholder="请选择分部"
  30. >
  31. <el-option
  32. v-for="(item, index) in selects.branchs"
  33. :key="index"
  34. :label="item.name"
  35. :value="item.id"
  36. ></el-option>
  37. </el-select>
  38. </el-form-item>
  39. <el-form-item>
  40. <el-select
  41. class="multiple"
  42. v-model.trim="searchForm.paymentType"
  43. filterable
  44. clearable
  45. placeholder="申请类型"
  46. >
  47. <el-option
  48. v-for="(item, index) in paymentTypeList"
  49. :key="index"
  50. :label="item.label"
  51. :value="item.value"
  52. ></el-option>
  53. </el-select>
  54. </el-form-item>
  55. <el-form-item>
  56. <el-select
  57. class="multiple"
  58. v-model.trim="searchForm.status"
  59. filterable
  60. clearable
  61. placeholder="审核状态"
  62. >
  63. <el-option
  64. v-for="(item, index) in statusList"
  65. :key="index"
  66. :label="item.label"
  67. :value="item.value"
  68. ></el-option>
  69. </el-select>
  70. </el-form-item>
  71. <el-form-item>
  72. <el-button @click="search" type="primary">搜索</el-button>
  73. <el-button @click="reset" type="danger">重置</el-button>
  74. <el-button
  75. v-permission="'musicGroupPaymentCalender/auditPass'"
  76. @click="typesStatus = true"
  77. :disabled='!selList.length>0'
  78. type="primary"
  79. >批量审核</el-button>
  80. </el-form-item>
  81. </save-form>
  82. <div class="tableWrap">
  83. <el-table
  84. :data="tableList"
  85. :header-cell-style="{ background: '#EDEEF0', color: '#444' }"
  86. @selection-change="handleSelectionChange"
  87. >
  88. <el-table-column type="selection" width="55"></el-table-column>
  89. <el-table-column align="center" prop="organName" label="分部名称">
  90. <template slot-scope="scope">
  91. <copy-text>{{ scope.row.organName }}</copy-text>
  92. </template>
  93. </el-table-column>
  94. <el-table-column
  95. align="center"
  96. width="200px"
  97. prop="musicGroupName"
  98. label="乐团名称"
  99. >
  100. <template slot-scope="scope">
  101. <div>
  102. <Tooltip :content="scope.row.musicGroupName" />
  103. </div>
  104. </template>
  105. </el-table-column>
  106. <el-table-column
  107. align="center"
  108. width="180px"
  109. prop="musicGroupId"
  110. label="乐团编号"
  111. >
  112. <template slot-scope="scope">
  113. <copy-text>{{ scope.row.musicGroupId }}</copy-text>
  114. </template>
  115. </el-table-column>
  116. <el-table-column align="center" prop="paymentType" label="申请类型">
  117. <template slot-scope="scope">
  118. <div>
  119. {{ scope.row.paymentType | auditPaymentType }}
  120. </div>
  121. </template>
  122. </el-table-column>
  123. <el-table-column align="center" prop="payUserType" label="订单类型">
  124. <template slot-scope="scope">
  125. <div>
  126. {{ scope.row.payUserType | payOrderType }}
  127. </div>
  128. </template>
  129. </el-table-column>
  130. <el-table-column
  131. align="center"
  132. prop="addCourseTotalTime"
  133. label="加课总时长(分钟)"
  134. ></el-table-column>
  135. <el-table-column
  136. align="center"
  137. prop="courseOriginalPrice"
  138. label="原现价(元)"
  139. >
  140. <template slot-scope="scope">
  141. <div>
  142. {{ scope.row.courseOriginalPrice | moneyFormat }}
  143. </div>
  144. </template>
  145. </el-table-column>
  146. <el-table-column
  147. align="center"
  148. prop="courseCurrentPrice"
  149. label="申请价格(元)"
  150. >
  151. <template slot-scope="scope">
  152. <div>
  153. {{ scope.row.courseCurrentPrice | moneyFormat }}
  154. </div>
  155. </template>
  156. </el-table-column>
  157. <el-table-column
  158. align="center"
  159. prop="memo"
  160. width="200px"
  161. label="备注"
  162. >
  163. <template slot-scope="scope">
  164. <overflow-text width="200px" :text="scope.row.memo" />
  165. </template>
  166. </el-table-column>
  167. <el-table-column
  168. align="center"
  169. prop="auditMemo"
  170. width="200px"
  171. label="审核备注"
  172. >
  173. <template slot-scope="scope">
  174. <overflow-text width="200px" :text="scope.row.auditMemo" />
  175. </template>
  176. </el-table-column>
  177. <el-table-column
  178. align="center"
  179. prop="operatorName"
  180. label="申请人"
  181. ></el-table-column>
  182. <el-table-column
  183. align="center"
  184. prop="auditStatus"
  185. label="状态"
  186. width="100px"
  187. >
  188. <template slot-scope="scope">
  189. <div>
  190. {{ scope.row.auditStatus | auditType }}
  191. </div>
  192. </template>
  193. </el-table-column>
  194. <el-table-column
  195. align="center"
  196. prop="createTime"
  197. label="申请时间"
  198. width="140px"
  199. >
  200. <template slot-scope="scope">
  201. <div>
  202. {{ scope.row.createTime | dateForMinFormat }}
  203. </div>
  204. </template>
  205. </el-table-column>
  206. <!-- -->
  207. <el-table-column
  208. align="center"
  209. label="操作"
  210. width="100px"
  211. fixed="right"
  212. >
  213. <template slot-scope="scope">
  214. <el-button
  215. v-permission="'musicGroupPaymentCalender/auditListDetail'"
  216. @click="lookDetail(scope.row)"
  217. type="text"
  218. >
  219. {{ scope.row.auditStatus === "AUDITING" ? "审核" : "查看" }}
  220. </el-button>
  221. </template>
  222. </el-table-column>
  223. </el-table>
  224. <pagination
  225. :total.sync="pageInfo.total"
  226. sync
  227. :page.sync="pageInfo.page"
  228. :limit.sync="pageInfo.limit"
  229. :page-sizes="pageInfo.page_size"
  230. @pagination="getList"
  231. />
  232. </div>
  233. </div>
  234. <el-dialog
  235. title="申请详情"
  236. width="900px"
  237. :visible.sync="typeStatus"
  238. destroy-on-close
  239. >
  240. <review :detail="detail" @close="close" />
  241. </el-dialog>
  242. <el-dialog
  243. title="批量审核"
  244. width="700px"
  245. :visible.sync="typesStatus"
  246. destroy-on-close
  247. >
  248. <audit :selList="selList" @close="typesStatus = false" @submited="submited" />
  249. </el-dialog>
  250. </div>
  251. </template>
  252. <script>
  253. import pagination from "@/components/Pagination/index";
  254. import review from "@/views/resetTeaming/modals/review.vue";
  255. import audit from "./audit.vue";
  256. // import store from '@/store'
  257. import { getAuditList, getAuditListDetail } from "@/api/auditManager";
  258. import { getEmployeeOrgan } from "@/api/buildTeam";
  259. import Tooltip from "@/components/Tooltip/index";
  260. import { auditTypeList, auditPaymentTypeList } from "@/utils/searchArray";
  261. const initSearch = {
  262. search: null,
  263. paymentType: null,
  264. status: "AUDITING",
  265. organId: null,
  266. };
  267. export default {
  268. components: { pagination, Tooltip, review, audit },
  269. name: "helpCategory",
  270. data() {
  271. return {
  272. typesStatus: false,
  273. selList: [],
  274. paymentTypeList: auditPaymentTypeList,
  275. organList: [],
  276. statusList: auditTypeList,
  277. searchForm: { ...initSearch },
  278. tableList: [],
  279. pageInfo: {
  280. // 分页规则
  281. limit: 10, // 限制显示条数
  282. page: 1, // 当前页
  283. total: 0, // 总条数
  284. page_size: [10, 20, 40, 50], // 选择限制显示条数
  285. },
  286. detail: null,
  287. typeStatus: false,
  288. };
  289. },
  290. mounted() {
  291. this.$store.dispatch("setBranchs");
  292. this.getList();
  293. },
  294. methods: {
  295. search() {
  296. this.pageInfo.page = 1;
  297. this.$refs.searchForm.save(this.searchForm);
  298. this.$refs.searchForm.save(this.pageInfo, "page");
  299. this.getList();
  300. },
  301. reset() {
  302. this.searchForm = { ...initSearch };
  303. this.search();
  304. },
  305. handleSelectionChange(arr){
  306. this.selList = arr;
  307. },
  308. getList() {
  309. let params = {
  310. page: this.pageInfo.page,
  311. rows: this.pageInfo.limit,
  312. ...this.searchForm,
  313. };
  314. getAuditList(params).then((res) => {
  315. let result = res.data;
  316. if (res.code == 200) {
  317. this.tableList = result.rows;
  318. this.pageInfo.total = result.total;
  319. }
  320. });
  321. },
  322. lookDetail(row) {
  323. // this.detail = res.data
  324. this.detail = {
  325. id: row.musicGroupPaymentCalenderId,
  326. batchNo: row.batchNo,
  327. musicGroupId: row.musicGroupId,
  328. status: row.auditStatus,
  329. };
  330. this.typeStatus = true;
  331. },
  332. submited() {
  333. this.pageInfo.page = 1
  334. this.getList()
  335. },
  336. close() {
  337. this.typeStatus = false;
  338. this.getList();
  339. },
  340. },
  341. watch: {
  342. typeStatus(val) {
  343. if (!val) {
  344. this.detail = null;
  345. }
  346. },
  347. },
  348. };
  349. </script>
  350. <style lang="scss" scoped>
  351. .el-button--primary {
  352. background: #14928a;
  353. border-color: #14928a;
  354. color: #fff;
  355. &:hover,
  356. &:active,
  357. &:focus {
  358. background: #14928a;
  359. border-color: #14928a;
  360. color: #fff;
  361. }
  362. }
  363. /deep/.el-date-editor.el-input {
  364. width: 100% !important;
  365. }
  366. /deep/.el-select {
  367. width: 100% !important;
  368. }
  369. /deep/.el-table .cell {
  370. display: -webkit-box;
  371. overflow: hidden;
  372. text-overflow: ellipsis;
  373. -webkit-line-clamp: 3;
  374. -webkit-box-orient: vertical;
  375. }
  376. /deep/.el-dialog__body {
  377. padding: 10px 20px;
  378. }
  379. .newBand {
  380. display: inline-block;
  381. }
  382. </style>