|
@@ -365,12 +365,6 @@ function initTable(classCode) {
|
|
|
visible: isMultiple==0?false:true,
|
|
|
formatter: function (value, row, index) {
|
|
|
return Math.floor(value * 100) / 100;
|
|
|
- },
|
|
|
- cellStyle:function (value, row, index) {
|
|
|
- if(row.visibleFlagMz == 0){
|
|
|
- return {css:{background:'red'}};
|
|
|
- }
|
|
|
- return {css:{}};
|
|
|
}
|
|
|
},
|
|
|
{
|
|
@@ -382,12 +376,6 @@ function initTable(classCode) {
|
|
|
visible: isMultiple==0?false:true,
|
|
|
formatter: function (value, row, index) {
|
|
|
return Math.floor(value * 100) / 100;
|
|
|
- },
|
|
|
- cellStyle:function (value, row, index) {
|
|
|
- if(row.visibleFlagMz == 0){
|
|
|
- return {css:{background:'red'}};
|
|
|
- }
|
|
|
- return {css:{}};
|
|
|
}
|
|
|
},
|
|
|
{
|
|
@@ -410,13 +398,7 @@ function initTable(classCode) {
|
|
|
visible: isMultiple==0?false:true,
|
|
|
formatter: function (value, row, index) {
|
|
|
return Math.floor(value * 100) / 100;
|
|
|
- },
|
|
|
- cellStyle:function (value, row, index) {
|
|
|
- if(row.visibleFlagYk == 0){
|
|
|
- return {css:{background:'red'}};
|
|
|
- }
|
|
|
- return {css:{}};
|
|
|
- },
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
field: 'specificationMin',
|
|
@@ -435,13 +417,7 @@ function initTable(classCode) {
|
|
|
visible: isMultiple==0?false:true,
|
|
|
formatter: function (value, row, index) {
|
|
|
return Math.floor(value * 100) / 100;
|
|
|
- },
|
|
|
- cellStyle:function (value, row, index) {
|
|
|
- if(row.visibleFlagMz == 0){
|
|
|
- return {css:{background:'red'}};
|
|
|
- }
|
|
|
- return {css:{}};
|
|
|
- },
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
field: 'stockAmountLargeZy',
|
|
@@ -452,13 +428,7 @@ function initTable(classCode) {
|
|
|
visible: isMultiple==0?false:true,
|
|
|
formatter: function (value, row, index) {
|
|
|
return Math.floor(value * 100) / 100;
|
|
|
- },
|
|
|
- cellStyle:function (value, row, index) {
|
|
|
- if(row.visibleFlagMz == 0){
|
|
|
- return {css:{background:'red'}};
|
|
|
- }
|
|
|
- return {css:{}};
|
|
|
- },
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
field: 'stockAmountLargeDz',
|
|
@@ -480,13 +450,7 @@ function initTable(classCode) {
|
|
|
visible: isMultiple==0?false:true,
|
|
|
formatter: function (value, row, index) {
|
|
|
return Math.floor(value * 100) / 100;
|
|
|
- },
|
|
|
- cellStyle:function (value, row, index) {
|
|
|
- if(row.visibleFlagYk == 0){
|
|
|
- return {css:{background:'red'}};
|
|
|
- }
|
|
|
- return {css:{}};
|
|
|
- },
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
field: 'specificationMax',
|
|
@@ -536,7 +500,14 @@ function initTable(classCode) {
|
|
|
}
|
|
|
}, {
|
|
|
field: 'stockAmountVirtual',
|
|
|
- title: '当前虚存',
|
|
|
+ title: '门诊虚存',
|
|
|
+ align: "center",
|
|
|
+ valign: 'middle',
|
|
|
+ width: 50,
|
|
|
+ visible: isMultiple==1?false:true
|
|
|
+ }, {
|
|
|
+ field: 'stockAmountVirtual2',
|
|
|
+ title: '住院虚存',
|
|
|
align: "center",
|
|
|
valign: 'middle',
|
|
|
width: 50,
|
|
@@ -559,8 +530,14 @@ function initTable(classCode) {
|
|
|
}
|
|
|
],
|
|
|
rowStyle: function (row, index) {
|
|
|
- if (isMultiple == 0 && row.visibleFlagMz == 1 && row.visibleFlagZy == 1) {
|
|
|
- return { css: { 'background-color': 'red' } };
|
|
|
+ if (isMultiple == 0) {
|
|
|
+ if(row.visibleFlagMz == 1 && row.visibleFlagZy == 1){
|
|
|
+ return { css: { 'background-color': 'red' } };
|
|
|
+ }else if(row.visibleFlagMz == 1){
|
|
|
+ return { css: { 'background-color': '#00aeef' } };
|
|
|
+ }else if(row.visibleFlagZy == 1){
|
|
|
+ return { css: { 'background-color': 'cadetblue' } };
|
|
|
+ }
|
|
|
}
|
|
|
return {css:{}}
|
|
|
},
|