venus-design 0.7.7 → 0.7.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Approval/index.js +16 -25
- package/dist/ExcelBatchEdit/services.js +4 -4
- package/dist/VenusDesignCom/components/Table.js +5 -6
- package/dist/VenusDesignCom/handleVenusDesignFunctions.d.ts +1 -1
- package/dist/VenusDesignCom/handleVenusDesignFunctions.js +2 -2
- package/dist/VenusDesignCom/index.d.ts +1 -0
- package/dist/VenusDesignCom/index.js +6 -1
- package/dist/VenusDesignCom/staticAttr.js +9 -6
- package/dist/VenusTable/handleVenusTableFunctions.js +1 -1
- package/dist/VenusTable/interface.d.ts +4 -0
- package/dist/VenusTable/staticAttr.js +3 -0
- package/dist/VenusWorkDetail/index.js +26 -12
- package/dist/VenusWorkDetail/services.d.ts +1 -41
- package/dist/VenusWorkDetail/services.js +5 -74
- package/package.json +1 -1
package/dist/Approval/index.js
CHANGED
|
@@ -30,7 +30,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
30
30
|
import React, { useState, useImperativeHandle } from 'react';
|
|
31
31
|
import SelectRoleAndUser from "./components/SelectRoleAndUser";
|
|
32
32
|
import { StyleProvider, legacyLogicalPropertiesTransformer } from "@ant-design/cssinjs";
|
|
33
|
-
import { startData, findByOptionCode, findByUserid, SubmitDataStatus,
|
|
33
|
+
import { startData, findByOptionCode, findByUserid, SubmitDataStatus, updateProcessInstance } from "./service";
|
|
34
34
|
import moment from 'moment';
|
|
35
35
|
export default /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
36
36
|
var _useState = useState(false),
|
|
@@ -102,7 +102,7 @@ export default /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
102
102
|
//查询流程配置
|
|
103
103
|
var findByOption = /*#__PURE__*/function () {
|
|
104
104
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(record, code, name) {
|
|
105
|
-
var idService, res, res1, options, i, userLi, _i, projectname, name1
|
|
105
|
+
var idService, res, res1, options, i, userLi, _i, projectname, name1;
|
|
106
106
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
107
107
|
while (1) switch (_context.prev = _context.next) {
|
|
108
108
|
case 0:
|
|
@@ -119,7 +119,7 @@ export default /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
119
119
|
case 4:
|
|
120
120
|
res = _context.sent;
|
|
121
121
|
if (!(res && res.success)) {
|
|
122
|
-
_context.next =
|
|
122
|
+
_context.next = 18;
|
|
123
123
|
break;
|
|
124
124
|
}
|
|
125
125
|
if (!res.data) {
|
|
@@ -174,37 +174,25 @@ export default /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
174
174
|
case 14:
|
|
175
175
|
_message.warning("没有找到流程配置编码为" + code + "的相关信息");
|
|
176
176
|
case 15:
|
|
177
|
-
if (
|
|
178
|
-
_context.next = 22;
|
|
179
|
-
break;
|
|
180
|
-
}
|
|
181
|
-
_context.next = 18;
|
|
182
|
-
return findTableByFormid(res.data.formid);
|
|
183
|
-
case 18:
|
|
184
|
-
restablename = _context.sent;
|
|
185
|
-
if (restablename && restablename.success) {
|
|
177
|
+
if (res.data != null && res.data.formid != null) {
|
|
186
178
|
setdefineid(res.data.formid);
|
|
187
|
-
settablename(restablename.message);
|
|
188
|
-
}
|
|
189
|
-
_context.next = 24;
|
|
190
|
-
break;
|
|
191
|
-
case 22:
|
|
192
|
-
setdefineid(-1);
|
|
193
|
-
if (res.data != null) {
|
|
194
|
-
settablename(res.data.columnlist);
|
|
195
179
|
} else {
|
|
196
|
-
|
|
180
|
+
setdefineid(-1);
|
|
181
|
+
if (res.data != null) {
|
|
182
|
+
settablename(res.data.columnlist);
|
|
183
|
+
} else {
|
|
184
|
+
_message.warning("没有配置审批页面显示列!");
|
|
185
|
+
}
|
|
197
186
|
}
|
|
198
|
-
|
|
199
|
-
_context.next = 29;
|
|
187
|
+
_context.next = 21;
|
|
200
188
|
break;
|
|
201
|
-
case
|
|
189
|
+
case 18:
|
|
202
190
|
name1 = name ? name : "送审" + "【" + record.data.commissionNo + "】" + moment().format("YYYY-MM-DD hh:mm:ss");
|
|
203
191
|
form.setFieldsValue({
|
|
204
192
|
name: name1
|
|
205
193
|
});
|
|
206
194
|
setload(false);
|
|
207
|
-
case
|
|
195
|
+
case 21:
|
|
208
196
|
case "end":
|
|
209
197
|
return _context.stop();
|
|
210
198
|
}
|
|
@@ -220,6 +208,9 @@ export default /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
220
208
|
setload(true);
|
|
221
209
|
setokload(false);
|
|
222
210
|
form.resetFields();
|
|
211
|
+
if (props.onCancel) {
|
|
212
|
+
props.onCancel();
|
|
213
|
+
}
|
|
223
214
|
};
|
|
224
215
|
var _onOk = function onOk(val) {
|
|
225
216
|
setokload(true);
|
|
@@ -28,7 +28,7 @@ function _saveDataExcel() {
|
|
|
28
28
|
return _context.abrupt("return", request("/template/info/savedata", {
|
|
29
29
|
method: 'post',
|
|
30
30
|
data: data,
|
|
31
|
-
prefix: '/
|
|
31
|
+
prefix: '/ssoApi'
|
|
32
32
|
}));
|
|
33
33
|
case 1:
|
|
34
34
|
case "end":
|
|
@@ -54,7 +54,7 @@ function _getDataExcel() {
|
|
|
54
54
|
return _context2.abrupt("return", request("/template/info/getdata", {
|
|
55
55
|
method: 'post',
|
|
56
56
|
data: data,
|
|
57
|
-
prefix: '/
|
|
57
|
+
prefix: '/ssoApi'
|
|
58
58
|
}));
|
|
59
59
|
case 1:
|
|
60
60
|
case "end":
|
|
@@ -106,7 +106,7 @@ function _getMonth() {
|
|
|
106
106
|
return _context4.abrupt("return", request("/data/record/month/list", {
|
|
107
107
|
method: 'post',
|
|
108
108
|
data: paramObj,
|
|
109
|
-
prefix: '/
|
|
109
|
+
prefix: '/ssoApi'
|
|
110
110
|
}));
|
|
111
111
|
case 1:
|
|
112
112
|
case "end":
|
|
@@ -132,7 +132,7 @@ function _getRecordInfo() {
|
|
|
132
132
|
case 0:
|
|
133
133
|
return _context5.abrupt("return", request("/data/record/get/".concat(recordId), {
|
|
134
134
|
method: 'get',
|
|
135
|
-
prefix: '/
|
|
135
|
+
prefix: '/ssoApi'
|
|
136
136
|
}));
|
|
137
137
|
case 1:
|
|
138
138
|
case "end":
|
|
@@ -82,13 +82,12 @@ var VenusDesignTable = function VenusDesignTable(props) {
|
|
|
82
82
|
actionRef: actionRef,
|
|
83
83
|
request: props.conf.type != "view" ? loadingData : function () {} //加载数据
|
|
84
84
|
,
|
|
85
|
-
exportHidden:
|
|
85
|
+
exportHidden: true //导出按钮是否隐藏
|
|
86
86
|
,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
//reflushFlagNum={tag.reflushFlagNum||1}
|
|
87
|
+
scroll: {
|
|
88
|
+
y: props.height || 600
|
|
89
|
+
},
|
|
90
|
+
exportFileName: "导出Excel" //导入的文件名称
|
|
92
91
|
,
|
|
93
92
|
dataViewIid: props.item.viewId //数据视图标识
|
|
94
93
|
,
|
|
@@ -4,7 +4,7 @@ import { VENUS_DESIGN_TYPE } from "./staticAttr";
|
|
|
4
4
|
* 渲染页面
|
|
5
5
|
* @param item
|
|
6
6
|
*/
|
|
7
|
-
export var renderFormDesign = function renderFormDesign(item, id, type) {
|
|
7
|
+
export var renderFormDesign = function renderFormDesign(item, id, type, height) {
|
|
8
8
|
var comList = [];
|
|
9
9
|
for (var i = 0; i < item.length; i++) {
|
|
10
10
|
//@ts-ignore
|
|
@@ -14,7 +14,7 @@ export var renderFormDesign = function renderFormDesign(item, id, type) {
|
|
|
14
14
|
var component = handleFormItemType(item[i], {
|
|
15
15
|
id: id || "-1",
|
|
16
16
|
type: type
|
|
17
|
-
});
|
|
17
|
+
}, height);
|
|
18
18
|
comList.push(component);
|
|
19
19
|
}
|
|
20
20
|
return comList;
|
|
@@ -15,6 +15,7 @@ import { renderFormDesign } from "./handleVenusDesignFunctions";
|
|
|
15
15
|
* 表单设计渲染
|
|
16
16
|
*/
|
|
17
17
|
var VenusDesignCom = function VenusDesignCom(props) {
|
|
18
|
+
var winHeight = document.documentElement.clientHeight - 140;
|
|
18
19
|
var _useState = useState([]),
|
|
19
20
|
_useState2 = _slicedToArray(_useState, 2),
|
|
20
21
|
items = _useState2[0],
|
|
@@ -45,6 +46,10 @@ var VenusDesignCom = function VenusDesignCom(props) {
|
|
|
45
46
|
useEffect(function () {
|
|
46
47
|
getItems();
|
|
47
48
|
}, []);
|
|
48
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div",
|
|
49
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
50
|
+
style: {
|
|
51
|
+
height: props.height || "100%"
|
|
52
|
+
}
|
|
53
|
+
}, items.length > 0 ? renderFormDesign(items, props.id || "-1", props.type || "render", props.height || winHeight) : null));
|
|
49
54
|
};
|
|
50
55
|
export default VenusDesignCom;
|
|
@@ -6,22 +6,25 @@ import VenusDesignDetail from "./components/Detail";
|
|
|
6
6
|
* 表单项的类型
|
|
7
7
|
*/
|
|
8
8
|
export var VENUS_DESIGN_TYPE = {
|
|
9
|
-
"form": function form(item, conf) {
|
|
9
|
+
"form": function form(item, conf, height) {
|
|
10
10
|
return /*#__PURE__*/React.createElement(VenusDesignForm, {
|
|
11
11
|
item: item,
|
|
12
|
-
conf: conf
|
|
12
|
+
conf: conf,
|
|
13
|
+
height: height
|
|
13
14
|
});
|
|
14
15
|
},
|
|
15
|
-
"grid": function grid(item, conf) {
|
|
16
|
+
"grid": function grid(item, conf, height) {
|
|
16
17
|
return /*#__PURE__*/React.createElement(VenusDesignTable, {
|
|
17
18
|
item: item,
|
|
18
|
-
conf: conf
|
|
19
|
+
conf: conf,
|
|
20
|
+
height: height
|
|
19
21
|
});
|
|
20
22
|
},
|
|
21
|
-
"detail": function detail(item, conf) {
|
|
23
|
+
"detail": function detail(item, conf, height) {
|
|
22
24
|
return /*#__PURE__*/React.createElement(VenusDesignDetail, {
|
|
23
25
|
item: item,
|
|
24
|
-
conf: conf
|
|
26
|
+
conf: conf,
|
|
27
|
+
height: height
|
|
25
28
|
});
|
|
26
29
|
}
|
|
27
30
|
};
|
|
@@ -38,7 +38,7 @@ export var handleColumnFns = function handleColumnFns(columnList, showIndexColum
|
|
|
38
38
|
var _loop = function _loop(i) {
|
|
39
39
|
if (columnList[i] != null) {
|
|
40
40
|
//@ts-ignore
|
|
41
|
-
var handleEnumType = VENUS_TABLE_COLUMNENUM_TYPE[columnList[i].
|
|
41
|
+
var handleEnumType = VENUS_TABLE_COLUMNENUM_TYPE[columnList[i].gridFilterType] || function () {};
|
|
42
42
|
var handleRenderType = VENUS_TABLE_COLUMNRENDER_TYPE[columnList[i].parameterSource.render] || function () {};
|
|
43
43
|
var handleCellType = VENUS_TABLE_ONCELL_TYPE[columnList[i].parameterSource.onCell] || function () {};
|
|
44
44
|
var radioRender = getRenderColumn(columnList[i]);
|
|
@@ -35,6 +35,10 @@ export interface VenusSelectDataVo {
|
|
|
35
35
|
export default interface VenusTableType {
|
|
36
36
|
exportHidden?: Boolean;
|
|
37
37
|
exportFileName?: String;
|
|
38
|
+
scroll?: any;
|
|
39
|
+
alwaysShowAlert?: boolean;
|
|
40
|
+
tableAlertRender?: boolean;
|
|
41
|
+
tableAlertOptionRender?: boolean;
|
|
38
42
|
getExportData?: Function;
|
|
39
43
|
actionRef: any;
|
|
40
44
|
columnsFnExpor?: Function;
|
|
@@ -55,6 +55,9 @@ export var VENUS_TABLE_COLUMNENUM_TYPE = {
|
|
|
55
55
|
"Select": function Select(column) {
|
|
56
56
|
return dataToEnum(column.selectSource);
|
|
57
57
|
},
|
|
58
|
+
"select": function select(column) {
|
|
59
|
+
return dataToEnum(column.selectSource);
|
|
60
|
+
},
|
|
58
61
|
"Input": function Input(column) {
|
|
59
62
|
return undefined;
|
|
60
63
|
},
|
|
@@ -2,6 +2,11 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
2
2
|
import "antd/es/form/style";
|
|
3
3
|
import _Form from "antd/es/form";
|
|
4
4
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
5
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
9
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
5
10
|
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
6
11
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
7
12
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
@@ -13,7 +18,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
13
18
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
14
19
|
import React, { useEffect, useRef, useState } from 'react';
|
|
15
20
|
import VenusAdjustDetail from "../VenusAdjustDetail";
|
|
16
|
-
import { LoadingAdjustData, LoadingWorkFlowData } from "./services";
|
|
21
|
+
import { LoadingAdjustData, LoadingWorkFlowData, LoadingWorkFlowTableData } from "./services";
|
|
17
22
|
import VenusTable from "../VenusTable";
|
|
18
23
|
import VenusForm from "../VenusForm";
|
|
19
24
|
import { BISpin, isNotNullVenus } from "./..";
|
|
@@ -136,7 +141,7 @@ var VenusWorkDetail = function VenusWorkDetail(props) {
|
|
|
136
141
|
//加载表格数据
|
|
137
142
|
var loadingData = /*#__PURE__*/function () {
|
|
138
143
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(params) {
|
|
139
|
-
var pageData;
|
|
144
|
+
var pageData, res, _data;
|
|
140
145
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
141
146
|
while (1) switch (_context3.prev = _context3.next) {
|
|
142
147
|
case 0:
|
|
@@ -148,17 +153,26 @@ var VenusWorkDetail = function VenusWorkDetail(props) {
|
|
|
148
153
|
/**
|
|
149
154
|
* 加载数据
|
|
150
155
|
*/
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
156
|
+
_context3.next = 3;
|
|
157
|
+
return LoadingWorkFlowTableData(_objectSpread(_objectSpread({}, params), {}, {
|
|
158
|
+
serviceUrl: props.serviceUrl,
|
|
159
|
+
prefix: props.prefix
|
|
160
|
+
}));
|
|
161
|
+
case 3:
|
|
162
|
+
res = _context3.sent;
|
|
163
|
+
if (!(res && res.success)) {
|
|
164
|
+
_context3.next = 13;
|
|
165
|
+
break;
|
|
166
|
+
}
|
|
167
|
+
_data = res.data || {};
|
|
168
|
+
pageData.data = Array.isArray(_data.records) ? _data.records : [];
|
|
169
|
+
pageData.total = _data.total;
|
|
170
|
+
pageData.page = _data.current;
|
|
171
|
+
pageData.success = true;
|
|
172
|
+
return _context3.abrupt("return", pageData);
|
|
173
|
+
case 13:
|
|
160
174
|
return _context3.abrupt("return", pageData);
|
|
161
|
-
case
|
|
175
|
+
case 14:
|
|
162
176
|
case "end":
|
|
163
177
|
return _context3.stop();
|
|
164
178
|
}
|
|
@@ -9,44 +9,4 @@ export declare function LoadingWorkFlowData(val: any): Promise<any>;
|
|
|
9
9
|
/**
|
|
10
10
|
* 获取流程中数据(表格)
|
|
11
11
|
*/
|
|
12
|
-
export declare function LoadingWorkFlowTableData(data: any): Promise<
|
|
13
|
-
data: {
|
|
14
|
-
records: {
|
|
15
|
-
innerId: string;
|
|
16
|
-
classId: string;
|
|
17
|
-
name: string;
|
|
18
|
-
securityLevelId: string;
|
|
19
|
-
conflictFlag: null;
|
|
20
|
-
budgetFunds: number;
|
|
21
|
-
projectCode: string;
|
|
22
|
-
startStamp: number;
|
|
23
|
-
finishStamp: number;
|
|
24
|
-
stateId: string;
|
|
25
|
-
stateName: string;
|
|
26
|
-
classifyId: string;
|
|
27
|
-
classifyName: string;
|
|
28
|
-
respUserId: string;
|
|
29
|
-
respUserName: string;
|
|
30
|
-
respDeptId: string;
|
|
31
|
-
respDeptName: string;
|
|
32
|
-
joinDeptId: string;
|
|
33
|
-
joinDeptName: string;
|
|
34
|
-
businessDeptId: string;
|
|
35
|
-
businessDeptName: string;
|
|
36
|
-
securityLimit: string;
|
|
37
|
-
designType: string;
|
|
38
|
-
deptNumType: string;
|
|
39
|
-
impType: string;
|
|
40
|
-
flowType: string;
|
|
41
|
-
junMinType: string;
|
|
42
|
-
keOrProdType: string;
|
|
43
|
-
cooDeptFlag: string;
|
|
44
|
-
costAmount: string;
|
|
45
|
-
nature: string;
|
|
46
|
-
sortNo: number;
|
|
47
|
-
}[];
|
|
48
|
-
total: number;
|
|
49
|
-
current: number;
|
|
50
|
-
};
|
|
51
|
-
success: boolean;
|
|
52
|
-
}>;
|
|
12
|
+
export declare function LoadingWorkFlowTableData(data: any): Promise<any>;
|
|
@@ -66,80 +66,11 @@ function _LoadingWorkFlowTableData() {
|
|
|
66
66
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
67
67
|
while (1) switch (_context3.prev = _context3.next) {
|
|
68
68
|
case 0:
|
|
69
|
-
return _context3.abrupt("return", {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
name: "审核",
|
|
75
|
-
securityLevelId: "6",
|
|
76
|
-
conflictFlag: null,
|
|
77
|
-
budgetFunds: 12,
|
|
78
|
-
projectCode: "eee",
|
|
79
|
-
startStamp: 1706755959000,
|
|
80
|
-
finishStamp: 1706755960000,
|
|
81
|
-
stateId: "RUNN",
|
|
82
|
-
stateName: "进行中",
|
|
83
|
-
classifyId: "80df55cea17f0dda5026e682a3697e8e",
|
|
84
|
-
classifyName: "固定资产投资类项目",
|
|
85
|
-
respUserId: "4384",
|
|
86
|
-
respUserName: "樊元",
|
|
87
|
-
respDeptId: "35604",
|
|
88
|
-
respDeptName: "水下系统研究所(三所)综合办公室",
|
|
89
|
-
joinDeptId: "35604",
|
|
90
|
-
joinDeptName: "水下系统研究所(三所)综合办公室",
|
|
91
|
-
businessDeptId: "4",
|
|
92
|
-
businessDeptName: "水面系统研究所(二所)",
|
|
93
|
-
securityLimit: "1",
|
|
94
|
-
designType: "1",
|
|
95
|
-
deptNumType: "A",
|
|
96
|
-
impType: "ZD",
|
|
97
|
-
flowType: "WWXM",
|
|
98
|
-
junMinType: "JP",
|
|
99
|
-
keOrProdType: "KY",
|
|
100
|
-
cooDeptFlag: "Y",
|
|
101
|
-
costAmount: "GFKJ",
|
|
102
|
-
nature: "JPXMLXM",
|
|
103
|
-
sortNo: 1
|
|
104
|
-
}, {
|
|
105
|
-
innerId: "209cb60d0bce1e9a48bd40b2a131cc56",
|
|
106
|
-
classId: "PmProject",
|
|
107
|
-
name: "审核2",
|
|
108
|
-
securityLevelId: "6",
|
|
109
|
-
conflictFlag: null,
|
|
110
|
-
budgetFunds: 12,
|
|
111
|
-
projectCode: "eedde",
|
|
112
|
-
startStamp: 1706755959000,
|
|
113
|
-
finishStamp: 1706755960000,
|
|
114
|
-
stateId: "RUNN",
|
|
115
|
-
stateName: "进行中",
|
|
116
|
-
classifyId: "80df55cea17f0dda5026e682a3697e8e",
|
|
117
|
-
classifyName: "固定资产投资类项目",
|
|
118
|
-
respUserId: "4384",
|
|
119
|
-
respUserName: "樊元",
|
|
120
|
-
respDeptId: "35604",
|
|
121
|
-
respDeptName: "水下系统研究所(三所)综合办公室",
|
|
122
|
-
joinDeptId: "35604",
|
|
123
|
-
joinDeptName: "水下系统研究所(三所)综合办公室",
|
|
124
|
-
businessDeptId: "4",
|
|
125
|
-
businessDeptName: "水面系统研究所(二所)",
|
|
126
|
-
securityLimit: "1",
|
|
127
|
-
designType: "1",
|
|
128
|
-
deptNumType: "A",
|
|
129
|
-
impType: "ZD",
|
|
130
|
-
flowType: "WWXM",
|
|
131
|
-
junMinType: "JP",
|
|
132
|
-
keOrProdType: "KY",
|
|
133
|
-
cooDeptFlag: "Y",
|
|
134
|
-
costAmount: "GFKJ",
|
|
135
|
-
nature: "JPXMLXM",
|
|
136
|
-
sortNo: 1
|
|
137
|
-
}],
|
|
138
|
-
total: 1,
|
|
139
|
-
current: 1
|
|
140
|
-
},
|
|
141
|
-
success: true
|
|
142
|
-
});
|
|
69
|
+
return _context3.abrupt("return", request("".concat(data.serviceUrl), {
|
|
70
|
+
method: 'post',
|
|
71
|
+
data: data,
|
|
72
|
+
prefix: "".concat(data.prefix)
|
|
73
|
+
}));
|
|
143
74
|
case 1:
|
|
144
75
|
case "end":
|
|
145
76
|
return _context3.stop();
|