fmui-base 2.3.16 → 2.3.17
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/README.md +1 -0
- package/lib/form/form.js +28 -28
- package/lib/form/subForm.js +22 -22
- package/lib/nvoice/index.js +16 -0
- package/lib/nvoice/nvoice.js +177 -0
- package/lib/nvoice/nvoice.less +0 -0
- package/lib/process_info/processInfo.js +1 -11
- package/lib/tblform/FlowCommentPane.js +2 -2
- package/package.json +1 -1
- package/lib/selectMember/select copy.js +0 -11393
package/README.md
CHANGED
package/lib/form/form.js
CHANGED
|
@@ -690,8 +690,8 @@ var PageHome = function (_React$Component) {
|
|
|
690
690
|
itemParam.decimalPlace = form.decimalPlace; //小数位数
|
|
691
691
|
itemParam.dataAttr = form['dataAttr'];
|
|
692
692
|
itemParam.maxlength = form['length'];
|
|
693
|
-
/*if(itemParam.dataAttr){
|
|
694
|
-
alert("265====="+itemParam.dataAttr.textLineFeed);
|
|
693
|
+
/*if(itemParam.dataAttr){
|
|
694
|
+
alert("265====="+itemParam.dataAttr.textLineFeed);
|
|
695
695
|
}*/
|
|
696
696
|
//宏值签名图片
|
|
697
697
|
// if(itemParam.dataAttr && itemParam.dataAttr.dataSrc=='2' && !readOnly && !itemParam.bizCodeRuleId){
|
|
@@ -945,11 +945,11 @@ var PageHome = function (_React$Component) {
|
|
|
945
945
|
if (value == item.value) {
|
|
946
946
|
value = { value: value, text: item.name };
|
|
947
947
|
}
|
|
948
|
-
/*}else{
|
|
949
|
-
var defaultValue=form.defaultValue;
|
|
950
|
-
if(defaultValue == item.value){
|
|
951
|
-
value = {value:value,text:item.name};
|
|
952
|
-
}
|
|
948
|
+
/*}else{
|
|
949
|
+
var defaultValue=form.defaultValue;
|
|
950
|
+
if(defaultValue == item.value){
|
|
951
|
+
value = {value:value,text:item.name};
|
|
952
|
+
}
|
|
953
953
|
}*/
|
|
954
954
|
selectOptions.push(option);
|
|
955
955
|
}
|
|
@@ -2383,21 +2383,21 @@ var PageHome = function (_React$Component) {
|
|
|
2383
2383
|
var length = item.maxlength;
|
|
2384
2384
|
var patrn = /^-?\d+(\.\d+)?$/;
|
|
2385
2385
|
if (newValue !== '' && newValue != '-') {
|
|
2386
|
-
/* var validAttr=item['validAttr'];
|
|
2387
|
-
if(validAttr!=null && validAttr.length>0){
|
|
2388
|
-
for(var va=0;va<validAttr.length;va++){
|
|
2389
|
-
var regular=validAttr[va]['regular'];
|
|
2390
|
-
var tips=validAttr[va]['tips'];
|
|
2391
|
-
var reg=new RegExp(regular.slice(1,-1),"g");
|
|
2392
|
-
if(!reg.test(newValue)){
|
|
2393
|
-
Toast.show({
|
|
2394
|
-
type: 'error',
|
|
2395
|
-
content:item.title+':'+tips
|
|
2396
|
-
});
|
|
2397
|
-
return false;
|
|
2398
|
-
}
|
|
2399
|
-
|
|
2400
|
-
}
|
|
2386
|
+
/* var validAttr=item['validAttr'];
|
|
2387
|
+
if(validAttr!=null && validAttr.length>0){
|
|
2388
|
+
for(var va=0;va<validAttr.length;va++){
|
|
2389
|
+
var regular=validAttr[va]['regular'];
|
|
2390
|
+
var tips=validAttr[va]['tips'];
|
|
2391
|
+
var reg=new RegExp(regular.slice(1,-1),"g");
|
|
2392
|
+
if(!reg.test(newValue)){
|
|
2393
|
+
Toast.show({
|
|
2394
|
+
type: 'error',
|
|
2395
|
+
content:item.title+':'+tips
|
|
2396
|
+
});
|
|
2397
|
+
return false;
|
|
2398
|
+
}
|
|
2399
|
+
|
|
2400
|
+
}
|
|
2401
2401
|
}*/
|
|
2402
2402
|
if (this.checkEmoji(newValue)) {
|
|
2403
2403
|
_Toast2.default.show({
|
|
@@ -3422,12 +3422,12 @@ var PageHome = function (_React$Component) {
|
|
|
3422
3422
|
});
|
|
3423
3423
|
return false;
|
|
3424
3424
|
}
|
|
3425
|
-
/* if(newValue=''){
|
|
3426
|
-
Toast.show({
|
|
3427
|
-
type: 'error',
|
|
3428
|
-
content: '意见不能为空!',
|
|
3429
|
-
});
|
|
3430
|
-
return false;
|
|
3425
|
+
/* if(newValue=''){
|
|
3426
|
+
Toast.show({
|
|
3427
|
+
type: 'error',
|
|
3428
|
+
content: '意见不能为空!',
|
|
3429
|
+
});
|
|
3430
|
+
return false;
|
|
3431
3431
|
}*/
|
|
3432
3432
|
if (newValue.length > 2000) {
|
|
3433
3433
|
newValue = newValue.substring(0, 2000);
|
package/lib/form/subForm.js
CHANGED
|
@@ -335,28 +335,28 @@ var PageHome = function (_React$Component) {
|
|
|
335
335
|
var data = this.props.data;
|
|
336
336
|
var subTblList = data.subTbl; //子表
|
|
337
337
|
var relatedTbl = data.relatedTbl; //关联表
|
|
338
|
-
/* var calculateExpList = data.calculateExpList;//计算公式列表
|
|
339
|
-
var calculateExpList1 = value.calculateExpList;//计算公式列表
|
|
340
|
-
if(calculateExpList1){
|
|
341
|
-
for(var key in calculateExpList1){
|
|
342
|
-
var calculateExpValue;
|
|
343
|
-
if(calculateExpList){
|
|
344
|
-
calculateExpValue = calculateExpList[key];
|
|
345
|
-
if(!calculateExpValue){
|
|
346
|
-
calculateExpValue = [];
|
|
347
|
-
}
|
|
348
|
-
}else{
|
|
349
|
-
calculateExpList = {};
|
|
350
|
-
calculateExpValue = [];
|
|
351
|
-
}
|
|
352
|
-
for(var j=0;j<calculateExpList1[key].length;j++){
|
|
353
|
-
calculateExpValue.push(calculateExpList1[key][j]);
|
|
354
|
-
}
|
|
355
|
-
calculateExpList[key] = calculateExpValue;
|
|
356
|
-
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
data.calculateExpList = calculateExpList;
|
|
338
|
+
/* var calculateExpList = data.calculateExpList;//计算公式列表
|
|
339
|
+
var calculateExpList1 = value.calculateExpList;//计算公式列表
|
|
340
|
+
if(calculateExpList1){
|
|
341
|
+
for(var key in calculateExpList1){
|
|
342
|
+
var calculateExpValue;
|
|
343
|
+
if(calculateExpList){
|
|
344
|
+
calculateExpValue = calculateExpList[key];
|
|
345
|
+
if(!calculateExpValue){
|
|
346
|
+
calculateExpValue = [];
|
|
347
|
+
}
|
|
348
|
+
}else{
|
|
349
|
+
calculateExpList = {};
|
|
350
|
+
calculateExpValue = [];
|
|
351
|
+
}
|
|
352
|
+
for(var j=0;j<calculateExpList1[key].length;j++){
|
|
353
|
+
calculateExpValue.push(calculateExpList1[key][j]);
|
|
354
|
+
}
|
|
355
|
+
calculateExpList[key] = calculateExpValue;
|
|
356
|
+
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
data.calculateExpList = calculateExpList;
|
|
360
360
|
}*/
|
|
361
361
|
|
|
362
362
|
this.dealwithSubData(subTblList, subTblNo, value, relatedTbl);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
|
|
7
|
+
var _nvoice = require('./nvoice');
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, 'default', {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function get() {
|
|
12
|
+
return _interopRequireDefault(_nvoice).default;
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = undefined;
|
|
7
|
+
|
|
8
|
+
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
9
|
+
|
|
10
|
+
var _react = require('react');
|
|
11
|
+
|
|
12
|
+
var _react2 = _interopRequireDefault(_react);
|
|
13
|
+
|
|
14
|
+
var _Group = require('saltui/lib/Group');
|
|
15
|
+
|
|
16
|
+
var _Group2 = _interopRequireDefault(_Group);
|
|
17
|
+
|
|
18
|
+
var _Field = require('saltui/lib/Field');
|
|
19
|
+
|
|
20
|
+
var _Field2 = _interopRequireDefault(_Field);
|
|
21
|
+
|
|
22
|
+
var _upload = require('../upload/upload');
|
|
23
|
+
|
|
24
|
+
var _upload2 = _interopRequireDefault(_upload);
|
|
25
|
+
|
|
26
|
+
var _Boxs = require('saltui/lib/Boxs');
|
|
27
|
+
|
|
28
|
+
var _Boxs2 = _interopRequireDefault(_Boxs);
|
|
29
|
+
|
|
30
|
+
var _db = require('../db/db');
|
|
31
|
+
|
|
32
|
+
var _db2 = _interopRequireDefault(_db);
|
|
33
|
+
|
|
34
|
+
require('./nvoice.less');
|
|
35
|
+
|
|
36
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
37
|
+
|
|
38
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
39
|
+
|
|
40
|
+
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
|
41
|
+
|
|
42
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
|
43
|
+
|
|
44
|
+
var HBox = _Boxs2.default.HBox,
|
|
45
|
+
Box = _Boxs2.default.Box,
|
|
46
|
+
VBox = _Boxs2.default.VBox;
|
|
47
|
+
|
|
48
|
+
var Nvoice = function (_React$Component) {
|
|
49
|
+
_inherits(Nvoice, _React$Component);
|
|
50
|
+
|
|
51
|
+
function Nvoice(props) {
|
|
52
|
+
_classCallCheck(this, Nvoice);
|
|
53
|
+
|
|
54
|
+
// 传入的props参数
|
|
55
|
+
var _this = _possibleConstructorReturn(this, (Nvoice.__proto__ || Object.getPrototypeOf(Nvoice)).call(this, props));
|
|
56
|
+
|
|
57
|
+
_this.initFn = function (id) {
|
|
58
|
+
|
|
59
|
+
// 初始发票详情数据
|
|
60
|
+
_db2.default.form.getNoInvoiceList({
|
|
61
|
+
invoicedataid: id
|
|
62
|
+
}).then(function (content) {
|
|
63
|
+
_this.setState({
|
|
64
|
+
invoicedata: content
|
|
65
|
+
});
|
|
66
|
+
}).catch(function (error) {
|
|
67
|
+
console.error('获取详情数据失败', error);
|
|
68
|
+
});
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
var invoicedataid = _this.props.id;
|
|
72
|
+
var title = _this.props.label || '发票详情';
|
|
73
|
+
var required = _this.props.required || false;
|
|
74
|
+
|
|
75
|
+
_this.state = {
|
|
76
|
+
invoicedataid: invoicedataid,
|
|
77
|
+
invoicedata: [],
|
|
78
|
+
title: title,
|
|
79
|
+
required: required
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
return _this;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
_createClass(Nvoice, [{
|
|
86
|
+
key: 'componentDidMount',
|
|
87
|
+
value: function componentDidMount() {
|
|
88
|
+
this.initFn(this.state.invoicedataid);
|
|
89
|
+
}
|
|
90
|
+
}, {
|
|
91
|
+
key: 'downloadFile',
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
// 下载函数
|
|
95
|
+
value: function (_downloadFile) {
|
|
96
|
+
function downloadFile(_x) {
|
|
97
|
+
return _downloadFile.apply(this, arguments);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
downloadFile.toString = function () {
|
|
101
|
+
return _downloadFile.toString();
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
return downloadFile;
|
|
105
|
+
}(function (file) {
|
|
106
|
+
downloadFile(file.relaObjId);
|
|
107
|
+
})
|
|
108
|
+
}, {
|
|
109
|
+
key: 'render',
|
|
110
|
+
value: function render() {
|
|
111
|
+
return _react2.default.createElement(
|
|
112
|
+
_Group2.default.List,
|
|
113
|
+
{ borderTopNone: true },
|
|
114
|
+
_react2.default.createElement(
|
|
115
|
+
_Field2.default,
|
|
116
|
+
{ required: this.state.required, label: this.state.title, layout: 'h', multiLine: true },
|
|
117
|
+
_react2.default.createElement(
|
|
118
|
+
'div',
|
|
119
|
+
null,
|
|
120
|
+
this.state.invoicedata.map(function (item, index) {
|
|
121
|
+
var fileList = [];
|
|
122
|
+
try {
|
|
123
|
+
if (item.invoicefileInfo) {
|
|
124
|
+
fileList = JSON.parse(item.invoicefileInfo);
|
|
125
|
+
}
|
|
126
|
+
} catch (e) {
|
|
127
|
+
console.error('发票附件解析失败', e);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
return _react2.default.createElement(
|
|
131
|
+
'div',
|
|
132
|
+
{ key: item.id, className: 't-MT2' },
|
|
133
|
+
_react2.default.createElement(
|
|
134
|
+
VBox,
|
|
135
|
+
{ className: 'nvoice-filetitle', hAlign: 'start' },
|
|
136
|
+
_react2.default.createElement(
|
|
137
|
+
Box,
|
|
138
|
+
null,
|
|
139
|
+
item.invoicename
|
|
140
|
+
),
|
|
141
|
+
_react2.default.createElement(
|
|
142
|
+
HBox,
|
|
143
|
+
{ vAlign: 'center' },
|
|
144
|
+
_react2.default.createElement(
|
|
145
|
+
Box,
|
|
146
|
+
{ className: 'label label-primary' },
|
|
147
|
+
item.invoicetype
|
|
148
|
+
),
|
|
149
|
+
_react2.default.createElement(
|
|
150
|
+
Box,
|
|
151
|
+
null,
|
|
152
|
+
'\uFFE5',
|
|
153
|
+
item.invoiceamount
|
|
154
|
+
)
|
|
155
|
+
)
|
|
156
|
+
),
|
|
157
|
+
_react2.default.createElement(_upload2.default, {
|
|
158
|
+
required: false,
|
|
159
|
+
canDel: false,
|
|
160
|
+
canPreview: true,
|
|
161
|
+
canDownload: true,
|
|
162
|
+
initList: fileList,
|
|
163
|
+
dir: 'form_invoice',
|
|
164
|
+
ref: 'upload_invoice'
|
|
165
|
+
})
|
|
166
|
+
);
|
|
167
|
+
})
|
|
168
|
+
)
|
|
169
|
+
)
|
|
170
|
+
);
|
|
171
|
+
}
|
|
172
|
+
}]);
|
|
173
|
+
|
|
174
|
+
return Nvoice;
|
|
175
|
+
}(_react2.default.Component);
|
|
176
|
+
|
|
177
|
+
exports.default = Nvoice;
|
|
File without changes
|
|
@@ -1474,7 +1474,7 @@ var PageHome = function (_React$Component) {
|
|
|
1474
1474
|
// }
|
|
1475
1475
|
t.setState({
|
|
1476
1476
|
editFormData: formData,
|
|
1477
|
-
formDataOptlock: formData && formData.optlock !== undefined && formData.optlock !== null && formData.optlock !== '' ? String(formData.optlock) : '',
|
|
1477
|
+
formDataOptlock: formData && formData.optlock !== undefined && formData.optlock !== null && formData.optlock !== '' ? String(formData.optlock) : content.optlock !== undefined && content.optlock !== null && content.optlock !== '' ? String(content.optlock) : '',
|
|
1478
1478
|
//formDataNew:content.formDataNew,
|
|
1479
1479
|
// formData: formData,
|
|
1480
1480
|
// fileContent: fileContent,
|
|
@@ -4683,9 +4683,6 @@ var PageHome = function (_React$Component) {
|
|
|
4683
4683
|
formType: "4",
|
|
4684
4684
|
editType: editType
|
|
4685
4685
|
}, _defineProperty(_param2, 'module', t.state.module), _defineProperty(_param2, 'comment', newComment), _defineProperty(_param2, 'commentType', 'text'), _defineProperty(_param2, 'commentId', t.state.commentId), _defineProperty(_param2, 'commentAttitude', t.getSelectedCommentAttitude()), _defineProperty(_param2, 'attachId', t.state.commentAttachId), _defineProperty(_param2, 'sealId', t.state.commentSealId), _defineProperty(_param2, 'permissionCode', t.state.permissionCode), _defineProperty(_param2, 'hasCommentField', t.state.hasCommentField), _defineProperty(_param2, 'dataId', dataId), _param2);
|
|
4686
|
-
if (t.state.formDataOptlock !== '' && t.state.formDataOptlock !== null && typeof t.state.formDataOptlock !== 'undefined') {
|
|
4687
|
-
param.optlock = t.state.formDataOptlock;
|
|
4688
|
-
}
|
|
4689
4686
|
var commentbizSn = t.guid2();
|
|
4690
4687
|
if (param.commentId && param.commentId != "" && param.commentId != null && typeof param.commentId != "undefined") {
|
|
4691
4688
|
commentbizSn = param.commentId;
|
|
@@ -4699,13 +4696,6 @@ var PageHome = function (_React$Component) {
|
|
|
4699
4696
|
type: 'success',
|
|
4700
4697
|
content: '保存成功'
|
|
4701
4698
|
});
|
|
4702
|
-
if (t.state.formDataOptlock !== '' && t.state.formDataOptlock !== null) {
|
|
4703
|
-
var ol = parseInt(t.state.formDataOptlock, 10);
|
|
4704
|
-
if (!isNaN(ol)) {
|
|
4705
|
-
t.setState({ formDataOptlock: String(ol + 1) });
|
|
4706
|
-
}
|
|
4707
|
-
}
|
|
4708
|
-
|
|
4709
4699
|
var dataId = content.dataId;
|
|
4710
4700
|
//操作回调
|
|
4711
4701
|
if (typeof FlowCommon.operateCallBack === "function") {
|
|
@@ -49,8 +49,8 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
49
49
|
|
|
50
50
|
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
|
51
51
|
|
|
52
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /**
|
|
53
|
-
* 流程批示意见区块(默认意见、退回意见等),与 TblForm 纯表单分离使用
|
|
52
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /**
|
|
53
|
+
* 流程批示意见区块(默认意见、退回意见等),与 TblForm 纯表单分离使用
|
|
54
54
|
*/
|
|
55
55
|
|
|
56
56
|
|