| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- <style>
- body{ text-align:center}
- .div{ margin:0 auto; width:600px; height:300px; border:5px solid #F00}
- </style>
- <script>
- function doPassCheck()
- {//申请通过
- var applyId = ${apply.getApplyId()};
- Z.confirm("确认审核通过吗?", function(){
- var qcTypeId = Z.FM.getChecked("qcTypeId");
- var ajax = new Z.Ajax();
- ajax.setClassName("QcOrderPresenter");
- ajax.setMethodName("doApplyPass");
- ajax.addParam("applyId", applyId);
- ajax.addParam("qcTypeId", qcTypeId);
- ajax.setFailureAlert();
- ajax.setSuccess(function(){
- parent.location.reload();
- parent.Z.Dialog.close();
- });
- ajax.execute();
- })
- }
- function showBackDialog()
- {//审核退回窗口
- var applyId = ${apply.getApplyId()};
- Z.prompt("审核退回(请填写审核退回原因)", "", function(value)
- {
- if (Z.V.isEmpty(value))
- {
- Z.alert("请输入退回原因");
- return;
- }
-
- var ajax = new Z.Ajax();
- ajax.setClassName("QcOrderPresenter");
- ajax.setMethodName("doApplyBack");
- ajax.addParam("applyId", applyId);
- ajax.addParam("desc", value);
- ajax.setFailureAlert();
- ajax.setSuccess(function(){
- parent.location.reload();
- parent.Z.Dialog.close();
- });
- ajax.execute();
-
- }, {type: 'textarea'});
- }
- function cancelQcAwarded(){
- //取消加分申请
- var applyId = ${apply.getApplyId()};
- var applyFlag = ${apply.getApplyFlag()};
- Z.confirm("确认取消申请加分吗?", function(){
- if(applyFlag != 0){
- Z.alert("该状态不能取消申请!");
- return;
- }
- var ajax = new Z.Ajax();
- ajax.setClassName("QcOrderPresenter");
- ajax.setMethodName("docancelAwarded");
- ajax.addParam("applyId", applyId);
- ajax.setFailureAlert();
- ajax.setSuccess(function(){
- Z.success('取消成功!', function(){
- parent.location.reload();
- parent.Z.Dialog.close();});
- });
- ajax.execute();
-
- })
- }
- //图片放大
- function showLargeImg(thisImg)
- {
- var dialog = new parent.Z.Dialog();
- dialog.shadow = true;
- dialog.title = "图片";
- dialog.fixed = true;
-
- dialog.url = "showLargeImg.htm?imgpath="+thisImg.src;
- dialog.width = parent.Z.D.clientWidth()-200;
- dialog.height = parent.Z.D.clientHeight()-200;
- dialog.execute();
- dialog.$background.remove();
- }
- </script>
- ${zhiqim_manager_content()}
- <div style="position: relative;bottom: 10px;">
- <label style="float: left;font-size: 18px;padding: 25px 0px 0px 10px;">加分类型 : </label>
- <div style="width: 700px;height: 41px;position: relative;top: 25px;">
- <ul>
- <#for item : awardedTypeList>
- <li style="display: inline;float: left;padding-left:15px;"><label><input name="qcTypeId" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${item.getQcTypeId()}" <#if qcTypeIdChecked == item.getQcTypeId()>checked</#if>> ${item.getQcAwardedName()}</label></li>
- </#for>
- </ul>
- </div>
- </div>
- <div class="z-mg5">
- <textarea id="applyReason" name="applyReason" class="z-textarea z-w100p z-h100" style="vertical-align: middle;" maxlength="200" >${apply.getApplyReason()}</textarea>
- </div>
- <div class="z-pd5">
- <img alt="凭证" src="/${apply.getApplyId()}-0-qcImg" onclick="showLargeImg(this)">
- </div>
- <br><br>
- <div style="position:fixed;bottom:0px;height:50px;width:100%;background-color:#EFEFEF;border-top: solid 1px #ededed">
- <div style="margin-top:10px">
- <#if !readonly>
- <button class="z-button z-blue z-w100" onclick="doPassCheck()">审核通过</button>
- <button class="z-button z-w100 ${zmr_color_class}" onclick="showBackDialog()">审核退回</button>
- <#else>
- <button class="z-button z-blue z-w100" onclick="cancelQcAwarded()">取消加分申请</button>
- </#if>
- </div>
- </div>
- ${zhiqim_manager_content_end()}
|