|
@ -435,6 +435,7 @@ |
|
|
var useStatusDatas = [[${@dict.getType('useStatus')}]]; |
|
|
var useStatusDatas = [[${@dict.getType('useStatus')}]]; |
|
|
var userName = [[${@permission.getPrincipalProperty('userName')}]]; |
|
|
var userName = [[${@permission.getPrincipalProperty('userName')}]]; |
|
|
var loginName = [[${@permission.getPrincipalProperty('loginName')}]]; |
|
|
var loginName = [[${@permission.getPrincipalProperty('loginName')}]]; |
|
|
|
|
|
var customerSignDatas = [[${@dict.getType('sys_customer_sign')}]]; |
|
|
var prefix = ctx + "system/customer"; |
|
|
var prefix = ctx + "system/customer"; |
|
|
// 联系人 |
|
|
// 联系人 |
|
|
var prefix1 = ctx + "system/contacts" |
|
|
var prefix1 = ctx + "system/contacts" |
|
@ -539,7 +540,9 @@ |
|
|
{title: '第一收货人电话',field: 'deliveryCustomerPhone',visible: false}, |
|
|
{title: '第一收货人电话',field: 'deliveryCustomerPhone',visible: false}, |
|
|
{title: '第一收货人邮编',field: 'deliveryCustomerPostal',visible:false}, |
|
|
{title: '第一收货人邮编',field: 'deliveryCustomerPostal',visible:false}, |
|
|
{title: '第一收货人传真',field: 'deliveryCustomerFax',visible: false}, |
|
|
{title: '第一收货人传真',field: 'deliveryCustomerFax',visible: false}, |
|
|
{title: '客户标识',field:'customerSign'}, |
|
|
{title: '客户标识',field:'customerSign', |
|
|
|
|
|
formatter: function (value, row, index) {return $.table.selectDictLabel(customerSignDatas, value);} |
|
|
|
|
|
}, |
|
|
{title: '录入时间',field: 'createTime', |
|
|
{title: '录入时间',field: 'createTime', |
|
|
sortable: true, |
|
|
sortable: true, |
|
|
formatter: function (value, row, index) { |
|
|
formatter: function (value, row, index) { |
|
@ -584,7 +587,15 @@ |
|
|
return actions.join(''); |
|
|
return actions.join(''); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
] |
|
|
], |
|
|
|
|
|
rowStyle: function (row, index) { |
|
|
|
|
|
if (row.auditStatus=="0") { |
|
|
|
|
|
// 如果审核状态为待审核,则设置为红色 |
|
|
|
|
|
return {css:{"color":"red"}}; |
|
|
|
|
|
} |
|
|
|
|
|
// 否则使用默认样式 |
|
|
|
|
|
return {}; |
|
|
|
|
|
} |
|
|
}; |
|
|
}; |
|
|
$.table.init(options); |
|
|
$.table.init(options); |
|
|
$("#customerContact").select2({ |
|
|
$("#customerContact").select2({ |
|
@ -629,7 +640,7 @@ |
|
|
if (res.rows.length > 0) { |
|
|
if (res.rows.length > 0) { |
|
|
var usertData = res.rows; |
|
|
var usertData = res.rows; |
|
|
for (let i in usertData) { |
|
|
for (let i in usertData) { |
|
|
$("select[name='businessMembers']").append("<option value='" + usertData[i].userName + "'>" + usertData[i].userName + "</option>"); |
|
|
$("select[name='businessMembers']").append("<option value='" + usertData[i].loginName + "'>" + usertData[i].userName + "</option>"); |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
$.modal.msgError(res.msg); |
|
|
$.modal.msgError(res.msg); |
|
|