zhuyiyi 9 月之前
父节点
当前提交
5c3285dc1d

+ 17 - 0
Web/EDelivery/DeliveredList.aspx

@@ -173,6 +173,23 @@
             </tr>
         </table>
     </div>
+    <div id="issue_win" class="mini-window" title="问题反馈" style="width: 550px; height: 200px; position: relative; display: none">
+        <table class="win_tb" border="0" cellpadding="0" cellspacing="1">
+            <tr>
+                <td class="td1">问题反馈</td>
+                <td class="td2" colspan="3">
+                    <textarea id="txtIssue" style="width: 96%; height: 60px;"></textarea></td>
+            </tr>
+            <tr>
+                <td colspan="4">
+                    <div class="win_btn" style="text-align: center;">
+                        <a class="mini-button" iconcls="icon-ok" onclick="saveIssueFn">保存</a>&nbsp;
+                        <a class="mini-button" iconcls="icon-cancel" onclick="canceIssueFn">取消</a>
+                    </div>
+                </td>
+            </tr>
+        </table>
+    </div>
 
     <div id="viewimg_win" class="mini-window" title="文件预览" style="width: 750px; height: 570px; position: relative; display: none">
         <img id="r_img" style="width: 700px; height: 500px;" onclick="largeImage(this)" src="../images/no_photo.png" />

+ 17 - 1
Web/EDelivery/PddDelivered.aspx

@@ -173,7 +173,23 @@
             </tr>
         </table>
     </div>
-
+    <div id="issue_win" class="mini-window" title="问题反馈" style="width: 550px; height: 200px; position: relative; display: none">
+        <table class="win_tb" border="0" cellpadding="0" cellspacing="1">
+            <tr>
+                <td class="td1">问题反馈</td>
+                <td class="td2" colspan="3">
+                    <textarea id="txtIssue" style="width: 96%; height: 60px;"></textarea></td>
+            </tr>
+            <tr>
+                <td colspan="4">
+                    <div class="win_btn" style="text-align: center;">
+                        <a class="mini-button" iconcls="icon-ok" onclick="saveIssueFn">保存</a>&nbsp;
+                        <a class="mini-button" iconcls="icon-cancel" onclick="canceIssueFn">取消</a>
+                    </div>
+                </td>
+            </tr>
+        </table>
+    </div>
     <div id="viewimg_win" class="mini-window" title="文件预览" style="width: 750px; height: 570px; position: relative; display: none">
         <img id="r_img" style="width: 700px; height: 500px;" onclick="largeImage(this)" src="../images/no_photo.png" />
     </div>

+ 17 - 1
Web/EDelivery/js/DeliveredList.js

@@ -259,13 +259,29 @@ function actionRenderer(e) {
     var id = record.ID;
     var html = getGridBtn("view", "预览文件", "viewCdrImg('" + id + "')");
     html += getGridBtn("edit", "修改物流", "changeExpress('" + record.ctid + "')");
+    html += getGridBtn("dis", "问题反馈", "setIssueContent('" + record.ctid + "')");
     if (!!record.attachments) {
         html += getGridBtn("view", "下载附件", "downAtta('" + record.attachments + "')");
     }
 
     return html;
 }
-
+function canceIssueFn() {
+    mini.get("issue_win").hide();
+}
+function setIssueContent(eid) {
+    edit_id = eid;
+    mini.get("issue_win").show();
+}
+function saveIssueFn() {
+    var parms = new Object();
+    parms.ctid = edit_id;
+    parms.content = $("#txtIssue").val();
+    postAjax("saveIssueContent", parms, function (data) {
+        mini.get("issue_win").hide();
+        resultShow(data, "grid.reload();");
+    });
+}
 function downAtta(url) {
     if (!!url) {
         const link = document.createElement('a');

+ 1 - 1
Web/EDelivery/js/PddDelivered.js

@@ -277,7 +277,7 @@ function actionRenderer(e) {
     var id = record.ID;
     var html = getGridBtn("view", "预览文件", "viewCdrImg('" + id + "')");
     html += getGridBtn("edit", "修改物流", "changeExpress('" + record.ctid + "')");
-    html += getGridBtn("dis", "问题反馈", "setIssueContent('" + ctid + "')");
+    html += getGridBtn("dis", "问题反馈", "setIssueContent('" + record.ctid + "')");
     if (!!record.attachments) {
         html += getGridBtn("view", "下载附件", "downAtta('" + record.attachments + "')");
     }

+ 17 - 1
Web/EDelivery/js/PddDelivering.js

@@ -144,6 +144,7 @@ function actionRenderer(e) {
     html += getGridBtn("edit", "查单备注", "checkMemoFn('" + ctid+ "')");
     html += getGridBtn("dis", "发货", "deliveryFn('" + ctid + "','" + record.seller_nick + "')");
     html += getGridBtn("dis", "标记已发", "setBuchaDelivery('" + ctid + "')");
+    html += getGridBtn("dis", "问题反馈", "setIssueContent('" + ctid + "')");
     if (userPostCode != "Supplier") {
         html += getGridBtn("edit", "成本登记", "showPriceWin('" + ctid + "','" + record.payment_cyt + "','" + record.SupplierName + "')");
     }
@@ -152,7 +153,22 @@ function actionRenderer(e) {
     }
     return html;
 }
-
+function canceIssueFn() {
+    mini.get("issue_win").hide();
+}
+function setIssueContent(eid) {
+    edit_id = eid;
+    mini.get("issue_win").show();
+}
+function saveIssueFn() {
+    var parms = new Object();
+    parms.ctid = edit_id;
+    parms.content = $("#txtIssue").val();
+    postAjax("saveIssueContent", parms, function (data) {
+        mini.get("issue_win").hide();
+        resultShow(data, "grid.reload();");
+    });
+}
 function downAtta(url) {
     if (!!url) {
         const link = document.createElement('a');