Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 
 
 
 

715 рядки
22 KiB

  1. <template>
  2. <view class="page">
  3. <view>
  4. <view class="cu-bar bg-white cu-title solid-bottom">
  5. <view class="action" style="vertical-align: middle;">
  6. <text class="margin-right-xs text-blue cuIcon-title">
  7. <span></span>
  8. </text>
  9. <text class="text-xl">
  10. <span>经费开支申报单</span>
  11. </text>
  12. </view>
  13. </view>
  14. </view>
  15. <view v-if="ready">
  16. <l-input @input="setValue('FundsApply.EnCode', $event)" :value="getValue('FundsApply.EnCode')"
  17. title="申报单号" /> <!-- v-if="!edit" :disabled="!edit" -->
  18. <l-select @input="setValue('FundsApply.ApplyDept', $event)" :value="getValue('FundsApply.ApplyDept')"
  19. :range="dataSource.FundsApply.ApplyDept" title="报批部门" disabled />
  20. <!-- :disabled="!edit" v-if="!edit" -->
  21. <l-select @input="setValue('FundsApply.ApplyUser', $event)" :value="getValue('FundsApply.ApplyUser')"
  22. :range="dataSource.FundsApply.ApplyUser" title="报批人" disabled /> <!-- v-if="!edit" -->
  23. <l-datetime-picker @input="setValue('FundsApply.ApplyTime', $event)"
  24. :value="getValue('FundsApply.ApplyTime')" title="填报时间" disabled /> <!-- required :disabled="!edit" -->
  25. <l-select @input="($event)=>{DeclarationDeptChange($event)}" :value="getValue('FundsApply.DeclarationDept')"
  26. :range="dataSource.FundsApply.DeclarationDept" title="申报部门" :disabled="!edit" />
  27. <!-- :disabled="!edit" v-if="!edit" -->
  28. <l-select @input="setValue('FundsApply.Informant', $event)" :value="getValue('FundsApply.Informant')"
  29. :range="dataSource.FundsApply.Informant" title="申报人" :disabled="!edit"/>
  30. <l-select @input="setValue('FundsApply.DeclarationType', $event)"
  31. :value="getValue('FundsApply.DeclarationType')" :range="dataSource.FundsApply.DeclarationType"
  32. title="申报类型" :disabled="!edit" />
  33. <l-select @input="setValue('FundsApply.IsFixedAssets', $event)"
  34. :value="getValue('FundsApply.IsFixedAssets')" :range="dataSource.FundsApply.IsFixedAssets"
  35. title="是否固定资产" :disabled="!edit" /> <!-- v-if="!edit" -->
  36. <l-textarea @input="setValue('FundsApply.Remark', $event)" :value="getValue('FundsApply.Remark')" title="备注"
  37. :readonly="!edit" /> <!-- v-if="!edit" :readonly="!edit" -->
  38. <!-- <l-input @input="setValue('FundsApply.Remark', $event)" :value="getValue('FundsApply.Remark')"
  39. title="申请人" :disabled="!edit" /> -->
  40. <l-input @input="Statusitem(setValue('FundsApply.Status', $event)) "
  41. :value="Statusitem(getValue('FundsApply.Status'))" title="审批状态" disabled v-if="!edit" />
  42. <!-- :disabled="!edit" -->
  43. <!-- 附件上传 -->
  44. <l-input
  45. @input="setValue('FundsApply.Path', $event)"
  46. :value="getValue('FundsApply.Path')"
  47. disabled="disabled"
  48. v-show="false"
  49. title="附件值"
  50. />
  51. <uploadFile :number="5" :folderId="folderId" :value="fileList" :readonly="!edit" :title="fileTitle" :required="false"></uploadFile>
  52. </view>
  53. <view class="welT" style="padding-top: 10px;">
  54. 明细操作
  55. <text v-if="edit" class="text-xxl cuIcon cuIcon-add" @click="add('FundsApplyDetails')"></text>
  56. </view>
  57. <view class="welBox" id="StuInfoFreshEmergePeople" v-show="FundsApplyDetail.length != 0">
  58. <view class="welCon" v-for="(item, i) in FundsApplyDetail" :key='i'>
  59. <l-input v-model="item.ProjectContent" title="项目明细" placeholder="请填写" right :disabled="!edit" />
  60. <l-input v-model="item.Number" type="number" @blur="SumAmountChange(item,'Number')" title="数量" :disabled="!edit" placeholder="请填写" right />
  61. <l-label title="单位">
  62. <picker
  63. @change="changeitem($event,item)"
  64. :range="dataSource.FundsApply.Unit"
  65. :disabled="!edit"
  66. range-key="text"
  67. >
  68. <view class="picker">{{ item.Unit ? mapitem(item.Unit) : '请选择单位' }}</view>
  69. </picker>
  70. </l-label>
  71. <l-input v-model="item.Price" type="digit" @blur="blurChange(item)" title="单价(元)" :disabled="!edit" placeholder="请填写" right />
  72. <l-input v-model="item.Amount" title="金额(元)" disabled placeholder="请填写" right />
  73. <!-- <l-select @input="setValue('item.Unit', $event)" :value="getValue('item.Unit')" :range="dataSource.FundsApply.Unit" title="单位" :disabled="!edit" /> -->
  74. <view v-if="edit||create" class="welDel" @click="del('FundsApplyDetails', i)"><text
  75. class="text-xxl cuIcon cuIcon-move"></text></view>
  76. <view v-if="edit||create" class="welAdd" @click="add('FundsApplyDetails')">
  77. <text class="text-xxl cuIcon cuIcon-add"></text>
  78. </view>
  79. </view>
  80. </view>
  81. <view v-if="ready">
  82. <l-input @input="setValue('FundsApply.SumAmount', $event)" :value="getValue('FundsApply.SumAmount')"
  83. title="合计" disabled="" /> <!-- v-if="!edit" :disabled="!edit" -->
  84. <l-input @input="setValue('FundsApply.UpperAmount', $event)" :value="getValue('FundsApply.UpperAmount')"
  85. title="人民币(大写)" disabled /> <!-- v-if="!edit" :disabled="!edit" -->
  86. </view>
  87. <view v-if="ready&&edit" class="bg-white margin-tb padding" style="padding-top: 0; overflow: hidden;">
  88. <l-button v-if="edit" @click="action('save')" size="lg" color="green" class="block margin-top" block>
  89. 保存
  90. </l-button>
  91. <l-button v-if="!edit && mode !== 'create'" @click="action('edit')" size="lg" line="orange"
  92. class="block margin-top" block>
  93. 编辑本页
  94. </l-button>
  95. <l-button v-if="edit && mode !== 'create'" @click="action('reset')" size="lg" line="red"
  96. class="block margin-top" block>
  97. 取消编辑
  98. </l-button>
  99. <l-button v-if="!edit && mode !== 'create'" @click="action('delete')" size="lg" line="red"
  100. class="block margin-top" block>
  101. 删除
  102. </l-button>
  103. </view>
  104. </view>
  105. </template>
  106. <script>
  107. /*
  108. * 版 本 Learun-ADMS V7.0.3 力软敏捷开发框架(http://www.learun.cn)
  109. * Copyright (c) 2013-2021 上海力软信息技术有限公司
  110. * 创建人:超级管理员
  111. * 日 期:2021-02-21 10:07
  112. * 描 述:会议管理
  113. */
  114. /**
  115. * 本段代码由移动端代码生成器输出,移动端须 2.2.0 版本及以上可以使用
  116. * 请在移动端 /pages.json 中的 pages 字段中添加一条记录:
  117. * { "path": "pages/PersonnelManagement/FundsApply/single", "style": { "navigationBarTitleText": "表单详情页" } }
  118. *
  119. * (navigationBarTitleText 字段为本页面的标题文本,可以修改)
  120. * (必须自行操作该步骤,力软代码生成器不会自动帮您修改 /pages.json 文件)
  121. */
  122. import get from 'lodash/get'
  123. import set from 'lodash/set'
  124. import moment from 'moment'
  125. import customPageMixins from '@/common/custompage.js'
  126. import uploadFile from '@/components/upload-file2.vue'
  127. export default {
  128. mixins: [customPageMixins],
  129. components:{
  130. uploadFile,
  131. },
  132. data() {
  133. return {
  134. // 页面相关参数
  135. id: null,
  136. mode: null,
  137. edit: null,
  138. ready: false,
  139. create: null,
  140. // 表单数据
  141. current: {},
  142. origin: {},
  143. fileList:[],//附件列表
  144. folderId:null,//附件随机文件夹id
  145. fileTitle:'附件上传',//附件label值
  146. FundsApplyDetail: [],
  147. FundsApplyDetails: {
  148. ProjectContent: '',
  149. Number: '',
  150. Price: '',
  151. Amount: '',
  152. Unit:''
  153. },
  154. // 表单项数据结构
  155. scheme: {
  156. FundsApply: {
  157. EnCode: {
  158. type: 'text',
  159. title: '申报单号'
  160. },
  161. ApplyDept: {
  162. type: "select",
  163. dataSource: '1',
  164. dataSourceId: 'ApplyDept'
  165. },
  166. ApplyTime: {
  167. type: 'datetime',
  168. title: '开始时间',
  169. dateformat: '1',
  170. verify: "NotNull"
  171. },
  172. ApplyUser: {
  173. type: "select",
  174. dataSource: '1',
  175. dataSourceId: 'ApplyUser'
  176. },
  177. DeclarationDept: {
  178. type: "select",
  179. dataSource: '1',
  180. dataSourceId: 'DeclarationDept'
  181. },
  182. Informant: {
  183. type: "select",
  184. dataSource: '1',
  185. dataSourceId: 'Informant'
  186. },
  187. DeclarationType: {
  188. type: "select",
  189. title: '申报类别',
  190. dataSourceId: 'DeclarationType',
  191. },
  192. IsFixedAssets: {
  193. type: "select",
  194. title: '是否固定资产',
  195. dataSource: '1',
  196. dataSourceId: 'IsFixedAssets',
  197. verify: 'NotNull'
  198. },
  199. Remark: {
  200. type: 'texteditor',
  201. title: '备注',
  202. },
  203. // Remark: {
  204. // type: 'text',
  205. // title: '申请人',
  206. // },
  207. SumAmount: {
  208. type: 'text',
  209. title: '合计'
  210. },
  211. UpperAmount: {
  212. type: 'text',
  213. title: '合计',
  214. verify: 'NotNull'
  215. },
  216. Status: {
  217. type: 'text',
  218. title: '审批状态'
  219. },
  220. Path: {
  221. type: "text",
  222. title: "附件上传",
  223. },
  224. },
  225. },
  226. // 数据源
  227. dataSource: {
  228. FundsApply: {
  229. ApplyDept: [],
  230. ApplyUser: [],
  231. Informant: [],
  232. DeclarationDept: [],
  233. IsFixedAssets: Object.values(this.GET_GLOBAL('dataDictionary').YesOrNoInt).map(t => ({
  234. value: t.value,
  235. text: t.text
  236. })),
  237. DeclarationType: Object.values(this.GET_GLOBAL('dataDictionary').DeclarationType).map(t => ({
  238. value: t.value,
  239. text: t.text
  240. })),
  241. Unit:Object.values(this.GET_GLOBAL('dataDictionary').sldw).map(t => ({
  242. value: t.value,
  243. text: t.text
  244. })),
  245. }
  246. },
  247. EnCode: '',
  248. index:0
  249. }
  250. },
  251. async onLoad({
  252. type,
  253. id
  254. }) {
  255. // console.log(this.GET_GLOBAL('dataDictionary').sldw,"1")
  256. // console.log(this.GET_GLOBAL('dataDictionary').DeclarationType,"2")
  257. await this.init(type, id)
  258. // console.log(this.dataSource.FundsApply.Unit)
  259. },
  260. methods: {
  261. // 页面初始化
  262. async init(type, id) {
  263. this.folderId=this.GUID();
  264. // console.log('附件随机文件夹id:'+this.folderId);
  265. this.LOADING('加载数据中...')
  266. this.id = id
  267. this.mode = type
  268. this.edit = ['create', 'edit'].includes(this.mode)
  269. // 拉取表单数据,同时拉取所有来自数据源的选单数据
  270. await Promise.all([
  271. this.FETCH_DATASOURCE('classdata').then(result => {
  272. this.dataSource.FundsApply.ApplyDept = result.data.map(t => ({
  273. text: t.name,
  274. value: t.id
  275. }));
  276. }),
  277. this.FETCH_DATASOURCE('teacheruserdata').then(result => {
  278. this.dataSource.FundsApply.ApplyUser = result.data.map(t => ({
  279. text: t.f_realname,
  280. value: t.f_userid
  281. }));
  282. }),
  283. this.FETCH_DATASOURCE('classdata').then(result => {
  284. this.dataSource.FundsApply.DeclarationDept = result.data.filter(t=>t.f_deletemark===0).map(t => ({
  285. text: t.name,
  286. value: t.id
  287. }));
  288. }),
  289. this.FETCH_DATASOURCE('teacheruserdata').then(result => {
  290. this.dataSource.FundsApply.Informant = result.data.map(t => ({
  291. text: t.f_realname,
  292. value: t.f_userid
  293. }));
  294. }),
  295. // this.dataSource.FundsApply.DeclarationType = Object.values(this.GET_GLOBAL('dataDictionary').DeclarationType).map(t => ({ value: t.value, text: t.text })),// this.FETCH_DATASOURCE('DeclarationType').then(result => {
  296. // this.dataSource.FundsApply.DeclarationType = result.data.map(t => ({ value: t.value, text: t.text }))
  297. // }),
  298. ])
  299. await this.fetchForm()
  300. this.ready = true
  301. this.HIDE_LOADING()
  302. },
  303. // 加载表单数据
  304. async fetchForm() {
  305. if (this.mode === 'create') {
  306. const result = await this.HTTP_GET('/learun/adms/FundsApply/getEnCode')
  307. const source = {
  308. ApplyDept: this.user.departmentId,
  309. ApplyUser: this.user.userId,
  310. ApplyTime: new Date().getTime()
  311. };
  312. let resultres = Object.assign(result, source)
  313. let EnCoderes = {
  314. FundsApply: resultres,
  315. }
  316. this.origin = await this.formatFormData(EnCoderes)
  317. } else {
  318. const result = await this.HTTP_GET('/learun/adms/FundsApply/form', this.id)
  319. result.FundsApply.SumAmount = Number(result.FundsApply.SumAmount).toFixed(2)
  320. this.origin = await this.formatFormData(result)
  321. if(result.FundsApplyDetail.length){
  322. for(let i =0;i<result.FundsApplyDetail.length;i++){
  323. result.FundsApplyDetail[i].Price = Number(result.FundsApplyDetail[i].Price).toFixed(2)
  324. result.FundsApplyDetail[i].Amount = Number(result.FundsApplyDetail[i].Amount).toFixed(2)
  325. }
  326. this.FundsApplyDetail = result.FundsApplyDetail
  327. }
  328. }
  329. this.current = this.COPY(this.origin)
  330. //加载附件值数据
  331. // console.log('附件值赋值前:'+this.getValue('FundsApply.Files'));
  332. if (this.getValue('FundsApply.Path') == ""||this.getValue('FundsApply.Path') == undefined ||this.getValue('FundsApply.Path') == null) {
  333. this.setValue('FundsApply.Path',this.folderId);
  334. // console.log('附件值赋值后:'+this.getValue('FundsApply.Path'));
  335. }else{
  336. this.folderId=this.getValue('FundsApply.Path');
  337. // console.log('文件夹id赋值后:'+this.folderId);
  338. //请求‘获取附件列表’接口
  339. this.fileList =[]
  340. this.fileList = await this.FETCH_FILEList(this.getValue('FundsApply.Path'));
  341. }
  342. },
  343. // 点击 「编辑」、「重置」、「保存」、「删除」 按钮
  344. async action(type) {
  345. switch (type) {
  346. case 'edit':
  347. this.edit = true
  348. break
  349. case 'reset':
  350. this.current = this.COPY(this.origin)
  351. this.edit = false
  352. break
  353. case 'save':
  354. const verifyResult = this.verifyForm()
  355. if (verifyResult.length > 0) {
  356. this.CONFIRM('表单验证失败', verifyResult.join('\n'))
  357. return
  358. }
  359. if (this.FundsApplyDetail.some((val) => val.ProjectContent== '')) {
  360. this.CONFIRM('表单验证失败', '明细项目内容不能为空')
  361. return;
  362. }
  363. if (this.FundsApplyDetail.some((val) => val.Number== '')) {
  364. this.CONFIRM('表单验证失败', '明细数量不能为空')
  365. return;
  366. }
  367. if (this.FundsApplyDetail.some((val) => val.Price== '')) {
  368. this.CONFIRM('表单验证失败', '明细单价不能为空')
  369. return;
  370. }
  371. if (this.FundsApplyDetail.some((val) => val.Unit== '')) {
  372. this.CONFIRM('表单验证失败', '明细单位不能为空')
  373. return;
  374. }
  375. if (!(await this.CONFIRM('提交确认', '确定要提交本页表单内容吗?', true))) {
  376. return
  377. }
  378. this.LOADING('正在提交...')
  379. let postData = {
  380. strEntity: JSON.stringify(this.current.FundsApply),
  381. fundsApplyDetailList: JSON.stringify(this.FundsApplyDetail)
  382. }
  383. // const postData = await this.getPostData(this.id)
  384. if (this.id) {
  385. postData.keyValue = this.id
  386. }
  387. this.HTTP_POST('/learun/adms/FundsApply/save', postData, '表单提交保存失败')
  388. .then(success => {
  389. this.HIDE_LOADING()
  390. if (!success) {
  391. return
  392. }
  393. this.EMIT('AssetManagementSystemFundsApply-list-change')
  394. // this.NAV_BACK()
  395. uni.navigateBack({})
  396. this.TOAST('提交保存成功')
  397. })
  398. break
  399. case 'delete':
  400. if (!(await this.CONFIRM('删除项目', '确定要删除本项吗?', true))) {
  401. return
  402. }
  403. this.LOADING('提交删除中...')
  404. this.HTTP_POST('/Learun/adms/EducationalAdministration/FundsApply/delete', this.id, '删除失败')
  405. .then(success => {
  406. this.HIDE_LOADING()
  407. if (!success) {
  408. return
  409. }
  410. this.EMIT('AssetManagementSystemFundsApply-list-change')
  411. this.NAV_BACK()
  412. this.this.TOAST('删除成功', 'success')
  413. })
  414. break
  415. default:
  416. break
  417. }
  418. },
  419. // 获取表单值
  420. getValue(path) {
  421. return get(this.current, path)
  422. },
  423. // 设置表单值
  424. setValue(path, val) {
  425. set(this.current, path, val)
  426. },
  427. async DeclarationDeptChange($event){
  428. this.setValue('FundsApply.DeclarationDept', $event)
  429. this.setValue('FundsApply.Informant', '')
  430. if (this.getValue('FundsApply.DeclarationDept')) {
  431. this.FETCH_DATASOURCE('teacheruserdata').then(result => {
  432. this.dataSource.FundsApply.Informant = result.data.sort((a,b)=>{return a.f_realname-b.f_realname}).filter(t=>t.f_departmentid===this.getValue('FundsApply.DeclarationDept')).map(t => ({
  433. text: t.f_realname,
  434. value: t.f_userid
  435. }))
  436. })
  437. // this.FETCH_DATASOURCE('Acc_FloorData').then(result => {
  438. // this.dataSource.Acc_GoodsDemage.Floor = result.data.sort((a,b)=>{return a.dno-b.dno}).filter(t=>t.parentid===this.getValue('FundsApply.DeclarationDept')).map(t => ({ text: t.name, value: t.id }))
  439. // })
  440. }else{
  441. this.FETCH_DATASOURCE('teacheruserdata').then(result => {
  442. this.dataSource.FundsApply.Informant = result.data.map(t => ({
  443. text: t.f_realname,
  444. value: t.f_userid
  445. }));
  446. })
  447. }
  448. },
  449. Statusitem(data) {
  450. if (data == '0') {
  451. return '草稿'
  452. } else if (data == '1') {
  453. return '审批中'
  454. } else if (data == '2') {
  455. return '审批通过'
  456. } else {
  457. return data;
  458. }
  459. },
  460. add(str) {
  461. let jsons = this.COPY(this[str]);
  462. this.FundsApplyDetail.push(jsons)
  463. // console.log(this.FundsApplyDetail)
  464. },
  465. del(str, num) {
  466. let _this = this
  467. this.FundsApplyDetail.splice(num, 1)
  468. let Amounts = _this.FundsApplyDetail.map(item => {
  469. return item.Amount
  470. })
  471. _this.current.FundsApply.SumAmount = _this.sum(Amounts)
  472. _this.current.FundsApply.UpperAmount = _this.smalltoBIG(_this.current.FundsApply.SumAmount)
  473. },
  474. blurChange(item){
  475. let _this = this
  476. item.Price = Number(item.Price).toFixed(2)
  477. if (item.Number && item.Price) {
  478. item.Amount = (item.Number * item.Price).toFixed(2)
  479. // _this.current.SumAmount = item.Number * item.Price
  480. let Amounts = _this.FundsApplyDetail.map(item => {
  481. return Number(item.Amount).toFixed(2)
  482. })
  483. _this.current.FundsApply.SumAmount = Number(_this.sum(Amounts)).toFixed(2)
  484. _this.current.FundsApply.UpperAmount = _this.smalltoBIG(_this.current.FundsApply.SumAmount)
  485. }
  486. },
  487. SumAmountChange(item) {
  488. let _this = this
  489. item.Number = Number(item.Number).toFixed(2)
  490. if (item.Number && item.Price) {
  491. item.Amount = (item.Number * item.Price).toFixed(2)
  492. // _this.current.SumAmount = item.Number * item.Price
  493. let Amounts = _this.FundsApplyDetail.map(item => {
  494. return item.Amount
  495. })
  496. _this.current.FundsApply.SumAmount = Number(_this.sum(Amounts)).toFixed(2)
  497. _this.current.FundsApply.UpperAmount = _this.smalltoBIG(_this.current.FundsApply.SumAmount)
  498. }
  499. },
  500. sum(args) {
  501. if(args == 0){
  502. return ''
  503. }
  504. // var args = arguments,//获取所有的参数
  505. var d = 0, //定义小数位的初始长度,默认为整数,即小数位为0
  506. sum = 0; //定义sum来接收所有数据的和
  507. //循环所有的参数
  508. for (var key in args) { //遍历所有的参数
  509. //把数字转为字符串
  510. var str = '' + args[key];
  511. if (str.indexOf(".") != -1) { //判断数字是否为小数
  512. //获取小数位的长度
  513. var temp = str.split(".")[1].length;
  514. //比较此数的小数位与原小数位的长度,取小数位较长的存储到d中
  515. d = d < temp ? temp : d;
  516. }
  517. }
  518. //计算需要乘的数值
  519. var m = Math.pow(10, d);
  520. //遍历所有参数并相加
  521. for (var key in args) {
  522. sum += args[key] * m;
  523. }
  524. //返回结果
  525. return sum / m;
  526. },
  527. smalltoBIG(n) {
  528. if(n == 0){
  529. return ''
  530. }
  531. var fraction = ['角', '分'];
  532. var digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
  533. var unit = [
  534. ['元', '万', '亿'],
  535. ['', '拾', '佰', '仟']
  536. ];
  537. var head = n < 0 ? '欠' : '';
  538. n = Math.abs(n);
  539. var s = '';
  540. for (var i = 0; i < fraction.length; i++) {
  541. s += (digit[Math.floor(n * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '');
  542. }
  543. s = s || '整';
  544. n = Math.floor(n);
  545. for (var i = 0; i < unit[0].length && n > 0; i++) {
  546. var p = '';
  547. for (var j = 0; j < unit[1].length && n > 0; j++) {
  548. p = digit[n % 10] + unit[1][j] + p;
  549. n = Math.floor(n / 10);
  550. }
  551. s = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + s;
  552. }
  553. return head + s.replace(/(零.)*零元/, '元').replace(/(零.)+/g, '零').replace(/^整$/, '零元整');
  554. },
  555. changeitem(e,item){
  556. // console.log(item)
  557. item.Unit = this.dataSource.FundsApply.Unit[e.detail.value].value
  558. },
  559. mapitem(data){
  560. // let items = this.dataSource.FundsApply.Unit.find(item=>{
  561. // return item.value == data
  562. // }).text
  563. // console.log(items)
  564. return this.dataSource.FundsApply.Unit.find(item=>{
  565. return item.value == data
  566. }).text
  567. }
  568. },
  569. computed: {
  570. // Price(){
  571. // // return this.FundsApplyDetail.filter(item=>item.Amount)
  572. // }
  573. },
  574. created() {
  575. this.user = this.GET_GLOBAL('loginUser');
  576. }
  577. }
  578. </script>
  579. <style lang="less" scoped>
  580. .welT {
  581. font-size: 16px;
  582. line-height: 26px;
  583. padding: 0 12px;
  584. background-color: #ffffff;
  585. padding-bottom: 12px;
  586. }
  587. .welT text {
  588. width: 26px;
  589. height: 26px;
  590. line-height: 24px;
  591. border: 1px solid #efefef;
  592. border-radius: 4px;
  593. float: right;
  594. text-align: center;
  595. color: #999;
  596. }
  597. .welBox {
  598. // margin-top: 10px;
  599. }
  600. .welCon {
  601. padding: 10px;
  602. border: 1px solid #efefef;
  603. padding-top: 15px;
  604. border-radius: 4px;
  605. position: relative;
  606. // background-color: #ffffff;
  607. // margin-top: 15px;
  608. }
  609. .welDel {
  610. border-radius: 50%;
  611. position: absolute;
  612. top: 4px;
  613. left: 0px;
  614. background: #fff;
  615. }
  616. .welDel text {
  617. text-align: center;
  618. width: 26px;
  619. height: 26px;
  620. display: block;
  621. line-height: 24px;
  622. border: 1px solid #efefef;
  623. border-radius: 50%;
  624. }
  625. .welAdd{
  626. border-radius: 50%;
  627. position: absolute;
  628. top: 4px;
  629. right: 0px;
  630. background: #fff;
  631. }
  632. .welAdd text {
  633. text-align: center;
  634. width: 26px;
  635. height: 26px;
  636. display: block;
  637. line-height: 24px;
  638. border: 1px solid #efefef;
  639. border-radius: 50%;
  640. }
  641. .welImgAdd {
  642. text-align: center;
  643. line-height: 0;
  644. }
  645. .passwordDes {
  646. color: #606266;
  647. font-size: 14px;
  648. padding: 8px;
  649. text-indent: 2em;
  650. }
  651. </style>