doway-coms 1.1.8 → 1.1.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.
@@ -8559,6 +8559,17 @@ function has (obj, property) {
8559
8559
  module.exports = has
8560
8560
 
8561
8561
 
8562
+ /***/ }),
8563
+
8564
+ /***/ "22c6":
8565
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
8566
+
8567
+ "use strict";
8568
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_0_9_0_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_15_10_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_6_2_0_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_10_1_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_1_id_337d49a6_prod_lang_less___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6e4f");
8569
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_0_9_0_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_15_10_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_6_2_0_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_10_1_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_1_id_337d49a6_prod_lang_less___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_0_9_0_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_15_10_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_6_2_0_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_10_1_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_1_id_337d49a6_prod_lang_less___WEBPACK_IMPORTED_MODULE_0__);
8570
+ /* unused harmony reexport * */
8571
+
8572
+
8562
8573
  /***/ }),
8563
8574
 
8564
8575
  /***/ "23e6":
@@ -34206,6 +34217,13 @@ function last(array) {
34206
34217
  module.exports = last;
34207
34218
 
34208
34219
 
34220
+ /***/ }),
34221
+
34222
+ /***/ "6e4f":
34223
+ /***/ (function(module, exports, __webpack_require__) {
34224
+
34225
+ // extracted by mini-css-extract-plugin
34226
+
34209
34227
  /***/ }),
34210
34228
 
34211
34229
  /***/ "6e9f":
@@ -36656,13 +36674,6 @@ exports.default = _default;
36656
36674
 
36657
36675
  /***/ }),
36658
36676
 
36659
- /***/ "7b5d":
36660
- /***/ (function(module, exports, __webpack_require__) {
36661
-
36662
- // extracted by mini-css-extract-plugin
36663
-
36664
- /***/ }),
36665
-
36666
36677
  /***/ "7bac":
36667
36678
  /***/ (function(module, exports, __webpack_require__) {
36668
36679
 
@@ -63372,17 +63383,6 @@ function destructuring (destination, sources) {
63372
63383
  module.exports = destructuring
63373
63384
 
63374
63385
 
63375
- /***/ }),
63376
-
63377
- /***/ "d21f":
63378
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
63379
-
63380
- "use strict";
63381
- /* harmony import */ var _node_modules_mini_css_extract_plugin_0_9_0_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_15_10_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_6_2_0_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_10_1_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_1_id_0416bb72_prod_lang_less___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("7b5d");
63382
- /* harmony import */ var _node_modules_mini_css_extract_plugin_0_9_0_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_15_10_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_6_2_0_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_10_1_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_1_id_0416bb72_prod_lang_less___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_0_9_0_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_15_10_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_6_2_0_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_10_1_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_1_id_0416bb72_prod_lang_less___WEBPACK_IMPORTED_MODULE_0__);
63383
- /* unused harmony reexport * */
63384
-
63385
-
63386
63386
  /***/ }),
63387
63387
 
63388
63388
  /***/ "d25f":
@@ -73839,6 +73839,7 @@ __webpack_require__.d(__webpack_exports__, "BaseToolStatus", function() { return
73839
73839
  __webpack_require__.d(__webpack_exports__, "BasePulldown", function() { return /* reexport */ BasePulldown; });
73840
73840
  __webpack_require__.d(__webpack_exports__, "BaseIntervalInput", function() { return /* reexport */ BaseIntervalInput; });
73841
73841
  __webpack_require__.d(__webpack_exports__, "BaseForm", function() { return /* reexport */ BaseForm; });
73842
+ __webpack_require__.d(__webpack_exports__, "UtilFilters", function() { return /* reexport */ /* Cannot get final name for export "default" in "./packages/utils/filters.js" (known exports: timeAgo parseTime formatTime momentTime nFormatter html2Text toThousandslsFilter popupDisplayFilter displayFieldValueFilter displaySelectCaption displaySelectMultiCaption displayCaptionFilter splitFieldValueFilter dropdownDisplayFilter dateformat secondDisplayTime, known reexports: ) */ undefined; });
73842
73843
 
73843
73844
  // NAMESPACE OBJECT: ./node_modules/_vee-validate@3.4.14@vee-validate/dist/rules.js
73844
73845
  var rules_namespaceObject = {};
@@ -98196,20 +98197,549 @@ BaseSelect_src.install = function(Vue) {
98196
98197
  };
98197
98198
  // 默认导出组件
98198
98199
  /* harmony default export */ var BaseSelect = (BaseSelect_src);
98199
- // CONCATENATED MODULE: ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"6e9e9b0a-vue-loader-template"}!./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.1@vue-loader/lib??vue-loader-options!./packages/BaseSelectMulti/src/index.vue?vue&type=template&id=0416bb72&scoped=true&
98200
- var srcvue_type_template_id_0416bb72_scoped_true_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"d-control-container"},[_c('div',{staticClass:"d-control-label"},[_vm._v(" "+_vm._s(_vm.label)),(_vm.rules && _vm.rules['required'])?_c('span',{staticClass:"d-control-label-required"},[_vm._v("*")]):_vm._e()]),_c('div',{staticClass:"d-control"},[(_vm.edit === true)?_c('ValidationProvider',{attrs:{"name":_vm.label,"rules":_vm.rules},scopedSlots:_vm._u([{key:"default",fn:function(v){return [_c('Select',{class:{ 'd-error-input': v.errors.length > 0 },staticStyle:{"width":"100%"},attrs:{"placeholder":_vm.placeholder,"mode":"multiple","size":'small'},on:{"change":_vm.selectChange},model:{value:(_vm.currentValue),callback:function ($$v) {_vm.currentValue=$$v},expression:"currentValue"}},_vm._l((_vm.dataSource),function(loopSource){return _c('SelectOption',{key:loopSource.value,attrs:{"value":loopSource.value}},[_vm._v(_vm._s(loopSource.caption))])}),1),_c('div',{staticClass:"d-error-msg"},[_vm._v(" "+_vm._s(v.errors[0])+" ")])]}}],null,false,3681386207)}):_c('span',[_vm._v(_vm._s(_vm._f("displaySelectMultiCaption")(_vm.currentValue,_vm.dataSource)))])],1)])
98200
+ // CONCATENATED MODULE: ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"6e9e9b0a-vue-loader-template"}!./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.1@vue-loader/lib??vue-loader-options!./packages/BaseSelectMulti/src/index.vue?vue&type=template&id=337d49a6&scoped=true&
98201
+ var srcvue_type_template_id_337d49a6_scoped_true_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"d-control-container"},[_c('div',{staticClass:"d-control-label"},[_vm._v(" "+_vm._s(_vm.label)),(_vm.rules && _vm.rules['required'])?_c('span',{staticClass:"d-control-label-required"},[_vm._v("*")]):_vm._e()]),_c('div',{staticClass:"d-control"},[(_vm.edit === true)?_c('ValidationProvider',{attrs:{"name":_vm.label,"rules":_vm.rules},scopedSlots:_vm._u([{key:"default",fn:function(v){return [_c('Select',{class:{ 'd-error-input': v.errors.length > 0 },staticStyle:{"width":"100%"},attrs:{"placeholder":_vm.placeholder,"mode":"multiple","size":'small'},on:{"change":_vm.selectChange},model:{value:(_vm.currentValue),callback:function ($$v) {_vm.currentValue=$$v},expression:"currentValue"}},_vm._l((_vm.dataSource),function(loopSource){return _c('SelectOption',{key:loopSource.value,attrs:{"value":loopSource.value}},[_vm._v(_vm._s(loopSource.caption))])}),1),_c('div',{staticClass:"d-error-msg"},[_vm._v(" "+_vm._s(v.errors[0])+" ")])]}}],null,false,3681386207)}):_c('span',[_vm._v(_vm._s(_vm._f("displaySelectMultiCaption")(_vm.currentValue,_vm.dataSource)))])],1)])
98201
98202
  }
98202
- var srcvue_type_template_id_0416bb72_scoped_true_staticRenderFns = []
98203
+ var srcvue_type_template_id_337d49a6_scoped_true_staticRenderFns = []
98203
98204
 
98204
98205
 
98205
- // CONCATENATED MODULE: ./packages/BaseSelectMulti/src/index.vue?vue&type=template&id=0416bb72&scoped=true&
98206
+ // CONCATENATED MODULE: ./packages/BaseSelectMulti/src/index.vue?vue&type=template&id=337d49a6&scoped=true&
98207
+
98208
+ // CONCATENATED MODULE: ./packages/utils/enum.js
98209
+ const sysRowState = {
98210
+ view: 0,
98211
+ add: 1,
98212
+ update: 2,
98213
+ delete: 3
98214
+ }
98215
+ const sysFormState = {
98216
+ add: 'add',
98217
+ edit: 'edit',
98218
+ view: 'view',
98219
+ done: 10000
98220
+ }
98221
+ const calendarViewType = {
98222
+ day: 'day',
98223
+ week: 'week',
98224
+ month: 'month'
98225
+ }
98226
+ const controlType = {
98227
+ text: 'text',
98228
+ number: 'number', // 数字输入
98229
+ textarea: 'textarea',
98230
+ numberrange: 'numberrange',
98231
+ drop: 'drop',
98232
+ popup: 'popup',
98233
+ date: 'date',
98234
+ datetime: 'datetime',
98235
+ timeFrame: 'timeFrame',
98236
+ time: 'time',
98237
+ longtime: 'longtime',
98238
+ checkbox: 'checkbox',
98239
+ dropmulti: 'dropmulti',
98240
+ tabledelete: 'tabledelete',
98241
+ tableadd: 'tableadd',
98242
+ searchfilter: 'searchfilter',
98243
+ max: 'max',
98244
+ min: 'min',
98245
+ sum: 'sum',
98246
+ svg: 'svg',
98247
+ dropdict: 'dropdict',
98248
+ dropobjectstatus: 'dropobjectstatus',
98249
+ dropmultidict: 'dropmultidict',
98250
+ dropmultiobjectstatus: 'dropmultiobjectstatus',
98251
+ daterange: 'daterange',
98252
+ image: 'image',
98253
+ pulldown: 'pulldown',
98254
+ operation: 'operation',
98255
+ custombutton: 'custombutton',
98256
+ pagerbutton: 'pagerbutton',
98257
+ select: 'select',
98258
+ customCell: 'customCell',
98259
+ remotedropmulti: 'remotedropmulti',
98260
+ interval: 'interval',
98261
+ customRadio: 'customRadio',
98262
+ operationDefault: 'operationDefault',
98263
+ dateweek: 'dateweek',
98264
+ x_axis: 'x_axis',
98265
+ y_axis: 'y_axis',
98266
+ series: 'series'
98267
+ }
98268
+ const dataType = {
98269
+ frame: 'frame',
98270
+ grid: 'grid',
98271
+ gridselect: 'gridselect',
98272
+ piccard: 'piccard'
98273
+ }
98274
+ const sysActionType = {
98275
+ matSale: '200',
98276
+ flutTypMat: '201',
98277
+ artMat: '300',
98278
+ docNumInventoryTrans: '310' // 订单号跳转库存事务查询
98279
+ }
98280
+
98281
+ const moduleCodeEnum = {
98282
+ custMatViewInfo: 'custMatViewInfo' //客户物料详情
98283
+ }
98284
+ const dictCodeEnum = {
98285
+ UOM: 'UOM', //单位
98286
+ MaterialType: 'MaterialType', //物料类型
98287
+ TaxRate: 'TaxRate' //税率
98288
+ }
98289
+
98290
+ // EXTERNAL MODULE: ./node_modules/_xe-utils@3.5.4@xe-utils/index.js
98291
+ var _xe_utils_3_5_4_xe_utils = __webpack_require__("fda1");
98292
+ var _xe_utils_3_5_4_xe_utils_default = /*#__PURE__*/__webpack_require__.n(_xe_utils_3_5_4_xe_utils);
98293
+
98294
+ // CONCATENATED MODULE: ./packages/utils/filters.js
98295
+
98296
+
98297
+
98298
+ // import { isNumber } from 'util'
98299
+ // import camelCase from 'lodash/camelCase'
98300
+ function pluralize(time, label) {
98301
+ if (time === 1) {
98302
+ return time + label
98303
+ }
98304
+ return time + label + 's'
98305
+ }
98306
+
98307
+ function timeAgo(time) {
98308
+ const between = Date.now() / 1000 - Number(time)
98309
+ if (between < 3600) {
98310
+ return pluralize(~~(between / 60), ' minute')
98311
+ } else if (between < 86400) {
98312
+ return pluralize(~~(between / 3600), ' hour')
98313
+ } else {
98314
+ return pluralize(~~(between / 86400), ' day')
98315
+ }
98316
+ }
98317
+
98318
+ function parseTime(time, cFormat) {
98319
+ if (arguments.length === 0) {
98320
+ return null
98321
+ }
98322
+
98323
+ if ((time + '').length === 10) {
98324
+ time = +time * 1000
98325
+ }
98326
+
98327
+ const format = cFormat || '{y}-{m}-{d} {h}:{i}:{s}'
98328
+ let date
98329
+ if (typeof time === 'object') {
98330
+ date = time
98331
+ } else {
98332
+ date = new Date(parseInt(time))
98333
+ }
98334
+ const formatObj = {
98335
+ y: date.getFullYear(),
98336
+ m: date.getMonth() + 1,
98337
+ d: date.getDate(),
98338
+ h: date.getHours(),
98339
+ i: date.getMinutes(),
98340
+ s: date.getSeconds(),
98341
+ a: date.getDay()
98342
+ }
98343
+ const timeStr = format.replace(/{(y|m|d|h|i|s|a)+}/g, (result, key) => {
98344
+ let value = formatObj[key]
98345
+ if (key === 'a')
98346
+ return ['一', '二', '三', '四', '五', '六', '日'][value - 1]
98347
+ if (result.length > 0 && value < 10) {
98348
+ value = '0' + value
98349
+ }
98350
+ return value || 0
98351
+ })
98352
+ return timeStr
98353
+ }
98354
+
98355
+ function formatTime(time, option) {
98356
+ time = +time * 1000
98357
+ const d = new Date(time)
98358
+ const now = Date.now()
98359
+
98360
+ const diff = (now - d) / 1000
98361
+
98362
+ if (diff < 30) {
98363
+ return '刚刚'
98364
+ } else if (diff < 3600) {
98365
+ // less 1 hour
98366
+ return Math.ceil(diff / 60) + '分钟前'
98367
+ } else if (diff < 3600 * 24) {
98368
+ return Math.ceil(diff / 3600) + '小时前'
98369
+ } else if (diff < 3600 * 24 * 2) {
98370
+ return '1天前'
98371
+ }
98372
+ if (option) {
98373
+ return parseTime(time, option)
98374
+ } else {
98375
+ return (
98376
+ d.getMonth() +
98377
+ 1 +
98378
+ '月' +
98379
+ d.getDate() +
98380
+ '日' +
98381
+ d.getHours() +
98382
+ '时' +
98383
+ d.getMinutes() +
98384
+ '分'
98385
+ )
98386
+ }
98387
+ }
98388
+
98389
+ function momentTime(time, cFormat) {
98390
+ return moment_default()(time).format(cFormat)
98391
+ }
98392
+ /* 数字 格式化 */
98393
+ function nFormatter(num, digits) {
98394
+ const si = [
98395
+ { value: 1e18, symbol: 'E' },
98396
+ { value: 1e15, symbol: 'P' },
98397
+ { value: 1e12, symbol: 'T' },
98398
+ { value: 1e9, symbol: 'G' },
98399
+ { value: 1e6, symbol: 'M' },
98400
+ { value: 1e3, symbol: 'k' }
98401
+ ]
98402
+ for (let i = 0; i < si.length; i++) {
98403
+ if (num >= si[i].value) {
98404
+ return (
98405
+ (num / si[i].value + 0.1)
98406
+ .toFixed(digits)
98407
+ .replace(/\.0+$|(\.[0-9]*[1-9])0+$/, '$1') + si[i].symbol
98408
+ )
98409
+ }
98410
+ }
98411
+ return num.toString()
98412
+ }
98413
+
98414
+ function html2Text(val) {
98415
+ const div = document.createElement('div')
98416
+ div.innerHTML = val
98417
+ return div.textContent || div.innerText
98418
+ }
98419
+
98420
+ function toThousandslsFilter(num) {
98421
+ return (+num || 0)
98422
+ .toString()
98423
+ .replace(/^-?\d+/g, m => m.replace(/(?=(?!\b)(\d{3})+$)/g, ','))
98424
+ }
98425
+
98426
+ function popupDisplayFilter(value, colInfo) {
98427
+ let linkField = colInfo.popupCaptionField.split('.')
98428
+ let returnValue = value
98429
+ for (let i = 0; i < linkField.length; i++) {
98430
+ if (
98431
+ returnValue[linkField[i]] === undefined ||
98432
+ returnValue[linkField[i]] === null
98433
+ ) {
98434
+ return null
98435
+ }
98436
+ returnValue = returnValue[linkField[i]]
98437
+ }
98438
+ return returnValue
98439
+ }
98440
+ function displayFieldValueFilter(value, field) {
98441
+ if (value === null) {
98442
+ return value
98443
+ }
98444
+ let linkField = field.split('.')
98445
+ let returnValue = value
98446
+ for (let i = 0; i < linkField.length; i++) {
98447
+ if (
98448
+ returnValue[linkField[i]] === undefined ||
98449
+ returnValue[linkField[i]] === null
98450
+ ) {
98451
+ return null
98452
+ }
98453
+ returnValue = returnValue[linkField[i]]
98454
+ }
98455
+ return returnValue
98456
+ }
98457
+
98458
+ function displaySelectCaption(value, dataSource) {
98459
+ let tempItems = dataSource.filter(filterItem => {
98460
+ return filterItem.value === value
98461
+ })
98462
+ if (tempItems.length > 0) {
98463
+ return tempItems[0].caption
98464
+ } else {
98465
+ return value
98466
+ }
98467
+ }
98468
+ function displaySelectMultiCaption(value, dataSource) {
98469
+ if (value && value.length > 0) {
98470
+ let tempValue = ''
98471
+ for (let i = 0; i < value.length; i++) {
98472
+ let tempCurrentValue = value[i]
98473
+ let tempItems = dataSource.filter(filterItem => {
98474
+ return filterItem.value === tempCurrentValue
98475
+ })
98476
+ if (tempItems.length > 0) {
98477
+ tempCurrentValue = tempItems[0].caption
98478
+ }
98479
+ tempValue = tempValue + tempCurrentValue
98480
+ if (i < value.length - 1) {
98481
+ tempValue = tempValue + ','
98482
+ }
98483
+ }
98484
+ return tempValue
98485
+ }
98486
+ return null
98487
+ }
98488
+
98489
+ function displayCaptionFilter(value, colInfo) {
98490
+ let linkField = colInfo.field.split('.')
98491
+ let fieldValue = value
98492
+ for (let i = 0; i < linkField.length; i++) {
98493
+ if (
98494
+ fieldValue[linkField[i]] === undefined ||
98495
+ fieldValue[linkField[i]] === null
98496
+ ) {
98497
+ return null
98498
+ }
98499
+ fieldValue = fieldValue[linkField[i]]
98500
+ }
98501
+ if (colInfo.controlType === controlType.drop) {
98502
+ let displayValue = colInfo.linkModuleData.dataSource.filter(item => {
98503
+ return item[colInfo.linkValueField] === fieldValue
98504
+ })
98505
+ if (displayValue.length > 0) {
98506
+ return displayValue[0][colInfo.linkCaptionField]
98507
+ }
98508
+ }
98509
+ if (colInfo.controlType === controlType.checkbox) {
98510
+ if (fieldValue === true || fieldValue === 'true') {
98511
+ fieldValue = '是'
98512
+ } else {
98513
+ fieldValue = '否'
98514
+ }
98515
+ }
98516
+ if (colInfo.controlType === controlType.date) {
98517
+ let dateTimeFormat = colInfo.format ? colInfo.format : 'YYYY-MM-DD'
98518
+ fieldValue = moment_default()(fieldValue).format(dateTimeFormat)
98519
+ }
98520
+ if (colInfo.controlType === controlType.datetime) {
98521
+ let dateTimeFormat = colInfo.format
98522
+ ? colInfo.format
98523
+ : 'YYYY-MM-DD HH:mm:ss'
98524
+ fieldValue = moment_default()(fieldValue).format(dateTimeFormat)
98525
+ }
98526
+ if (colInfo.controlType === controlType.time) {
98527
+ let timeFormat = colInfo.format ? colInfo.format : 'HH:mm:ss'
98528
+ fieldValue = moment_default()('1970-01-01 ' + fieldValue).format(timeFormat)
98529
+ }
98530
+ if (colInfo.controlType === controlType.longtime) {
98531
+ let tempFieldValue = ''
98532
+ let tempDays = 0
98533
+ if (fieldValue.indexOf('.') > 0) {
98534
+ let arr = fieldValue.split('.')
98535
+ tempDays = arr[0]
98536
+ }
98537
+ //-------------------------
98538
+ // let tempYears = moment.duration(fieldValue).years()
98539
+ // if (tempYears > 0) {
98540
+ // tempFieldValue = tempYears + '年'
98541
+ // }
98542
+ // let tempMonths = moment.duration(fieldValue).months()
98543
+ // if (tempMonths > 0) {
98544
+ // tempFieldValue += tempMonths + '月'
98545
+ // }
98546
+ // let tempDays = moment.duration(fieldValue).days()
98547
+ //------------------------------
98548
+ if (tempDays > 0) {
98549
+ tempFieldValue += tempDays + '天'
98550
+ }
98551
+ tempFieldValue =
98552
+ tempFieldValue +
98553
+ moment_default.a.duration(fieldValue).hours() +
98554
+ '小时' +
98555
+ moment_default.a.duration(fieldValue).minutes() +
98556
+ '分钟' +
98557
+ moment_default.a.duration(fieldValue).seconds() +
98558
+ '秒'
98559
+ fieldValue = tempFieldValue
98560
+ }
98561
+
98562
+ if (colInfo.controlType === controlType.dropmulti) {
98563
+ let returnValue = ''
98564
+ for (let x = 0; x < colInfo.linkModuleData.dataSource.length; x++) {
98565
+ if (
98566
+ fieldValue.indexOf(
98567
+ colInfo.linkModuleData.dataSource[x][colInfo.linkValueField]
98568
+ ) >= 0
98569
+ ) {
98570
+ returnValue =
98571
+ returnValue +
98572
+ colInfo.linkModuleData.dataSource[x][colInfo.linkCaptionField] +
98573
+ ','
98574
+ }
98575
+ }
98576
+ if (returnValue.length > 0) {
98577
+ returnValue = returnValue.substr(0, returnValue.length - 1)
98578
+ }
98579
+ return returnValue
98580
+ }
98581
+
98582
+ if (colInfo.controlType === controlType.popup) {
98583
+ let tempField = colInfo.field
98584
+ if (colInfo.linkAttrField) {
98585
+ tempField = colInfo.linkAttrField + '.' + colInfo.linkCaptionField
98586
+ }
98587
+ let linkField = tempField.split('.')
98588
+ let returnValue = value
98589
+ for (let i = 0; i < linkField.length; i++) {
98590
+ if (
98591
+ returnValue[linkField[i]] === undefined ||
98592
+ returnValue[linkField[i]] === null
98593
+ ) {
98594
+ return null
98595
+ }
98596
+ returnValue = returnValue[linkField[i]]
98597
+ }
98598
+ return returnValue
98599
+ }
98600
+
98601
+ if (colInfo.displayFormat) {
98602
+ if (colInfo.displayFormat.indexOf('p') === 0) {
98603
+ // 百分比显示
98604
+ let percentNumber = colInfo.displayFormat.substr(1)
98605
+ return (fieldValue * 100).toFixed(parseInt(percentNumber)) + '%'
98606
+ }
98607
+ }
98608
+
98609
+ return fieldValue
98610
+ }
98611
+
98612
+ function splitFieldValueFilter(value, field) {
98613
+ let linkField = field.split('.')
98614
+ let tempValue = value
98615
+ for (let i = 0; i < linkField.length; i++) {
98616
+ tempValue = tempValue[linkField[i]]
98617
+ if (tempValue === undefined || tempValue === null) {
98618
+ return null
98619
+ }
98620
+ }
98621
+ return tempValue
98622
+ }
98623
+
98624
+ function dropdownDisplayFilter(value, colInfo) {
98625
+ let linkField = colInfo.field.split('.')
98626
+ let fieldValue = value
98627
+ for (let i = 0; i < linkField.length; i++) {
98628
+ if (
98629
+ fieldValue[linkField[i]] === undefined ||
98630
+ fieldValue[linkField[i]] === null
98631
+ ) {
98632
+ return null
98633
+ }
98634
+ fieldValue = fieldValue[linkField[i]]
98635
+ }
98636
+ if (colInfo.controlType === 'Drop') {
98637
+ let displayValue = colInfo.source.filter(item => {
98638
+ return item[colInfo.sourceValueField] === fieldValue
98639
+ })
98640
+ if (displayValue.length > 0) {
98641
+ return displayValue[0][colInfo.sourceCaptionField]
98642
+ }
98643
+ }
98644
+ if (colInfo.controlType === 'CheckBox') {
98645
+ if (fieldValue === true || fieldValue === 'true') {
98646
+ fieldValue = '是'
98647
+ } else {
98648
+ fieldValue = '否'
98649
+ }
98650
+ }
98651
+ if (colInfo.controlType === 'DateTime') {
98652
+ let dateTimeFormat = colInfo.format ? colInfo.format : 'YYYY-MM-DD'
98653
+ fieldValue = moment_default()(fieldValue).format(dateTimeFormat)
98654
+ }
98655
+ if (colInfo.controlType === 'Time') {
98656
+ let timeFormat = colInfo.format ? colInfo.format : 'HH:mm:ss'
98657
+ fieldValue = moment_default()('1970-01-01 ' + fieldValue).format(timeFormat)
98658
+ }
98659
+
98660
+ if (colInfo.controlType === 'Popup') {
98661
+ let linkField = colInfo.popupCaptionField.split('.')
98662
+ let returnValue = value
98663
+ for (let i = 0; i < linkField.length; i++) {
98664
+ if (
98665
+ returnValue[linkField[i]] === undefined ||
98666
+ returnValue[linkField[i]] === null
98667
+ ) {
98668
+ return null
98669
+ }
98670
+ returnValue = returnValue[linkField[i]]
98671
+ }
98672
+
98673
+ return returnValue
98674
+ }
98675
+ if (colInfo.controlType === 'PopupLink') {
98676
+ let linkField = colInfo.popupCaptionField.split('.')
98677
+ let returnValue = value
98678
+ for (let i = 0; i < linkField.length; i++) {
98679
+ if (
98680
+ returnValue[linkField[i]] === undefined ||
98681
+ returnValue[linkField[i]] === null
98682
+ ) {
98683
+ return null
98684
+ }
98685
+ returnValue = returnValue[linkField[i]]
98686
+ }
98687
+
98688
+ return returnValue
98689
+ }
98690
+ return fieldValue
98691
+ }
98692
+
98693
+ function dateformat(time, cFormat) {
98694
+ return moment_default()(time).format(cFormat)
98695
+ }
98696
+
98697
+ function secondDisplayTime(value) {
98698
+ let second = _xe_utils_3_5_4_xe_utils_default.a.toInteger(value)
98699
+ let dayValue = _xe_utils_3_5_4_xe_utils_default.a.floor(_xe_utils_3_5_4_xe_utils_default.a.divide(second, 24 * 3600))
98700
+ let hourValue = 0
98701
+ let minuteValue = 0
98702
+ let secondValue = 0
98703
+ second = _xe_utils_3_5_4_xe_utils_default.a.subtract(second, dayValue * 3600 * 24)
98704
+ if (second >= 0) {
98705
+ //设置小时数
98706
+ hourValue = _xe_utils_3_5_4_xe_utils_default.a.floor(_xe_utils_3_5_4_xe_utils_default.a.divide(second, 3600))
98707
+ //小时之后的剩余秒数
98708
+ second = _xe_utils_3_5_4_xe_utils_default.a.subtract(second, hourValue * 3600)
98709
+ }
98710
+ if (second >= 0) {
98711
+ //设置分钟
98712
+ minuteValue = _xe_utils_3_5_4_xe_utils_default.a.floor(_xe_utils_3_5_4_xe_utils_default.a.divide(second, 60))
98713
+ //小时之后的剩余秒数
98714
+ second = _xe_utils_3_5_4_xe_utils_default.a.subtract(second, minuteValue * 60)
98715
+ }
98716
+ if (second >= 0) {
98717
+ //设置秒数
98718
+ secondValue = second
98719
+ }
98720
+
98721
+ return (
98722
+ dayValue +
98723
+ '天' +
98724
+ hourValue +
98725
+ '小时' +
98726
+ minuteValue +
98727
+ '分钟' +
98728
+ secondValue +
98729
+ '秒'
98730
+ )
98731
+ }
98206
98732
 
98207
98733
  // CONCATENATED MODULE: ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.10.1@vue-loader/lib??vue-loader-options!./packages/BaseSelectMulti/src/index.vue?vue&type=script&lang=js&
98208
98734
 
98209
98735
 
98210
98736
 
98737
+
98211
98738
  /* harmony default export */ var BaseSelectMulti_srcvue_type_script_lang_js_ = ({
98212
98739
  name: 'BaseSelectMulti',
98740
+ filters:{
98741
+ displaySelectMultiCaption:displaySelectMultiCaption
98742
+ },
98213
98743
  components:{
98214
98744
  Select: es_select,
98215
98745
  SelectOption:es_select.Option,
@@ -98291,8 +98821,8 @@ var srcvue_type_template_id_0416bb72_scoped_true_staticRenderFns = []
98291
98821
 
98292
98822
  // CONCATENATED MODULE: ./packages/BaseSelectMulti/src/index.vue?vue&type=script&lang=js&
98293
98823
  /* harmony default export */ var packages_BaseSelectMulti_srcvue_type_script_lang_js_ = (BaseSelectMulti_srcvue_type_script_lang_js_);
98294
- // EXTERNAL MODULE: ./packages/BaseSelectMulti/src/index.vue?vue&type=style&index=1&id=0416bb72&prod&lang=less&
98295
- var srcvue_type_style_index_1_id_0416bb72_prod_lang_less_ = __webpack_require__("d21f");
98824
+ // EXTERNAL MODULE: ./packages/BaseSelectMulti/src/index.vue?vue&type=style&index=1&id=337d49a6&prod&lang=less&
98825
+ var srcvue_type_style_index_1_id_337d49a6_prod_lang_less_ = __webpack_require__("22c6");
98296
98826
 
98297
98827
  // CONCATENATED MODULE: ./packages/BaseSelectMulti/src/index.vue
98298
98828
 
@@ -98305,11 +98835,11 @@ var srcvue_type_style_index_1_id_0416bb72_prod_lang_less_ = __webpack_require__(
98305
98835
 
98306
98836
  var BaseSelectMulti_src_component = normalizeComponent(
98307
98837
  packages_BaseSelectMulti_srcvue_type_script_lang_js_,
98308
- srcvue_type_template_id_0416bb72_scoped_true_render,
98309
- srcvue_type_template_id_0416bb72_scoped_true_staticRenderFns,
98838
+ srcvue_type_template_id_337d49a6_scoped_true_render,
98839
+ srcvue_type_template_id_337d49a6_scoped_true_staticRenderFns,
98310
98840
  false,
98311
98841
  null,
98312
- "0416bb72",
98842
+ "337d49a6",
98313
98843
  null
98314
98844
 
98315
98845
  )
@@ -99750,10 +100280,6 @@ var srcvue_type_template_id_862292e8_scoped_true_staticRenderFns = []
99750
100280
 
99751
100281
  // CONCATENATED MODULE: ./packages/BaseNumberInput/src/index.vue?vue&type=template&id=862292e8&scoped=true&
99752
100282
 
99753
- // EXTERNAL MODULE: ./node_modules/_xe-utils@3.5.4@xe-utils/index.js
99754
- var _xe_utils_3_5_4_xe_utils = __webpack_require__("fda1");
99755
- var _xe_utils_3_5_4_xe_utils_default = /*#__PURE__*/__webpack_require__.n(_xe_utils_3_5_4_xe_utils);
99756
-
99757
100283
  // CONCATENATED MODULE: ./node_modules/_ant-design-vue@1.7.8@ant-design-vue/es/vc-m-feedback/src/PropTypes.js
99758
100284
 
99759
100285
 
@@ -101346,88 +101872,6 @@ var srcvue_type_template_id_f2096c94_scoped_true_staticRenderFns = []
101346
101872
 
101347
101873
  // CONCATENATED MODULE: ./packages/BasePulldown/src/index.vue?vue&type=template&id=f2096c94&scoped=true&
101348
101874
 
101349
- // CONCATENATED MODULE: ./packages/utils/enum.js
101350
- const sysRowState = {
101351
- view: 0,
101352
- add: 1,
101353
- update: 2,
101354
- delete: 3
101355
- }
101356
- const sysFormState = {
101357
- add: 'add',
101358
- edit: 'edit',
101359
- view: 'view',
101360
- done: 10000
101361
- }
101362
- const calendarViewType = {
101363
- day: 'day',
101364
- week: 'week',
101365
- month: 'month'
101366
- }
101367
- const controlType = {
101368
- text: 'text',
101369
- number: 'number', // 数字输入
101370
- textarea: 'textarea',
101371
- numberrange: 'numberrange',
101372
- drop: 'drop',
101373
- popup: 'popup',
101374
- date: 'date',
101375
- datetime: 'datetime',
101376
- timeFrame: 'timeFrame',
101377
- time: 'time',
101378
- longtime: 'longtime',
101379
- checkbox: 'checkbox',
101380
- dropmulti: 'dropmulti',
101381
- tabledelete: 'tabledelete',
101382
- tableadd: 'tableadd',
101383
- searchfilter: 'searchfilter',
101384
- max: 'max',
101385
- min: 'min',
101386
- sum: 'sum',
101387
- svg: 'svg',
101388
- dropdict: 'dropdict',
101389
- dropobjectstatus: 'dropobjectstatus',
101390
- dropmultidict: 'dropmultidict',
101391
- dropmultiobjectstatus: 'dropmultiobjectstatus',
101392
- daterange: 'daterange',
101393
- image: 'image',
101394
- pulldown: 'pulldown',
101395
- operation: 'operation',
101396
- custombutton: 'custombutton',
101397
- pagerbutton: 'pagerbutton',
101398
- select: 'select',
101399
- customCell: 'customCell',
101400
- remotedropmulti: 'remotedropmulti',
101401
- interval: 'interval',
101402
- customRadio: 'customRadio',
101403
- operationDefault: 'operationDefault',
101404
- dateweek: 'dateweek',
101405
- x_axis: 'x_axis',
101406
- y_axis: 'y_axis',
101407
- series: 'series'
101408
- }
101409
- const dataType = {
101410
- frame: 'frame',
101411
- grid: 'grid',
101412
- gridselect: 'gridselect',
101413
- piccard: 'piccard'
101414
- }
101415
- const sysActionType = {
101416
- matSale: '200',
101417
- flutTypMat: '201',
101418
- artMat: '300',
101419
- docNumInventoryTrans: '310' // 订单号跳转库存事务查询
101420
- }
101421
-
101422
- const moduleCodeEnum = {
101423
- custMatViewInfo: 'custMatViewInfo' //客户物料详情
101424
- }
101425
- const dictCodeEnum = {
101426
- UOM: 'UOM', //单位
101427
- MaterialType: 'MaterialType', //物料类型
101428
- TaxRate: 'TaxRate' //税率
101429
- }
101430
-
101431
101875
  // CONCATENATED MODULE: ./packages/utils/common.js
101432
101876
  /**
101433
101877
  * 替换掩码参数字符串
@@ -104024,6 +104468,7 @@ var rules_double = {
104024
104468
 
104025
104469
 
104026
104470
 
104471
+
104027
104472
  // import BaseGridView from './BaseGridView/index';
104028
104473
 
104029
104474
  // 存储组件列表