移动端
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 

201 linhas
5.5 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. <p class="main_title">基础信息</p>
  14. <div class="main_box">
  15. <van-field label="收款方" placeholder="请输入收款方" input-align="right" label-width="auto"/>
  16. <van-field label="收款账户" placeholder="请输入收款账户" input-align="right" label-width="auto"/>
  17. <van-field
  18. readonly
  19. clickable
  20. label="所属银行"
  21. placeholder="请选择"
  22. v-model="sfzjjzw"
  23. @click="showSys = true"
  24. input-align="right"
  25. right-icon="arrow-down"
  26. label-width="auto"
  27. />
  28. <van-popup v-model="showSys" position="bottom">
  29. <van-picker
  30. show-toolbar
  31. :columns="sysDictionaries"
  32. @confirm="onConfirmSys"
  33. @cancel="showSys = false"
  34. />
  35. </van-popup>
  36. <van-field label="开户银行" placeholder="请输入开户银行" input-align="right" label-width="auto"/>
  37. </div>
  38. <div class="main_box" style="margin-top: 10px;">
  39. <van-field label="备注" type="textarea" placeholder="请输入备注" input-align="right" rows="3" label-width="auto"/>
  40. </div>
  41. <div class="main_box" style="margin-top: 10px;">
  42. <van-cell title="账户类型">
  43. <template #right-icon>
  44. <van-radio-group direction="horizontal">
  45. <van-radio name="1">公户</van-radio>
  46. <van-radio name="2">私户</van-radio>
  47. </van-radio-group>
  48. </template>
  49. </van-cell>
  50. <van-cell title="数据状态">
  51. <template #right-icon>
  52. <van-radio-group direction="horizontal">
  53. <van-radio name="1">正常</van-radio>
  54. <van-radio name="2">停用</van-radio>
  55. </van-radio-group>
  56. </template>
  57. </van-cell>
  58. </div>
  59. <div style="padding: 16px 0;">
  60. <van-row>
  61. <van-col span="24" align="center">
  62. <van-button type="info" native-type="submit" @click="goBack" class="submitButton">保<i style="margin-right: 1em;"></i>存</van-button>
  63. </van-col>
  64. </van-row>
  65. <div class="clear"></div>
  66. </div>
  67. </div>
  68. </template>
  69. <script>
  70. import { jgAdd } from "@/api/onlineHome/homestead/reporting";
  71. export default {
  72. name: "approvalAdd",
  73. data() {
  74. return {
  75. showSys:false,
  76. showjglx:false,
  77. showlasj:false,
  78. showinspectorTime:false,
  79. showwfydlx:false,
  80. showReformDeadline:false,
  81. minDate: new Date(),
  82. maxDate: new Date(2025, 10, 1),
  83. currentDate: new Date(),
  84. jgList:{},
  85. sfzjjzw:'',
  86. jglx:'',
  87. wfydlx:'',
  88. wfydlxDictionaries:[],
  89. jglxDictionaries:[],
  90. sysDictionaries:[],
  91. };
  92. },
  93. created() {
  94. this.getDictionaries();
  95. },
  96. methods: {
  97. getDictionaries(){
  98. //违法用地类型
  99. this.houseGetDicts("villations_type").then((res) => {
  100. for(var i = 0 ; i < res.data.length ; i++){
  101. this.wfydlxDictionaries.push({text:res.data[i].dictLabel,value:res.data[i].dictValue});
  102. }
  103. });
  104. //监管类型
  105. this.houseGetDicts("jglx").then((res) => {
  106. for(var i = 0 ; i < res.data.length ; i++){
  107. this.jglxDictionaries.push({text:res.data[i].dictLabel,value:res.data[i].dictValue});
  108. }
  109. });
  110. //是否在建建筑物
  111. this.houseGetDicts("sys_yes_no").then((res) => {
  112. for(var i = 0 ; i < res.data.length ; i++){
  113. this.sysDictionaries.push({text:res.data[i].dictLabel,value:res.data[i].dictValue});
  114. }
  115. });
  116. },
  117. onConfirmSys(data){
  118. this.sfzjjzw = data.text;
  119. this.jgList.sfzjjzw = data.value;
  120. this.showSys = false;
  121. },
  122. onConfirmJglx(data){
  123. this.jglx = data.text;
  124. this.jgList.jglx = data.value;
  125. this.showjglx = false;
  126. },
  127. onConfirmWfydlx(data){
  128. this.wfydlx = data.text;
  129. this.jgList.wfydlx = data.value;
  130. this.showwfydlx = false;
  131. },
  132. onConfirmLasj(data){
  133. this.jgList.lasj = this.getNowFormatDate(data).substr(0,10);
  134. this.showlasj = false;
  135. },
  136. onConfirmInspectorTime(data){
  137. this.jgList.inspectorTime = this.getNowFormatDate(data).substr(0,10);
  138. this.showinspectorTime = false;
  139. },
  140. onConfirmReformDeadline(data){
  141. this.jgList.reformDeadline = this.getNowFormatDate(data).substr(0,10);
  142. this.showReformDeadline = false;
  143. },
  144. goAdd(){
  145. console.log(this.jgList)
  146. jgAdd(this.jgList).then(response => {
  147. console.log(response);
  148. this.$toast.success('保存成功');
  149. setTimeout(function(){
  150. history.go(-1)
  151. },2000)
  152. });
  153. },
  154. goBack(){
  155. window.history.go(-1)
  156. }
  157. },
  158. }
  159. </script>
  160. <style scoped lang="scss">
  161. .app-container {
  162. padding: 2% 0;
  163. }
  164. .main_title{
  165. font-size: 0.4rem;
  166. color: #1D6FE9;
  167. margin: 0.2rem 6%;
  168. margin-top: 0;
  169. position: relative;
  170. }
  171. .main_box{
  172. width: 96%;
  173. margin: 0 auto;
  174. border-radius: 6px;
  175. box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.16);
  176. overflow: hidden;
  177. background-color: #FFF;
  178. }
  179. .submitButton{
  180. width: 80%;
  181. margin: 0 auto;
  182. background-color: #1D6FE9;
  183. }
  184. .addFamily{
  185. position: absolute;
  186. top: -2px;
  187. right: 0;
  188. border-radius: 50%;
  189. }
  190. </style>