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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>驻场服务监督卡</title>
<meta name="keywords" content="此页面关键词">
<meta name="description" content="网站描述">
[#include "/business/pages/include/static.html" /]
<style type="text/css" >
        
        .reportTable_txt{
         background:#e9f1f5;
         width:96%;
         padding-left:2%;
         height:20px;
         border:1px solid #d6e6ee;
         }
         .calendarimg{
            float:left;
            margin:3px 0px 0px 5px;
          }
          .reportTable_rad{
            margin:0px 3px 0px 7px;
            vertical-align:text-top;
          }
}
</style>
<script type="text/javascript">
 var  nowdate = '${nowdate}';
    $(document).ready(function() {
    $.formValidator.initConfig({formID:"myform",onError:function(msg){popupTips(msg)},onSuccess:function(){
        document.getElementById("myform").target = window.top.openDialog("0","操作",
                             {},
                             {"width":40,"height":40,"noclose":true},
                             [{btnId:"tipBtnSure", btnName:"确定", btnStyle:"bluebtn"}]);
                             return true;
    }});
   });
    function save(){
    
     $(".second").css("background","none");
      var b = false;
      var check = $(".item:checked");
      if(check.length == 0) {
          popupTips("没有调查结果");
          return;
      }
      $(".second").each(function() {
            var secondId = $(this).attr("itemid");
            var thirdTr = $(".third"+secondId+":checked");
            if(thirdTr.length == 0) {
                $(this).css("background","#ccc");
                b = true;
                return false;
            }
      });
      
      if(b) {
          popupTips("有未选择的评价项");
          return;
      }
      var customer_id = $("#customer_id").val();
      var card_month = $("#card_month").val();
      var customer_note = $("#customer_note").val();
      var customer_person_name = $("#customer_person_name").val();
      var telphone = $("#customer_person_telphone").val();
      var note_date = $("#note_date").val();
      var upload_time = $("#uploadtime").val();
        if($.util.isEmpty(customer_id)){
          popupTips("该人员没有驻场${Constants.CUSTOMER_CONSTANTS}");
          return;
        }
        if($.util.isEmpty(customer_note)){
          popupTips("请填写客户评价");
          return;
        }
        if($.util.isEmpty(customer_person_name)){
          popupTips("请填写客户签字");
          return;
        }
        if($.util.isEmpty(note_date)){
          popupTips("请选择客户评价日期");
          return;
        }
        if($.util.isEmpty(upload_time)){
          popupTips("请选择工程师填写日期");
          return;
        }
        
        $('.item:checked').each(function() {
            var typeValue = $(this).val();
            var name =  $(this).attr("name");
            $("#"+name).val(typeValue);
        });
        var scorenum = $("input[name='score']");
        var checknum = $('.item:checked');
        if(checknum.length < scorenum.length ){
           popupTips("有未评价的指标项");
          return;
        }
        $.post("checkCard.html", {"showmonth":card_month},function(data,textStatus){
              if(data == 1){
                 popupTips("本月已上传驻场监督卡");
               return;
              }else{
                if(!(window.top.openConfirm("确定要提交吗?"))) {
                 return false;
              } 
              $("#myform").submit();
             }
        });
        
    }
    function showdate(dateFormat){
        if(!dateFormat)dateFormat="yyyy-MM-dd";
          WdatePicker({
              lang:'zh-cn',
            dateFmt:dateFormat,
            isShowOthers: false,
            isShowToday:false,
            isShowClear:false,
            minDate:"1900年01月",
            maxDate:nowdate
            });
      }
          function showMonth(dateFormat){
        if(!dateFormat)dateFormat="yyyy-MM-dd";
          WdatePicker({
              lang:'zh-cn',
            dateFmt:dateFormat,
            isShowOthers: false,
            isShowToday:false,
            isShowClear:false,
            minDate:"1900年01月",
            maxDate:nowdate
            });
      }
    </script>
</head>
 
<body>
[#include "/business/pages/include/header.html" /]
<script type="text/javascript" src="${common_static}/static/plugins/My97DatePicker/WdatePicker.js"></script>
[#include "/component/webupload.html" /]
<div class="fs_navtitle" id="fsNavtitle">
    <div class="fs_navtitle_con">
        <div class="fsnt_btn">
            <a class="fb_submit" href="javascript:save();"><span>提交</span></a>
        </div>
    </div>
</div>
<div class="ucMain clearfix">
        <form id="myform" action="" method="post">
         <input type="hidden" value="${zcitem.TEMPLATE_ID}" name="template_id" id="template_id"/>
            <table  border="0" class="reportTable" style="width:190mm;margin-top:20px;">
                  <tr class="titleTr">
                  <td  colspan="6">驻场服务监督卡</td>
                </tr>
               <tr class="nameTr">
                   <td  colspan="2" align="left">${Constants.CUSTOMER_CONSTANTS}名称:
                   <input type="hidden" value="${result.customerId}" name="customer_id" id="customer_id"/>
                   <input type="hidden" value="${result.customerName}" name="customer_name" id="customer_name"/>
                   ${result.customerName}</td>
                   <td  colspan="2" style="text-align:center;">${Constants.UNIT_CONSTANTS}:
                   <input type="hidden" value="${result.subCustomerId}" name="sub_customer_id" id="sub_customer_id"/>
                   <input type="hidden" value="${result.subCustomerName}" name="sub_customer_name" id="sub_customer_name"/>
                   ${result.subCustomerName}</td>
                   <td  colspan="2" align="right" nowrap="nowrap" style="text-align:right;">驻场月份:
                   <input  style="width:60%;" type="text" onclick="showMonth('yyyy-MM');" readOnly id="card_month" name="card_month" class="reportTable_txt" value="${format(DateUtil.getCurrentDate6(),'yyyy-MM')}"/></td>
                </tr>
                <tr>
                  <td align="center" colspan="1" >监督项目</td>
                  <td align="center" colspan="3" >监督内容</td>
                  <td align="center" colspan="2"  align="center">评价</td>
                </tr>
                [#list zcitem.itemYjList as card]
                 [#list card.itemList as item]
                 [#if item_index == 0]
                 <tr>
                  <td align="center" rowspan="${card.ROWSPAN}" colspan="1" >
                  ${card.ITEM_NAME}
                  </td>
                  <td align="left" colspan="3" class=" second" itemid="${item.ID}">
                  <input type="hidden" value="${item.ID}" name="item_id"/>
                  <input type="hidden" value="${item.ITEM_NAME}" name="item_name"/>
                  <input type="hidden" value="${item.TEMPLATE_WEIGHT}" name="template_weight"/>
                  <input type="hidden" value="${item.BIG_WEIGHT}" name="big_weight"/>
                  <input type="hidden"  name="score" id="${item.ID}" />
                  ${item.ITEM_NAME}
                  </td>
                  <td align="center" colspan="2" >
                  [#list item.EVALUATION as eva]
                    <input type="radio" value="${eva.SCORE}&${eva.EVA_NAME}&${eva.ID}" [#if eva.IS_DEFAULT == 1]checked [/#if]class="item reportTable_rad third${item.ID}" name="${item.ID}"/>${eva.EVA_NAME}
                  [/#list]</td>
                </tr>
                [#else]
                <tr>
                  <td align="left" colspan="3" class=" second" itemid="${item.ID}">
                  <input type="hidden" value="${item.ID}" name="item_id"/>
                  <input type="hidden" value="${item.ITEM_NAME}" name="item_name"/>
                  <input type="hidden" value="${item.TEMPLATE_WEIGHT}" name="template_weight"/>
                  <input type="hidden" value="${item.BIG_WEIGHT}" name="big_weight"/>
                  <input type="hidden"  name="score" id="${item.ID}"/>
                  ${item.ITEM_NAME}
                  </td>
                  <td align="center" colspan="2" >
                  [#list item.EVALUATION as eva]
                    <input type="radio" value="${eva.SCORE}&${eva.EVA_NAME}&${eva.ID}" [#if eva.IS_DEFAULT == 1]checked [/#if]class="item reportTable_rad third${item.ID}" name="${item.ID}"/>${eva.EVA_NAME}
                  [/#list]</td>
                </tr>
                [/#if]
                [/#list]
                [/#list]
                <tr>
                  <td height="80" colspan="6" align="left" width="15%" style="vertical-align:top;" >客户评价:
                  <textarea class="reportTable_txt" style="height:50px;margin:5px 6px 8px;" id="customer_note" name="customer_note" ></textarea>
                  </td>
                </tr>
                 <tr>
                  <td align="center"   width="12%">客户签字</td>
                  <td align="left"  colspan="2"  width="38%"><input class="reportTable_txt" style="width:98%;border-style:none;" type="text" id="customer_person_name" name="customer_person_name"/></td>
                  <td align="center"   width="12%">日期</td>
                  <td align="left"  colspan="2"  width="38%"><input class="reportTable_txt" type="text" onclick="showdate('yyyy-MM-dd');" value="${nowdate}" readOnly id="note_date" name="note_date" style="border-style:none;" /></td>
                </tr>
                 <tr>
                  <td align="center"  >工程师签字</td>
                  <td align="left" colspan="2"  ><input style="width:99%;border-style:none;" type="text" id="user_name" name="user_name" value="${userMap.ZSXM}" readOnly/>
                  <td align="center"  >日期</td>
                  <td align="left" colspan="2" ><input class="reportTable_txt" type="text" onclick="showdate('yyyy-MM-dd');" value="${nowdate}"  readOnly id="uploadtime" name="uploadtime" style="border-style:none;" /></td>
                </tr>
                <tr class="nameTr">
                  <td height="80" align="left" colspan="6" width="15%" >
                  <div class="edit_txt">
                    <div class="edit_btn clearfix">
                         <div class="upload_file" style="position:relative">
                           [@webupload id="files" multiple="true"   /]
                            <!-- <a class="attachment file_btn">添加附件</a> -->
                        </div>
                    </div>
                    </div>
                  </td>
                </tr>
              </table>
              </form>
</div>
[#include "/business/pages/include/footer.html" /]
</body>
 
</html>