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.
@@ -8568,6 +8568,17 @@ function has (obj, property) {
8568
8568
  module.exports = has
8569
8569
 
8570
8570
 
8571
+ /***/ }),
8572
+
8573
+ /***/ "22c6":
8574
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
8575
+
8576
+ "use strict";
8577
+ /* 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");
8578
+ /* 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__);
8579
+ /* unused harmony reexport * */
8580
+
8581
+
8571
8582
  /***/ }),
8572
8583
 
8573
8584
  /***/ "23e6":
@@ -34215,6 +34226,13 @@ function last(array) {
34215
34226
  module.exports = last;
34216
34227
 
34217
34228
 
34229
+ /***/ }),
34230
+
34231
+ /***/ "6e4f":
34232
+ /***/ (function(module, exports, __webpack_require__) {
34233
+
34234
+ // extracted by mini-css-extract-plugin
34235
+
34218
34236
  /***/ }),
34219
34237
 
34220
34238
  /***/ "6e9f":
@@ -36665,13 +36683,6 @@ exports.default = _default;
36665
36683
 
36666
36684
  /***/ }),
36667
36685
 
36668
- /***/ "7b5d":
36669
- /***/ (function(module, exports, __webpack_require__) {
36670
-
36671
- // extracted by mini-css-extract-plugin
36672
-
36673
- /***/ }),
36674
-
36675
36686
  /***/ "7bac":
36676
36687
  /***/ (function(module, exports, __webpack_require__) {
36677
36688
 
@@ -63381,17 +63392,6 @@ function destructuring (destination, sources) {
63381
63392
  module.exports = destructuring
63382
63393
 
63383
63394
 
63384
- /***/ }),
63385
-
63386
- /***/ "d21f":
63387
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
63388
-
63389
- "use strict";
63390
- /* 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");
63391
- /* 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__);
63392
- /* unused harmony reexport * */
63393
-
63394
-
63395
63395
  /***/ }),
63396
63396
 
63397
63397
  /***/ "d25f":
@@ -73848,6 +73848,7 @@ __webpack_require__.d(__webpack_exports__, "BaseToolStatus", function() { return
73848
73848
  __webpack_require__.d(__webpack_exports__, "BasePulldown", function() { return /* reexport */ BasePulldown; });
73849
73849
  __webpack_require__.d(__webpack_exports__, "BaseIntervalInput", function() { return /* reexport */ BaseIntervalInput; });
73850
73850
  __webpack_require__.d(__webpack_exports__, "BaseForm", function() { return /* reexport */ BaseForm; });
73851
+ __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; });
73851
73852
 
73852
73853
  // NAMESPACE OBJECT: ./node_modules/_vee-validate@3.4.14@vee-validate/dist/rules.js
73853
73854
  var rules_namespaceObject = {};
@@ -98205,20 +98206,549 @@ BaseSelect_src.install = function(Vue) {
98205
98206
  };
98206
98207
  // 默认导出组件
98207
98208
  /* harmony default export */ var BaseSelect = (BaseSelect_src);
98208
- // 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&
98209
- 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)])
98209
+ // 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&
98210
+ 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)])
98210
98211
  }
98211
- var srcvue_type_template_id_0416bb72_scoped_true_staticRenderFns = []
98212
+ var srcvue_type_template_id_337d49a6_scoped_true_staticRenderFns = []
98212
98213
 
98213
98214
 
98214
- // CONCATENATED MODULE: ./packages/BaseSelectMulti/src/index.vue?vue&type=template&id=0416bb72&scoped=true&
98215
+ // CONCATENATED MODULE: ./packages/BaseSelectMulti/src/index.vue?vue&type=template&id=337d49a6&scoped=true&
98216
+
98217
+ // CONCATENATED MODULE: ./packages/utils/enum.js
98218
+ const sysRowState = {
98219
+ view: 0,
98220
+ add: 1,
98221
+ update: 2,
98222
+ delete: 3
98223
+ }
98224
+ const sysFormState = {
98225
+ add: 'add',
98226
+ edit: 'edit',
98227
+ view: 'view',
98228
+ done: 10000
98229
+ }
98230
+ const calendarViewType = {
98231
+ day: 'day',
98232
+ week: 'week',
98233
+ month: 'month'
98234
+ }
98235
+ const controlType = {
98236
+ text: 'text',
98237
+ number: 'number', // 数字输入
98238
+ textarea: 'textarea',
98239
+ numberrange: 'numberrange',
98240
+ drop: 'drop',
98241
+ popup: 'popup',
98242
+ date: 'date',
98243
+ datetime: 'datetime',
98244
+ timeFrame: 'timeFrame',
98245
+ time: 'time',
98246
+ longtime: 'longtime',
98247
+ checkbox: 'checkbox',
98248
+ dropmulti: 'dropmulti',
98249
+ tabledelete: 'tabledelete',
98250
+ tableadd: 'tableadd',
98251
+ searchfilter: 'searchfilter',
98252
+ max: 'max',
98253
+ min: 'min',
98254
+ sum: 'sum',
98255
+ svg: 'svg',
98256
+ dropdict: 'dropdict',
98257
+ dropobjectstatus: 'dropobjectstatus',
98258
+ dropmultidict: 'dropmultidict',
98259
+ dropmultiobjectstatus: 'dropmultiobjectstatus',
98260
+ daterange: 'daterange',
98261
+ image: 'image',
98262
+ pulldown: 'pulldown',
98263
+ operation: 'operation',
98264
+ custombutton: 'custombutton',
98265
+ pagerbutton: 'pagerbutton',
98266
+ select: 'select',
98267
+ customCell: 'customCell',
98268
+ remotedropmulti: 'remotedropmulti',
98269
+ interval: 'interval',
98270
+ customRadio: 'customRadio',
98271
+ operationDefault: 'operationDefault',
98272
+ dateweek: 'dateweek',
98273
+ x_axis: 'x_axis',
98274
+ y_axis: 'y_axis',
98275
+ series: 'series'
98276
+ }
98277
+ const dataType = {
98278
+ frame: 'frame',
98279
+ grid: 'grid',
98280
+ gridselect: 'gridselect',
98281
+ piccard: 'piccard'
98282
+ }
98283
+ const sysActionType = {
98284
+ matSale: '200',
98285
+ flutTypMat: '201',
98286
+ artMat: '300',
98287
+ docNumInventoryTrans: '310' // 订单号跳转库存事务查询
98288
+ }
98289
+
98290
+ const moduleCodeEnum = {
98291
+ custMatViewInfo: 'custMatViewInfo' //客户物料详情
98292
+ }
98293
+ const dictCodeEnum = {
98294
+ UOM: 'UOM', //单位
98295
+ MaterialType: 'MaterialType', //物料类型
98296
+ TaxRate: 'TaxRate' //税率
98297
+ }
98298
+
98299
+ // EXTERNAL MODULE: ./node_modules/_xe-utils@3.5.4@xe-utils/index.js
98300
+ var _xe_utils_3_5_4_xe_utils = __webpack_require__("fda1");
98301
+ var _xe_utils_3_5_4_xe_utils_default = /*#__PURE__*/__webpack_require__.n(_xe_utils_3_5_4_xe_utils);
98302
+
98303
+ // CONCATENATED MODULE: ./packages/utils/filters.js
98304
+
98305
+
98306
+
98307
+ // import { isNumber } from 'util'
98308
+ // import camelCase from 'lodash/camelCase'
98309
+ function pluralize(time, label) {
98310
+ if (time === 1) {
98311
+ return time + label
98312
+ }
98313
+ return time + label + 's'
98314
+ }
98315
+
98316
+ function timeAgo(time) {
98317
+ const between = Date.now() / 1000 - Number(time)
98318
+ if (between < 3600) {
98319
+ return pluralize(~~(between / 60), ' minute')
98320
+ } else if (between < 86400) {
98321
+ return pluralize(~~(between / 3600), ' hour')
98322
+ } else {
98323
+ return pluralize(~~(between / 86400), ' day')
98324
+ }
98325
+ }
98326
+
98327
+ function parseTime(time, cFormat) {
98328
+ if (arguments.length === 0) {
98329
+ return null
98330
+ }
98331
+
98332
+ if ((time + '').length === 10) {
98333
+ time = +time * 1000
98334
+ }
98335
+
98336
+ const format = cFormat || '{y}-{m}-{d} {h}:{i}:{s}'
98337
+ let date
98338
+ if (typeof time === 'object') {
98339
+ date = time
98340
+ } else {
98341
+ date = new Date(parseInt(time))
98342
+ }
98343
+ const formatObj = {
98344
+ y: date.getFullYear(),
98345
+ m: date.getMonth() + 1,
98346
+ d: date.getDate(),
98347
+ h: date.getHours(),
98348
+ i: date.getMinutes(),
98349
+ s: date.getSeconds(),
98350
+ a: date.getDay()
98351
+ }
98352
+ const timeStr = format.replace(/{(y|m|d|h|i|s|a)+}/g, (result, key) => {
98353
+ let value = formatObj[key]
98354
+ if (key === 'a')
98355
+ return ['一', '二', '三', '四', '五', '六', '日'][value - 1]
98356
+ if (result.length > 0 && value < 10) {
98357
+ value = '0' + value
98358
+ }
98359
+ return value || 0
98360
+ })
98361
+ return timeStr
98362
+ }
98363
+
98364
+ function formatTime(time, option) {
98365
+ time = +time * 1000
98366
+ const d = new Date(time)
98367
+ const now = Date.now()
98368
+
98369
+ const diff = (now - d) / 1000
98370
+
98371
+ if (diff < 30) {
98372
+ return '刚刚'
98373
+ } else if (diff < 3600) {
98374
+ // less 1 hour
98375
+ return Math.ceil(diff / 60) + '分钟前'
98376
+ } else if (diff < 3600 * 24) {
98377
+ return Math.ceil(diff / 3600) + '小时前'
98378
+ } else if (diff < 3600 * 24 * 2) {
98379
+ return '1天前'
98380
+ }
98381
+ if (option) {
98382
+ return parseTime(time, option)
98383
+ } else {
98384
+ return (
98385
+ d.getMonth() +
98386
+ 1 +
98387
+ '月' +
98388
+ d.getDate() +
98389
+ '日' +
98390
+ d.getHours() +
98391
+ '时' +
98392
+ d.getMinutes() +
98393
+ '分'
98394
+ )
98395
+ }
98396
+ }
98397
+
98398
+ function momentTime(time, cFormat) {
98399
+ return moment_default()(time).format(cFormat)
98400
+ }
98401
+ /* 数字 格式化 */
98402
+ function nFormatter(num, digits) {
98403
+ const si = [
98404
+ { value: 1e18, symbol: 'E' },
98405
+ { value: 1e15, symbol: 'P' },
98406
+ { value: 1e12, symbol: 'T' },
98407
+ { value: 1e9, symbol: 'G' },
98408
+ { value: 1e6, symbol: 'M' },
98409
+ { value: 1e3, symbol: 'k' }
98410
+ ]
98411
+ for (let i = 0; i < si.length; i++) {
98412
+ if (num >= si[i].value) {
98413
+ return (
98414
+ (num / si[i].value + 0.1)
98415
+ .toFixed(digits)
98416
+ .replace(/\.0+$|(\.[0-9]*[1-9])0+$/, '$1') + si[i].symbol
98417
+ )
98418
+ }
98419
+ }
98420
+ return num.toString()
98421
+ }
98422
+
98423
+ function html2Text(val) {
98424
+ const div = document.createElement('div')
98425
+ div.innerHTML = val
98426
+ return div.textContent || div.innerText
98427
+ }
98428
+
98429
+ function toThousandslsFilter(num) {
98430
+ return (+num || 0)
98431
+ .toString()
98432
+ .replace(/^-?\d+/g, m => m.replace(/(?=(?!\b)(\d{3})+$)/g, ','))
98433
+ }
98434
+
98435
+ function popupDisplayFilter(value, colInfo) {
98436
+ let linkField = colInfo.popupCaptionField.split('.')
98437
+ let returnValue = value
98438
+ for (let i = 0; i < linkField.length; i++) {
98439
+ if (
98440
+ returnValue[linkField[i]] === undefined ||
98441
+ returnValue[linkField[i]] === null
98442
+ ) {
98443
+ return null
98444
+ }
98445
+ returnValue = returnValue[linkField[i]]
98446
+ }
98447
+ return returnValue
98448
+ }
98449
+ function displayFieldValueFilter(value, field) {
98450
+ if (value === null) {
98451
+ return value
98452
+ }
98453
+ let linkField = field.split('.')
98454
+ let returnValue = value
98455
+ for (let i = 0; i < linkField.length; i++) {
98456
+ if (
98457
+ returnValue[linkField[i]] === undefined ||
98458
+ returnValue[linkField[i]] === null
98459
+ ) {
98460
+ return null
98461
+ }
98462
+ returnValue = returnValue[linkField[i]]
98463
+ }
98464
+ return returnValue
98465
+ }
98466
+
98467
+ function displaySelectCaption(value, dataSource) {
98468
+ let tempItems = dataSource.filter(filterItem => {
98469
+ return filterItem.value === value
98470
+ })
98471
+ if (tempItems.length > 0) {
98472
+ return tempItems[0].caption
98473
+ } else {
98474
+ return value
98475
+ }
98476
+ }
98477
+ function displaySelectMultiCaption(value, dataSource) {
98478
+ if (value && value.length > 0) {
98479
+ let tempValue = ''
98480
+ for (let i = 0; i < value.length; i++) {
98481
+ let tempCurrentValue = value[i]
98482
+ let tempItems = dataSource.filter(filterItem => {
98483
+ return filterItem.value === tempCurrentValue
98484
+ })
98485
+ if (tempItems.length > 0) {
98486
+ tempCurrentValue = tempItems[0].caption
98487
+ }
98488
+ tempValue = tempValue + tempCurrentValue
98489
+ if (i < value.length - 1) {
98490
+ tempValue = tempValue + ','
98491
+ }
98492
+ }
98493
+ return tempValue
98494
+ }
98495
+ return null
98496
+ }
98497
+
98498
+ function displayCaptionFilter(value, colInfo) {
98499
+ let linkField = colInfo.field.split('.')
98500
+ let fieldValue = value
98501
+ for (let i = 0; i < linkField.length; i++) {
98502
+ if (
98503
+ fieldValue[linkField[i]] === undefined ||
98504
+ fieldValue[linkField[i]] === null
98505
+ ) {
98506
+ return null
98507
+ }
98508
+ fieldValue = fieldValue[linkField[i]]
98509
+ }
98510
+ if (colInfo.controlType === controlType.drop) {
98511
+ let displayValue = colInfo.linkModuleData.dataSource.filter(item => {
98512
+ return item[colInfo.linkValueField] === fieldValue
98513
+ })
98514
+ if (displayValue.length > 0) {
98515
+ return displayValue[0][colInfo.linkCaptionField]
98516
+ }
98517
+ }
98518
+ if (colInfo.controlType === controlType.checkbox) {
98519
+ if (fieldValue === true || fieldValue === 'true') {
98520
+ fieldValue = '是'
98521
+ } else {
98522
+ fieldValue = '否'
98523
+ }
98524
+ }
98525
+ if (colInfo.controlType === controlType.date) {
98526
+ let dateTimeFormat = colInfo.format ? colInfo.format : 'YYYY-MM-DD'
98527
+ fieldValue = moment_default()(fieldValue).format(dateTimeFormat)
98528
+ }
98529
+ if (colInfo.controlType === controlType.datetime) {
98530
+ let dateTimeFormat = colInfo.format
98531
+ ? colInfo.format
98532
+ : 'YYYY-MM-DD HH:mm:ss'
98533
+ fieldValue = moment_default()(fieldValue).format(dateTimeFormat)
98534
+ }
98535
+ if (colInfo.controlType === controlType.time) {
98536
+ let timeFormat = colInfo.format ? colInfo.format : 'HH:mm:ss'
98537
+ fieldValue = moment_default()('1970-01-01 ' + fieldValue).format(timeFormat)
98538
+ }
98539
+ if (colInfo.controlType === controlType.longtime) {
98540
+ let tempFieldValue = ''
98541
+ let tempDays = 0
98542
+ if (fieldValue.indexOf('.') > 0) {
98543
+ let arr = fieldValue.split('.')
98544
+ tempDays = arr[0]
98545
+ }
98546
+ //-------------------------
98547
+ // let tempYears = moment.duration(fieldValue).years()
98548
+ // if (tempYears > 0) {
98549
+ // tempFieldValue = tempYears + '年'
98550
+ // }
98551
+ // let tempMonths = moment.duration(fieldValue).months()
98552
+ // if (tempMonths > 0) {
98553
+ // tempFieldValue += tempMonths + '月'
98554
+ // }
98555
+ // let tempDays = moment.duration(fieldValue).days()
98556
+ //------------------------------
98557
+ if (tempDays > 0) {
98558
+ tempFieldValue += tempDays + '天'
98559
+ }
98560
+ tempFieldValue =
98561
+ tempFieldValue +
98562
+ moment_default.a.duration(fieldValue).hours() +
98563
+ '小时' +
98564
+ moment_default.a.duration(fieldValue).minutes() +
98565
+ '分钟' +
98566
+ moment_default.a.duration(fieldValue).seconds() +
98567
+ '秒'
98568
+ fieldValue = tempFieldValue
98569
+ }
98570
+
98571
+ if (colInfo.controlType === controlType.dropmulti) {
98572
+ let returnValue = ''
98573
+ for (let x = 0; x < colInfo.linkModuleData.dataSource.length; x++) {
98574
+ if (
98575
+ fieldValue.indexOf(
98576
+ colInfo.linkModuleData.dataSource[x][colInfo.linkValueField]
98577
+ ) >= 0
98578
+ ) {
98579
+ returnValue =
98580
+ returnValue +
98581
+ colInfo.linkModuleData.dataSource[x][colInfo.linkCaptionField] +
98582
+ ','
98583
+ }
98584
+ }
98585
+ if (returnValue.length > 0) {
98586
+ returnValue = returnValue.substr(0, returnValue.length - 1)
98587
+ }
98588
+ return returnValue
98589
+ }
98590
+
98591
+ if (colInfo.controlType === controlType.popup) {
98592
+ let tempField = colInfo.field
98593
+ if (colInfo.linkAttrField) {
98594
+ tempField = colInfo.linkAttrField + '.' + colInfo.linkCaptionField
98595
+ }
98596
+ let linkField = tempField.split('.')
98597
+ let returnValue = value
98598
+ for (let i = 0; i < linkField.length; i++) {
98599
+ if (
98600
+ returnValue[linkField[i]] === undefined ||
98601
+ returnValue[linkField[i]] === null
98602
+ ) {
98603
+ return null
98604
+ }
98605
+ returnValue = returnValue[linkField[i]]
98606
+ }
98607
+ return returnValue
98608
+ }
98609
+
98610
+ if (colInfo.displayFormat) {
98611
+ if (colInfo.displayFormat.indexOf('p') === 0) {
98612
+ // 百分比显示
98613
+ let percentNumber = colInfo.displayFormat.substr(1)
98614
+ return (fieldValue * 100).toFixed(parseInt(percentNumber)) + '%'
98615
+ }
98616
+ }
98617
+
98618
+ return fieldValue
98619
+ }
98620
+
98621
+ function splitFieldValueFilter(value, field) {
98622
+ let linkField = field.split('.')
98623
+ let tempValue = value
98624
+ for (let i = 0; i < linkField.length; i++) {
98625
+ tempValue = tempValue[linkField[i]]
98626
+ if (tempValue === undefined || tempValue === null) {
98627
+ return null
98628
+ }
98629
+ }
98630
+ return tempValue
98631
+ }
98632
+
98633
+ function dropdownDisplayFilter(value, colInfo) {
98634
+ let linkField = colInfo.field.split('.')
98635
+ let fieldValue = value
98636
+ for (let i = 0; i < linkField.length; i++) {
98637
+ if (
98638
+ fieldValue[linkField[i]] === undefined ||
98639
+ fieldValue[linkField[i]] === null
98640
+ ) {
98641
+ return null
98642
+ }
98643
+ fieldValue = fieldValue[linkField[i]]
98644
+ }
98645
+ if (colInfo.controlType === 'Drop') {
98646
+ let displayValue = colInfo.source.filter(item => {
98647
+ return item[colInfo.sourceValueField] === fieldValue
98648
+ })
98649
+ if (displayValue.length > 0) {
98650
+ return displayValue[0][colInfo.sourceCaptionField]
98651
+ }
98652
+ }
98653
+ if (colInfo.controlType === 'CheckBox') {
98654
+ if (fieldValue === true || fieldValue === 'true') {
98655
+ fieldValue = '是'
98656
+ } else {
98657
+ fieldValue = '否'
98658
+ }
98659
+ }
98660
+ if (colInfo.controlType === 'DateTime') {
98661
+ let dateTimeFormat = colInfo.format ? colInfo.format : 'YYYY-MM-DD'
98662
+ fieldValue = moment_default()(fieldValue).format(dateTimeFormat)
98663
+ }
98664
+ if (colInfo.controlType === 'Time') {
98665
+ let timeFormat = colInfo.format ? colInfo.format : 'HH:mm:ss'
98666
+ fieldValue = moment_default()('1970-01-01 ' + fieldValue).format(timeFormat)
98667
+ }
98668
+
98669
+ if (colInfo.controlType === 'Popup') {
98670
+ let linkField = colInfo.popupCaptionField.split('.')
98671
+ let returnValue = value
98672
+ for (let i = 0; i < linkField.length; i++) {
98673
+ if (
98674
+ returnValue[linkField[i]] === undefined ||
98675
+ returnValue[linkField[i]] === null
98676
+ ) {
98677
+ return null
98678
+ }
98679
+ returnValue = returnValue[linkField[i]]
98680
+ }
98681
+
98682
+ return returnValue
98683
+ }
98684
+ if (colInfo.controlType === 'PopupLink') {
98685
+ let linkField = colInfo.popupCaptionField.split('.')
98686
+ let returnValue = value
98687
+ for (let i = 0; i < linkField.length; i++) {
98688
+ if (
98689
+ returnValue[linkField[i]] === undefined ||
98690
+ returnValue[linkField[i]] === null
98691
+ ) {
98692
+ return null
98693
+ }
98694
+ returnValue = returnValue[linkField[i]]
98695
+ }
98696
+
98697
+ return returnValue
98698
+ }
98699
+ return fieldValue
98700
+ }
98701
+
98702
+ function dateformat(time, cFormat) {
98703
+ return moment_default()(time).format(cFormat)
98704
+ }
98705
+
98706
+ function secondDisplayTime(value) {
98707
+ let second = _xe_utils_3_5_4_xe_utils_default.a.toInteger(value)
98708
+ 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))
98709
+ let hourValue = 0
98710
+ let minuteValue = 0
98711
+ let secondValue = 0
98712
+ second = _xe_utils_3_5_4_xe_utils_default.a.subtract(second, dayValue * 3600 * 24)
98713
+ if (second >= 0) {
98714
+ //设置小时数
98715
+ hourValue = _xe_utils_3_5_4_xe_utils_default.a.floor(_xe_utils_3_5_4_xe_utils_default.a.divide(second, 3600))
98716
+ //小时之后的剩余秒数
98717
+ second = _xe_utils_3_5_4_xe_utils_default.a.subtract(second, hourValue * 3600)
98718
+ }
98719
+ if (second >= 0) {
98720
+ //设置分钟
98721
+ minuteValue = _xe_utils_3_5_4_xe_utils_default.a.floor(_xe_utils_3_5_4_xe_utils_default.a.divide(second, 60))
98722
+ //小时之后的剩余秒数
98723
+ second = _xe_utils_3_5_4_xe_utils_default.a.subtract(second, minuteValue * 60)
98724
+ }
98725
+ if (second >= 0) {
98726
+ //设置秒数
98727
+ secondValue = second
98728
+ }
98729
+
98730
+ return (
98731
+ dayValue +
98732
+ '天' +
98733
+ hourValue +
98734
+ '小时' +
98735
+ minuteValue +
98736
+ '分钟' +
98737
+ secondValue +
98738
+ '秒'
98739
+ )
98740
+ }
98215
98741
 
98216
98742
  // 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&
98217
98743
 
98218
98744
 
98219
98745
 
98746
+
98220
98747
  /* harmony default export */ var BaseSelectMulti_srcvue_type_script_lang_js_ = ({
98221
98748
  name: 'BaseSelectMulti',
98749
+ filters:{
98750
+ displaySelectMultiCaption:displaySelectMultiCaption
98751
+ },
98222
98752
  components:{
98223
98753
  Select: es_select,
98224
98754
  SelectOption:es_select.Option,
@@ -98300,8 +98830,8 @@ var srcvue_type_template_id_0416bb72_scoped_true_staticRenderFns = []
98300
98830
 
98301
98831
  // CONCATENATED MODULE: ./packages/BaseSelectMulti/src/index.vue?vue&type=script&lang=js&
98302
98832
  /* harmony default export */ var packages_BaseSelectMulti_srcvue_type_script_lang_js_ = (BaseSelectMulti_srcvue_type_script_lang_js_);
98303
- // EXTERNAL MODULE: ./packages/BaseSelectMulti/src/index.vue?vue&type=style&index=1&id=0416bb72&prod&lang=less&
98304
- var srcvue_type_style_index_1_id_0416bb72_prod_lang_less_ = __webpack_require__("d21f");
98833
+ // EXTERNAL MODULE: ./packages/BaseSelectMulti/src/index.vue?vue&type=style&index=1&id=337d49a6&prod&lang=less&
98834
+ var srcvue_type_style_index_1_id_337d49a6_prod_lang_less_ = __webpack_require__("22c6");
98305
98835
 
98306
98836
  // CONCATENATED MODULE: ./packages/BaseSelectMulti/src/index.vue
98307
98837
 
@@ -98314,11 +98844,11 @@ var srcvue_type_style_index_1_id_0416bb72_prod_lang_less_ = __webpack_require__(
98314
98844
 
98315
98845
  var BaseSelectMulti_src_component = normalizeComponent(
98316
98846
  packages_BaseSelectMulti_srcvue_type_script_lang_js_,
98317
- srcvue_type_template_id_0416bb72_scoped_true_render,
98318
- srcvue_type_template_id_0416bb72_scoped_true_staticRenderFns,
98847
+ srcvue_type_template_id_337d49a6_scoped_true_render,
98848
+ srcvue_type_template_id_337d49a6_scoped_true_staticRenderFns,
98319
98849
  false,
98320
98850
  null,
98321
- "0416bb72",
98851
+ "337d49a6",
98322
98852
  null
98323
98853
 
98324
98854
  )
@@ -99759,10 +100289,6 @@ var srcvue_type_template_id_862292e8_scoped_true_staticRenderFns = []
99759
100289
 
99760
100290
  // CONCATENATED MODULE: ./packages/BaseNumberInput/src/index.vue?vue&type=template&id=862292e8&scoped=true&
99761
100291
 
99762
- // EXTERNAL MODULE: ./node_modules/_xe-utils@3.5.4@xe-utils/index.js
99763
- var _xe_utils_3_5_4_xe_utils = __webpack_require__("fda1");
99764
- var _xe_utils_3_5_4_xe_utils_default = /*#__PURE__*/__webpack_require__.n(_xe_utils_3_5_4_xe_utils);
99765
-
99766
100292
  // CONCATENATED MODULE: ./node_modules/_ant-design-vue@1.7.8@ant-design-vue/es/vc-m-feedback/src/PropTypes.js
99767
100293
 
99768
100294
 
@@ -101355,88 +101881,6 @@ var srcvue_type_template_id_f2096c94_scoped_true_staticRenderFns = []
101355
101881
 
101356
101882
  // CONCATENATED MODULE: ./packages/BasePulldown/src/index.vue?vue&type=template&id=f2096c94&scoped=true&
101357
101883
 
101358
- // CONCATENATED MODULE: ./packages/utils/enum.js
101359
- const sysRowState = {
101360
- view: 0,
101361
- add: 1,
101362
- update: 2,
101363
- delete: 3
101364
- }
101365
- const sysFormState = {
101366
- add: 'add',
101367
- edit: 'edit',
101368
- view: 'view',
101369
- done: 10000
101370
- }
101371
- const calendarViewType = {
101372
- day: 'day',
101373
- week: 'week',
101374
- month: 'month'
101375
- }
101376
- const controlType = {
101377
- text: 'text',
101378
- number: 'number', // 数字输入
101379
- textarea: 'textarea',
101380
- numberrange: 'numberrange',
101381
- drop: 'drop',
101382
- popup: 'popup',
101383
- date: 'date',
101384
- datetime: 'datetime',
101385
- timeFrame: 'timeFrame',
101386
- time: 'time',
101387
- longtime: 'longtime',
101388
- checkbox: 'checkbox',
101389
- dropmulti: 'dropmulti',
101390
- tabledelete: 'tabledelete',
101391
- tableadd: 'tableadd',
101392
- searchfilter: 'searchfilter',
101393
- max: 'max',
101394
- min: 'min',
101395
- sum: 'sum',
101396
- svg: 'svg',
101397
- dropdict: 'dropdict',
101398
- dropobjectstatus: 'dropobjectstatus',
101399
- dropmultidict: 'dropmultidict',
101400
- dropmultiobjectstatus: 'dropmultiobjectstatus',
101401
- daterange: 'daterange',
101402
- image: 'image',
101403
- pulldown: 'pulldown',
101404
- operation: 'operation',
101405
- custombutton: 'custombutton',
101406
- pagerbutton: 'pagerbutton',
101407
- select: 'select',
101408
- customCell: 'customCell',
101409
- remotedropmulti: 'remotedropmulti',
101410
- interval: 'interval',
101411
- customRadio: 'customRadio',
101412
- operationDefault: 'operationDefault',
101413
- dateweek: 'dateweek',
101414
- x_axis: 'x_axis',
101415
- y_axis: 'y_axis',
101416
- series: 'series'
101417
- }
101418
- const dataType = {
101419
- frame: 'frame',
101420
- grid: 'grid',
101421
- gridselect: 'gridselect',
101422
- piccard: 'piccard'
101423
- }
101424
- const sysActionType = {
101425
- matSale: '200',
101426
- flutTypMat: '201',
101427
- artMat: '300',
101428
- docNumInventoryTrans: '310' // 订单号跳转库存事务查询
101429
- }
101430
-
101431
- const moduleCodeEnum = {
101432
- custMatViewInfo: 'custMatViewInfo' //客户物料详情
101433
- }
101434
- const dictCodeEnum = {
101435
- UOM: 'UOM', //单位
101436
- MaterialType: 'MaterialType', //物料类型
101437
- TaxRate: 'TaxRate' //税率
101438
- }
101439
-
101440
101884
  // CONCATENATED MODULE: ./packages/utils/common.js
101441
101885
  /**
101442
101886
  * 替换掩码参数字符串
@@ -104033,6 +104477,7 @@ var rules_double = {
104033
104477
 
104034
104478
 
104035
104479
 
104480
+
104036
104481
  // import BaseGridView from './BaseGridView/index';
104037
104482
 
104038
104483
  // 存储组件列表