Commit f78f4f77 by Joey

feat(@gms/gms-plugin-billexpand): 增加公式

parent 56de8128
......@@ -2523,6 +2523,25 @@ export default {
"extends": {
"info": {
"param": [
],
"name": "CheckFieldEditableOfBJZGH",
"description": "CheckFieldEditableOfBJZGH",
"title": "CheckFieldEditableOfBJZGH",
"return": 0
}
},
"description": "CheckFieldEditableOfBJZGH",
"title": "CheckFieldEditableOfBJZGH",
"value": "CheckFieldEditableOfBJZGH"
},
{
"discard": false,
"path": "通用",
"extends": {
"info": {
"param": [
],
"name": "GetMDByObjectcode",
"description": "GetMDByObjectcode",
......
export default {
execute: function ([target], context) {
const billId = context.getMasterData().getValue('id')
const djlczt = context.getMasterData().getValue('DJLCZT')
const res = $.ajax({
type: 'POST',
url: `${osConfig.baseUrl}/rbczgh/check/editable`,
async: false,
contentType: 'application/json',
dataType: 'json',
beforeSend: function (request) {
request.setRequestHeader("Authorization", GMS.util.getAuthorization());
},
data: JSON.stringify({
fieldName: target.StaticValue,
djlczt,
billId,
})
})
return res.responseJSON
},
getResultType: function () {
return FMR.ConstDataTypes.Bool;
},
}
\ No newline at end of file
......@@ -178,6 +178,7 @@ import SubTableHasContainField from "./formula/SubTableHasContainField";
import SetSubFieldsByBaseData from "./formula/SetSubFieldsByBaseData";
import SubTableSetData from "./formula/SubTableSetData";
import GetOwnProperty from "./formula/GetOwnProperty";
import CheckFieldEditableOfBJZGH from "./formula/CheckFieldEditableOfBJZGH";
import GetMDByObjectcode from "./formula/GetMDByObjectcode";
import SetSubValueToMaster from "./formula/SetSubValueToMaster";
import UnsafeApplyFunction from "./formula/UnsafeApplyFunction";
......@@ -360,6 +361,7 @@ export default {
SubTableSetData,
GetMDByObjectcode,
GetOwnProperty,
CheckFieldEditableOfBJZGH,
SetSubValueToMaster,
UnsafeApplyFunction,
...GeneralImportFile,
......
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