移动端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

caseDetail.vue 12 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361
  1. <template>
  2. <div class="app-container">
  3. <div class="header_main">
  4. {{title}}
  5. <div class="return_btn" @click="onClickLeft"></div>
  6. </div>
  7. <div style="height: 58px;"></div>
  8. <div class="main_box">
  9. <van-cell>
  10. <template #title>
  11. <van-icon name="../../../static/images/lawEnforcement/icon/icon_zxfa.png" size="20"></van-icon>
  12. <span class="custom-title">登记<i class="bgBlue"></i></span>
  13. </template>
  14. </van-cell>
  15. <van-cell title="案件来源" :border="false" v-model="form.caseSource" />
  16. <van-cell title="关联方案" :border="false" v-model="form.scheme" />
  17. <van-cell title="案件属地" :border="false" v-model="form.deptId" />
  18. <van-cell title="执行主体" :border="false" v-model="form.belongTeam" />
  19. <van-cell title="案件名称" :border="false" v-model="form.caseName" />
  20. <van-cell title="登记日期" :border="false" v-model="form.registerDate" />
  21. <van-cell title="执法类别" :border="false" v-model="form.enforceCategory" />
  22. <van-cell title="案件简述" :border="false" v-model="form.caseDescribe" />
  23. </div>
  24. <div class="main_box" style="margin-top: 10px;">
  25. <van-collapse v-model="activeNames">
  26. <van-collapse-item name="1">
  27. <template #title>
  28. <van-icon name="../../../static/images/lawEnforcement/icon/icon_dsr.png" size="20"></van-icon>
  29. <span class="custom-title">当事人<i class="bgBlue"></i></span>
  30. </template>
  31. <van-cell title="当事人类型" :border="false" v-model="form.type" />
  32. <template v-if="form.type=='个人/个体工商户'">
  33. <van-cell title="当事人姓名" :border="false" v-model="form.name" />
  34. <van-cell title="性别" :border="false" v-model="form.sex" />
  35. <van-cell title="身份证号" :border="false" v-model="form.cardNum" />
  36. <van-cell title="出生日期" :border="false" v-model="form.birthday" />
  37. <van-cell title="民族" :border="false" v-model="form.nation" />
  38. <van-cell title="工作单位" :border="false" v-model="form.companyPosition" />
  39. <van-cell title="职务" :border="false" v-model="form.duties" />
  40. <van-cell title="字号名称" :border="false" v-model="form.zihao" />
  41. </template>
  42. <template v-if="form.type=='企业'">
  43. <van-cell title="企业名称" :border="false" v-model="form.companyName" />
  44. <van-cell title="法人/负责人" :border="false" v-model="form.legalName" />
  45. </template>
  46. <van-cell title="联系电话" :border="false" v-model="form.phone" />
  47. <van-cell title="联系地址" :border="false" v-model="form.address" />
  48. <van-cell title="统一社会信用代码" :border="false" v-model="form.uniformCode" />
  49. </van-collapse-item>
  50. </van-collapse>
  51. </div>
  52. <div class="main_box" style="margin-top: 10px;">
  53. <van-collapse v-model="activeNames1">
  54. <van-collapse-item name="1">
  55. <template #title>
  56. <van-icon name="../../../static/images/lawEnforcement/icon/icon_ajwd.png" size="20"></van-icon>
  57. <span class="custom-title">附件<i class="bgBlue"></i></span>
  58. </template>
  59. <div class="cf">
  60. <van-uploader v-model="form.attachementList" :show-upload="false" :deletable="false" />
  61. <van-empty v-if="form.attachement == null " description="暂无文件" />
  62. </div>
  63. </van-collapse-item>
  64. </van-collapse>
  65. </div>
  66. <div class="main_box" style="margin-top: 10px;">
  67. <van-collapse v-model="activeNames2">
  68. <van-collapse-item name="1">
  69. <template #title>
  70. <van-icon name="../../../static/images/lawEnforcement/icon/icon_zxry.png" size="20"></van-icon>
  71. <span class="custom-title">执法人员<i class="bgBlue"></i></span>
  72. </template>
  73. <div class="peopleList">
  74. <van-row>
  75. <van-col :span="4">序号</van-col>
  76. <van-col :span="6">执行人员</van-col>
  77. <van-col :span="10">执法证号</van-col>
  78. <van-col :span="4">带队人</van-col>
  79. </van-row>
  80. <van-row v-for="(item,index) in tEnforceCaseHandlerList" :key="index" >
  81. <van-col :span="4">{{index+1}}</van-col>
  82. <van-col :span="6">{{item.enforcerName}}</van-col>
  83. <van-col :span="10">{{item.enforcerNum}}</van-col>
  84. <van-col :span="4">
  85. <div class="icon_box">
  86. <van-checkbox v-model="item.enforcerLeader" shape="square"></van-checkbox>
  87. </div>
  88. </van-col>
  89. </van-row>
  90. <!-- <img src="../../../../static/images/lawEnforcement/new/addPeop_btn.png" style="margin: 0 auto;" @click="$router.push({name:'lawEnforcementCaseLawEnforcer'})">-->
  91. </div>
  92. </van-collapse-item>
  93. </van-collapse>
  94. </div>
  95. </div>
  96. </template>
  97. <script>
  98. import { getCase , getDeptName , getSurveyByCaseId , schemeList } from "@/api/lawEnforcement/index";
  99. export default {
  100. name: "programmeDetail",
  101. data() {
  102. return {
  103. showBankType:false,
  104. showPayeeType:false,
  105. showPicker:false,
  106. form:{},
  107. title:'查看登记',
  108. bankType:'',
  109. payeeType:'',
  110. value:'',
  111. bankTypeOptions:[],
  112. payeeTypeOptions:[],
  113. tEnforceSchemeHandlerList:[],
  114. minDate: new Date(2020, 0, 1),
  115. maxDate: new Date(2025, 10, 1),
  116. currentDate: new Date(2021, 0, 17),
  117. activeNames: ['1'],
  118. activeNames1: ['1'],
  119. activeNames2: ['1'],
  120. caseSourceOptions:[],
  121. belongTeamOptions:[],
  122. schemeOptions:[],
  123. // 查询参数
  124. queryParams: {
  125. // 分页
  126. pageNum: 1,
  127. pageSize: 10,
  128. // 查询排序
  129. orderByColumn: "id",
  130. isAsc: "desc",
  131. name: null, // 搜索参数-执行人姓名或证件号
  132. belongTeam: null, // 搜索参数-所在中队
  133. },
  134. tEnforceCaseHandlerList:[]
  135. };
  136. },
  137. created() {
  138. // this.getDictionaries()
  139. this.getDicts("case_source").then(response => {
  140. this.caseSourceOptions = response.data;
  141. });
  142. this.getDicts("team_category").then(response => {
  143. this.belongTeamOptions = response.data;
  144. });
  145. this.getDicts("enforce_body_type").then(response => {
  146. this.typeOptions = response.data;
  147. });
  148. this.getDicts("sex").then(response => {
  149. this.sexOptions = response.data;
  150. });
  151. this.getDicts("nationality").then(response => {
  152. this.nationOptions = response.data;
  153. });
  154. this.getDetail();
  155. if (this.$route.query.type == 'caseQuery'){
  156. this.title = '案件详情查看'
  157. }
  158. },
  159. methods: {
  160. getDetail(){
  161. getCase(this.$route.query.id).then((response) => {
  162. response.data.caseSource = response.data.caseSource == '' ? '' : this.selectDictLabel(this.caseSourceOptions, response.data.caseSource);
  163. response.data.belongTeam = response.data.belongTeam == '' ? '' : this.selectDictLabel(this.belongTeamOptions, response.data.belongTeam);
  164. if (response.data.type == '1'){
  165. response.data.sex = response.data.sex == '' ? '' : this.selectDictLabel(this.sexOptions, response.data.sex);
  166. response.data.nation = response.data.nation == '' ? '' : response.data.nation == '1' ? '汉族' : this.selectDictLabel(this.nationOptions, response.data.nation);
  167. }
  168. response.data.type = response.data.type == '' ? '' : this.selectDictLabel(this.typeOptions, response.data.type);
  169. var schemeQueryParam = {
  170. applyStatus: "1"
  171. };
  172. getDeptName(response.data.deptId).then(res => {
  173. response.data.deptId = res.data.deptName
  174. });
  175. if (response.data.attachement){
  176. response.data.attachementList = [];
  177. var attachement = response.data.attachement.split( "," );
  178. attachement.forEach(responseAttach=>{
  179. response.data.attachementList.push({
  180. url:'/api' + responseAttach,
  181. isImage: true
  182. });
  183. })
  184. // process.env.VUE_APP_BASE_ROUTING_URL + process.env.VUE_APP_BASE_API
  185. }
  186. console.log(response.data.scheme)
  187. schemeList(schemeQueryParam).then((responseScheme) => {
  188. console.log(responseScheme)
  189. response.data.scheme = response.data.schemeId == null ? '' : responseScheme.rows.filter(function (e) { return e.id == response.data.schemeId; })[0].schemeName;
  190. });
  191. var that = this ;
  192. setTimeout(function () {
  193. that.form = response.data;
  194. },3000)
  195. });
  196. getSurveyByCaseId(this.$route.query.id).then((response) => {
  197. if(response.data != undefined){
  198. this.tEnforceCaseHandlerList = response.data.tEnforceCaseHandlerList;
  199. }
  200. });
  201. },
  202. goBack(){
  203. window.history.go(-1)
  204. }
  205. },
  206. }
  207. </script>
  208. <style scoped lang="scss">
  209. .app-container {
  210. padding: 2% 0;
  211. }
  212. /deep/ .van-collapse-item__content{
  213. padding: 0;
  214. }
  215. .cf{
  216. padding: 0 3%;
  217. margin-top: 20PX;
  218. margin-bottom: 20PX;
  219. .van-row{
  220. background: #F0F3F5;
  221. .van-col{
  222. padding: 5PX 0;
  223. font-size: 12PX!important;
  224. text-align: center;
  225. p{
  226. color: #1D6FE9;
  227. }
  228. }
  229. &:first-child{
  230. background: transparent;
  231. }
  232. }
  233. }
  234. .header_main{
  235. height: 116px;
  236. background: url('../../../../static/images/lawEnforcement/new/list_head.png') no-repeat;
  237. background-size: 100% 100%;
  238. position: fixed;
  239. top: 0;
  240. left: 0;
  241. width: 100%;
  242. font-size: 36px;
  243. line-height: 116px;
  244. text-align: center;
  245. color: #fff;
  246. z-index: 999;
  247. .return_btn{
  248. width: 24px;
  249. height: 43.2px;
  250. background: url('../../../assets/images/sunVillage_info/list_icon_5.png') center center no-repeat;
  251. background-size: 20px 36px;
  252. position: absolute;
  253. left: 38px;
  254. top: 36px;
  255. }
  256. .add_btn{
  257. width: 56.4px;
  258. height: 40.8px;
  259. background: url('../../../assets/images/sunVillage_info/list_icon_9.png') center center no-repeat;
  260. background-size: 47px 34px;
  261. position: absolute;
  262. right: 38px;
  263. top: 36px;
  264. }
  265. }
  266. /deep/ .van-radio--horizontal{
  267. margin-left: 0.32rem;
  268. margin-right: 0;
  269. }
  270. .peopleList{
  271. padding: 3%;
  272. text-align: center;
  273. .van-row{
  274. margin-bottom: 10PX;
  275. background: rgba(196,218,249,0.3);
  276. border-radius: 5PX;
  277. .van-col{
  278. text-align: center;
  279. font-size: 14PX;
  280. color: #333333;
  281. padding: 5PX 0;
  282. }
  283. &:first-child{
  284. background: none;
  285. .van-col{
  286. padding: 0;
  287. color: #1D6FE9;
  288. }
  289. }
  290. }
  291. .icon_box{
  292. /deep/ .van-checkbox{
  293. justify-content: center;
  294. }
  295. }
  296. }
  297. .main_title{
  298. font-size: 0.4rem;
  299. color: #1D6FE9;
  300. margin: 0.2rem 6%;
  301. margin-top: 0;
  302. position: relative;
  303. }
  304. .main_box{
  305. width: 96%;
  306. margin: 0 auto;
  307. border-radius: 10PX;
  308. box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.16);
  309. overflow: hidden;
  310. background-color: #FFF;
  311. .van-icon{
  312. vertical-align: middle;
  313. }
  314. .custom-title{
  315. font-size: 17PX;
  316. color: #333333;
  317. vertical-align: middle;
  318. line-height: 1;
  319. position: relative;
  320. }
  321. .tap{
  322. color: #1D6FE9;
  323. }
  324. .bgBlue{
  325. display: block;
  326. position: absolute;
  327. width: 17PX;
  328. height: 17PX;
  329. border-radius: 50%;
  330. background-color: rgba(29,111,233,0.26);
  331. top: -2PX;
  332. right: -8PX;
  333. }
  334. }
  335. .submitButton{
  336. width: 80%;
  337. margin: 0 auto;
  338. background-color: #1D6FE9;
  339. }
  340. .addFamily{
  341. position: absolute;
  342. top: -2px;
  343. right: 0;
  344. border-radius: 50%;
  345. }
  346. </style>