|
|
@@ -83,7 +83,7 @@ function buyerMobileRenderer(e) {
|
|
|
var rowIndex = e.rowIndex;
|
|
|
var html = "<div style=\"display:flex;flex-direction:column;align-items:center;\">";
|
|
|
html += "<div>" + record.receiver_mobile + "</div>";
|
|
|
- html += "<div><a class=\"a_def\" href=\"javascript:voiceNotifyFn('" + tid + "')\"><span class=\"icon-i icon-phone\"></span> <span>" + record.CallTimes + "</span></a> <a class=\"a_def\" href=\"javascript:smsNotifyFn('" + tid +"')\"><span class=\"icon-i icon-sms\"></span> <span>" + record.NoteTimes + "</span></a></div>";
|
|
|
+ html += "<div><a class=\"a_def\" href=\"javascript:voiceNotifyFn('" + tid + "')\"><span class=\"icon-i icon-phone\"></span> <span>" + record.CallTimes + "</span></a> <a class=\"a_def\" href=\"javascript:smsNotifyFn('" + tid + "')\"><span class=\"icon-i icon-sms\"></span> <span>" + record.NoteTimes + "</span></a></div>";
|
|
|
html += "</div>";
|
|
|
return html;
|
|
|
}
|
|
|
@@ -169,6 +169,7 @@ function actionRenderer(e) {
|
|
|
html += getGridBtn("copies", "标记", "designMemoFn('" + id + "')");
|
|
|
html += getGridBtn("notify1", "加急", "urgencyFn('" + id + "')");
|
|
|
html += getGridBtn("memo", "文件", "fileUrlFn('" + record.tid + "')");
|
|
|
+ html += getGridBtn("memo", "客户文件", "oriFileUrlFn('" + record.tid + "','" + record.ctid + "')");
|
|
|
//if (record.IsNeedDesignPrice == 1) {
|
|
|
// html += getGridBtn("izc", "设计费", "priceFn('" + id + "')");
|
|
|
//}
|
|
|
@@ -185,6 +186,23 @@ function fileUrlFn(tid) {
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
+function oriFileUrlFn(tid, ctid) {
|
|
|
+ postAjax("getCellFile", { tid: tid, ctid: ctid, type: "ORI_FILE" }, function (data) {
|
|
|
+ $("#oriFile_url").empty();
|
|
|
+ let html = ``;
|
|
|
+ for (var i = 0; i < data.length; i++) {
|
|
|
+ html += `<div style="display:flex;gap:10px">
|
|
|
+ <div>${data[i].url}</div>
|
|
|
+ <div style="cursor: pointer;" onclick="downCellFile('${data[i].url}')")>下载</div>
|
|
|
+ </div>`
|
|
|
+ }
|
|
|
+ $("#oriFile_url").append(html == '' ? "暂无文件" : html);
|
|
|
+ mini.get("uploaderOriFile_win").show();
|
|
|
+ });
|
|
|
+}
|
|
|
+function downCellFile(url) {
|
|
|
+ window.open(url);
|
|
|
+}
|
|
|
//售后标记按钮
|
|
|
function aftersaleFn() {
|
|
|
var rec = grid.getSelected();
|
|
|
@@ -236,7 +254,7 @@ function backAftersaleFn() {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-function startDesignFn(eid,isNeed, remark) {
|
|
|
+function startDesignFn(eid, isNeed, remark) {
|
|
|
edit_id = eid;
|
|
|
if (userPostCode != "Place" && userPostCode != "wxDesigner" && userPostCode != "Director" && isNeed == 1) {
|
|
|
mini.get("modify_win").show();
|
|
|
@@ -259,7 +277,7 @@ function startDesignFn(eid,isNeed, remark) {
|
|
|
} else {
|
|
|
$("#txtDesignSize").val(goodsSize);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/*mini.prompt("请输入设计费:", "设计费"
|
|
|
function (action, value) {
|
|
|
if (action == "ok") {
|
|
|
@@ -281,7 +299,7 @@ function startDesignFn(eid,isNeed, remark) {
|
|
|
resultShow(data, "grid.reload();");
|
|
|
});
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
|
|
|
function saveModifyFn() {
|
|
|
@@ -315,7 +333,7 @@ function saveModifyFn() {
|
|
|
mini.alert("请填写设计费");
|
|
|
return;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
postAjax("ins_erp_designprice", parms, function (data) {
|
|
|
mini.get("modify_win").hide();
|
|
|
resultShow(data, "grid.reload();");
|
|
|
@@ -346,7 +364,7 @@ function designMemoFn(eid) {
|
|
|
}
|
|
|
function priceFn(eid) {
|
|
|
edit_id = eid;
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
//点击改稿或者定稿重置状态
|
|
|
function clickResetOptFn() {
|
|
|
@@ -365,7 +383,7 @@ function memoFn(eid) {
|
|
|
if (mm != "") mm = mm.replace(/<br>/g, "\n");
|
|
|
$("#txtMemo").val(mm);
|
|
|
mini.get("memo_win").show();
|
|
|
-
|
|
|
+
|
|
|
mini.get("aMemoMsgGai").setChecked(false);
|
|
|
mini.get("aMemoMsgDing").setChecked(false);
|
|
|
mini.get("aMemoMsgCha").setChecked(false);
|
|
|
@@ -451,7 +469,7 @@ function returnOrder_CusFn() {
|
|
|
//转单
|
|
|
function transFn() {
|
|
|
var rows = grid.getSelecteds();
|
|
|
- if (rows != undefined && rows != "" && rows.length>0) {
|
|
|
+ if (rows != undefined && rows != "" && rows.length > 0) {
|
|
|
mini.get("trans_win").show();
|
|
|
$("#trans_win").find("input").val("");
|
|
|
}
|
|
|
@@ -510,7 +528,7 @@ function searchFn() {
|
|
|
//console.log("565656565", data);
|
|
|
grid.load({
|
|
|
ctid: s.tid, shopname: s.shop, buyer_nick: s.ww, orderState: s.state, apdate1: s.assigndate1, apdate2: s.assigndate2,
|
|
|
- date1: s.date1, date2: s.date2, address: s.address, seller_memo: s.memo, olddown:s.olddown
|
|
|
+ date1: s.date1, date2: s.date2, address: s.address, seller_memo: s.memo, olddown: s.olddown
|
|
|
});
|
|
|
}
|
|
|
function onSearchCheckedChanged(e) {
|
|
|
@@ -639,8 +657,8 @@ $(function (e) {
|
|
|
}
|
|
|
|
|
|
//if (openPageState != null) {
|
|
|
- //grid.load({
|
|
|
- //orderState: openPageState
|
|
|
- //});
|
|
|
+ //grid.load({
|
|
|
+ //orderState: openPageState
|
|
|
+ //});
|
|
|
//}
|
|
|
});
|