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

287 lines
9.1 KiB

  1. <template>
  2. <div class="app-container">
  3. <div class="header_main">
  4. 有偿使用
  5. <div class="return_btn" @click="onClickLeft"></div>
  6. </div>
  7. <div class="main_box">
  8. <van-field
  9. readonly
  10. v-model="circulation.shyqrdm"
  11. label="使用权人"
  12. input-align="right"
  13. />
  14. <van-field
  15. readonly
  16. v-model="circulation.zjddm"
  17. label="宅基地代码"
  18. input-align="right"
  19. >
  20. <template #button>
  21. <van-button size="small" @click="mapLook" type="primary">查看地图</van-button>
  22. </template>
  23. </van-field>
  24. <van-field
  25. readonly
  26. v-model="zjlx"
  27. label="申请人证件类型"
  28. input-align="right"
  29. label-width="auto"
  30. />
  31. <van-field readonly v-model="circulation.sqrzjhm" label="申请人证件号码" placeholder="申请人证件号码" input-align="right" label-width="auto"/>
  32. <van-field readonly v-model="circulation.ycsyfs" label="有偿使用方式" placeholder="有偿使用方式" input-align="right" label-width="auto"/>
  33. <van-cell title="是否一户多宅">
  34. <template #right-icon>
  35. {{circulation.sfyhdz == 'Y' ? '是' : '否'}}
  36. </template>
  37. </van-cell>
  38. <van-field
  39. readonly
  40. v-model="circulation.ycsykssj"
  41. label="有偿使用开始时间"
  42. input-align="right"
  43. label-width="auto"
  44. />
  45. <van-field
  46. readonly
  47. v-model="circulation.ycsydqsj"
  48. label="有偿使用到期时间"
  49. input-align="right"
  50. label-width="auto"
  51. />
  52. <van-dialog v-model="mapShow" show-cancel-button>
  53. <MapGisObtainTc ref="zjdProductResh" :shqrxm="circulation.sqrxm" :landStatus="landStatus" :deptId="circulation.deptId" @closeMoule="closeMoule"></MapGisObtainTc>
  54. </van-dialog>
  55. <van-field readonly v-model="circulation.ycsymj" label="有偿使用面积(㎡)" placeholder="请输入有偿使用面积㎡" input-align="right" label-width="auto"/>
  56. <van-field readonly v-model="circulation.ycsymjdj" label="有偿使用面积单价(元)" placeholder="请输入有偿使用面积单价" input-align="right" label-width="auto"/>
  57. <van-field readonly v-model="circulation.ycsyfy" label="有偿使用费用(元)" placeholder="请输入有偿使用费用" input-align="right" label-width="auto"/>
  58. <van-field readonly v-model="circulation.fkfs" label="付款方式" placeholder="请输入付款方式" input-align="right" label-width="auto"/>
  59. <van-field readonly v-model="circulation.bz" label="备注" placeholder="请输入内容" input-align="right" label-width="auto"/>
  60. </div>
  61. </div>
  62. </template>
  63. <script>
  64. import { zjdzd } from "@/api/onlineHome/homestead/circulation";
  65. import { zyyctcEdit , getYcsy , ycsyEdit } from "@/api/onlineHome/homestead/paidUtilize";
  66. import MapGisObtainTc from "@/components/Map/MapGisObtainTc";
  67. import $ from "jquery";
  68. export default {
  69. name: "paidUtilizeDteail",
  70. components: {MapGisObtainTc},
  71. data() {
  72. return {
  73. tcqllxDictionaries:[],//退出权利类型
  74. tclxDictionaries:[],//退出类型
  75. tcfsDictionaries:[],//退出方式
  76. zjlxDictionaries:[],//申请人证件类型
  77. bcfsDictionaries:[],//补偿方式
  78. zjdDictionaries:[],//宅基地代码
  79. shyqrdmDictionaries:[],//使用权人
  80. landStatus:"1",
  81. tcqllx:'',
  82. tclx:'',
  83. tcfs:'',
  84. zjlx:'',
  85. bcfs:'',
  86. zjddm:'',
  87. showtcqllx: false,
  88. showtclx: false,
  89. showtcfs: false,
  90. showzjlx: false,
  91. showbcfs: false,
  92. showzjddm: false,
  93. showshyqrdm: false,
  94. showycsykssj: false,
  95. showycsydqsj: false,
  96. circulation:{},
  97. mapShow: false,
  98. };
  99. },
  100. created() {
  101. this.getDictionaries();
  102. },
  103. methods: {
  104. getDictionaries(){
  105. getYcsy(this.$route.query.id).then(response => {
  106. //退出权利类型
  107. this.houseGetDicts("tcqllx").then((res) => {
  108. for (var i = 0; i < res.data.length; i++) {
  109. this.tcqllxDictionaries.push({text: res.data[i].dictLabel, value: res.data[i].dictValue});
  110. }
  111. this.tcqllx = this.selectDictLabel(res.data, response.data.tcqllx);
  112. });
  113. //退出类型
  114. this.houseGetDicts("tclx").then((res) => {
  115. for (var i = 0; i < res.data.length; i++) {
  116. this.tclxDictionaries.push({text: res.data[i].dictLabel, value: res.data[i].dictValue});
  117. }
  118. this.tclx = this.selectDictLabel(res.data, response.data.tclx);
  119. });
  120. //退出方式
  121. this.houseGetDicts("tcfs").then((res) => {
  122. for (var i = 0; i < res.data.length; i++) {
  123. this.tcfsDictionaries.push({text: res.data[i].dictLabel, value: res.data[i].dictValue});
  124. }
  125. this.tcfs = this.selectDictLabel(res.data, response.data.tcfs);
  126. });
  127. //申请人证件类型
  128. this.houseGetDicts("zjlx").then((res) => {
  129. for (var i = 0; i < res.data.length; i++) {
  130. this.zjlxDictionaries.push({text: res.data[i].dictLabel, value: res.data[i].dictValue});
  131. }
  132. this.zjlx = this.selectDictLabel(res.data, response.data.sqrzjlx);
  133. });
  134. //补偿方式
  135. this.houseGetDicts("bcfs").then((res) => {
  136. for (var i = 0; i < res.data.length; i++) {
  137. this.bcfsDictionaries.push({text: res.data[i].dictLabel, value: res.data[i].dictValue});
  138. }
  139. this.bcfs = this.selectDictLabel(res.data, response.data.bcfs);
  140. });
  141. //宅基地代码
  142. zjdzd().then(zjdRes => {
  143. for (let i = 0; i < zjdRes.rows.length; i++) {
  144. this.zjdDictionaries.push(zjdRes.rows[i].zjddm);
  145. }
  146. });
  147. this.circulation = response.data;
  148. });
  149. },
  150. /** 查找地图中定位点 */
  151. MapTag: function (data) {
  152. //this.form.theGeom = data;
  153. },
  154. onConfirmZjddm(data){
  155. console.log(data)
  156. this.circulation.zjddm = data;
  157. this.showzjddm = false;
  158. },
  159. onConfirmZjlx(data){
  160. this.zjlx = data.text;
  161. this.circulation.sqrzjlx = data.value;
  162. this.showzjlx = false;
  163. },
  164. onConfirmTcqllx(data){
  165. this.tcqllx = data.text;
  166. this.circulation.tcqllx = data.value;
  167. this.showtcqllx = false;
  168. },
  169. onConfirmTclx(data){
  170. this.tclx = data.text;
  171. this.circulation.tclx = data.value;
  172. this.showtclx = false;
  173. },
  174. onConfirmTcfs(data){
  175. this.tcfs = data.text;
  176. this.circulation.tcfs = data.value;
  177. this.showtcfs = false;
  178. },
  179. onConfirmBcfs(data){
  180. this.bcfs = data.text;
  181. this.circulation.bcfs = data.value;
  182. this.showbcfs = false;
  183. },
  184. onConfirmShyqrdm(data){
  185. this.circulation.shyqrdm = data;
  186. this.showshyqrdm = false;
  187. },
  188. onConfirmYcsykssj(data){
  189. this.circulation.ycsykssj = this.getNowFormatDate(data).substr(0,10);
  190. this.showycsykssj = false;
  191. },
  192. onConfirmYcsydqsj(data){
  193. this.circulation.ycsydqsj = this.getNowFormatDate(data).substr(0,10);
  194. this.showycsydqsj = false;
  195. },
  196. goEdit(){
  197. window.location.replace("paidUtilizeList")
  198. },
  199. goSubmit(){
  200. ycsyEdit(this.circulation).then(response => {
  201. if(response.code = 200){
  202. this.$toast.success('修改成功');
  203. setTimeout(function(){
  204. window.location.replace("paidUtilizeList")
  205. },1000)
  206. }
  207. });
  208. },
  209. mapLook(){
  210. this.mapShow =true;
  211. setTimeout(() => {
  212. this.$refs.zjdProductResh.drawingLyPaceCountryDarw();
  213. },1000)
  214. },
  215. },
  216. }
  217. </script>
  218. <style scoped lang="scss">
  219. .app-container {
  220. .header_main{
  221. height: 116px;
  222. background: url('../../../../assets/images/sunVillage_info/list_head.png') no-repeat;
  223. background-size: 100% 100%;
  224. position: fixed;
  225. top: 0;
  226. left: 0;
  227. width: 100%;
  228. font-size: 36px;
  229. line-height: 116px;
  230. text-align: center;
  231. color: #fff;
  232. position: relative;
  233. .return_btn{
  234. width: 24px;
  235. height: 43.2px;
  236. background: url('../../../../assets/images/sunVillage_info/list_icon_5.png') center center no-repeat;
  237. background-size: 20px 36px;
  238. position: absolute;
  239. left: 38px;
  240. top: 36px;
  241. }
  242. .add_btn{
  243. width: 56.4px;
  244. height: 40.8px;
  245. background: url('../../../../assets/images/sunVillage_info/list_icon_9.png') center center no-repeat;
  246. background-size: 47px 34px;
  247. position: absolute;
  248. right: 38px;
  249. top: 36px;
  250. }
  251. }
  252. }
  253. .main_title{
  254. font-size: 0.4rem;
  255. color: #1D6FE9;
  256. margin: 0.2rem 6%;
  257. position: relative;
  258. }
  259. .main_box{
  260. width: 96%;
  261. margin: 0 auto;
  262. border-radius: 6px;
  263. box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.16);
  264. overflow: hidden;
  265. background-color: #FFF;
  266. }
  267. .submitButton{
  268. width: 80%;
  269. margin: 0 auto;
  270. background-color: #1D6FE9;
  271. }
  272. .mapBox{
  273. position: relative;
  274. .mapBox_button{
  275. position: absolute;
  276. top: 0.2rem;
  277. right: 2%;
  278. }
  279. }
  280. </style>