dolphin-weex-bc 0.0.26 → 0.0.28
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/CHANGELOG.md +10 -0
- package/dist/index.native.js +41 -21
- package/dist/index.native.js.map +1 -1
- package/dist/index.web.js +41 -21
- package/dist/index.web.js.map +1 -1
- package/package.json +1 -1
- package/packages/dof-consumables/index.vue +15 -15
- package/packages/material-event/index.js +23 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
# 升级日志
|
|
2
|
+
## 0.0.28
|
|
3
|
+
|
|
4
|
+
- [ ! ] colmo耗材组件,修复服务按钮显示错误问题
|
|
5
|
+
- [ ! ] colmo和美居的耗材组件,将耗材接口的耗材型号字段异常字符串('null','/'),改为空
|
|
6
|
+
- [ ! ] date: 2026/01/22
|
|
7
|
+
|
|
8
|
+
## 0.0.27
|
|
9
|
+
|
|
10
|
+
- [ ! ] 耗材业务组件修复渲染多次的问题
|
|
11
|
+
- [ ! ] date: 2026/01/22
|
|
2
12
|
## 0.0.26
|
|
3
13
|
|
|
4
14
|
- [ ! ] 耗材业务组件增加搜索列表页跳转逻辑判断
|
package/dist/index.native.js
CHANGED
|
@@ -3390,6 +3390,7 @@ var MaterialEvent = {
|
|
|
3390
3390
|
var it = _step.value;
|
|
3391
3391
|
|
|
3392
3392
|
console.log('consumables===it:1' + JSON.stringify(it));
|
|
3393
|
+
if (it.model === 'null' || it.model === '/') it.model = ''; //兜底某些数据返回异常字符串
|
|
3393
3394
|
if (isColmo) {
|
|
3394
3395
|
it.chartData = _this15.setChartDataColmo(it);
|
|
3395
3396
|
continue;
|
|
@@ -3414,6 +3415,10 @@ var MaterialEvent = {
|
|
|
3414
3415
|
tmpcodeList.push(it.serviceSupport.washingService.productCode);
|
|
3415
3416
|
}
|
|
3416
3417
|
it.chartData = _this15.setChartData(it);
|
|
3418
|
+
it.btnType = 0;
|
|
3419
|
+
it.btnText = '';
|
|
3420
|
+
it.goodsInfo = {};
|
|
3421
|
+
it.washingServiceGoodsInfo = {};
|
|
3417
3422
|
}
|
|
3418
3423
|
} catch (err) {
|
|
3419
3424
|
_didIteratorError = true;
|
|
@@ -3439,7 +3444,7 @@ var MaterialEvent = {
|
|
|
3439
3444
|
break;
|
|
3440
3445
|
}
|
|
3441
3446
|
|
|
3442
|
-
return _context13.abrupt('return', _this15.
|
|
3447
|
+
return _context13.abrupt('return', _this15.handleMaterialSeviceTypeColmo());
|
|
3443
3448
|
|
|
3444
3449
|
case 5:
|
|
3445
3450
|
|
|
@@ -3814,6 +3819,23 @@ var MaterialEvent = {
|
|
|
3814
3819
|
}
|
|
3815
3820
|
},
|
|
3816
3821
|
|
|
3822
|
+
// COLMO按钮类型 2保养换芯 3售后维修 4清洗服务
|
|
3823
|
+
handleMaterialSeviceTypeColmo: function handleMaterialSeviceTypeColmo() {
|
|
3824
|
+
this.deviceMaterialList.forEach(function (item, index) {
|
|
3825
|
+
item.consumables.forEach(function (it) {
|
|
3826
|
+
if (it.serviceSupport) {
|
|
3827
|
+
if (it.serviceSupport && it.serviceSupport.bookingService && it.serviceSupport.bookingService.enable) {
|
|
3828
|
+
it.btnType = 2;
|
|
3829
|
+
if (it.serviceSupport.bookingService && it.serviceSupport.bookingService.serviceType == 2) {
|
|
3830
|
+
it.btnType = 3;
|
|
3831
|
+
}
|
|
3832
|
+
} else if (it.serviceSupport && it.serviceSupport.washingService && it.serviceSupport.washingService.enable) {
|
|
3833
|
+
it.btnType = 4;
|
|
3834
|
+
}
|
|
3835
|
+
}
|
|
3836
|
+
});
|
|
3837
|
+
});
|
|
3838
|
+
},
|
|
3817
3839
|
|
|
3818
3840
|
// 对每一种设备按照consumables中余量从最少到多排列
|
|
3819
3841
|
// 排序函数 - 处理 remainingValueType=4的情况
|
|
@@ -65701,6 +65723,7 @@ exports.default = {
|
|
|
65701
65723
|
var _this = this;
|
|
65702
65724
|
|
|
65703
65725
|
console.log('传入的耗材' + JSON.stringify(val));
|
|
65726
|
+
|
|
65704
65727
|
if (val.length > 0) {
|
|
65705
65728
|
this.handleChartData(val);
|
|
65706
65729
|
setTimeout(function () {
|
|
@@ -65844,19 +65867,17 @@ exports.default = {
|
|
|
65844
65867
|
}))();
|
|
65845
65868
|
},
|
|
65846
65869
|
handleChartData: function handleChartData(val) {
|
|
65847
|
-
|
|
65848
|
-
|
|
65849
|
-
|
|
65850
|
-
|
|
65851
|
-
|
|
65852
|
-
|
|
65853
|
-
|
|
65854
|
-
|
|
65855
|
-
|
|
65856
|
-
|
|
65857
|
-
|
|
65858
|
-
});
|
|
65859
|
-
this.deviceMaterialList = tempVal;
|
|
65870
|
+
// let tempVal = JSON.parse(JSON.stringify(val))
|
|
65871
|
+
// tempVal.forEach(item => {
|
|
65872
|
+
// item.consumables.forEach(it => {
|
|
65873
|
+
// it.chartData = MaterialEvent.setChartData(it, {
|
|
65874
|
+
// isDiablo: this.isDiablo,
|
|
65875
|
+
// isScale: this.isScale,
|
|
65876
|
+
// needBackground: this.needBackground
|
|
65877
|
+
// })
|
|
65878
|
+
// })
|
|
65879
|
+
// })
|
|
65880
|
+
this.deviceMaterialList = val;
|
|
65860
65881
|
},
|
|
65861
65882
|
setWavePercent: function setWavePercent(item) {
|
|
65862
65883
|
return _index2.default.setWavePercent(item, this.isDiablo, this.needBackground);
|
|
@@ -65881,7 +65902,8 @@ exports.default = {
|
|
|
65881
65902
|
_utils2.default.setItem('previous_materialDetail', item);
|
|
65882
65903
|
_utils2.default.setItem('previous_deviceInfo', device.deviceInfo);
|
|
65883
65904
|
//如果是没有展示耗材不足等情况下跳转为该设备下所有耗材,如果区分了则跳转当前耗材
|
|
65884
|
-
|
|
65905
|
+
// let consumables = this.isFilterShow ? [item] : device.consumables
|
|
65906
|
+
var consumables = [item];
|
|
65885
65907
|
_utils2.default.setItem('previous_consumables', consumables);
|
|
65886
65908
|
// applianceCode: device.applianceCode,
|
|
65887
65909
|
// consumablesCode: item.consumablesCode,
|
|
@@ -65891,9 +65913,7 @@ exports.default = {
|
|
|
65891
65913
|
type: 'jumpWeex',
|
|
65892
65914
|
param: {
|
|
65893
65915
|
url: url,
|
|
65894
|
-
viewTag: 'maintenance'
|
|
65895
|
-
bgColor: this.isColmo ? '#000000' : '#ffffff',
|
|
65896
|
-
pageBackgroundColor: this.isColmo ? '#000000' : '#ffffff'
|
|
65916
|
+
viewTag: 'maintenance'
|
|
65897
65917
|
}
|
|
65898
65918
|
};
|
|
65899
65919
|
console.log('跳转前的参数:' + JSON.stringify(params));
|
|
@@ -66014,11 +66034,11 @@ exports.default = {
|
|
|
66014
66034
|
}
|
|
66015
66035
|
},
|
|
66016
66036
|
handleRenderEnd: function handleRenderEnd() {
|
|
66017
|
-
var
|
|
66037
|
+
var _this5 = this;
|
|
66018
66038
|
|
|
66019
66039
|
setTimeout(function () {
|
|
66020
|
-
dom.getComponentRect(
|
|
66021
|
-
|
|
66040
|
+
dom.getComponentRect(_this5.$refs.materialBox, function (data) {
|
|
66041
|
+
_this5.$emit('renderEnd', data.size.height);
|
|
66022
66042
|
});
|
|
66023
66043
|
}, 200);
|
|
66024
66044
|
}
|