Commit 08777958 by 袁成

Merge branch 'develop' of ssh://nvwa.jiuqi.com.cn:2222/GFP/RBC/rbc-frontend into develop-yuancheng

parents 717d6e30 e956e310
{ {
"name": "@gms/gms-plugin-billexpand", "name": "@gms/gms-plugin-billexpand",
"version": "0.0.5-SNAPSHOT", "version": "0.0.6",
"scripts": { "scripts": {
"serve": "vue-cli-service serve", "serve": "vue-cli-service serve",
"build": "vue-cli-service build", "build": "vue-cli-service build",
......
.rbc-basedata-popover { .rbc-basedata-popover {
padding: 0px; padding: 0px !important;
} }
\ No newline at end of file
...@@ -731,7 +731,13 @@ export default { ...@@ -731,7 +731,13 @@ export default {
"type": "field", "type": "field",
"title": "单据id", "title": "单据id",
"key": "billId" "key": "billId"
} },
{
"isRequired": true,
"type": "string",
"title": "页签名称",
"key": "displayName"
},
] ]
}, },
"description": "指定跳转页面,配置单据id,通过在当前页签打开形式进行跳转", "description": "指定跳转页面,配置单据id,通过在当前页签打开形式进行跳转",
...@@ -764,6 +770,12 @@ export default { ...@@ -764,6 +770,12 @@ export default {
"title": "隐藏工具栏", "title": "隐藏工具栏",
"key": "hideButton" "key": "hideButton"
}, },
{
"isRequired": true,
"type": "string",
"title": "页签名称",
"key": "displayName"
},
] ]
}, },
"description": "指定跳转页面,配置单据id和单据类型,通过在当前页签打开形式进行跳转", "description": "指定跳转页面,配置单据id和单据类型,通过在当前页签打开形式进行跳转",
...@@ -896,7 +908,13 @@ export default { ...@@ -896,7 +908,13 @@ export default {
"type": "metaData", "type": "metaData",
"title": "跳转页面", "title": "跳转页面",
"key": "viewName" "key": "viewName"
} },
{
"isRequired": true,
"type": "string",
"title": "页签名称",
"key": "displayName"
},
], ],
"paramHandler": "function (val){if(val && Object.prototype.toString.call(val) === '[object Array]'){return{'viewName':val[0]}}}" "paramHandler": "function (val){if(val && Object.prototype.toString.call(val) === '[object Array]'){return{'viewName':val[0]}}}"
}, },
...@@ -942,7 +960,13 @@ export default { ...@@ -942,7 +960,13 @@ export default {
"type": "field", "type": "field",
"title": "单据id", "title": "单据id",
"key": "billId" "key": "billId"
} },
{
"isRequired": true,
"type": "string",
"title": "页签名称",
"key": "displayName"
},
] ]
}, },
"description": "指定跳转页面,配置单据id,通过打开新页签形式进行跳转", "description": "指定跳转页面,配置单据id,通过打开新页签形式进行跳转",
...@@ -980,7 +1004,13 @@ export default { ...@@ -980,7 +1004,13 @@ export default {
"type": "Boolean", "type": "Boolean",
"title": "可编辑", "title": "可编辑",
"key": "canEdit" "key": "canEdit"
} },
{
"isRequired": true,
"type": "string",
"title": "页签名称",
"key": "displayName"
},
] ]
}, },
"description": "配置单据id和需审批的taskId,通过打开新页签形式进行跳转,该审批页面是列表唯一指定", "description": "配置单据id和需审批的taskId,通过打开新页签形式进行跳转,该审批页面是列表唯一指定",
......
...@@ -14,8 +14,8 @@ export default { ...@@ -14,8 +14,8 @@ export default {
let tmpField = subField.FieldCode; let tmpField = subField.FieldCode;
let subTableObject = context.getTableType(subField.FieldTableCode) let subTableObject = context.getTableType(subField.FieldTableCode)
let oldIndex = context.getSubFocus() let oldIndex = context.getSubFocus()
let focusData = context.getAllSubData()[subTableObject.title][oldIndex].getData() let focusData = oldIndex && context.getAllSubData()[subTableObject.title][oldIndex].getData()
if (!_.isEqual(focusData[tmpField]._field_old_value_, focusData[tmpField].value) || !_.isEmpty(focusData[tmpField].value)) { if (focusData && (!_.isEqual(focusData[tmpField]._field_old_value_, focusData[tmpField].value) || !_.isEmpty(focusData[tmpField].value))) {
focusData[tmpField]._field_old_value_ = focusData[tmpField].value = null focusData[tmpField]._field_old_value_ = focusData[tmpField].value = null
context.refreshSubDataRow(subTableObject.title); context.refreshSubDataRow(subTableObject.title);
} }
......
...@@ -25,8 +25,9 @@ export default { ...@@ -25,8 +25,9 @@ export default {
} }
if (targetObject.type === "sub") { if (targetObject.type === "sub") {
let subTableFocusOldIndex = context.getSubFocus() let subTableFocusOldIndex = context.getSubFocus()
let subTableFocusData = context.getAllSubData()[targetObject.title][subTableFocusOldIndex].getData() let subTableFocusData = subTableFocusOldIndex && context.getAllSubData()[targetObject.title][subTableFocusOldIndex].getData()
let oldIndex = context.getSubFocus() let oldIndex = context.getSubFocus()
if(subTableFocusData){
switch (valueType) { switch (valueType) {
case FormulaConstants.billFiled.BMJJFL: { case FormulaConstants.billFiled.BMJJFL: {
let comp1 = arguments[0][2].getResult().Value; let comp1 = arguments[0][2].getResult().Value;
...@@ -85,6 +86,7 @@ export default { ...@@ -85,6 +86,7 @@ export default {
console.log("") console.log("")
} }
} }
}
} else { } else {
console.error("SetSubFieldValue公式配置错误,暂不支持主表字段赋值") console.error("SetSubFieldValue公式配置错误,暂不支持主表字段赋值")
return null return null
......
...@@ -29,7 +29,7 @@ export default { ...@@ -29,7 +29,7 @@ export default {
}, },
{ {
openWay: "FUNCTAB", openWay: "FUNCTAB",
title: "创建单据", title: param.displayName || "创建单据",
} }
); );
}else{ }else{
......
...@@ -27,7 +27,7 @@ export default { ...@@ -27,7 +27,7 @@ export default {
}, },
{ {
openWay: "FUNCTAB", openWay: "FUNCTAB",
title: "编辑单据", title: param.displayName || "编辑单据",
} }
); );
} else { } else {
......
...@@ -31,7 +31,7 @@ export default { ...@@ -31,7 +31,7 @@ export default {
}, },
{ {
openWay: "FUNCTAB", openWay: "FUNCTAB",
title: "单据审批", title: param.displayName || "单据审批",
} }
); );
} else { } else {
......
...@@ -29,7 +29,7 @@ export default { ...@@ -29,7 +29,7 @@ export default {
}, },
{ {
openWay: "FUNCTAB", openWay: "FUNCTAB",
title: "单据详情", title: param.displayName || "单据详情",
} }
); );
} else { } else {
......
...@@ -29,7 +29,7 @@ export default { ...@@ -29,7 +29,7 @@ export default {
}, },
{ {
openWay: "FUNCTAB", openWay: "FUNCTAB",
title: "单据详情", title: param.displayName || "单据详情",
} }
); );
} else { } else {
......
...@@ -101,7 +101,7 @@ ...@@ -101,7 +101,7 @@
}, },
{ {
"name": "gms-plugin-billexpand", "name": "gms-plugin-billexpand",
"version": "0.0.5-SNAPSHOT" "version": "0.0.6"
}, },
{ {
"name": "gms-plugin-mainpage-reimburseBill", "name": "gms-plugin-mainpage-reimburseBill",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment