dlt-for-react 2.2.2 → 2.2.3
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
CHANGED
|
@@ -239,6 +239,58 @@ var HqWzGgSelector = exports.HqWzGgSelector = function (_React$Component) {
|
|
|
239
239
|
// },
|
|
240
240
|
// },
|
|
241
241
|
{
|
|
242
|
+
key: "zkcsl",
|
|
243
|
+
title: "总库存数量",
|
|
244
|
+
width: "80",
|
|
245
|
+
sorted: false,
|
|
246
|
+
render: function render(text, record, index) {
|
|
247
|
+
var temp = record.ZKCSL || record.zkcsl;
|
|
248
|
+
if (temp && temp.length > 10) {
|
|
249
|
+
return _react2.default.createElement(
|
|
250
|
+
"font",
|
|
251
|
+
null,
|
|
252
|
+
_react2.default.createElement(
|
|
253
|
+
_tooltip2.default,
|
|
254
|
+
{ title: temp },
|
|
255
|
+
temp.substring(0, 10),
|
|
256
|
+
"..."
|
|
257
|
+
)
|
|
258
|
+
);
|
|
259
|
+
} else {
|
|
260
|
+
return _react2.default.createElement(
|
|
261
|
+
"font",
|
|
262
|
+
null,
|
|
263
|
+
temp
|
|
264
|
+
);
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}, {
|
|
268
|
+
key: "dqcksl",
|
|
269
|
+
title: "当前仓库数量",
|
|
270
|
+
width: "80",
|
|
271
|
+
sorted: false,
|
|
272
|
+
render: function render(text, record, index) {
|
|
273
|
+
var temp = record.DQCKSL || record.dqcksl;
|
|
274
|
+
if (temp && temp.length > 10) {
|
|
275
|
+
return _react2.default.createElement(
|
|
276
|
+
"font",
|
|
277
|
+
null,
|
|
278
|
+
_react2.default.createElement(
|
|
279
|
+
_tooltip2.default,
|
|
280
|
+
{ title: temp },
|
|
281
|
+
temp.substring(0, 10),
|
|
282
|
+
"..."
|
|
283
|
+
)
|
|
284
|
+
);
|
|
285
|
+
} else {
|
|
286
|
+
return _react2.default.createElement(
|
|
287
|
+
"font",
|
|
288
|
+
null,
|
|
289
|
+
temp
|
|
290
|
+
);
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
}, {
|
|
242
294
|
key: "dj",
|
|
243
295
|
title: "单价",
|
|
244
296
|
minWidth: "60",
|
|
@@ -220,13 +220,57 @@ var HqWzSelector = exports.HqWzSelector = function (_React$Component) {
|
|
|
220
220
|
// }
|
|
221
221
|
// },
|
|
222
222
|
// },
|
|
223
|
+
// {
|
|
224
|
+
// key: "jysl",
|
|
225
|
+
// title: "库存数量",
|
|
226
|
+
// width: "80",
|
|
227
|
+
// sorted: false,
|
|
228
|
+
// render: (text, record, index) => {
|
|
229
|
+
// let temp = record.JYSL || record.jysl;
|
|
230
|
+
// if (temp && temp.length > 10) {
|
|
231
|
+
// return (
|
|
232
|
+
// <font>
|
|
233
|
+
// <Tooltip title={temp}>{temp.substring(0, 10)}...</Tooltip>
|
|
234
|
+
// </font>
|
|
235
|
+
// );
|
|
236
|
+
// } else {
|
|
237
|
+
// return <font>{temp}</font>;
|
|
238
|
+
// }
|
|
239
|
+
// },
|
|
240
|
+
// },
|
|
223
241
|
{
|
|
224
|
-
key: "
|
|
225
|
-
title: "
|
|
242
|
+
key: "zkcsl",
|
|
243
|
+
title: "总库存数量",
|
|
244
|
+
width: "80",
|
|
245
|
+
sorted: false,
|
|
246
|
+
render: function render(text, record, index) {
|
|
247
|
+
var temp = record.ZKCSL || record.zkcsl;
|
|
248
|
+
if (temp && temp.length > 10) {
|
|
249
|
+
return _react2.default.createElement(
|
|
250
|
+
"font",
|
|
251
|
+
null,
|
|
252
|
+
_react2.default.createElement(
|
|
253
|
+
_tooltip2.default,
|
|
254
|
+
{ title: temp },
|
|
255
|
+
temp.substring(0, 10),
|
|
256
|
+
"..."
|
|
257
|
+
)
|
|
258
|
+
);
|
|
259
|
+
} else {
|
|
260
|
+
return _react2.default.createElement(
|
|
261
|
+
"font",
|
|
262
|
+
null,
|
|
263
|
+
temp
|
|
264
|
+
);
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}, {
|
|
268
|
+
key: "dqcksl",
|
|
269
|
+
title: "当前仓库数量",
|
|
226
270
|
width: "80",
|
|
227
271
|
sorted: false,
|
|
228
272
|
render: function render(text, record, index) {
|
|
229
|
-
var temp = record.
|
|
273
|
+
var temp = record.DQCKSL || record.dqcksl;
|
|
230
274
|
if (temp && temp.length > 10) {
|
|
231
275
|
return _react2.default.createElement(
|
|
232
276
|
"font",
|