Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
3d011e89
Commit
3d011e89
authored
Sep 29, 2017
by
季圣华
Browse files
根据审核按钮来判断是否显示状态
parent
f6303962
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/webapp/js/pages/materials/in_out.js
View file @
3d011e89
...
@@ -445,6 +445,7 @@
...
@@ -445,6 +445,7 @@
//初始化表格数据
//初始化表格数据
function initTableData(){
function initTableData(){
var hideType = undefined;
var hideType = undefined;
var isHiddenStatus = true;
if(payTypeTitle === "隐藏"){
if(payTypeTitle === "隐藏"){
hideType = true; //隐藏当前列
hideType = true; //隐藏当前列
}
}
...
@@ -470,6 +471,7 @@
...
@@ -470,6 +471,7 @@
];
];
//如果允许的按钮列表中存在就显示,3-代表审核|反审核的权限
//如果允许的按钮列表中存在就显示,3-代表审核|反审核的权限
if(btnEnableList && btnEnableList.indexOf(3)>-1){
if(btnEnableList && btnEnableList.indexOf(3)>-1){
isHiddenStatus = false; //显示
tableToolBar.push({
tableToolBar.push({
id:'okDepotHead',
id:'okDepotHead',
text:'审核',
text:'审核',
...
@@ -487,6 +489,9 @@
...
@@ -487,6 +489,9 @@
}
}
});
});
}
}
else {
isHiddenStatus = true; //隐藏
}
var isShowLastMoneyColumn = false; //是否显示优惠后金额和价税合计,true为隐藏,false为显示
var isShowLastMoneyColumn = false; //是否显示优惠后金额和价税合计,true为隐藏,false为显示
if(listSubType == "调拨" || listSubType == "其它" || listSubType == "零售" || listSubType == "零售退货" || listSubType == "礼品充值" || listSubType == "礼品销售" || listSubType == "组装单" || listSubType == "拆卸单"){
if(listSubType == "调拨" || listSubType == "其它" || listSubType == "零售" || listSubType == "零售退货" || listSubType == "礼品充值" || listSubType == "礼品销售" || listSubType == "组装单" || listSubType == "拆卸单"){
isShowLastMoneyColumn = true; //隐藏
isShowLastMoneyColumn = true; //隐藏
...
@@ -559,7 +564,7 @@
...
@@ -559,7 +564,7 @@
},
},
{ title: '优惠后金额',field: 'DiscountLastMoney',hidden:isShowLastMoneyColumn,width:80},
{ title: '优惠后金额',field: 'DiscountLastMoney',hidden:isShowLastMoneyColumn,width:80},
{ title: payTypeTitle,field: 'ChangeAmount',width:50,hidden:hideType},
{ title: payTypeTitle,field: 'ChangeAmount',width:50,hidden:hideType},
{
title
:
'
状态
'
,
field
:
'
Status
'
,
width
:
70
,
align
:
"
center
"
,
formatter
:
function
(
value
){
{ title: '状态',field: 'Status',
hidden:isHiddenStatus,
width:70,align:"center",formatter:function(value){
return value? "<span style='color:green;'>已审核</span>":"<span style='color:red;'>未审核</span>";
return value? "<span style='color:green;'>已审核</span>":"<span style='color:red;'>未审核</span>";
}
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment