cy
2022-06-21 129904537f66509f97b285e7eb4f42b3dc349dd0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<title>交付报告</title>
[#include "/business/pages/include/static.html" /]
[#include "/component/DatePicker.html" /]
[#include "/component/newsel.html" /]
</head>
<script type="text/javascript">
    $(function () {
        $.formValidator.initConfig({
            formID: "myform", onError: function (msg) {
                popupTips(msg)
            }, onSuccess: function () {
                document.getElementById("myform").target = window.top.openDialog("1", "操作",
                        {},
                        {"width": 40, "height": 40}, [{btnId: "tipBtnSure", btnName: "确定", btnStyle: "bluebtn"}]);
                return true;
            }
        });
    })
</script>
<body class="edit_txt_body">
[#include "/business/pages/include/print.html" /]
<div class="device" id="printDiv" style="padding:0;border:0;">
<form action="${base}/business/pages/deliver/saveDeliverReport.html" method="post" id="myform" name="myform">
  <input type="hidden" id="plan_id" name="plan_id" value="${info.ID}"/>
  <input type="hidden" id="id" name="id" value="${ment.ID}"/>
  <input type="hidden" id="is_state" name="is_state"/>
  <table border="0" class="reportTable">
  <tr>
     <td class="tdbg" width="65px">项目</td>
     <td colspan="5" align="left">${info.CUSTOMER_NAME}</td>
   </tr>
  <tr>
     <td class="tdbg">开始时间</td>
     <td colspan="2">
         [@datepicker id="start_time" value="${ment.START_TIME}" name="start_time" length=8 /]
     </td>
     <td class="tdbg">结束时间</td>
     <td colspan="2">
         [@datepicker id="end_time" value="${ment.END_TIME}" name="end_time" length=8 /]
     </td>
   </tr>
   
   <tr>
     <td class="tdbg" colspan="6">项目内容</td>
   </tr>
   <tr>
     <td colspan="6">
         <textarea class="general" style="width: 701px;border:0 " id="customer_text" name="customer_text"/>${ment.CUSTOMER_TEXT}</textarea>
     </td>
   </tr>
   <tr>
     <td class="tdbg" colspan="6">后期完善项目</td>
   </tr>
   <tr>
     <td colspan="6">
         <textarea class="general" style="width: 701px;border:0 " id="per_text" name="per_text"/>${ment.PER_TEXT}</textarea>
     </td>
   </tr>
   <tr>
     <td class="tdbg" colspan="6">项目实施验收</td>
   </tr>
   <tr>
     <td colspan="6">
         <textarea class="general" style="width: 701px;border:0 " id="ac_text" name="ac_text"/>${ment.AC_TEXT}</textarea>
     </td>
   </tr>
   <tr>
     <td class="tdbg" colspan="6">项目文档验收</td>
   </tr>
   <tr>
     <td colspan="6">
         <textarea class="general" style="width: 701px;border:0 " id="file_text" name="file_text"/>${ment.FILE_TEXT}</textarea>
     </td>
   </tr>
   <tr>
     <td class="tdbg" colspan="6">项目结论验收</td>
   </tr>
   <tr>
     <td colspan="6">
         <textarea class="general" style="width: 701px;border:0 " id="epilogue_text" name="epilogue_text"/>${ment.EPILOGUE_TEXT}</textarea>
     </td>
   </tr>
   <tr>
     <td class="tdbg" colspan="6">签字确认</td>
   </tr>
   <tr>
     <td class="tdbg">客户方</td>
     <td colspan="2">
         <input type="text" class="general" value="${ment.CUSTOMER_SQ}" id="customer_sq" name="customer_sq"/>
     </td>
     <td class="tdbg">实施方</td>
     <td colspan="2">
         <input type="text" class="general" id="protect_ac" value="${ment.PROTECT_AC}" name="protect_ac" />
     </td>
   </tr>
   <tr>
     <td class="tdbg">客户方负责人</td>
     <td colspan="2">
         <input type="text" class="general" id="customer_charge" value="${ment.CUSTOMER_CHARGE}" name="customer_charge" />
     </td>
     <td class="tdbg" >实施方负责人</td>
     <td colspan="2">
         <input type="text" class="general" id="protect_charge" value="${ment.PROTECT_CHARGE}" name="protect_charge" />
     </td>
   </tr>
   <tr>
     <td class="tdbg">日期</td>
     <td colspan="2">
         [@datepicker id="customer_date" value="${ment.CUSTOMER_DATE}" name="customer_date"  length=8 /]
     </td>
     <td class="tdbg">日期</td>
     <td colspan="2">
         [@datepicker id="protect_date" value="${ment.PROTECT_DATE}"  name="protect_date" length=8 /]
     </td>
   </tr>
  </table>
</form>
</div>
<script type="text/javascript">
    function onDialogBtnClick(btnID, dialogID, config) {
        if (btnID == "btnSure") {
            $("#is_state").val("2");
            var start_time=$("#start_time").val();
            if(start_time==''){
                popupTips("请先选择开始日期");
                return;
            }
            var end_time=$("#end_time").val();
            if(end_time==''){
                popupTips("请先选择结束日期");
                return;
            }
            if(start_time>end_time){
                popupTips("开始时间应小于结束时间");
                return;
            }
            var customer_text=$("#customer_text").val();
            if(customer_text==''){
                popupTips("请填写项目内容");
                return;
            }
            var per_text=$("#per_text").val();
            if(per_text==''){
                popupTips("请填写后期完善内容");
                return;
            }
            var ac_text=$("#ac_text").val();
            if(ac_text==''){
                popupTips("请填写项目实施验收");
                return;
            }
            var file_text=$("#file_text").val();
            if(file_text==''){
                popupTips("请填写项目文档验收");
                return;
            }
            var epilogue_text=$("#epilogue_text").val();
            if(epilogue_text==''){
                popupTips("请填写项目验收结论");
                return;
            }
            var customer_sq=$("#customer_sq").val();
            if(customer_sq==''){
                popupTips("请填写客户方");
                return;
            }
            if(customer_sq.length>100){
                popupTips("客户方长度不能超过100");
                return;
            }
            var protect_ac=$("#protect_ac").val();
            if(protect_ac==''){
                popupTips("请填写实施方");
                return;
            }
            if(protect_ac.length>100){
                popupTips("实施方长度不能超过100");
                return;
            }
            var customer_charge=$("#customer_charge").val();
            if(customer_charge==''){
                popupTips("请填写实施放负责人");
                return;
            }
            if(customer_charge.length>100){
                popupTips("实施放负责人长度不能超过100");
                return;
            }
            var protect_charge=$("#protect_charge").val();
            if(protect_charge==''){
                popupTips("请填写项目负责人");
                return;
            }
            if(protect_charge.length>100){
                popupTips("项目负责人长度不能超过100");
                return;
            }
            var customer_date=$("#customer_date").val();
            if(customer_date==''){
                popupTips("请填写客户签字日期");
                return;
            }
            var protect_date=$("#protect_date").val();
            if(protect_date==''){
                popupTips("请填写实施签字日期");
                return;
            }
            $("#myform").submit();
        }
        if (btnID == "btnSave") {
            $("#is_state").val("1");
            var start_time=$("#start_time").val();
            if(start_time==''){
                popupTips("请先选择开始日期");
                return;
            }
            var end_time=$("#end_time").val();
            if(end_time==''){
                popupTips("请先选择结束日期");
                return;
            }
            if(start_time>end_time){
                popupTips("开始时间应小于结束时间");
                return;
            }
            var customer_text=$("#customer_text").val();
            if(customer_text==''){
                popupTips("请填写项目内容");
                return;
            }
            var per_text=$("#per_text").val();
            if(per_text==''){
                popupTips("请填写后期完善内容");
                return;
            }
            var ac_text=$("#ac_text").val();
            if(ac_text==''){
                popupTips("请填写项目实施验收");
                return;
            }
            var file_text=$("#file_text").val();
            if(file_text==''){
                popupTips("请填写项目文档验收");
                return;
            }
            var epilogue_text=$("#epilogue_text").val();
            if(epilogue_text==''){
                popupTips("请填写项目验收结论");
                return;
            }
            var customer_sq=$("#customer_sq").val();
            if(customer_sq==''){
                popupTips("请填写客户方");
                return;
            }
            if(customer_sq.length>100){
                popupTips("客户方长度不能超过100");
                return;
            }
            var protect_ac=$("#protect_ac").val();
            if(protect_ac==''){
                popupTips("请填写实施方");
                return;
            }
            if(protect_ac.length>100){
                popupTips("实施方长度不能超过100");
                return;
            }
            var customer_charge=$("#customer_charge").val();
            if(customer_charge==''){
                popupTips("请填写实施放负责人");
                return;
            }
            if(customer_charge.length>100){
                popupTips("实施放负责人长度不能超过100");
                return;
            }
            var protect_charge=$("#protect_charge").val();
            if(protect_charge==''){
                popupTips("请填写项目负责人");
                return;
            }
            if(protect_charge.length>100){
                popupTips("项目负责人长度不能超过100");
                return;
            }
            var customer_date=$("#customer_date").val();
            if(customer_date==''){
                popupTips("请填写客户签字日期");
                return;
            }
            var protect_date=$("#protect_date").val();
            if(protect_date==''){
                popupTips("请填写实施签字日期");
                return;
            }
            $("#myform").submit();
        }
    }
</script>
</body>
</html>