移动端
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.

200 lines
5.8 KiB

  1. <template>
  2. <div class="app-container">
  3. <van-nav-bar
  4. left-arrow
  5. fixed
  6. placeholder
  7. @click-left="$router.back(-1)"
  8. >
  9. <template #title>
  10. <p style="font-weight: bold;">结案</p>
  11. </template>
  12. </van-nav-bar>
  13. <div class="main_box">
  14. <van-field
  15. readonly
  16. clickable
  17. label="是否在建建筑物"
  18. v-model="sfzjjzw"
  19. @click="showSys = true"
  20. input-align="right"
  21. label-width="auto"
  22. />
  23. <van-field readonly label="宅基地代码" v-model="jgList.zjddm" input-align="right" />
  24. <!-- <van-popup v-model="showZjd" position="bottom">-->
  25. <!-- <van-picker-->
  26. <!-- show-toolbar-->
  27. <!-- @cancel="showZjd = false"-->
  28. <!-- />-->
  29. <!-- </van-popup>-->
  30. <van-field
  31. readonly
  32. clickable
  33. label="监管类型"
  34. v-model="jglx"
  35. @click="showjglx = true"
  36. input-align="right"
  37. />
  38. <van-field
  39. readonly
  40. clickable
  41. v-model="jgList.lasj"
  42. label="立案时间"
  43. @click="showlasj = true"
  44. input-align="right"
  45. />
  46. <van-field readonly label="巡查人" v-model="jgList.inspector" input-align="right" label-width="auto"/>
  47. <van-field
  48. readonly
  49. clickable
  50. label="巡查时间"
  51. v-model="jgList.inspectorTime"
  52. @click="showinspectorTime = true"
  53. input-align="right"
  54. />
  55. </div>
  56. <p class="main_title">违法信息</p>
  57. <div class="main_box">
  58. <van-field
  59. readonly
  60. clickable
  61. label="违法用地类型"
  62. placeholder="请选择"
  63. v-model="wfydlx"
  64. @click="showwfydlx = true"
  65. input-align="right"
  66. right-icon="arrow-down"
  67. />
  68. <van-popup v-model="showwfydlx" position="bottom">
  69. <van-picker
  70. show-toolbar
  71. :columns="wfydlxDictionaries"
  72. @confirm="onConfirmWfydlx"
  73. @cancel="showwfydlx = false"
  74. />
  75. </van-popup>
  76. <van-field v-model="jgList.wfydmj" label="违法用地面积" placeholder="请输入面积" input-align="right" label-width="auto"/>
  77. <van-field v-model="jgList.fmkje" label="罚没款金额" placeholder="请输入金额" input-align="right" label-width="auto"/>
  78. <van-field v-model="jgList.msmj" label="没收面积" placeholder="请输入面积" input-align="right" label-width="auto"/>
  79. <van-field v-model="jgList.ccmj" label="拆除面积" placeholder="请输入面积" input-align="right" label-width="auto"/>
  80. </div>
  81. <div style="padding: 16px 0;" v-if="allowCUD">
  82. <van-row>
  83. <van-col span="12" align="center">
  84. <van-button type="info" color="#B4B0B0" @click="goBack" native-type="submit" class="submitButton">取<i style="margin-right: 1em;"></i>消</van-button>
  85. </van-col>
  86. <van-col span="12" align="center">
  87. <van-button type="info" native-type="submit" @click="goAdd" class="submitButton">结<i style="margin-right: 1em;"></i>案</van-button>
  88. </van-col>
  89. </van-row>
  90. <div class="clear"></div>
  91. </div>
  92. </div>
  93. </template>
  94. <script>
  95. import { closeCase , getJg } from "@/api/onlineHome/homestead/reporting";
  96. export default {
  97. name: "taskCloseCaseAdd",
  98. data() {
  99. return {
  100. showSys:false,
  101. showjglx:false,
  102. showlasj:false,
  103. showinspectorTime:false,
  104. showwfydlx:false,
  105. minDate: new Date(),
  106. maxDate: new Date(2025, 10, 1),
  107. currentDate: new Date(),
  108. jgList:{},
  109. sfzjjzw:'',
  110. jglx:'',
  111. wfydlx:'',
  112. wfydlxDictionaries:[],
  113. jglxDictionaries:[],
  114. sysDictionaries:[],
  115. };
  116. },
  117. created() {
  118. this.jgList.taskId = this.$route.query.id;
  119. this.houseGetDicts("jglx").then((res) => {
  120. this.jglxDictionaries = res.data;
  121. });
  122. this.houseGetDicts("sys_yes_no").then((res) => {
  123. console.log(res)
  124. this.sysDictionaries = res.data;
  125. });
  126. this.getDictionaries();
  127. },
  128. computed: {
  129. allowCUD: function () {
  130. return this.$store.getters.businessLevel == '2'
  131. },
  132. },
  133. methods: {
  134. getDictionaries(){
  135. getJg(this.$route.query.id).then(response => {
  136. console.log(this.selectDictLabel(this.jglxDictionaries, response.data.jglx))
  137. this.houseGetDicts("villations_type").then((res) => {
  138. for(var i = 0 ; i < res.data.length ; i++){
  139. this.wfydlxDictionaries.push({text:res.data[i].dictLabel,value:res.data[i].dictValue});
  140. }
  141. this.wfydlx = this.selectDictLabel(res.data, response.data.wfydlx);
  142. });
  143. this.jglx = this.selectDictLabel(this.jglxDictionaries, response.data.jglx);
  144. this.sfzjjzw = this.selectDictLabel(this.sysDictionaries, response.data.sfzjjzw);
  145. this.jgList = response.data;
  146. })
  147. },
  148. onConfirmWfydlx(data){
  149. this.wfydlx = data.text;
  150. this.jgList.wfydlx = data.value;
  151. this.showwfydlx = false;
  152. },
  153. goAdd(){
  154. closeCase(this.jgList).then(response => {
  155. console.log(response);
  156. this.$toast.success('结案成功');
  157. setTimeout(function(){
  158. history.go(-1)
  159. },2000)
  160. });
  161. },
  162. goBack(){
  163. window.history.go(-1)
  164. }
  165. },
  166. }
  167. </script>
  168. <style scoped lang="scss">
  169. .app-container {
  170. padding: 2% 0;
  171. }
  172. .main_title{
  173. font-size: 0.4rem;
  174. color: #1D6FE9;
  175. margin: 0.2rem 6%;
  176. position: relative;
  177. }
  178. .main_box{
  179. width: 96%;
  180. margin: 0 auto;
  181. border-radius: 6px;
  182. box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.16);
  183. overflow: hidden;
  184. background-color: #FFF;
  185. }
  186. .submitButton{
  187. width: 80%;
  188. margin: 0 auto;
  189. background-color: #1D6FE9;
  190. }
  191. </style>