|
@@ -242,6 +242,23 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
+ <div class="row cl" id="paymentVoucherRow" style="display: none">
|
|
|
+ <label class="form-label col-1 col-sm-1">支付流水号:</label>
|
|
|
+ <div class="formControls col-2 col-sm-2">
|
|
|
+ <input style="height: 31px" type="text" placeholder="填写流水号" id="salesPaymentNo" name="salesPaymentNo" class="input-text trim_input" value="${order.salesPaymentNo!''}">
|
|
|
+ <input type="hidden" placeholder="支付凭证截图" id="salesPaymentVoucher" name="salesPaymentVoucher" class="input-text trim_input" value="${order.salesPaymentVoucher!''}">
|
|
|
+ </div>
|
|
|
+ <label class="form-label col-2 col-sm-2">支付凭证截图:</label>
|
|
|
+ <div class="formControls col-2 col-sm-2">
|
|
|
+ <button onClick="uploadPaymentVoucher();" type="button" class="btn" style="border: 1px solid #50a2ea;background-color: #fff;color: #50a2ea;-webkit-transform:translateY(-5%);height: 30px;">上传图片</button>
|
|
|
+ <span id="uploadState">
|
|
|
+ <#if order.salesPaymentVoucher??>
|
|
|
+ <a href="${path}${order.salesPaymentVoucher}" style="text-decoration: underline; color: blue" target="_blank">已上传</a>
|
|
|
+ </#if>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
<div class="row cl">
|
|
|
<label class="form-label col-3">
|
|
|
<div class="tit-2">商品信息</div>
|
|
@@ -382,7 +399,11 @@
|
|
|
|
|
|
<#--时间控件-->
|
|
|
<script type="text/javascript" src="${path}/common/lib/My97DatePicker/4.8/WdatePicker.js"></script>
|
|
|
+<script type="text/javascript" src="${path}/common/lib/ueditor/1.4.3/ueditor.config.js"></script>
|
|
|
+<script type="text/javascript" src="${path}/common/lib/ueditor/1.4.3/ueditor.all.min.js"> </script>
|
|
|
+<script type="text/javascript" src="${path}/common/lib/ueditor/1.4.3/lang/zh-cn/zh-cn.js"></script>
|
|
|
<script type="text/javascript" charset="utf-8" src="${path}/common/js/salesOrder/salesOrder.js"></script>
|
|
|
+<script type="text/plain" id="upload_ue"></script>
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
var url_path = "${path}";
|
|
@@ -405,6 +426,32 @@
|
|
|
$(".give-sales-order").show();
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ // 订单类型为正常订单、非赠品订单、店铺结算类型为:现结订单 -> 显示流水号和支付凭证
|
|
|
+ renderPaymentVoucher(${order.salesStoreId!""});
|
|
|
+
|
|
|
+ //初始化图片上传
|
|
|
+ _editor = UE.getEditor('upload_ue',{
|
|
|
+ initialFrameWidth : 375,
|
|
|
+ initialFrameHeight: 600
|
|
|
+ });
|
|
|
+ _editor.ready(function () {
|
|
|
+ _editor.setDisabled("attachment");//设置编辑器不可用
|
|
|
+ _editor.hide();//隐藏编辑器,因为不会用到这个编辑器实例,所以要隐藏
|
|
|
+ //侦听图片上传
|
|
|
+ _editor.addListener('beforeInsertImage', function (t, arg) {
|
|
|
+ // console.log(arg[0].src);
|
|
|
+ // $("#picture").attr("value", arg[0].src);//将地址赋值给相应的input,只去第一张图片的路径
|
|
|
+ // $("#preview").attr("src", arg[0].src); //图片预览
|
|
|
+ });
|
|
|
+ //侦听文件上传,取上传文件列表中第一个上传的文件的路径
|
|
|
+ _editor.addListener('afterUpfile', function (t, arg) {
|
|
|
+ console.log(arg[0].url);
|
|
|
+ $('#salesPaymentVoucher').val(arg[0].url);
|
|
|
+ $('#uploadState').empty();
|
|
|
+ $('#uploadState').append('<a href="${path}'+ arg[0].url +'" style="text-decoration: underline; color: blue" target="_blank">已上传</a>');
|
|
|
+ });
|
|
|
+ });
|
|
|
});
|
|
|
|
|
|
/** 选择主订单以后回调 */
|
|
@@ -488,6 +535,11 @@
|
|
|
search_contains:false,
|
|
|
enable_split_word_search: true //分词搜索,选项词可通过空格或'[]'分隔。search_contains为false时才能看出效果
|
|
|
});
|
|
|
+
|
|
|
+ function uploadPaymentVoucher() {
|
|
|
+ var myFiles = _editor.getDialog("attachment");
|
|
|
+ myFiles.open();
|
|
|
+ }
|
|
|
</script>
|
|
|
</body>
|
|
|
</html>
|