contract template obligation contract template dependency UI

This commit is contained in:
glovetleong
2021-07-18 17:29:45 +08:00
parent fca442fb7c
commit 175b99d6dc
20 changed files with 914 additions and 29 deletions
+34
View File
@@ -74,6 +74,40 @@ const Constant = {
'color': 'warning'
},
],
'contract_template_obligation_dependency_status': [
{
'id': 1,
'name': 'Active',
'color': 'primary'
},
{
'id': 2,
'name': 'De-active',
'color': 'danger'
},
{
'id': 9,
'name': 'Pending',
'color': 'warning'
},
],
'contract_template_obligation_contract_template_dependency_status': [
{
'id': 1,
'name': 'Active',
'color': 'primary'
},
{
'id': 2,
'name': 'De-active',
'color': 'danger'
},
{
'id': 9,
'name': 'Pending',
'color': 'warning'
},
],
'contract_status': [
{
'id': 1,
+3
View File
@@ -153,6 +153,9 @@ class Form {
else if(code[i] == 'CURRENT_PASSWORD_NOT_MATCH') {
return_message.push(Sprintf(General.lang('current_password_not_match'), value));
}
else if(code[i] == 'OBLIGATION_DEPEND_ERROR') {
return_message.push(Sprintf(General.lang('obligation_depend_error'), value));
}
else {
return_message.push(code[i]);
}
+3
View File
@@ -359,6 +359,9 @@ module.exports.toastedMessage = function(type, object, key) {
else if(type == 'edit') {
message = Sprintf(module.exports.lang('have_been_successfully_updated'), {value: value});
}
else if(type == 'delete') {
message = Sprintf(module.exports.lang('have_been_successfully_deleted'), {value: value});
}
Vue.toasted.success(message, {
icon : {