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

236 line
7.6 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. v-model="circulation.shyqrdm"
  17. label="使用权人"
  18. input-align="right"
  19. />
  20. <van-field
  21. readonly
  22. v-model="circulation.zjddm"
  23. label="宅基地代码"
  24. input-align="right"
  25. />
  26. <van-field
  27. readonly
  28. v-model="zjlx"
  29. label="申请人证件类型"
  30. input-align="right"
  31. label-width="auto"
  32. />
  33. <van-field readonly v-model="circulation.sqrzjhm" label="申请人证件号码" placeholder="申请人证件号码" input-align="right" label-width="auto"/>
  34. <van-field readonly v-model="circulation.ycsyfs" label="有偿使用方式" placeholder="有偿使用方式" input-align="right" label-width="auto"/>
  35. <van-cell title="是否一户多宅">
  36. <template #right-icon>
  37. {{circulation.sfyhdz == 'Y' ? '是' : '否'}}
  38. </template>
  39. </van-cell>
  40. <van-field
  41. readonly
  42. v-model="circulation.ycsykssj"
  43. label="有偿使用开始时间"
  44. input-align="right"
  45. label-width="auto"
  46. />
  47. <van-field
  48. readonly
  49. v-model="circulation.ycsydqsj"
  50. label="有偿使用到期时间"
  51. input-align="right"
  52. label-width="auto"
  53. />
  54. <van-field readonly v-model="circulation.ycsymj" label="有偿使用面积(㎡)" placeholder="请输入有偿使用面积㎡" input-align="right" label-width="auto"/>
  55. <van-field readonly v-model="circulation.ycsymjdj" label="有偿使用面积单价(元)" placeholder="请输入有偿使用面积单价" input-align="right" label-width="auto"/>
  56. <van-field readonly v-model="circulation.ycsyfy" label="有偿使用费用(元)" placeholder="请输入有偿使用费用" input-align="right" label-width="auto"/>
  57. <van-field readonly v-model="circulation.fkfs" label="付款方式" placeholder="请输入付款方式" input-align="right" label-width="auto"/>
  58. <van-field readonly v-model="circulation.bz" label="备注" placeholder="请输入内容" input-align="right" label-width="auto"/>
  59. </div>
  60. </div>
  61. </template>
  62. <script>
  63. import { zjdzd } from "@/api/onlineHome/homestead/circulation";
  64. import { zyyctcEdit , getYcsy , ycsyEdit } from "@/api/onlineHome/homestead/paidUtilize";
  65. export default {
  66. name: "paidUtilizeDteail",
  67. data() {
  68. return {
  69. tcqllxDictionaries:[],//退出权利类型
  70. tclxDictionaries:[],//退出类型
  71. tcfsDictionaries:[],//退出方式
  72. zjlxDictionaries:[],//申请人证件类型
  73. bcfsDictionaries:[],//补偿方式
  74. zjdDictionaries:[],//宅基地代码
  75. shyqrdmDictionaries:[],//使用权人
  76. tcqllx:'',
  77. tclx:'',
  78. tcfs:'',
  79. zjlx:'',
  80. bcfs:'',
  81. zjddm:'',
  82. showtcqllx: false,
  83. showtclx: false,
  84. showtcfs: false,
  85. showzjlx: false,
  86. showbcfs: false,
  87. showzjddm: false,
  88. showshyqrdm: false,
  89. showycsykssj: false,
  90. showycsydqsj: false,
  91. circulation:{},
  92. minDate: new Date(),
  93. maxDate: new Date(2025, 10, 1),
  94. currentDate: new Date(),
  95. };
  96. },
  97. created() {
  98. this.getDictionaries();
  99. },
  100. methods: {
  101. getDictionaries(){
  102. getYcsy(this.$route.query.id).then(response => {
  103. //退出权利类型
  104. this.houseGetDicts("tcqllx").then((res) => {
  105. for (var i = 0; i < res.data.length; i++) {
  106. this.tcqllxDictionaries.push({text: res.data[i].dictLabel, value: res.data[i].dictValue});
  107. }
  108. this.tcqllx = this.selectDictLabel(res.data, response.data.tcqllx);
  109. });
  110. //退出类型
  111. this.houseGetDicts("tclx").then((res) => {
  112. for (var i = 0; i < res.data.length; i++) {
  113. this.tclxDictionaries.push({text: res.data[i].dictLabel, value: res.data[i].dictValue});
  114. }
  115. this.tclx = this.selectDictLabel(res.data, response.data.tclx);
  116. });
  117. //退出方式
  118. this.houseGetDicts("tcfs").then((res) => {
  119. for (var i = 0; i < res.data.length; i++) {
  120. this.tcfsDictionaries.push({text: res.data[i].dictLabel, value: res.data[i].dictValue});
  121. }
  122. this.tcfs = this.selectDictLabel(res.data, response.data.tcfs);
  123. });
  124. //申请人证件类型
  125. this.houseGetDicts("zjlx").then((res) => {
  126. for (var i = 0; i < res.data.length; i++) {
  127. this.zjlxDictionaries.push({text: res.data[i].dictLabel, value: res.data[i].dictValue});
  128. }
  129. this.zjlx = this.selectDictLabel(res.data, response.data.sqrzjlx);
  130. });
  131. //补偿方式
  132. this.houseGetDicts("bcfs").then((res) => {
  133. for (var i = 0; i < res.data.length; i++) {
  134. this.bcfsDictionaries.push({text: res.data[i].dictLabel, value: res.data[i].dictValue});
  135. }
  136. this.bcfs = this.selectDictLabel(res.data, response.data.bcfs);
  137. });
  138. //宅基地代码
  139. zjdzd().then(zjdRes => {
  140. for (let i = 0; i < zjdRes.rows.length; i++) {
  141. this.zjdDictionaries.push(zjdRes.rows[i].zjddm);
  142. }
  143. });
  144. this.circulation = response.data;
  145. });
  146. },
  147. onConfirmZjddm(data){
  148. console.log(data)
  149. this.circulation.zjddm = data;
  150. this.showzjddm = false;
  151. },
  152. onConfirmZjlx(data){
  153. this.zjlx = data.text;
  154. this.circulation.sqrzjlx = data.value;
  155. this.showzjlx = false;
  156. },
  157. onConfirmTcqllx(data){
  158. this.tcqllx = data.text;
  159. this.circulation.tcqllx = data.value;
  160. this.showtcqllx = false;
  161. },
  162. onConfirmTclx(data){
  163. this.tclx = data.text;
  164. this.circulation.tclx = data.value;
  165. this.showtclx = false;
  166. },
  167. onConfirmTcfs(data){
  168. this.tcfs = data.text;
  169. this.circulation.tcfs = data.value;
  170. this.showtcfs = false;
  171. },
  172. onConfirmBcfs(data){
  173. this.bcfs = data.text;
  174. this.circulation.bcfs = data.value;
  175. this.showbcfs = false;
  176. },
  177. onConfirmShyqrdm(data){
  178. this.circulation.shyqrdm = data;
  179. this.showshyqrdm = false;
  180. },
  181. onConfirmYcsykssj(data){
  182. this.circulation.ycsykssj = this.getNowFormatDate(data).substr(0,10);
  183. this.showycsykssj = false;
  184. },
  185. onConfirmYcsydqsj(data){
  186. this.circulation.ycsydqsj = this.getNowFormatDate(data).substr(0,10);
  187. this.showycsydqsj = false;
  188. },
  189. goEdit(){
  190. window.location.replace("paidUtilizeList")
  191. },
  192. goSubmit(){
  193. ycsyEdit(this.circulation).then(response => {
  194. if(response.code = 200){
  195. this.$toast.success('修改成功');
  196. setTimeout(function(){
  197. window.location.replace("paidUtilizeList")
  198. },1000)
  199. }
  200. });
  201. }
  202. },
  203. }
  204. </script>
  205. <style scoped lang="scss">
  206. .app-container {
  207. padding: 2% 0;
  208. }
  209. .main_title{
  210. font-size: 0.4rem;
  211. color: #1D6FE9;
  212. margin: 0.2rem 6%;
  213. position: relative;
  214. }
  215. .main_box{
  216. width: 96%;
  217. margin: 0 auto;
  218. border-radius: 6px;
  219. box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.16);
  220. overflow: hidden;
  221. background-color: #FFF;
  222. }
  223. .submitButton{
  224. width: 80%;
  225. margin: 0 auto;
  226. background-color: #1D6FE9;
  227. }
  228. </style>