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

paymentAccountModify.vue 24 KiB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568
  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. <van-form @submit="goModify" @failed="getError" :show-error-message="false" scroll-to-error validate-first>
  14. <p class="main_title">基础信息</p>
  15. <div class="main_box">
  16. <van-field
  17. readonly
  18. clickable
  19. label="账户类型"
  20. placeholder="请选择"
  21. v-model="accountType"
  22. @click="showAccountType = true"
  23. input-align="right"
  24. right-icon="arrow-down"
  25. label-width="auto"
  26. required
  27. />
  28. <van-popup v-model="showAccountType" position="bottom">
  29. <van-picker
  30. show-toolbar
  31. :columns="typeDictionaries"
  32. @confirm="onConfirmType"
  33. @cancel="showAccountType = false"
  34. />
  35. </van-popup>
  36. <van-field
  37. readonly
  38. clickable
  39. label="所属银行"
  40. placeholder="请选择"
  41. v-model="bankType"
  42. @click="showBankType = true"
  43. input-align="right"
  44. right-icon="arrow-down"
  45. label-width="auto"
  46. required
  47. :rules="[{ required: true , message:'请选择所属银行' }]"
  48. />
  49. <van-popup v-model="showBankType" position="bottom">
  50. <van-picker
  51. show-toolbar
  52. :columns="bankTypeOptions"
  53. @confirm="onConfirmBankType"
  54. @cancel="showBankType = false"
  55. />
  56. </van-popup>
  57. <van-field
  58. readonly
  59. clickable
  60. label="账户分类"
  61. placeholder="请选择"
  62. v-model="villageAccountType"
  63. @click="showVillageAccountType = true"
  64. input-align="right"
  65. right-icon="arrow-down"
  66. label-width="auto"
  67. required
  68. :rules="[{ required: true , message:'请选择账户分类' }]"
  69. v-if="accountType=='银行存款'&&(form.bankType==1||form.bankType==2)"
  70. />
  71. <van-popup v-model="showVillageAccountType" position="bottom">
  72. <van-picker
  73. show-toolbar
  74. :columns="villageAccountTypeOptions"
  75. @confirm="onConfirmVillageAccountType"
  76. @cancel="showVillageAccountType = false"
  77. />
  78. </van-popup>
  79. <van-field
  80. readonly
  81. clickable
  82. label="所属镇账户"
  83. placeholder="请选择"
  84. v-model="taccountId"
  85. @click="showTaccountId = true"
  86. input-align="right"
  87. right-icon="arrow-down"
  88. label-width="auto"
  89. required
  90. :rules="[{ required: true , message:'请选择所属镇账户' }]"
  91. v-if="accountType=='银行存款'&&(form.bankType=='1'||form.bankType=='2')&&form.villageAccountType!=1"
  92. />
  93. <van-popup v-model="showTaccountId" position="bottom">
  94. <van-picker
  95. show-toolbar
  96. :columns="taccountIdOptions"
  97. @confirm="onConfirmTaccountId"
  98. @cancel="showTaccountId = false"
  99. />
  100. </van-popup>
  101. <van-field label="客户编号" v-if="accountType=='银行存款'&&(form.bankType=='1'||form.bankType=='2')" required :rules="[{ required: true , message:'请输入客户编号' }]" v-model="form.cifNo" placeholder="请输入客户编号" input-align="right" label-width="auto"/>
  102. <van-field label="账簿号" v-if="accountType=='银行存款'&&villageAccountType=='多级账簿'" required :rules="[{ required: true , message:'请输入账簿号' }]" v-model="form.accountNo" placeholder="请输入账簿号" input-align="right" label-width="auto"/>
  103. <van-field label="管控类型" v-if="accountType=='银行存款'&&form.bankType==2&&villageAccountType=='多级账簿'">
  104. <template #right-icon>
  105. <van-radio-group direction="horizontal" v-model="form.managementControlType" @change="onConfirmManagementControlType" required :rules="[{ required: true , message:'请选择管控类型' }]">
  106. <van-radio name="1">账簿余额</van-radio>
  107. <van-radio name="2">中心账簿</van-radio>
  108. </van-radio-group>
  109. </template>
  110. </van-field>
  111. <van-field
  112. readonly
  113. clickable
  114. label="中心账套"
  115. placeholder="请选择"
  116. v-model="centralBookId"
  117. @click="showCentralBookId = true"
  118. input-align="right"
  119. right-icon="arrow-down"
  120. label-width="auto"
  121. required
  122. :rules="[{ required: true , message:'请选择开户银行' }]"
  123. v-if="accountType=='银行存款'&&form.managementControlType=='2'"
  124. />
  125. <van-popup v-model="showCentralBookId" position="bottom">
  126. <van-picker
  127. show-toolbar
  128. :columns="centralBookIdList"
  129. @confirm="onConfirmCentralBookId"
  130. @cancel="showCentralBookId = false"
  131. />
  132. </van-popup>
  133. <van-field
  134. readonly
  135. clickable
  136. label="会计科目"
  137. placeholder="请选择"
  138. v-model="centralSubjectId"
  139. @click="showCentralSubjectId = true"
  140. input-align="right"
  141. right-icon="arrow-down"
  142. label-width="auto"
  143. required
  144. :rules="[{ required: true , message:'请选择会计科目' }]"
  145. v-if="accountType=='银行存款'&&form.managementControlType=='2'"
  146. />
  147. <van-popup v-model="showCentralSubjectId" position="bottom">
  148. <van-picker
  149. show-toolbar
  150. :columns="centralSubjectIdList"
  151. @confirm="onConfirmCentralSubjectId"
  152. @cancel="showCentralSubjectId = false"
  153. />
  154. </van-popup>
  155. <van-field label="账户名称" required :rules="[{ required: true , message:'请输入账户名称' }]" v-model="form.accountName" placeholder="请输入账户名称" input-align="right" label-width="auto"/>
  156. <van-field label="银行账户" v-if="accountType=='银行存款'" :rules="[{ required: true , message:'请输入银行账户' }]" v-model="form.bankAccountNumber" placeholder="请输入银行账户" input-align="right" label-width="auto" required/>
  157. <van-field
  158. readonly
  159. clickable
  160. label="开户银行"
  161. placeholder="请选择"
  162. v-model="form.bankName"
  163. @click="showBankDeposit = true"
  164. input-align="right"
  165. right-icon="arrow-down"
  166. label-width="auto"
  167. required
  168. :rules="[{ required: true , message:'请选择开户银行' }]"
  169. v-if="accountType=='银行存款'"
  170. />
  171. <van-popup v-model="showBankDeposit" position="bottom">
  172. <van-picker
  173. show-toolbar
  174. :columns="bankDepositList"
  175. @confirm="onConfirmBankDeposit"
  176. @cancel="showBankDeposit = false"
  177. />
  178. </van-popup>
  179. <van-field label="联行号" v-if="accountType=='银行存款'" :rules="[{ required: true , message:'请输入联行号' }]" v-model="form.paymentLines" placeholder="请输入联行号" input-align="right" label-width="auto" required/>
  180. <van-field
  181. readonly
  182. clickable
  183. label="关联科目"
  184. placeholder="请选择"
  185. v-model="subjectDeatil"
  186. @click="showSubjectId = true"
  187. input-align="right"
  188. right-icon="arrow-down"
  189. label-width="auto"
  190. required
  191. :rules="[{ required: true , message:'请选择关联科目' }]"
  192. />
  193. <van-popup v-model="showSubjectId" position="bottom">
  194. <van-picker
  195. show-toolbar
  196. :columns="subjectDictionaries"
  197. @confirm="onConfirmSubject"
  198. @cancel="showSubjectId = false"
  199. />
  200. </van-popup>
  201. <van-field label="开户银行地址" v-if="accountType=='银行存款'" :rules="[{ required: true , message:'请输入开户银行地址' }]" v-model="form.site" placeholder="请输入开户银行地址" input-align="right" label-width="auto" required/>
  202. <van-field label="支付口令" v-if="accountType=='银行存款'" :rules="[{ required: true , message:'请输入支付口令' }]" v-model="form.accountPassword" placeholder="请输入支付口令" input-align="right" label-width="auto" required/>
  203. <van-field label="账户类型" v-if="accountType=='银行存款'" required :rules="[{ required: true , message:'请选择账户类型' }]">
  204. <template #right-icon>
  205. <van-radio-group direction="horizontal" v-model="form.bankAccountType">
  206. <van-radio name="1">公户</van-radio>
  207. <van-radio name="2">私户</van-radio>
  208. </van-radio-group>
  209. </template>
  210. </van-field>
  211. <van-field label="初始余额" v-model="form.initialBalance" required :rules="[{ required: true , message:'请输入初始余额' }]" placeholder="请输入初始余额" input-align="right" label-width="auto"/>
  212. <van-field label="内部账号" v-if="accountType=='银行存款'&&form.bankType=='3'" v-model="form.alternateField1" required :rules="[{ required: true , message:'请输入内部账号' }]" placeholder="请输入内部账号" input-align="right" label-width="auto"/>
  213. <van-field label="内部户名" v-if="accountType=='银行存款'&&form.bankType=='3'" v-model="form.alternateField2" required :rules="[{ required: true , message:'请输入内部户名' }]" placeholder="请输入内部户名" input-align="right" label-width="auto"/>
  214. <van-field label="账簿号" v-if="accountType=='银行存款'&&form.bankType=='3'" v-model="form.alternateField3" required :rules="[{ required: true , message:'请输入账簿号' }]" placeholder="请输入账簿号" input-align="right" label-width="auto"/>
  215. <van-field label="手机号码" v-if="accountType=='银行存款'&&form.bankType=='4'" v-model="form.alternateField1" required :rules="[{ required: true , message:'请输入手机号' }]" placeholder="请输入手机号" input-align="right" label-width="auto"/>
  216. <van-field label="是否停用" required :rules="[{ required: true , message:'请选择是否停用' }]">
  217. <template #right-icon>
  218. <van-radio-group direction="horizontal" v-model="form.status">
  219. <van-radio name="Y">是</van-radio>
  220. <van-radio name="N">否</van-radio>
  221. </van-radio-group>
  222. </template>
  223. </van-field>
  224. </div>
  225. <p class="main_title" v-if="villageAccountType=='多级账簿'">账簿信息</p>
  226. <div class="main_box" v-if="villageAccountType=='多级账簿'">
  227. <van-field label="账簿是否限额" disabled>
  228. <template #right-icon>
  229. <van-radio-group direction="horizontal" v-model="form.alternateField1" :disabled="true">
  230. <van-radio name="Y">是</van-radio>
  231. <van-radio name="N">否</van-radio>
  232. </van-radio-group>
  233. </template>
  234. </van-field>
  235. <van-field label="单笔交易限额" v-model="form.alternateField2" placeholder="0.00" input-align="right" label-width="auto" :disabled="true"/>
  236. <van-field label="账簿是否透支" disabled>
  237. <template #right-icon>
  238. <van-radio-group direction="horizontal" v-model="form.alternateField3" :disabled="true">
  239. <van-radio name="Y">是</van-radio>
  240. <van-radio name="N">否</van-radio>
  241. </van-radio-group>
  242. </template>
  243. </van-field>
  244. <van-field label="透支类型" v-model="form.alternateField4" placeholder="无" input-align="right" label-width="auto" :disabled="true"/>
  245. <van-field label="透支额度(元)" v-model="form.alternateField5" placeholder="0.00" input-align="right" label-width="auto" :disabled="true"/>
  246. </div>
  247. <div style="padding: 16px 0;">
  248. <van-row>
  249. <van-col span="24" align="center">
  250. <van-button type="info" native-type="submit" class="submitButton">保<i style="margin-right: 1em;"></i>存</van-button>
  251. </van-col>
  252. </van-row>
  253. <div class="clear"></div>
  254. </div>
  255. </van-form>
  256. </div>
  257. </template>
  258. <script>
  259. import { getAccount , getSubjectDetail , updateAccount,listDeposit,queryTaccount,getCentralBooks } from "@/api/onlineHome/bankAgriculture/paymentAccount";
  260. import {getCentralSubjects} from "../../../../api/onlineHome/bankAgriculture/paymentAccount";
  261. export default {
  262. name: "paymentAccountModify",
  263. data() {
  264. return {
  265. showCentralSubjectId:false,
  266. showCentralBookId:false,
  267. showManagementControlType:false,
  268. showTaccountId:false,
  269. showVillageAccountType:false,
  270. villageAccountType:null,
  271. showAccountType:false,
  272. showSubjectId:false,
  273. showBankType:false,
  274. minDate: new Date(),
  275. showBankDeposit:false,
  276. maxDate: new Date(2025, 10, 1),
  277. currentDate: new Date(),
  278. jgList:{},
  279. managementControlType:'',
  280. taccountId:'',
  281. accountType:'',
  282. bankType:'',
  283. centralBookId:'',
  284. centralSubjectId:'',
  285. jglx:'',
  286. wfydlx:'',
  287. wfydlxDictionaries:[],
  288. jglxDictionaries:[],
  289. subjectDictionaries:[],
  290. typeDictionaries:[],
  291. villageAccountTypeOptions:[],
  292. taccountIdOptions:[],
  293. centralBookIdList:[],
  294. centralSubjectIdList:[],
  295. // 管控类型 == 中心账套时选择中心账套
  296. centralBooks: [],
  297. // 管控类型字典
  298. managementControlTypeOptions: [],
  299. bankDepositList:[],
  300. // 所属银行字典
  301. bankTypeOptions: [],
  302. subjectDeatil:'',
  303. bankDepositQueryParams: {
  304. pageNum: 1,
  305. pageSize: 10,
  306. bookId: null,
  307. deptId: null,
  308. payee: null,
  309. payeeAccount: null,
  310. bankDeposit: null,
  311. payeeType:null,
  312. bankType:null,
  313. status: "0",
  314. },
  315. form:{
  316. accountType: "102",
  317. bankUseType:"1",
  318. bankAccountType: "1",
  319. villageAccountType: "2",
  320. status: "N",
  321. }
  322. };
  323. },
  324. created() {
  325. this.getTaList();
  326. this.getDetail();
  327. },
  328. methods: {
  329. getDetail(){
  330. getAccount(this.$route.query.id).then((response) => {
  331. // 账户类型
  332. this.houseGetDicts("account_type_cashier").then((res) => {
  333. for (var i = 0; i < res.data.length; i++) {
  334. this.typeDictionaries.push({text: res.data[i].dictLabel, value: res.data[i].dictValue});
  335. }
  336. this.accountType = this.selectDictLabel(res.data, response.data.accountType);
  337. });
  338. this.getDicts("bank_type").then(res => {
  339. for (var i = 0; i < res.data.length; i++) {
  340. this.bankTypeOptions.push({text: res.data[i].dictLabel, value: res.data[i].dictValue});
  341. this.bankType = this.selectDictLabel(res.data, response.data.bankType);
  342. }
  343. });
  344. this.getDicts("village_account_type").then(res => {
  345. for (var i = 0; i < res.data.length; i++) {
  346. this.villageAccountTypeOptions.push({text: res.data[i].dictLabel, value: res.data[i].dictValue});
  347. this.villageAccountType = this.selectDictLabel(res.data, response.data.villageAccountType);
  348. }
  349. });
  350. getSubjectDetail().then((res) => {
  351. for (var i = 0; i < res.rows.length; i++) {
  352. this.subjectDictionaries.push({text: res.rows[i].subjectNameAll, value: res.rows[i].subjectId});
  353. }
  354. this.subjectDeatil = this.selectSubject(res.rows , response.data.subjectId);
  355. });
  356. queryTaccount({
  357. bankType:response.data.bankType
  358. }).then(res => {
  359. this.taccountIdOptions = res.rows;
  360. for (var i = 0; i < res.rows.length; i++) {
  361. this.$set(this.taccountIdOptions[i], "text",res.rows[i].payee);
  362. this.$set(this.taccountIdOptions[i], "value",res.rows[i].id);
  363. if(response.data.taccountId==res.rows[i].id){
  364. this.taccountId= res.rows[i].payee
  365. }
  366. }
  367. });
  368. if(response.data.centralBookId!=null&&response.data.centralBookId!=""&&response.data.managementControlType=="2"){
  369. getCentralBooks({yinnongTaccountId: response.data.taccountId}).then((res) => {
  370. this.centralBookIdList = res.data;
  371. for (var i = 0; i < res.data.length; i++) {
  372. this.$set(this.centralBookIdList[i], "text",res.data[i].bookName);
  373. this.$set(this.centralBookIdList[i], "value",res.data[i].id);
  374. }
  375. this.centralBookId = this.selectSubject(res.data , response.data.centralBookId);
  376. });
  377. if(response.data.centralSubjectId!=null&&response.data.centralSubjectId!=""){
  378. getCentralSubjects({bookId: response.data.centralBookId}).then((res) => {
  379. this.centralSubjectIdList = res.data;
  380. for (var i = 0; i < res.data.length; i++) {
  381. this.$set(this.centralSubjectIdList[i], "text",res.data[i].subjectName);
  382. this.$set(this.centralSubjectIdList[i], "value",res.data[i].subjectId);
  383. }
  384. this.centralSubjectId = this.selectSubject(res.data , response.data.centralSubjectId);
  385. })
  386. }
  387. if(response.data.bankDeposit!=null&&response.data.bankDeposit!=""){
  388. this.bankDepositQueryParams.bankType = response.data.bankType;
  389. listDeposit(this.bankDepositQueryParams).then(response => {
  390. this.bankDepositList = response.rows;
  391. for (var i = 0; i < response.rows.length; i++) {
  392. this.$set(this.bankDepositList[i], "text",response.rows[i].bankDeposit);
  393. this.$set(this.bankDepositList[i], "value",response.rows[i].bankDeposit);
  394. }
  395. this.bankDeposit = this.selectSubject(response.rows , response.data.bankDeposit);
  396. })
  397. }
  398. }
  399. this.form = response.data;
  400. });
  401. },
  402. getTaList(){
  403. let params= {
  404. // 分页
  405. pageNum: 1,
  406. pageSize: 100,
  407. bankType:this.form.bankType,
  408. }
  409. // this.getCentralBookOptions();
  410. queryTaccount(params).then(res => {
  411. this.taccountIdOptions = res.rows;
  412. for (var i = 0; i < res.rows.length; i++) {
  413. this.$set(this.taccountIdOptions[i], "text",res.rows[i].payee);
  414. this.$set(this.taccountIdOptions[i], "value",res.rows[i].id);
  415. }
  416. });
  417. },
  418. getError(e){
  419. console.log(e)
  420. this.$notify({ type: 'danger', message: e.errors[0].message });
  421. },
  422. selectSubject(datas, value) {
  423. var actions = [];
  424. Object.keys(datas).some((key) => {
  425. if (datas[key].subjectId == ('' + value)) {
  426. actions.push(datas[key].subjectNameAll);
  427. return true;
  428. }
  429. })
  430. return actions.join('');
  431. },
  432. onConfirmCentralBookId(val){
  433. this.showCentralBookId = false
  434. this.$set(this.form, "centralBookId",val.value);
  435. this.centralBookId = val.text
  436. getCentralSubjects({bookId: val.id}).then((res) => {
  437. this.centralSubjectIdList = res.data;
  438. for (var i = 0; i < res.data.length; i++) {
  439. this.$set(this.centralSubjectIdList[i], "text",res.data[i].subjectName);
  440. this.$set(this.centralSubjectIdList[i], "value",res.data[i].subjectId);
  441. }
  442. })
  443. },
  444. onConfirmCentralSubjectId(val){
  445. this.showCentralSubjectId = false
  446. this.$set(this.form, "centralSubjectId",val.value);
  447. this.centralSubjectId = val.text
  448. },
  449. onConfirmManagementControlType(val){
  450. if(val==2){
  451. getCentralBooks({yinnongTaccountId: this.form.taccountId}).then((res) => {
  452. this.centralBookIdList = res.data;
  453. for (var i = 0; i < res.data.length; i++) {
  454. this.$set(this.centralBookIdList[i], "text",res.data[i].bookName);
  455. this.$set(this.centralBookIdList[i], "value",res.data[i].id);
  456. }
  457. });
  458. }
  459. },
  460. onConfirmBankDeposit(val){
  461. this.showBankDeposit = false
  462. this.$set(this.form, "bankName", val.bankDeposit);
  463. this.$set(this.form, "paymentLines", val.payeePaymentLines);
  464. this.$set(this.form, "alternateField10", val.institutionNumber);
  465. },
  466. onConfirmTaccountId(val){
  467. this.showTaccountId = false
  468. this.taccountId = val.text
  469. this.$set(this.form, "taccountId", val.value);
  470. this.$set(this.form, "cifNo", val.cifNo);
  471. this.$set(this.form, "accountName", val.payee);
  472. this.$set(this.form, "managementControlType", val.managementControlType);
  473. this.$set(this.form, "accountPassword", val.accountPassword);
  474. this.$set(this.form, "centralBookId", val.centralBookId);
  475. this.taccountIdOptions.map(res => {
  476. if(res.id==val.value){
  477. if(this.form.villageAccountType === '3'){
  478. this.$set(this.form, "bankAccountNumber", res.payeeAccount);
  479. }
  480. //this.form.bankName = res.bankDeposit;
  481. this.$set(this.form, "bankName", res.bankDeposit);
  482. this.$set(this.form, "paymentLines", res.payeePaymentLines);
  483. }
  484. })
  485. },
  486. onConfirmBankType(val){
  487. this.showBankType = false
  488. this.bankType = val.text
  489. this.$set(this.form, "bankType", val.value);
  490. this.getTaList();
  491. this.$set(this.form, "bankName", '');
  492. this.$set(this.form, "paymentLines", '');
  493. this.bankDepositQueryParams.bankType = val.value;
  494. listDeposit(this.bankDepositQueryParams).then(response => {
  495. this.bankDepositList = response.rows;
  496. for (var i = 0; i < response.rows.length; i++) {
  497. this.$set(this.bankDepositList[i], "text",response.rows[i].bankDeposit);
  498. this.$set(this.bankDepositList[i], "value",response.rows[i].bankDeposit);
  499. }
  500. })
  501. },
  502. onConfirmVillageAccountType(val){
  503. this.showVillageAccountType = false
  504. this.villageAccountType = val.text
  505. this.$set(this.form, "villageAccountType", val.value);
  506. },
  507. onConfirmSubject(data){
  508. this.subjectDeatil = data.text;
  509. this.form.subjectId = data.value;
  510. this.form.subjectNameAll = data.text;
  511. this.showSubjectId = false;
  512. },
  513. onConfirmType(data){
  514. this.accountType = data.text;
  515. this.form.accountType = data.value;
  516. this.showAccountType = false;
  517. },
  518. goModify(){
  519. console.log(this.form)
  520. this.form.balance = this.form.initialBalance;
  521. updateAccount(this.form).then((response) => {
  522. this.$toast.success('修改成功');
  523. setTimeout(function(){
  524. history.go(-1)
  525. },2000)
  526. });
  527. },
  528. goBack(){
  529. window.history.go(-1)
  530. }
  531. },
  532. }
  533. </script>
  534. <style scoped lang="scss">
  535. .app-container {
  536. padding: 2% 0;
  537. }
  538. .main_title{
  539. font-size: 0.4rem;
  540. color: #1D6FE9;
  541. margin: 0.2rem 6%;
  542. margin-top: 0;
  543. position: relative;
  544. }
  545. .main_box{
  546. width: 96%;
  547. margin: 0 auto;
  548. border-radius: 6px;
  549. box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.16);
  550. overflow: hidden;
  551. background-color: #FFF;
  552. }
  553. .submitButton{
  554. width: 80%;
  555. margin: 0 auto;
  556. background-color: #1D6FE9;
  557. }
  558. .addFamily{
  559. position: absolute;
  560. top: -2px;
  561. right: 0;
  562. border-radius: 50%;
  563. }
  564. </style>