doway-coms 1.5.9 → 1.5.12

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.
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "doway-coms",
3
+ "version": "1.0.0",
4
+ "description": "",
5
+ "main": "doway-coms.common.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "keywords": [],
10
+ "author": "",
11
+ "license": "ISC"
12
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "doway-coms",
3
- "version": "1.5.9",
3
+ "version": "1.5.12",
4
4
  "description": "doway组件库",
5
5
  "author": "dowaysoft",
6
6
  "main": "packages/index.js",
@@ -448,9 +448,11 @@ export default {
448
448
  evt.clientY + evt.target.offsetHeight - evt.offsetY // (rowIndex + 1) * this.rowHeight
449
449
  this.ganttBarTooltip.item = ordInfo
450
450
  this.ganttBarTooltip.show = true
451
+ this.$emit('mouseEnter',ordInfo)
451
452
  },
452
453
  ganttBarMouseLeave(evt, ordInfo) {
453
454
  this.ganttBarTooltip.show = false
455
+ this.$emit('mouseLeave',ordInfo)
454
456
  },
455
457
  bodyScroll(scrollInfo) {
456
458
  if (scrollInfo.isX === true) {
@@ -364,41 +364,47 @@
364
364
  </template>
365
365
  <template #select_filter="scope">
366
366
  <div class="interceptor-class">
367
- <a-checkbox-group
368
- v-model="scope.column.filters[0].data.displayValues"
369
- @keyup.enter.native="filterConfirm(scope.column)"
370
- >
371
- <a-input placeholder="请输入搜索内容" @change="displayValueSearchTextChange(scope.column)" v-model="scope.column.filters[0].data.displayValueSearchText" :addon-before="'已选'+scope.column.filters[0].data.displayValues.length"/>
372
- <div style="max-height:200px;overflow-y:scroll">
373
- <div style="text-align:left;" v-for="loopSource in scope.column.params.dataSource" :key="loopSource.value">
374
- <a-checkbox
375
- v-show="loopSource.caption.indexOf(scope.column.filters[0].data.displayValueSearchText)>-1"
376
- :value="loopSource.value"
377
- style="margin: 5px 0;"
378
- >{{ loopSource.caption }}
379
- </a-checkbox>
380
- </div>
367
+ <a-checkbox-group
368
+ v-model="scope.column.filters[0].data.displayValues"
369
+ @keyup.enter.native="filterConfirm(scope.column)"
370
+ >
371
+ <a-input placeholder="请输入搜索内容" @change="displayValueSearchTextChange(scope.column)" v-model="scope.column.filters[0].data.displayValueSearchText" :addon-before="'已选'+scope.column.filters[0].data.displayValues.length"/>
372
+ <div style="max-height:200px;overflow-y:scroll">
373
+ <div style="text-align:left;" v-for="loopSource in scope.column.params.dataSource" :key="loopSource.value">
374
+ <a-checkbox
375
+ v-show="loopSource.caption.indexOf(scope.column.filters[0].data.displayValueSearchText)>-1"
376
+ :value="loopSource.value"
377
+ style="margin: 5px 0;"
378
+ >{{ loopSource.caption }}
379
+ </a-checkbox>
381
380
  </div>
382
- </a-checkbox-group>
383
- <!-- <a-select-->
384
- <!-- v-model="scope.column.filters[0].data.displayValues"-->
385
- <!-- mode="multiple"-->
386
- <!-- allowClear-->
387
- <!-- style="width: 300px;"-->
388
- <!-- placeholder="筛选条件"-->
389
- <!-- showArrow-->
390
- <!-- >-->
391
- <!-- <a-select-option-->
392
- <!-- v-for="loopSource in scope.column.params.dataSource"-->
393
- <!-- :key="loopSource.value"-->
394
- <!-- :value="loopSource.value"-->
395
- <!-- >{{ loopSource.caption }}</a-select-option-->
396
- <!-- >-->
397
- <!-- </a-select>-->
381
+ </div>
382
+ </a-checkbox-group>
398
383
  <br>
399
384
  <a-button @click="filterConfirm(scope.column)">确认</a-button>
400
385
  </div>
401
386
  </template>
387
+ <template #checkbox_filter="scope">
388
+ <div class="interceptor-class">
389
+ <a-checkbox-group
390
+ v-model="scope.column.filters[0].data.displayValues"
391
+ @keyup.enter.native="filterConfirm(scope.column)"
392
+ >
393
+ <div style="max-height:200px;overflow-y:scroll">
394
+ <div style="text-align:left;" v-for="loopSource in scope.column.params.dataSource" :key="loopSource.value">
395
+ <a-checkbox
396
+ v-show="loopSource.caption.indexOf(scope.column.filters[0].data.displayValueSearchText)>-1"
397
+ :value="loopSource.value"
398
+ style="margin: 5px 0;"
399
+ >{{ loopSource.caption }}
400
+ </a-checkbox>
401
+ </div>
402
+ </div>
403
+ </a-checkbox-group>
404
+ <br>
405
+ <a-button @click="filterConfirm(scope.column)">确认</a-button>
406
+ </div>
407
+ </template>
402
408
  <template #datetime_filter="scope">
403
409
  <div class="interceptor-class">
404
410
  <div
@@ -1342,7 +1348,12 @@ export default {
1342
1348
  if (!originCol.controlType) {
1343
1349
  originCol.controlType = controlType.text;
1344
1350
  }
1345
-
1351
+ if (originCol.controlType === controlType.checkbox) {
1352
+ originCol.dataSource = [
1353
+ {caption:'是',value: true},
1354
+ {caption:'否',value: false}
1355
+ ]
1356
+ }
1346
1357
  if (originCol.controlType === controlType.customRadio) {
1347
1358
  colInfo["type"] = "radio";
1348
1359
  customSlot["radio"] = "customRadio";
@@ -2349,7 +2360,7 @@ export default {
2349
2360
  this.$set(col.filters[0].data,'bindingValues',[])
2350
2361
  colInfo.filters[0].data.bindingValues = [];
2351
2362
  XEUtils.arrayEach(colInfo.filters[0].data.displayValues, (item) => {
2352
- if (colInfo.params.controlType === controlType.select) {
2363
+ if (colInfo.params.controlType === controlType.select || colInfo.params.controlType === controlType.checkbox) {
2353
2364
  colInfo.filters[0].data.bindingValues.push(item);
2354
2365
  this.$set(col.filters[0].data,'bindingValues',colInfo.filters[0].data.bindingValues)
2355
2366
  } else {
@@ -2435,7 +2446,7 @@ export default {
2435
2446
  //筛选条件过滤
2436
2447
  let colFilterExpression = { operator: "or", expressions: [] };
2437
2448
 
2438
- if (loopColInfo.params.controlType === controlType.select) {
2449
+ if (loopColInfo.params.controlType === controlType.select || loopColInfo.params.controlType === controlType.checkbox) {
2439
2450
  colFilterExpression.expressions.push({
2440
2451
  field: loopColInfo.field,
2441
2452
  operator: "IN",
@@ -2691,9 +2702,6 @@ export default {
2691
2702
  ::v-deep .ant-btn {
2692
2703
  margin: 10px 10px 0;
2693
2704
  }
2694
- ::v-deep .ant-input {
2695
- margin-bottom: 5px;
2696
- }
2697
2705
  ::v-deep .ant-calendar-picker {
2698
2706
  margin: 0 5px;
2699
2707
  }
@@ -11,6 +11,7 @@ export default new Vuex.Store({
11
11
  state: {
12
12
  umsUrl:'',
13
13
  msgUrl:'',
14
+ wmsUrl:'',
14
15
  identityUrl:'',
15
16
  token: '',
16
17
  industryVersion:'',//行业版本
@@ -90,6 +91,9 @@ export default new Vuex.Store({
90
91
  extraInfo = {...extraInfo, ...userExtraInfo}
91
92
  //存在额外参数,就赋值
92
93
  if (Object.keys(extraInfo).length) {
94
+ if (Object.hasOwn(extraInfo,'api')){
95
+ extraInfo['api'] = state[extraInfo['url']] + extraInfo['api']
96
+ }
93
97
  tempField = XEUtils.assign(extraInfo, tempField)
94
98
  }
95
99
  if (tempField.controlType === controlType.select) {
@@ -138,6 +142,9 @@ export default new Vuex.Store({
138
142
  SET_UMS_URL:(state,url) => {
139
143
  state.umsUrl = url
140
144
  },
145
+ SET_WMS_URL:(state,url) => {
146
+ state.wmsUrl = url
147
+ },
141
148
  SET_CUST_PRICE_NOT_TAX_PRECISION:(state,custPriceNotTaxPrecision)=>{
142
149
  state.custPriceNotTaxPrecision = custPriceNotTaxPrecision
143
150
  },