index.vue 9.6 KB

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