应用层PC端前端服务

listofAwards.vue 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  1. <template>
  2. <div class="app-container">
  3. <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="68px">
  4. <el-form-item label="案件编号" prop="caseNum">
  5. <el-input v-model="queryParams.caseNum" placeholder="请输入案件编号" clearable @keyup.enter.native="handleQuery" />
  6. </el-form-item>
  7. <el-form-item label="案件状态" prop="caseStatus">
  8. <el-select v-model="queryParams.caseStatus" placeholder="请选择案件状态" clearable
  9. @keyup.enter.native="handleQuery">
  10. <el-option v-for="dict in dict.type.case_status" :key="dict.value" :label="dict.label"
  11. :value="dict.value"></el-option>
  12. </el-select>
  13. </el-form-item>
  14. <!-- <el-form-item label="开庭日期" prop="hearDate">
  15. <el-date-picker v-model="queryParams.hearDate" type="daterange" range-separator="至" start-placeholder="开始日期"
  16. end-placeholder="结束日期">
  17. </el-date-picker>
  18. </el-form-item> -->
  19. <el-form-item>
  20. <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
  21. <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
  22. </el-form-item>
  23. </el-form>
  24. <el-table v-loading="loading" :data="dataList" style="width: 100%">
  25. <el-table-column label="序号" type="index" align="center">
  26. <template slot-scope="scope">
  27. <span>{{
  28. (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1
  29. }}</span>
  30. </template>
  31. </el-table-column>
  32. <el-table-column label="案件编号" align="center" prop="caseNum" :show-overflow-tooltip="true" />
  33. <el-table-column label="案件标的" align="center" prop="caseSubjectAmount" />
  34. <el-table-column label="开庭日期" align="center" prop="hearDate" :show-overflow-tooltip="true" />
  35. <!-- 缴费人 -->
  36. <!-- <el-table-column label="案件状态" align="center" prop="caseStatusName" /> -->
  37. <el-table-column label="案件状态" align="center" prop="caseStatusName">
  38. <template slot-scope="scope">
  39. <el-tag type="success">{{ scope.row.caseStatusName }}</el-tag>
  40. </template>
  41. </el-table-column>
  42. <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
  43. <template slot-scope="scope">
  44. <!-- <el-button size="mini" type="text" icon="el-icon-reading" v-if="scope.row.caseStatus == 10" @click="showModel(scope.row, 0)"
  45. v-hasPermi="['monitor:online:forceLogout']">生成裁决书</el-button> -->
  46. <el-button size="mini" type="text" icon="el-icon-edit" v-if="scope.row.caseStatus == 11" @click="showModel(scope.row, 1)"
  47. v-hasPermi="['monitor:online:forceLogout']">核查</el-button>
  48. <el-button size="mini" type="text" icon="el-icon-edit" v-if="scope.row.caseStatus == 12" @click="showModel(scope.row, 2)"
  49. v-hasPermi="['monitor:online:forceLogout']">确认裁决书</el-button>
  50. <el-button size="mini" type="text" icon="el-icon-edit" v-if="scope.row.caseStatus == 13" @click="showModel(scope.row, 3)"
  51. v-hasPermi="['monitor:online:forceLogout']">签名</el-button>
  52. <el-button size="mini" type="text" icon="el-icon-edit" v-if="scope.row.caseStatus == 14" @click="showaffixModel(scope.row, 4)"
  53. v-hasPermi="['monitor:online:forceLogout']">用印申请</el-button>
  54. <el-button size="mini" type="text" icon="el-icon-truck" @click="showDeliveryModel(scope.row, 4)"
  55. v-hasPermi="['monitor:online:forceLogout']">快递信息</el-button>
  56. <!-- v-if="scope.row.caseStatus == 15" 送达裁决书 -->
  57. <el-button size="mini" type="text" icon="el-icon-edit" v-if="scope.row.caseStatus == 15" @click="showMailaward(scope.row)"
  58. v-hasPermi="['monitor:online:forceLogout']">送达裁决书</el-button>
  59. <el-button size="mini" type="text" icon="el-icon-edit" v-if="scope.row.caseStatus == 16" @click="showCasefilingModel(scope.row, 6)"
  60. v-hasPermi="['monitor:online:forceLogout']">案件归档</el-button>
  61. <!-- <el-button size="mini" type="text" icon="el-icon-reading"
  62. @click="showModel(scope.row, 0)" v-hasPermi="['monitor:online:forceLogout']">生成裁决书</el-button>
  63. <el-button size="mini" type="text" icon="el-icon-edit"
  64. @click="showModel(scope.row, 1)" v-hasPermi="['monitor:online:forceLogout']">核查</el-button>
  65. <el-button size="mini" type="text" icon="el-icon-edit"
  66. @click="showModel(scope.row, 2)" v-hasPermi="['monitor:online:forceLogout']">确认裁决书</el-button>
  67. <el-button size="mini" type="text" icon="el-icon-edit"
  68. @click="showModel(scope.row, 3)" v-hasPermi="['monitor:online:forceLogout']">签名</el-button>
  69. <el-button size="mini" type="text" icon="el-icon-edit"
  70. @click="showModel(scope.row, 4)" v-hasPermi="['monitor:online:forceLogout']">用印申请</el-button>
  71. <el-button size="mini" type="text" icon="el-icon-edit"
  72. @click="showModel(scope.row, 5)" v-hasPermi="['monitor:online:forceLogout']">送达裁决书</el-button>
  73. <el-button size="mini" type="text" icon="el-icon-edit"
  74. @click="showModel(scope.row, 6)" v-hasPermi="['monitor:online:forceLogout']">案件归档</el-button> -->
  75. </template>
  76. </el-table-column>
  77. </el-table>
  78. <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
  79. @pagination="getList(queryParams)" />
  80. <!-- 弹窗 -->
  81. <paymentdetailsDialog :openDialog="openDialog" :detailform="detailform" :title="title" :flag="flag"
  82. @cancelpaymentdetails="cancelpaymentdetails" @updataList="updataList"></paymentdetailsDialog>
  83. <!-- 送达裁决书页面 -->
  84. <mailawardDialog
  85. :openMailawardDialog="openMailawardDialog"
  86. @closeMailaward="closeMailaward"
  87. @updataList="updataList"
  88. :mailawardata="mailawardata"
  89. ></mailawardDialog>
  90. <!-- 快递信息页面 -->
  91. <expressDeliveryDialog
  92. :showDelivery="showDelivery"
  93. @closeDeliveryModel="closeDeliveryModel"
  94. ></expressDeliveryDialog>
  95. </div>
  96. </template>
  97. <script>
  98. import {
  99. caseApplicationList,
  100. caseApplicationDetail,
  101. } from "@/api/awardManagement/awardManagement";
  102. import paymentdetailsDialog from "./components/paymentdetailsDialog.vue";
  103. import mailawardDialog from './components/MailawardDialog.vue';
  104. import expressDeliveryDialog from './components/expressDeliveryDialog.vue';
  105. export default {
  106. name: "paymentList",
  107. dicts: ["case_status"],
  108. components: { paymentdetailsDialog, mailawardDialog, expressDeliveryDialog },
  109. data() {
  110. return {
  111. queryParams: {
  112. pageNum: 1,
  113. pageSize: 10,
  114. },
  115. // 遮罩层
  116. loading: false,
  117. // 总条数
  118. total: 0,
  119. // 表格数据
  120. list: [],
  121. // 弹出层标题
  122. title: "",
  123. payTitle: "",
  124. // 是否显示弹出层
  125. open: false,
  126. openPay: false,
  127. // 弹出层内容
  128. form: {},
  129. // 校验表单
  130. rules: {},
  131. dataList: [],
  132. detailform: {}, //缴费详情数据
  133. openDialog: false, //缴费详情数据弹框
  134. flag: null,
  135. openMailawardDialog: false, //送达裁决书页面
  136. mailawardata: {}, //裁决书送达界面数据
  137. showDelivery: false, //快递信息弹框
  138. };
  139. },
  140. created() {
  141. // 裁决书列表不显示 生成裁决书
  142. // this.queryParams.caseStatusList = [10, 11, 12, 13, 14, 15, 16]
  143. this.queryParams.caseStatusList = [11, 12, 13, 14, 15, 16]
  144. this.getList(this.queryParams);
  145. },
  146. methods: {
  147. updataList(){
  148. this.getList(this.queryParams);
  149. },
  150. /** 搜索按钮操作 */
  151. handleQuery() {
  152. this.queryParams.pageNum = 1;
  153. this.getList(this.queryParams);
  154. },
  155. /** 重置按钮操作 */
  156. resetQuery() {
  157. this.resetForm("queryForm");
  158. this.handleQuery();
  159. },
  160. // 查询列表数据
  161. getList(parms) {
  162. this.loading = true;
  163. caseApplicationList(parms).then((response) => {
  164. this.dataList = response.rows;
  165. this.total = response.total;
  166. this.loading = false;
  167. });
  168. },
  169. // model框显示
  170. showModel(row, type) {
  171. this.getDetail({ id: row.id });
  172. this.openDialog = true;
  173. switch (type) {
  174. case 1:
  175. this.title = "核验裁决书";
  176. this.flag = 1;
  177. break;
  178. case 2:
  179. this.title = "审核裁决书";
  180. this.flag = 2;
  181. break;
  182. case 3:
  183. this.title = "裁决书签名";
  184. this.flag = 3;
  185. break;
  186. default:
  187. break;
  188. }
  189. },
  190. // 关闭弹窗
  191. cancelpaymentdetails() {
  192. this.openDialog = false;
  193. },
  194. // 用印申请
  195. showaffixModel(row) {
  196. this.$modal.confirm('是否进行用印申请?')
  197. .then(function () {
  198. // return changeJobStatus(row.jobId, row.status);
  199. })
  200. .then(() => {
  201. // this.$modal.msgSuccess(text + "成功");
  202. })
  203. .catch(function () {
  204. // row.status = row.status === "0" ? "1" : "0";
  205. });
  206. },
  207. // 快递信息弹框
  208. showDeliveryModel(row) {
  209. console.log(row,'快递');
  210. this.showDelivery = true
  211. },
  212. closeDeliveryModel() {
  213. this.showDelivery = false
  214. },
  215. // 案件归档
  216. showCasefilingModel() {
  217. this.$modal.confirm('是否确认立即进行案件扫描?').then(
  218. function () {}
  219. ).then(() => {
  220. }).catch(function () {
  221. })
  222. },
  223. // 送达裁决书弹框
  224. showMailaward(row) {
  225. this.mailawardata = row;
  226. this.openMailawardDialog = true
  227. },
  228. // 关闭送达裁决书弹框
  229. closeMailaward(row) {
  230. this.openMailawardDialog = false
  231. },
  232. /** 查询详情 */
  233. getDetail(parms) {
  234. caseApplicationDetail(parms).then((res) => {
  235. this.detailform = res.data;
  236. });
  237. },
  238. },
  239. };
  240. </script>
  241. <style lang="scss" scoped></style>