优化供应商和客户对账
This commit is contained in:
@@ -561,17 +561,15 @@
|
|||||||
function editSupplier(index) {
|
function editSupplier(index) {
|
||||||
var res = $("#tableData").datagrid("getRows")[index];
|
var res = $("#tableData").datagrid("getRows")[index];
|
||||||
var sId = res.id;
|
var sId = res.id;
|
||||||
var beginNeedGet = res.beginNeedGet;
|
|
||||||
var beginNeedPay = res.beginNeedPay;
|
|
||||||
var row = {
|
var row = {
|
||||||
supplier : res.supplier,
|
supplier : res.supplier,
|
||||||
contacts : res.contacts,
|
contacts : res.contacts,
|
||||||
phonenum : res.phoneNum,
|
phonenum : res.phoneNum,
|
||||||
email : res.email,
|
email : res.email,
|
||||||
BeginNeedGet : beginNeedGet == "0"? "":beginNeedGet,
|
BeginNeedGet : res.beginNeedGet == "0"? "":res.beginNeedGet,
|
||||||
BeginNeedPay : beginNeedPay == "0"? "":beginNeedPay,
|
BeginNeedPay : res.beginNeedPay == "0"? "":res.beginNeedPay,
|
||||||
AllNeedGet: "",
|
AllNeedGet: res.allNeedGet == "0"? "":res.allNeedGet,
|
||||||
AllNeedPay: "",
|
AllNeedPay: res.allNeedPay == "0"? "":res.allNeedPay,
|
||||||
description : res.description,
|
description : res.description,
|
||||||
type : res.type,
|
type : res.type,
|
||||||
fax : res.fax,
|
fax : res.fax,
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
body{background:white;margin:0px;padding:0px;font-size:13px;text-align:left;}
|
body{background:white;margin:0px;padding:0px;font-size:13px;text-align:left;}
|
||||||
.div-title{font-size: 16pt;}
|
.div-title{font-size: 16pt;}
|
||||||
.div-time{font-size: 11pt;}
|
.div-time{font-size: 11pt;}
|
||||||
|
.div-total{font-size: 11pt;}
|
||||||
.pb{font-size:13px;border-collapse:collapse;}
|
.pb{font-size:13px;border-collapse:collapse;}
|
||||||
.pb th{font-weight:bold;text-align:center;border:1px solid #333333;padding:2px;}
|
.pb th{font-weight:bold;text-align:center;border:1px solid #333333;padding:2px;}
|
||||||
.pb td{border:1px solid #333333;padding:2px;}
|
.pb td{border:1px solid #333333;padding:2px;}
|
||||||
|
|||||||
@@ -12,13 +12,18 @@ function CreateFormPage(strPrintName, printDatagrid) {
|
|||||||
companyName = config.companyName;
|
companyName = config.companyName;
|
||||||
}
|
}
|
||||||
var tableString = '<div class="div-title">' + companyName + "-" + listTitle + '\n</div>';
|
var tableString = '<div class="div-title">' + companyName + "-" + listTitle + '\n</div>';
|
||||||
if(beginDate && endDate) {
|
if(beginDate && endDate) {
|
||||||
tableString+='\n<div class="div-time">日期:' + beginDate + ' 至 ' + endDate + ' \n</div>';
|
tableString+='\n<div class="div-time">日期:' + beginDate + ' 至 ' + endDate + '</div>';
|
||||||
}
|
}
|
||||||
if(getMonth) {
|
if(getMonth) {
|
||||||
tableString += '\n<div class="div-time">月份:' + getMonth + ' \n</div>';
|
tableString += '\n<div class="div-time">月份:' + getMonth + '</div>';
|
||||||
}
|
}
|
||||||
tableString+='\n<table cellspacing="0" class="pb">';
|
if(listTitle == "供应商对账"){
|
||||||
|
tableString += '\n<span class="div-total">期初应付:' + $(".first-total").text() + ' 期末应付:' + $(".last-total").text() + '</span>';
|
||||||
|
} else if(listTitle == "客户对账"){
|
||||||
|
tableString += '\n<span class="div-total">期初应收:' + $(".first-total").text() + ' 期末应收:' + $(".last-total").text() + '</span>';
|
||||||
|
}
|
||||||
|
tableString+='\n<table cellspacing="0" class="pb">';
|
||||||
var frozenColumns = printDatagrid.datagrid("options").frozenColumns; // 得到frozenColumns对象
|
var frozenColumns = printDatagrid.datagrid("options").frozenColumns; // 得到frozenColumns对象
|
||||||
var columns = printDatagrid.datagrid("options").columns; // 得到columns对象
|
var columns = printDatagrid.datagrid("options").columns; // 得到columns对象
|
||||||
var nameList = '';
|
var nameList = '';
|
||||||
|
|||||||
@@ -100,12 +100,12 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>累计应收</td>
|
<td>期末应收</td>
|
||||||
<td style="padding:5px">
|
<td style="padding:5px">
|
||||||
<input name="AllNeedGet" id="AllNeedGet" type="text" class="easyui-textbox" style="width: 160px;"
|
<input name="AllNeedGet" id="AllNeedGet" type="text" class="easyui-textbox" style="width: 160px;"
|
||||||
readonly="readonly"/>
|
readonly="readonly"/>
|
||||||
</td>
|
</td>
|
||||||
<td>累计应付</td>
|
<td>期末应付</td>
|
||||||
<td style="padding:5px">
|
<td style="padding:5px">
|
||||||
<input name="AllNeedPay" id="AllNeedPay" type="text" class="easyui-textbox" style="width: 160px;"
|
<input name="AllNeedPay" id="AllNeedPay" type="text" class="easyui-textbox" style="width: 160px;"
|
||||||
readonly="readonly"/>
|
readonly="readonly"/>
|
||||||
|
|||||||
@@ -100,12 +100,12 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>累计应收</td>
|
<td>期末应收</td>
|
||||||
<td style="padding:5px">
|
<td style="padding:5px">
|
||||||
<input name="AllNeedGet" id="AllNeedGet" type="text" class="easyui-textbox" style="width: 160px;"
|
<input name="AllNeedGet" id="AllNeedGet" type="text" class="easyui-textbox" style="width: 160px;"
|
||||||
readonly="readonly"/>
|
readonly="readonly"/>
|
||||||
</td>
|
</td>
|
||||||
<td>累计应付</td>
|
<td>期末应付</td>
|
||||||
<td style="padding:5px">
|
<td style="padding:5px">
|
||||||
<input name="AllNeedPay" id="AllNeedPay" type="text" class="easyui-textbox" style="width: 160px;"
|
<input name="AllNeedPay" id="AllNeedPay" type="text" class="easyui-textbox" style="width: 160px;"
|
||||||
readonly="readonly"/>
|
readonly="readonly"/>
|
||||||
|
|||||||
@@ -100,12 +100,12 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>累计应收</td>
|
<td>期末应收</td>
|
||||||
<td style="padding:5px">
|
<td style="padding:5px">
|
||||||
<input name="AllNeedGet" id="AllNeedGet" class="easyui-textbox" style="width: 160px;"
|
<input name="AllNeedGet" id="AllNeedGet" class="easyui-textbox" style="width: 160px;"
|
||||||
readonly="readonly"/>
|
readonly="readonly"/>
|
||||||
</td>
|
</td>
|
||||||
<td>累计应付</td>
|
<td>期末应付</td>
|
||||||
<td style="padding:5px">
|
<td style="padding:5px">
|
||||||
<input name="AllNeedPay" id="AllNeedPay" class="easyui-textbox" style="width: 160px;"
|
<input name="AllNeedPay" id="AllNeedPay" class="easyui-textbox" style="width: 160px;"
|
||||||
readonly="readonly"/>
|
readonly="readonly"/>
|
||||||
|
|||||||
@@ -43,8 +43,8 @@
|
|||||||
<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-print" id="printBtn">打印</a>
|
<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-print" id="printBtn">打印</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
期初应收:<span class="first-total">0</span>
|
期初应付:<span class="first-total">0</span>
|
||||||
期末应收:<span class="last-total">0</span><span id="pleaseSelect">(请选择供应商)</span>
|
期末应付:<span class="last-total">0</span><span id="pleaseSelect">(请选择供应商)</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<table id="tableData" style="top:300px;border-bottom-color:#FFFFFF"></table>
|
<table id="tableData" style="top:300px;border-bottom-color:#FFFFFF"></table>
|
||||||
|
|||||||
Reference in New Issue
Block a user