From db5240c1ad2a2926297c9febb6383384abea1082 Mon Sep 17 00:00:00 2001
From: czt <czt18638530771@163.com>
Date: 星期三, 28 一月 2026 19:08:32 +0800
Subject: [PATCH] 质押合同还款金额提醒功能
---
fzzy-igdss-view/src/main/java/com/fzzy/work/WorkOrder.view.xml | 147 ++++++++++++++++++++++++++++++++++++++++--------
1 files changed, 122 insertions(+), 25 deletions(-)
diff --git a/fzzy-igdss-view/src/main/java/com/fzzy/work/WorkOrder.view.xml b/fzzy-igdss-view/src/main/java/com/fzzy/work/WorkOrder.view.xml
index 08c7be5..a80f1eb 100644
--- a/fzzy-igdss-view/src/main/java/com/fzzy/work/WorkOrder.view.xml
+++ b/fzzy-igdss-view/src/main/java/com/fzzy/work/WorkOrder.view.xml
@@ -81,6 +81,12 @@
</PropertyDef>
<PropertyDef name="node">
<Property></Property>
+ <Property name="mapping">
+ <Property name="mapValues">${dorado.getDataProvider("workOrderPR#triggerNode").getResult()}</Property>
+ <Property name="keyProperty">dictValue</Property>
+ <Property name="valueProperty">dictLabel</Property>
+ </Property>
+ <Property name="label">娴佺▼鐜妭</Property>
</PropertyDef>
<PropertyDef name="createById">
<Property></Property>
@@ -132,7 +138,7 @@
<Property name="label">鎴鏃堕棿</Property>
</PropertyDef>
<PropertyDef name="scope">
- <Property/>
+ <Property></Property>
</PropertyDef>
</DataType>
<DataType name="dtWordProcess">
@@ -145,6 +151,7 @@
</PropertyDef>
<PropertyDef name="remark">
<Property></Property>
+ <Property name="label">瀹℃壒寤鸿</Property>
</PropertyDef>
<PropertyDef name="id">
<Property></Property>
@@ -176,13 +183,26 @@
}
view.get("#dsMain").set("parameter",param).flushAsync();
}
+//姹囨�讳俊鎭�
+summaryCount = function(){
+ view.get("#ajaxSummary").execute(function(result){
+ console.log(result);
+ jQuery('#child-num1').text(result.selfTodo);
+ jQuery('#child-num2').text(result.assignTodo);
+ jQuery('#child-num3').text(result.todayTodo);
+ jQuery('#child-num4').text(result.sumTodo);
+ });
+}
+
+summaryCount();
+ 
query();

//瀹d紶鎿嶄綔
renderCell1 = function(arg,self){
var tabIndex = view.get("#tabMain.currentIndex");
var data = arg.data;
- var htm = "<a onClick='audit()' class='a-btn1'>鎸囨淳</a>&nbsp;|&nbsp;<a onClick='showDetail()' class='a-btn2'>璇︾粏</a>";
+ var htm = "<a onClick='selectUser()' class='a-btn1'>鎸囨淳</a>&nbsp;|&nbsp;<a onClick='showDetail()' class='a-btn2'>璇︾粏</a>";
if(1 == tabIndex){
htm = "<a onClick='showDetail()' class='a-btn2'>璇︾粏</a>";
}
@@ -212,18 +232,14 @@
arg.dom.innerHTML = htm;
}

-//鐐瑰嚮瀹℃牳
-audit = function(){
- 
-}
//鐐瑰嚮璇︾粏
showDetail = function(){
var tabIndex = view.get("#tabMain.currentIndex");
var cur = view.get("#dsMain.data:#");
var dialog = view.get("#dialogMain");
- view.get('^btnTag').set('visible',true);
+ view.get('^btnTag').set('disabled',false);
if(1 == tabIndex){
- view.get('^btnTag').set('visible',false);
+ view.get('^btnTag').set('disabled',true);
}
dialog.show();

@@ -263,7 +279,15 @@
var process = view.get("#dsProcess.data");
process.set("action",null);
process.set('remark',null);
+ process.set('assigneeId',null);
+ process.set('assigneeName',null);
view.get('#dialogTodo').hide();
+ view.get('#dialogSelectUser').hide();
+}
+selectUser = function(){
+ var process = view.get("#dsProcess.data");
+ process.set('action','transfer')
+ view.get("#dialogSelectUser").show();
}
</ClientEvent>
<Property name="packages">font-awesome,css-common</Property>
@@ -371,35 +395,35 @@

<!-- 蹇嵎鏂瑰紡 -->
<div class="parent">
- 
+ 
<div class="child">
<div class="console-link-block">
- <div class="console-link-block-num">0</div>
- <div class="console-link-block-text">浠婃棩宸ュ崟缁熻</div>
+ <div class="console-link-block-num" id="child-num1">0</div>
+ <div class="console-link-block-text">鎴戠殑寰呭姙宸ュ崟</div>
<img class="console-icon" src="/img/icon-wj.png">
</div>
</div>

<div class="child">
<div class="console-link-block bg2">
- <div class="console-link-block-num">0</div>
- <div class="console-link-block-text">浠婃棩寰呭畬鎴愬伐鍗�</div>
+ <div class="console-link-block-num" id="child-num2">0</div>
+ <div class="console-link-block-text">鎴戠殑鎸囨淳宸ュ崟</div>
<img class="console-icon" src="/img/icon-wj2.png">
</div>
</div>

<div class="child">
<div class="console-link-block bg3">
- <div class="console-link-block-num">0</div>
- <div class="console-link-block-text">鎬诲伐鍗曠粺璁�</div>
+ <div class="console-link-block-num" id="child-num3">0</div>
+ <div class="console-link-block-text">浠婃棩宸ュ崟</div>
<img class="console-icon" src="/img/icon-tj.png">
</div>
</div>

<div class="child">
- <div class="console-link-block bg4">
- <div class="console-link-block-num">0</div>
- <div class="console-link-block-text">鎬绘湭瀹屾垚宸ュ崟</div>
+ <div class="console-link-block bg5">
+ <div class="console-link-block-num" id="child-num4">0</div>
+ <div class="console-link-block-text">鎬诲緟鍔炲伐鍗�</div>
<img class="console-icon" src="/img/icon-tj2.png">
</div>
</div>
@@ -415,7 +439,7 @@
<Property name="margin-top">10px</Property>
</Property>
<AutoForm>
- <Property name="cols">*,*,*,*,90,90</Property>
+ <Property name="cols">*,300,300,90,90,*</Property>
<Property name="dataSet">dsQuery</Property>
<Property name="labelAlign">right</Property>
<Property name="labelWidth">100</Property>
@@ -423,11 +447,6 @@
<Property name="name">deptId</Property>
<Property name="property">deptId</Property>
<Property name="trigger">autoMappingDropDown2</Property>
- <Editor/>
- </AutoFormElement>
- <AutoFormElement>
- <Property name="name">name</Property>
- <Property name="property">name</Property>
<Editor/>
</AutoFormElement>
<AutoFormElement>
@@ -478,7 +497,7 @@
<DataColumn>
<ClientEvent name="onRenderCell">renderCell1(arg,self);</ClientEvent>
<Property name="caption">鎿嶄綔</Property>
- <Property name="width">80</Property>
+ <Property name="width">160</Property>
<Property name="align">center</Property>
<Editor/>
</DataColumn>
@@ -500,6 +519,11 @@
<Property name="width">120</Property>
<Property name="align">center</Property>
<Property name="name">status</Property>
+ </DataColumn>
+ <DataColumn name="node">
+ <Property name="property">node</Property>
+ <Property name="width">120</Property>
+ <Property name="align">center</Property>
</DataColumn>
<DataColumn name="bizType">
<Property name="property">bizType</Property>
@@ -578,6 +602,11 @@
<Property name="width">120</Property>
<Property name="align">center</Property>
<Property name="name">status</Property>
+ </DataColumn>
+ <DataColumn name="node">
+ <Property name="property">node</Property>
+ <Property name="width">120</Property>
+ <Property name="align">center</Property>
</DataColumn>
<DataColumn name="bizType">
<Property name="property">bizType</Property>
@@ -704,6 +733,7 @@
<Property name="tags">btnTag</Property>
</ToolBarButton>
<ToolBarButton>
+ <ClientEvent name="onClick">selectUser();</ClientEvent>
<Property name="caption">杞氦</Property>
<Property name="width">80</Property>
<Property name="exClassName">btn2</Property>
@@ -794,5 +824,72 @@
<Property name="service">workOrderPR#todo</Property>
<Property name="executingMessage">澶勭悊涓�︹��</Property>
</AjaxAction>
+ <DataSet id="dsSysUser">
+ <Property name="dataType">[dtSysUser]</Property>
+ <Property name="dataProvider">commonPR#listUserByCurUserType</Property>
+ </DataSet>
+ <DataSetDropDown id="selectUser">
+ <Property name="dataSet">dsSysUser</Property>
+ <Property name="property">userName</Property>
+ <Property name="assignmentMap">assigneeId=loginName,assigneeName=userName</Property>
+ </DataSetDropDown>
+ <Dialog id="dialogSelectUser">
+ <Property name="width">600</Property>
+ <Property name="caption">鎸囧畾/杞澶勭悊浜�</Property>
+ <Property name="closeable">false</Property>
+ <Property name="iconClass">fa fa-bookmark</Property>
+ <Buttons>
+ <Button>
+ <ClientEvent name="onClick">todo();</ClientEvent>
+ <Property name="caption">纭畾</Property>
+ <Property name="iconClass">fa fa-check</Property>
+ <Property name="exClassName">btn1</Property>
+ <Property name="width">90</Property>
+ </Button>
+ <Button>
+ <ClientEvent name="onClick">cancelTodo();</ClientEvent>
+ <Property name="caption">鍙栨秷</Property>
+ <Property name="iconClass">fa fa-times</Property>
+ <Property name="exClassName">btn3</Property>
+ <Property name="width">90</Property>
+ </Button>
+ </Buttons>
+ <Children>
+ <Container>
+ <AutoForm>
+ <Property name="cols">*</Property>
+ <Property name="dataSet">dsProcess</Property>
+ <Property name="labelAlign">right</Property>
+ <Property name="labelWidth">100</Property>
+ <AutoFormElement>
+ <Property name="name">assigneeName</Property>
+ <Property name="property">assigneeName</Property>
+ <Property name="trigger">selectUser</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">remark</Property>
+ <Property name="property">remark</Property>
+ <Editor>
+ <TextArea>
+ <Property name="blankText">-- 濉啓瀹℃壒寤鸿 --</Property>
+ <Property name="height">100</Property>
+ </TextArea>
+ </Editor>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">assigneeId</Property>
+ <Property name="property">assigneeId</Property>
+ <Property name="visible">false</Property>
+ <Editor/>
+ </AutoFormElement>
+ </AutoForm>
+ </Container>
+ </Children>
+ <Tools/>
+ </Dialog>
+ <AjaxAction id="ajaxSummary">
+ <Property name="service">workOrderPR#pageSummary</Property>
+ </AjaxAction>
</View>
</ViewConfig>
--
Gitblit v1.9.3