fmui-base 2.3.6 → 2.3.7
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/selectMember/select.js +2 -2
- package/lib/tblform/FlowCommentPane.js +2 -2
- package/package.json +1 -1
- package/lib/nvoice/index.js +0 -16
- package/lib/nvoice/nvoice.js +0 -177
- package/lib/nvoice/nvoice.less +0 -0
package/README.md
CHANGED
|
@@ -8158,9 +8158,9 @@ var Page = function (_React$Component) {
|
|
|
8158
8158
|
var props = {
|
|
8159
8159
|
placeholder: "请输入",
|
|
8160
8160
|
locale: 'zh_CN',
|
|
8161
|
-
instantSearch:
|
|
8161
|
+
instantSearch: true, //即时搜索
|
|
8162
8162
|
hasHistory: false,
|
|
8163
|
-
searchDelay:
|
|
8163
|
+
searchDelay: 1000, //输入过程中1秒后未输入才触发搜索
|
|
8164
8164
|
onEnter: function onEnter() {
|
|
8165
8165
|
var $searchbar = $(".select-member-div-class").find(".t-search-bar-input");
|
|
8166
8166
|
$searchbar.attr('maxlength', 20);
|
|
@@ -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
|
|
package/package.json
CHANGED
package/lib/nvoice/index.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
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 }; }
|
package/lib/nvoice/nvoice.js
DELETED
|
@@ -1,177 +0,0 @@
|
|
|
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;
|
package/lib/nvoice/nvoice.less
DELETED
|
File without changes
|