优化表结构
This commit is contained in:
@@ -88,14 +88,14 @@
|
||||
pageList: initPageNum,
|
||||
columns: [[
|
||||
{title: '名称', field: 'name', width: 100},
|
||||
{title: '编号', field: 'serialno', width: 150, align: "center"},
|
||||
{title: '期初金额', field: 'initialamount', width: 100, align: "center"},
|
||||
{title: '本月发生额', field: 'thismonthamount', width: 100, align: "center"},
|
||||
{title: '当前余额', field: 'currentamount', width: 100, align: "center"},
|
||||
{title: '编号', field: 'serialNo', width: 150, align: "center"},
|
||||
{title: '期初金额', field: 'initialAmount', width: 100, align: "center"},
|
||||
{title: '本月发生额', field: 'thisMonthAmount', width: 100, align: "center"},
|
||||
{title: '当前余额', field: 'currentAmount', width: 100, align: "center"},
|
||||
{
|
||||
title: '操作', field: 'op', width: 100, align: "center", formatter: function (value, rec) {
|
||||
var str = '';
|
||||
var rowInfo = rec.id + 'AaBb' + rec.name + 'AaBb' + rec.serialno + 'AaBb' + rec.initialamount + 'AaBb' + rec.currentamount;
|
||||
var rowInfo = rec.id + 'AaBb' + rec.name + 'AaBb' + rec.serialNo + 'AaBb' + rec.initialAmount + 'AaBb' + rec.currentAmount;
|
||||
str += '<img src="/js/easyui/themes/icons/list.png" style="cursor: pointer;" onclick="showAccountInOutList(\'' + rowInfo + '\');"/> <a onclick="showAccountInOutList(\'' + rowInfo + '\');" style="text-decoration:none;color:black;" href="javascript:void(0)">流水</a> ';
|
||||
return str;
|
||||
}
|
||||
|
||||
@@ -84,6 +84,8 @@
|
||||
type: "get",
|
||||
url: "/materialProperty/list",
|
||||
dataType: "json",
|
||||
//设置为同步
|
||||
async: false,
|
||||
data: ({
|
||||
search: JSON.stringify({
|
||||
name: ""
|
||||
@@ -96,7 +98,7 @@
|
||||
var thisRows = res.data.page.rows;
|
||||
for (var i = 0; i < thisRows.length; i++) {
|
||||
if (thisRows[i].enabled) {
|
||||
mPropertyList += thisRows[i].nativename + ",";
|
||||
mPropertyList += thisRows[i].nativeName + ",";
|
||||
}
|
||||
}
|
||||
if (mPropertyList) {
|
||||
|
||||
@@ -187,6 +187,8 @@
|
||||
type: "get",
|
||||
url: "/materialProperty/list",
|
||||
dataType: "json",
|
||||
//设置为同步
|
||||
async: false,
|
||||
data: ({
|
||||
search: JSON.stringify({
|
||||
name: ""
|
||||
@@ -199,7 +201,7 @@
|
||||
var thisRows = res.data.page.rows;
|
||||
for (var i = 0; i < thisRows.length; i++) {
|
||||
if (thisRows[i].enabled) {
|
||||
mPropertyList += thisRows[i].nativename + ",";
|
||||
mPropertyList += thisRows[i].nativeName + ",";
|
||||
}
|
||||
}
|
||||
if (mPropertyList) {
|
||||
|
||||
@@ -88,6 +88,8 @@
|
||||
type: "get",
|
||||
url: "/materialProperty/list",
|
||||
dataType: "json",
|
||||
//设置为同步
|
||||
async: false,
|
||||
data: ({
|
||||
search: JSON.stringify({
|
||||
name: ""
|
||||
@@ -100,7 +102,7 @@
|
||||
var thisRows = res.data.page.rows;
|
||||
for (var i = 0; i < thisRows.length; i++) {
|
||||
if (thisRows[i].enabled) {
|
||||
mPropertyList += thisRows[i].nativename + ",";
|
||||
mPropertyList += thisRows[i].nativeName + ",";
|
||||
}
|
||||
}
|
||||
if (mPropertyList) {
|
||||
|
||||
@@ -155,6 +155,8 @@
|
||||
type: "get",
|
||||
url: "/materialProperty/list",
|
||||
dataType: "json",
|
||||
//设置为同步
|
||||
async: false,
|
||||
data: ({
|
||||
search: JSON.stringify({
|
||||
name: ""
|
||||
@@ -167,7 +169,7 @@
|
||||
var thisRows = res.data.page.rows;
|
||||
for (var i = 0; i < thisRows.length; i++) {
|
||||
if (thisRows[i].enabled) {
|
||||
mPropertyList += thisRows[i].nativename + ",";
|
||||
mPropertyList += thisRows[i].nativeName + ",";
|
||||
}
|
||||
}
|
||||
if (mPropertyList) {
|
||||
|
||||
Reference in New Issue
Block a user