From 77795ae1786f238465e802ca96d6b4c6d34c1bcb Mon Sep 17 00:00:00 2001 From: lb01 Date: Tue, 13 Dec 2022 10:12:14 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=B3=E8=AF=B7=E4=BA=BA=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E5=A4=87=E6=B3=A8=EF=BC=8C=E7=BB=8F=E8=B4=B9=E5=BC=80=E6=94=AF?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8D=95=E4=BD=8D=EF=BC=8C=E6=88=91=E7=9A=84?= =?UTF-8?q?=E5=AE=A1=E6=89=B9=E4=B8=AD=E6=B7=BB=E5=8A=A0=E9=83=A8=E9=97=A8?= =?UTF-8?q?=E5=92=8C=E5=A1=AB=E6=8A=A5=E4=BA=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AssetManagementSystem/FundsApply/list.vue | 8 +-- .../FundsApply/single.vue | 63 ++++++++++++++----- .../pages/nworkflow/myflow/list.vue | 43 ++++++++----- 3 files changed, 81 insertions(+), 33 deletions(-) diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AssetManagementSystem/FundsApply/list.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AssetManagementSystem/FundsApply/list.vue index 208259427..46d6d87f9 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AssetManagementSystem/FundsApply/list.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AssetManagementSystem/FundsApply/list.vue @@ -31,15 +31,15 @@ {{ displayListItem(item, 'ApplyUser') }} - + - + 总金额: diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AssetManagementSystem/FundsApply/single.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AssetManagementSystem/FundsApply/single.vue index f2f156f5f..310f7361a 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AssetManagementSystem/FundsApply/single.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AssetManagementSystem/FundsApply/single.vue @@ -25,10 +25,10 @@ - - + + @@ -43,8 +43,22 @@ + + + {{ item.Unit ? mapitem(item.Unit) : '请选择单位' }} + + + + + + @@ -129,7 +143,8 @@ ProjectContent: '', Number: '', Price: '', - Amount: '' + Amount: '', + Unit:'' }, // 表单项数据结构 scheme: { @@ -161,14 +176,14 @@ dataSourceId: 'IsFixedAssets', verify: 'NotNull' }, - // Remark: { - // type: 'texteditor', - // title: '备注', - // }, Remark: { - type: 'text', - title: '申请人', + type: 'texteditor', + title: '备注', }, + // Remark: { + // type: 'text', + // title: '申请人', + // }, SumAmount: { type: 'text', title: '总金额' @@ -194,10 +209,15 @@ IsFixedAssets: Object.values(this.GET_GLOBAL('dataDictionary').YesOrNoInt).map(t => ({ value: t.value, text: t.text - })) + })), + Unit:Object.values(this.GET_GLOBAL('dataDictionary').sldw).map(t => ({ + value: t.value, + text: t.text + })), } }, - EnCode: '' + EnCode: '', + index:0 } }, @@ -206,6 +226,7 @@ id }) { await this.init(type, id) + console.log(this.dataSource.FundsApply.Unit) }, methods: { @@ -304,7 +325,10 @@ this.CONFIRM('表单验证失败', '明细单价不能为空') return; } - + if (this.FundsApplyDetail.some((val) => val.Unit== '')) { + this.CONFIRM('表单验证失败', '明细单位不能为空') + return; + } if (!(await this.CONFIRM('提交确认', '确定要提交本页表单内容吗?', true))) { return @@ -383,6 +407,7 @@ add(str) { let jsons = this.COPY(this[str]); this.FundsApplyDetail.push(jsons) + // console.log(this.FundsApplyDetail) }, del(str, num) { let _this = this @@ -479,6 +504,16 @@ } return head + s.replace(/(零.)*零元/, '元').replace(/(零.)+/g, '零').replace(/^整$/, '零元整'); }, + changeitem(e,item){ + // console.log(item) + item.Unit = this.dataSource.FundsApply.Unit[e.detail.value].value + // item.Unit = + }, + mapitem(data){ + return this.dataSource.FundsApply.Unit.filter(item=>{ + return item.value == data + })[0].text + } }, computed: { // Price(){ diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/nworkflow/myflow/list.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/nworkflow/myflow/list.vue index 03419f170..43f1a913b 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/nworkflow/myflow/list.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/nworkflow/myflow/list.vue @@ -36,15 +36,34 @@ - - {{ item.F_Title || '(草稿 · 待编辑)' }} - - - - {{ item.F_SchemeName }} - {{item.F_CreateUserName}} - {{ displayListItem(item, 'F_DepartmentId')}} - + + + + {{ item.F_Title || '(草稿 · 待编辑)' }} + + + + + 填报人 + {{item.F_CreateUserName}} + 部门 + {{displayListItem(item, 'F_DepartmentId')}} + + + + + + @@ -58,11 +77,6 @@ - - - - - @@ -387,7 +401,6 @@ export default { case 'radio': case 'select': const selectItem = this.dataSource[field].find(t => t.value === String(value)) - console.log(selectItem) return get(selectItem, 'text', '') case 'checkbox':