master
fxc 2 weeks ago
parent c96c82f35c
commit 37352d58ca

@ -1,4 +1,4 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DT_SecondHand2.aspx.cs" Inherits="TradeManageNew.DingDan.DT_SecondHand2" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DT_OrderReturn.aspx.cs" Inherits="TradeManageNew.DingDan.DT_OrderReturn" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
@ -100,7 +100,10 @@
top: 0;
max-width: 100vw;
max-height: 100vh;
/* overflow: hidden; */
page-break-after: avoid;
/* display:flex;
justify-content:center; */
}
#printArea *{
position: absolute;
@ -112,6 +115,8 @@
<script src="https://cdn.jsdelivr.net/npm/jsbarcode@3.11.5/dist/JsBarcode.all.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.7.1/jszip.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/file-saver@2.0.5/dist/FileSaver.min.js"></script>
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/jQuery.print/1.6.2/jQuery.print.min.js" integrity="sha512-t3XNbzH2GEXeT9juLjifw/5ejswnjWWMMDxsdCg4+MmvrM+MwqGhxlWeFJ53xN/SBHPDnW0gXYvBx/afZZfGMQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script> -->
<script src="../Scripts/MicrosoftAjax.js" type="text/javascript"></script>
<script src="../Scripts/jquery.min.js" type="text/javascript"></script>
<script src="../Scripts/jquery.easyui.min.js" type="text/javascript"></script>
<script src="../Scripts/DataGrid.js?a=3445" type="text/javascript"></script>
@ -193,6 +198,26 @@
'onComplete': function () {}
});
});
$("#" + datagrid1.TableID + " [CommandName='outboundImg']").live("click", function () {
var RowIndex = $(this).parentsUntil("tr").parent().attr("index");
var model = datagrid1.Get_Model(RowIndex);
$("#img_1").attr("src", model.imgList[0]);
$("#div_img").empty();
model.imgList.forEach(pic => {
$("#div_img").append("<img src='../" + pic + "' width='100px' height='80px' style='margin-right:5px'/>");
})
$.fancybox({
'width': '40%',
'height': '40%',
'autoScale': false,
'transitionIn': 'elastic',
'transitionOut': 'elastic',
'href': '#test3',
'onComplete': function () { }
});
});
});
// 初始化DataGrid
@ -260,6 +285,10 @@
return "等待取货";
case 4:
return "售卖完成";
case 5:
return "使用配件";
case 6:
return "现场出售";
default:
return "-";
}
@ -268,6 +297,7 @@
var col = new nblf.ui.DataGridColumn();
col.HeaderText = "PublishMessage";
col.Width = 200;
col.CellTemplate = "<span>{Bind PublishMessage}</span>";
col.SortExpression = "c.PublishMessage";
Array.add(datagrid1.Columns, col);
@ -298,6 +328,26 @@
}
Array.add(datagrid1.Columns, col);
var col = new nblf.ui.DataGridColumn();
col.HeaderText = "Outbound TrackCode";
col.CellTemplate = "<span>{Bind outboundTrackCode}</span>";
col.SortExpression = "c.outboundTrackCode";
Array.add(datagrid1.Columns, col);
col = new nblf.ui.DataGridColumn();
col.HeaderText = "Outbound Photo";
col.CellTemplate = `{Bind orginData}`;
col.CellFormatter = function (data) {
var imgList = data.imgList
if (imgList.length) {
return `<a CommandName='outboundImg' iul='${imgList[0]}'><img src='${imgList[0]}' alt='' width='50px' height='50px'/></a>`
} else {
return ''
}
}
Array.add(datagrid1.Columns, col);
//操作
col = new nblf.ui.DataGridColumn();
col.HeaderText = "操作";
@ -368,15 +418,16 @@
$.ajax({
url: "../DD_OrderServiceNew.asmx/OrderUsedSalePlatformPage",
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
success: function (data) {
success: function (res) {
WindowLoadModel.Hide();
data.d.DataSource = data.d.DataSource ? data.d.DataSource : []
data.d.DataSource.forEach(it=>{
it.orginData = JSON.parse(JSON.stringify(it))
data = res.d.DataSource ? res.d.DataSource : []
data.forEach(it=>{
it.firstImg = it.ImageUrls && it.ImageUrls.length ? it.ImageUrls[0] : ""
it.imgList = it.imgList ? it.imgList.split(',') : []
it.orginData = JSON.parse(JSON.stringify(it))
})
datagrid1.Set_RowCount(data.d.RowCount);
datagrid1.DataBind(data.d.DataSource);
datagrid1.Set_RowCount(res.d.RowCount);
datagrid1.DataBind(data);
$("#a_select").html("");
$("a[iul]").each(function () {
var iul = $(this).attr("iul");
@ -841,6 +892,8 @@
<option value="2">已上架</option>
<option value="3">等待取货</option>
<option value="4">售卖完成</option>
<option value="5">使用配件</option>
<option value="6">现场出售</option>
</select>
</td>
<td>

@ -262,7 +262,14 @@
});
$("#" + datagrid1.TableID + " a[CommandName='cmdTemu']").live("click", function () {
var RowIndex = $(this).parentsUntil("tr").parent().attr("index");
var model = datagrid1.Get_Model(RowIndex);
window.open("TemuOrderGoodsFee.aspx?SKU=" + model.SKU1);
});
$("#a_jj").bind("click", function () {
@ -2872,12 +2879,19 @@ function selectE(p,c) {
col.CellTemplate = "<a CommandName='cmdView'><img src='{Bind FirstImgUrl}' alt='' width='30px' height='30px'/></a>";
Array.add(datagrid1.Columns, col);
col = new nblf.ui.DataGridColumn();
col.HeaderText = "编号";
col.CellTemplate = "<a CommandName='cmdView'>{Bind TypeCode}</a>";
Array.add(datagrid1.Columns, col);
col = new nblf.ui.DataGridColumn();
col.HeaderText = "Temu利润";
col.CellTemplate = "<a CommandName='cmdTemu' style='color:blue'>Temu利润</a>";
Array.add(datagrid1.Columns, col);
col = new nblf.ui.DataGridColumn();
col.HeaderText = "描述";
// col.Width = "100px";

@ -294,7 +294,7 @@
var YYUserList = [];
function GetYYUser() {
var param = new Object();
param.isShowAllGroup = 0;
param.isShowAllGroup = 1;
$.ajax({
url: "../CangKuServerNew.asmx/GetList_YYUser",
data: Sys.Serialization.JavaScriptSerializer.serialize(param),

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save