dolphin-weex-bc 0.0.13 → 0.0.14
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 +6 -0
- package/dist/index.native.js +147 -86
- package/dist/index.native.js.map +1 -1
- package/dist/index.web.js +122 -69
- package/dist/index.web.js.map +1 -1
- package/package.json +1 -1
- package/packages/dof-consumables/assets/css/index_diablo.css +11 -8
- package/packages/dof-consumables/index.vue +33 -19
- package/packages/material-event/index.js +38 -21
package/CHANGELOG.md
CHANGED
package/dist/index.native.js
CHANGED
|
@@ -2793,10 +2793,10 @@ var MaterialEvent = {
|
|
|
2793
2793
|
var shouldSortD = [2, '2'].includes(b.remainingStatus) && b.remainingValue !== null;
|
|
2794
2794
|
|
|
2795
2795
|
if (shouldSortA && shouldSortB) {
|
|
2796
|
-
return Number(a.remainingValueType == 4 ? 100 : a.
|
|
2796
|
+
return Number(a.remainingValueType == 4 ? 100 : a.percent) / Number(a.remainingValueType == 4 ? 100 : 100) - Number(b.remainingValueType == 4 ? 100 : b.percent) / Number(b.remainingValueType == 4 ? 100 : 100);
|
|
2797
2797
|
}
|
|
2798
2798
|
if (shouldSortC && shouldSortD) {
|
|
2799
|
-
return Number(a.remainingValueType == 4 ? 111 : a.
|
|
2799
|
+
return Number(a.remainingValueType == 4 ? 111 : a.percent) / Number(a.remainingValueType == 4 ? 100 : 100) - Number(b.remainingValueType == 4 ? 111 : b.percent) / Number(b.remainingValueType == 4 ? 100 : 100);
|
|
2800
2800
|
}
|
|
2801
2801
|
// 都不符合条件保持原顺序
|
|
2802
2802
|
return 0;
|
|
@@ -2810,6 +2810,10 @@ var MaterialEvent = {
|
|
|
2810
2810
|
|
|
2811
2811
|
isCurrentHome: false,
|
|
2812
2812
|
|
|
2813
|
+
needBackground: false,
|
|
2814
|
+
|
|
2815
|
+
isScale: false,
|
|
2816
|
+
|
|
2813
2817
|
//批量查询耗材的情况
|
|
2814
2818
|
getAllMaterialList: function getAllMaterialList(params, options) {
|
|
2815
2819
|
var _this6 = this;
|
|
@@ -2819,7 +2823,10 @@ var MaterialEvent = {
|
|
|
2819
2823
|
while (1) {
|
|
2820
2824
|
switch (_context2.prev = _context2.next) {
|
|
2821
2825
|
case 0:
|
|
2822
|
-
|
|
2826
|
+
_this6.isDiablo = options.isDiablo;
|
|
2827
|
+
_this6.isScale = options.isScale;
|
|
2828
|
+
_this6.needBackground = options.needBackground;
|
|
2829
|
+
_this6.deviceMaterialList = [];
|
|
2823
2830
|
return _context2.abrupt('return', new Promise(function () {
|
|
2824
2831
|
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(resolve, reject) {
|
|
2825
2832
|
var homeGroupId, deviceList;
|
|
@@ -2828,42 +2835,40 @@ var MaterialEvent = {
|
|
|
2828
2835
|
switch (_context.prev = _context.next) {
|
|
2829
2836
|
case 0:
|
|
2830
2837
|
_context.prev = 0;
|
|
2831
|
-
|
|
2832
|
-
console.log('进来这里啦' + JSON.stringify(params));
|
|
2833
2838
|
homeGroupId = '';
|
|
2834
2839
|
|
|
2835
2840
|
if (params.homeGroupInfoList.length == 1) {
|
|
2836
2841
|
//只有一个家庭
|
|
2837
2842
|
homeGroupId = params.homeGroupInfoList[0].homegroupId;
|
|
2838
2843
|
}
|
|
2839
|
-
_context.next =
|
|
2844
|
+
_context.next = 5;
|
|
2840
2845
|
return _this6.getDeviceList(homeGroupId);
|
|
2841
2846
|
|
|
2842
|
-
case
|
|
2847
|
+
case 5:
|
|
2843
2848
|
deviceList = _context.sent;
|
|
2844
|
-
_context.next =
|
|
2849
|
+
_context.next = 8;
|
|
2845
2850
|
return _this6.queryBatchMaterial(deviceList, params);
|
|
2846
2851
|
|
|
2847
|
-
case
|
|
2852
|
+
case 8:
|
|
2848
2853
|
console.log('最终的deviceMaterialList:' + JSON.stringify(_this6.deviceMaterialList));
|
|
2849
2854
|
resolve(_this6.deviceMaterialList);
|
|
2850
|
-
_context.next =
|
|
2855
|
+
_context.next = 17;
|
|
2851
2856
|
break;
|
|
2852
2857
|
|
|
2853
|
-
case
|
|
2854
|
-
_context.prev =
|
|
2858
|
+
case 12:
|
|
2859
|
+
_context.prev = 12;
|
|
2855
2860
|
_context.t0 = _context['catch'](0);
|
|
2856
2861
|
|
|
2857
2862
|
console.log('打印了错误:' + _context.t0);
|
|
2858
2863
|
reject(_context.t0);
|
|
2859
2864
|
throw _context.t0;
|
|
2860
2865
|
|
|
2861
|
-
case
|
|
2866
|
+
case 17:
|
|
2862
2867
|
case 'end':
|
|
2863
2868
|
return _context.stop();
|
|
2864
2869
|
}
|
|
2865
2870
|
}
|
|
2866
|
-
}, _callee, _this6, [[0,
|
|
2871
|
+
}, _callee, _this6, [[0, 12]]);
|
|
2867
2872
|
}));
|
|
2868
2873
|
|
|
2869
2874
|
return function (_x11, _x12) {
|
|
@@ -2871,7 +2876,7 @@ var MaterialEvent = {
|
|
|
2871
2876
|
};
|
|
2872
2877
|
}()));
|
|
2873
2878
|
|
|
2874
|
-
case
|
|
2879
|
+
case 5:
|
|
2875
2880
|
case 'end':
|
|
2876
2881
|
return _context2.stop();
|
|
2877
2882
|
}
|
|
@@ -2887,8 +2892,11 @@ var MaterialEvent = {
|
|
|
2887
2892
|
while (1) {
|
|
2888
2893
|
switch (_context4.prev = _context4.next) {
|
|
2889
2894
|
case 0:
|
|
2890
|
-
|
|
2891
|
-
|
|
2895
|
+
_this7.isDiablo = options.isDiablo;
|
|
2896
|
+
_this7.isScale = options.isScale;
|
|
2897
|
+
_this7.isCurrentHome = options.isCurrentHome;
|
|
2898
|
+
_this7.needBackground = options.needBackground;
|
|
2899
|
+
_this7.deviceMaterialList = [];
|
|
2892
2900
|
return _context4.abrupt('return', new Promise(function () {
|
|
2893
2901
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(resolve, reject) {
|
|
2894
2902
|
var deviceList, res;
|
|
@@ -2897,56 +2905,54 @@ var MaterialEvent = {
|
|
|
2897
2905
|
switch (_context3.prev = _context3.next) {
|
|
2898
2906
|
case 0:
|
|
2899
2907
|
_context3.prev = 0;
|
|
2900
|
-
|
|
2901
|
-
console.log('进来这里啦11' + JSON.stringify(params));
|
|
2902
2908
|
deviceList = [];
|
|
2903
2909
|
|
|
2904
2910
|
if (!options.isCurrentHome) {
|
|
2905
|
-
_context3.next =
|
|
2911
|
+
_context3.next = 9;
|
|
2906
2912
|
break;
|
|
2907
2913
|
}
|
|
2908
2914
|
|
|
2909
|
-
_context3.next =
|
|
2915
|
+
_context3.next = 5;
|
|
2910
2916
|
return _this7.getCurrentHomeInfo();
|
|
2911
2917
|
|
|
2912
|
-
case
|
|
2918
|
+
case 5:
|
|
2913
2919
|
res = _context3.sent;
|
|
2914
2920
|
|
|
2915
2921
|
deviceList = res.deviceList;
|
|
2916
|
-
_context3.next =
|
|
2922
|
+
_context3.next = 12;
|
|
2917
2923
|
break;
|
|
2918
2924
|
|
|
2919
|
-
case
|
|
2920
|
-
_context3.next =
|
|
2925
|
+
case 9:
|
|
2926
|
+
_context3.next = 11;
|
|
2921
2927
|
return _this7.getDeviceList(params.homegroupId);
|
|
2922
2928
|
|
|
2923
|
-
case
|
|
2929
|
+
case 11:
|
|
2924
2930
|
deviceList = _context3.sent;
|
|
2925
2931
|
|
|
2926
|
-
case
|
|
2927
|
-
_context3.next =
|
|
2932
|
+
case 12:
|
|
2933
|
+
_context3.next = 14;
|
|
2928
2934
|
return _this7.queryBatchMaterialSingle(deviceList, params);
|
|
2929
2935
|
|
|
2930
|
-
case
|
|
2936
|
+
case 14:
|
|
2931
2937
|
console.log('最终的deviceMaterialList:' + JSON.stringify(_this7.deviceMaterialList));
|
|
2932
2938
|
resolve(_this7.deviceMaterialList);
|
|
2933
|
-
_context3.next =
|
|
2939
|
+
_context3.next = 23;
|
|
2934
2940
|
break;
|
|
2935
2941
|
|
|
2936
|
-
case
|
|
2937
|
-
_context3.prev =
|
|
2942
|
+
case 18:
|
|
2943
|
+
_context3.prev = 18;
|
|
2938
2944
|
_context3.t0 = _context3['catch'](0);
|
|
2939
2945
|
|
|
2940
2946
|
console.log('打印了错误:' + _context3.t0);
|
|
2941
2947
|
reject(_context3.t0);
|
|
2942
2948
|
throw _context3.t0;
|
|
2943
2949
|
|
|
2944
|
-
case
|
|
2950
|
+
case 23:
|
|
2945
2951
|
case 'end':
|
|
2946
2952
|
return _context3.stop();
|
|
2947
2953
|
}
|
|
2948
2954
|
}
|
|
2949
|
-
}, _callee3, _this7, [[0,
|
|
2955
|
+
}, _callee3, _this7, [[0, 18]]);
|
|
2950
2956
|
}));
|
|
2951
2957
|
|
|
2952
2958
|
return function (_x13, _x14) {
|
|
@@ -2954,7 +2960,7 @@ var MaterialEvent = {
|
|
|
2954
2960
|
};
|
|
2955
2961
|
}()));
|
|
2956
2962
|
|
|
2957
|
-
case
|
|
2963
|
+
case 6:
|
|
2958
2964
|
case 'end':
|
|
2959
2965
|
return _context4.stop();
|
|
2960
2966
|
}
|
|
@@ -3078,8 +3084,7 @@ var MaterialEvent = {
|
|
|
3078
3084
|
return _context6.abrupt('return', result);
|
|
3079
3085
|
|
|
3080
3086
|
case 13:
|
|
3081
|
-
|
|
3082
|
-
_this9.deviceMaterialList = result;
|
|
3087
|
+
_this9.handleNullRemainingForOfferLine(params, result);
|
|
3083
3088
|
_context6.next = 16;
|
|
3084
3089
|
return _this9.handleMaterialRes(deviceList);
|
|
3085
3090
|
|
|
@@ -3129,7 +3134,7 @@ var MaterialEvent = {
|
|
|
3129
3134
|
case 6:
|
|
3130
3135
|
allData = res.data;
|
|
3131
3136
|
|
|
3132
|
-
_this10.
|
|
3137
|
+
_this10.handleNullRemainingForOfferLine(params, allData);
|
|
3133
3138
|
_context7.next = 10;
|
|
3134
3139
|
return _this10.handleMaterialRes(deviceList);
|
|
3135
3140
|
|
|
@@ -3150,6 +3155,20 @@ var MaterialEvent = {
|
|
|
3150
3155
|
}, _callee7, _this10, [[0, 12]]);
|
|
3151
3156
|
}))();
|
|
3152
3157
|
},
|
|
3158
|
+
handleNullRemainingForOfferLine: function handleNullRemainingForOfferLine(params, data) {
|
|
3159
|
+
//如果用户传了returnNullRemaining=false则需要手动排除设备离线的数据
|
|
3160
|
+
var newData = [];
|
|
3161
|
+
if (params.hasOwnProperty('returnNullRemaining') && !params.returnNullRemaining) {
|
|
3162
|
+
data.forEach(function (item) {
|
|
3163
|
+
if (item.onlineStatus != 0) {
|
|
3164
|
+
newData.push(item);
|
|
3165
|
+
}
|
|
3166
|
+
});
|
|
3167
|
+
this.deviceMaterialList = newData;
|
|
3168
|
+
} else {
|
|
3169
|
+
this.deviceMaterialList = data;
|
|
3170
|
+
}
|
|
3171
|
+
},
|
|
3153
3172
|
|
|
3154
3173
|
|
|
3155
3174
|
//处理接口返回数据
|
|
@@ -3187,16 +3206,15 @@ var MaterialEvent = {
|
|
|
3187
3206
|
if (it.serviceSupport && it.serviceSupport.washingService && it.serviceSupport.washingService.enable && it.serviceSupport.washingService.productCode) {
|
|
3188
3207
|
tmpcodeList.push(it.serviceSupport.washingService.productCode);
|
|
3189
3208
|
}
|
|
3190
|
-
var percent = it.percent
|
|
3191
|
-
|
|
3192
|
-
chartData.incompletedColor = _this11.isDiablo ? '#2b2f32' : '#ffffff';
|
|
3209
|
+
var percent = it.percent;
|
|
3210
|
+
chartData.incompletedColor = _this11.isDiablo ? '#2b2f32' : _this11.needBackground ? '#F6F7F9' : '#ffffff';
|
|
3193
3211
|
it.chartData = _extends({}, chartData, {
|
|
3194
|
-
progressCounter: percent,
|
|
3212
|
+
progressCounter: percent < 1 && percent != 0 ? 1 : percent,
|
|
3195
3213
|
completedColor: circleColorList[it.remainingStatus],
|
|
3196
3214
|
textColor: circleColorList[it.remainingStatus]
|
|
3197
3215
|
}, {
|
|
3198
3216
|
text: percent + '%',
|
|
3199
|
-
textSize: 12,
|
|
3217
|
+
textSize: _this11.isScale ? 11 : 12,
|
|
3200
3218
|
cornerRadius: isIos ? 44 : 88,
|
|
3201
3219
|
thickness: isIos ? 3 : 6
|
|
3202
3220
|
});
|
|
@@ -3538,7 +3556,7 @@ var MaterialEvent = {
|
|
|
3538
3556
|
}
|
|
3539
3557
|
} else if (it.serviceSupport && it.serviceSupport.washingService && it.serviceSupport.washingService.enable && (it.serviceSupport.washingService.serviceUrl || it.washingServiceGoodsInfo && (it.washingServiceGoodsInfo.skulink || it.washingServiceGoodsInfo.skuId))) {
|
|
3540
3558
|
it.btnType = 4;
|
|
3541
|
-
it.btnText =
|
|
3559
|
+
it.btnText = '清洗';
|
|
3542
3560
|
}
|
|
3543
3561
|
}
|
|
3544
3562
|
}
|
|
@@ -62603,6 +62621,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
|
|
|
62603
62621
|
//
|
|
62604
62622
|
//
|
|
62605
62623
|
//
|
|
62624
|
+
//
|
|
62606
62625
|
|
|
62607
62626
|
var globalEvent = weex.requireModule('globalEvent');
|
|
62608
62627
|
var animation = weex.requireModule('animation');
|
|
@@ -62650,6 +62669,10 @@ exports.default = {
|
|
|
62650
62669
|
type: Boolean,
|
|
62651
62670
|
default: false
|
|
62652
62671
|
},
|
|
62672
|
+
needErrorTip: {
|
|
62673
|
+
type: Boolean,
|
|
62674
|
+
default: false
|
|
62675
|
+
},
|
|
62653
62676
|
isFilterShow: {
|
|
62654
62677
|
type: Boolean,
|
|
62655
62678
|
default: true // 是否是分层模式
|
|
@@ -62676,7 +62699,7 @@ exports.default = {
|
|
|
62676
62699
|
if (val.length > 0) {
|
|
62677
62700
|
this.deviceMaterialList = val;
|
|
62678
62701
|
setTimeout(function () {
|
|
62679
|
-
_this.
|
|
62702
|
+
_this.handleRenderEnd();
|
|
62680
62703
|
}, 200);
|
|
62681
62704
|
}
|
|
62682
62705
|
},
|
|
@@ -62712,6 +62735,9 @@ exports.default = {
|
|
|
62712
62735
|
while (1) {
|
|
62713
62736
|
switch (_context.prev = _context.next) {
|
|
62714
62737
|
case 0:
|
|
62738
|
+
console.log('版本号是3');
|
|
62739
|
+
|
|
62740
|
+
case 1:
|
|
62715
62741
|
case 'end':
|
|
62716
62742
|
return _context.stop();
|
|
62717
62743
|
}
|
|
@@ -62732,31 +62758,38 @@ exports.default = {
|
|
|
62732
62758
|
_context2.prev = 0;
|
|
62733
62759
|
_context2.next = 3;
|
|
62734
62760
|
return _index2.default.getAllMaterialList(_this3.materialParams, {
|
|
62735
|
-
isDiablo: _this3.isDiablo
|
|
62761
|
+
isDiablo: _this3.isDiablo,
|
|
62762
|
+
isScale: _this3.isScale,
|
|
62763
|
+
needBackground: _this3.needBackground
|
|
62736
62764
|
});
|
|
62737
62765
|
|
|
62738
62766
|
case 3:
|
|
62739
62767
|
_this3.deviceMaterialList = _context2.sent;
|
|
62740
62768
|
|
|
62741
62769
|
console.log('新的耗材数据' + JSON.stringify(_this3.deviceMaterialList));
|
|
62742
|
-
|
|
62743
|
-
_context2.next = 11;
|
|
62770
|
+
_context2.next = 10;
|
|
62744
62771
|
break;
|
|
62745
62772
|
|
|
62746
|
-
case
|
|
62747
|
-
_context2.prev =
|
|
62773
|
+
case 7:
|
|
62774
|
+
_context2.prev = 7;
|
|
62748
62775
|
_context2.t0 = _context2['catch'](0);
|
|
62749
62776
|
|
|
62750
|
-
if (_context2.t0.msg) {
|
|
62777
|
+
if (_context2.t0.msg && _this3.needErrorTip) {
|
|
62751
62778
|
_this3.$bridge.showToast(_context2.t0.msg);
|
|
62752
62779
|
}
|
|
62753
62780
|
|
|
62754
|
-
case
|
|
62781
|
+
case 10:
|
|
62782
|
+
_context2.prev = 10;
|
|
62783
|
+
|
|
62784
|
+
_this3.handleRenderEnd();
|
|
62785
|
+
return _context2.finish(10);
|
|
62786
|
+
|
|
62787
|
+
case 13:
|
|
62755
62788
|
case 'end':
|
|
62756
62789
|
return _context2.stop();
|
|
62757
62790
|
}
|
|
62758
62791
|
}
|
|
62759
|
-
}, _callee2, _this3, [[0,
|
|
62792
|
+
}, _callee2, _this3, [[0, 7, 10, 13]]);
|
|
62760
62793
|
}))();
|
|
62761
62794
|
},
|
|
62762
62795
|
getMaterialList: function getMaterialList() {
|
|
@@ -62771,31 +62804,38 @@ exports.default = {
|
|
|
62771
62804
|
_context3.next = 3;
|
|
62772
62805
|
return _index2.default.getMaterialList(_this4.materialParams, {
|
|
62773
62806
|
isDiablo: _this4.isDiablo,
|
|
62774
|
-
isCurrentHome: _this4.isCurrentHome
|
|
62807
|
+
isCurrentHome: _this4.isCurrentHome,
|
|
62808
|
+
isScale: _this4.isScale,
|
|
62809
|
+
needBackground: _this4.needBackground
|
|
62775
62810
|
});
|
|
62776
62811
|
|
|
62777
62812
|
case 3:
|
|
62778
62813
|
_this4.deviceMaterialList = _context3.sent;
|
|
62779
62814
|
|
|
62780
62815
|
console.log('新的耗材数据' + JSON.stringify(_this4.deviceMaterialList));
|
|
62781
|
-
|
|
62782
|
-
_context3.next = 11;
|
|
62816
|
+
_context3.next = 10;
|
|
62783
62817
|
break;
|
|
62784
62818
|
|
|
62785
|
-
case
|
|
62786
|
-
_context3.prev =
|
|
62819
|
+
case 7:
|
|
62820
|
+
_context3.prev = 7;
|
|
62787
62821
|
_context3.t0 = _context3['catch'](0);
|
|
62788
62822
|
|
|
62789
|
-
if (_context3.t0.msg) {
|
|
62823
|
+
if (_context3.t0.msg && _this4.needErrorTip) {
|
|
62790
62824
|
_this4.$bridge.showToast(_context3.t0.msg);
|
|
62791
62825
|
}
|
|
62792
62826
|
|
|
62793
|
-
case
|
|
62827
|
+
case 10:
|
|
62828
|
+
_context3.prev = 10;
|
|
62829
|
+
|
|
62830
|
+
_this4.handleRenderEnd();
|
|
62831
|
+
return _context3.finish(10);
|
|
62832
|
+
|
|
62833
|
+
case 13:
|
|
62794
62834
|
case 'end':
|
|
62795
62835
|
return _context3.stop();
|
|
62796
62836
|
}
|
|
62797
62837
|
}
|
|
62798
|
-
}, _callee3, _this4, [[0,
|
|
62838
|
+
}, _callee3, _this4, [[0, 7, 10, 13]]);
|
|
62799
62839
|
}))();
|
|
62800
62840
|
},
|
|
62801
62841
|
setWavePercent: function setWavePercent(item) {
|
|
@@ -62942,10 +62982,11 @@ exports.default = {
|
|
|
62942
62982
|
}
|
|
62943
62983
|
}
|
|
62944
62984
|
},
|
|
62945
|
-
|
|
62985
|
+
handleRenderEnd: function handleRenderEnd() {
|
|
62946
62986
|
var _this5 = this;
|
|
62947
62987
|
|
|
62948
62988
|
setTimeout(function () {
|
|
62989
|
+
_this5.$emit('consumablesInfo', { deviceMaterialList: deviceMaterialList });
|
|
62949
62990
|
dom.getComponentRect(_this5.$refs.materialBox, function (data) {
|
|
62950
62991
|
_this5.$emit('renderEnd', data.size.height);
|
|
62951
62992
|
});
|
|
@@ -68077,8 +68118,14 @@ module.exports = {
|
|
|
68077
68118
|
"backgroundImage": "linear-gradient(to bottom, #64747E, #171C1F)",
|
|
68078
68119
|
"borderBottom": "1px solid #23282b"
|
|
68079
68120
|
},
|
|
68121
|
+
"material-title-isScale": {
|
|
68122
|
+
"paddingTop": 0,
|
|
68123
|
+
"paddingRight": "29",
|
|
68124
|
+
"paddingBottom": 0,
|
|
68125
|
+
"paddingLeft": "33"
|
|
68126
|
+
},
|
|
68080
68127
|
"title-txt2-o1": {
|
|
68081
|
-
"maxWidth": "
|
|
68128
|
+
"maxWidth": "340",
|
|
68082
68129
|
"overflow": "hidden",
|
|
68083
68130
|
"lines": 1,
|
|
68084
68131
|
"textOverflow": "ellipsis",
|
|
@@ -68086,7 +68133,7 @@ module.exports = {
|
|
|
68086
68133
|
"color": "#797C7E"
|
|
68087
68134
|
},
|
|
68088
68135
|
"title-txt2-o2": {
|
|
68089
|
-
"maxWidth": "
|
|
68136
|
+
"maxWidth": "340",
|
|
68090
68137
|
"overflow": "hidden",
|
|
68091
68138
|
"lines": 1,
|
|
68092
68139
|
"textOverflow": "ellipsis",
|
|
@@ -68115,7 +68162,7 @@ module.exports = {
|
|
|
68115
68162
|
},
|
|
68116
68163
|
"title-txt2-user1-1": {
|
|
68117
68164
|
"fontSize": "22",
|
|
68118
|
-
"color": "#
|
|
68165
|
+
"color": "#3A3E41"
|
|
68119
68166
|
},
|
|
68120
68167
|
"title-txt2-user2": {
|
|
68121
68168
|
"fontSize": "22",
|
|
@@ -68127,7 +68174,7 @@ module.exports = {
|
|
|
68127
68174
|
},
|
|
68128
68175
|
"title-txt2-user3-3": {
|
|
68129
68176
|
"fontSize": "24",
|
|
68130
|
-
"color": "#
|
|
68177
|
+
"color": "#3A3E41"
|
|
68131
68178
|
},
|
|
68132
68179
|
"title-txt2-user4": {
|
|
68133
68180
|
"fontSize": "24",
|
|
@@ -68169,7 +68216,11 @@ module.exports = {
|
|
|
68169
68216
|
"color": "#D35926"
|
|
68170
68217
|
},
|
|
68171
68218
|
"material-item-isScale": {
|
|
68172
|
-
"height": "147"
|
|
68219
|
+
"height": "147",
|
|
68220
|
+
"paddingTop": 0,
|
|
68221
|
+
"paddingRight": "29",
|
|
68222
|
+
"paddingBottom": 0,
|
|
68223
|
+
"paddingLeft": "33"
|
|
68173
68224
|
},
|
|
68174
68225
|
"material-item-isDiablo": {
|
|
68175
68226
|
"backgroundColor": "#171C1F"
|
|
@@ -68180,7 +68231,8 @@ module.exports = {
|
|
|
68180
68231
|
},
|
|
68181
68232
|
"progresscycle-wrapper-isScale": {
|
|
68182
68233
|
"width": "81",
|
|
68183
|
-
"height": "81"
|
|
68234
|
+
"height": "81",
|
|
68235
|
+
"marginRight": "28"
|
|
68184
68236
|
},
|
|
68185
68237
|
"progresscycle-wrapper-isDiablo": {
|
|
68186
68238
|
"backgroundColor": "#171C1F"
|
|
@@ -68207,7 +68259,8 @@ module.exports = {
|
|
|
68207
68259
|
"backgroundColor": "#1E2326"
|
|
68208
68260
|
},
|
|
68209
68261
|
"item-txt1-isScale": {
|
|
68210
|
-
"fontSize": "29"
|
|
68262
|
+
"fontSize": "29",
|
|
68263
|
+
"width": "325"
|
|
68211
68264
|
},
|
|
68212
68265
|
"item-txt1-isDiablo": {
|
|
68213
68266
|
"color": "#CFCFD0"
|
|
@@ -68225,11 +68278,7 @@ module.exports = {
|
|
|
68225
68278
|
"color": "#797C7E"
|
|
68226
68279
|
},
|
|
68227
68280
|
"item-txt5-isScale": {
|
|
68228
|
-
"fontSize": "22"
|
|
68229
|
-
"maxWidth": "280",
|
|
68230
|
-
"overflow": "hidden",
|
|
68231
|
-
"lines": 1,
|
|
68232
|
-
"textOverflow": "ellipsis"
|
|
68281
|
+
"fontSize": "22"
|
|
68233
68282
|
},
|
|
68234
68283
|
"item-txt5-isDiablo": {
|
|
68235
68284
|
"color": "#BE8214"
|
|
@@ -74020,7 +74069,7 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c
|
|
|
74020
74069
|
'margin-bottom': _vm.isScale ? '15px' : '34px'
|
|
74021
74070
|
}
|
|
74022
74071
|
}, [(item.consumables && item.consumables.length > 0) ? [_c('div', {
|
|
74023
|
-
class: ['material-title', _vm.isDiablo && 'material-title-isDiablo']
|
|
74072
|
+
class: ['material-title', _vm.isScale && 'material-title-isScale', _vm.isDiablo && 'material-title-isDiablo']
|
|
74024
74073
|
}, [_c('image', {
|
|
74025
74074
|
class: ['title-icon', _vm.isScale && 'title-icon-isScale'],
|
|
74026
74075
|
attrs: {
|
|
@@ -74090,7 +74139,10 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c
|
|
|
74090
74139
|
'progresscycle-wrapper',
|
|
74091
74140
|
_vm.isDiablo && 'progresscycle-wrapper-isDiablo',
|
|
74092
74141
|
_vm.isScale && 'progresscycle-wrapper-isScale'
|
|
74093
|
-
]
|
|
74142
|
+
],
|
|
74143
|
+
style: {
|
|
74144
|
+
'background-color': _vm.isDiablo ? '#171C1F' : _vm.needBackground ? '#fff' : '#F6F7F9'
|
|
74145
|
+
}
|
|
74094
74146
|
}, [_c('midea-progresscycle-view', {
|
|
74095
74147
|
class: ['progresscycle', _vm.isScale && 'progresscycle-isScale'],
|
|
74096
74148
|
attrs: {
|
|
@@ -74101,7 +74153,10 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c
|
|
|
74101
74153
|
'circle-noData',
|
|
74102
74154
|
_vm.isScale && 'circle-noData-isScale',
|
|
74103
74155
|
_vm.isDiablo && 'circle-noData-isDiablo'
|
|
74104
|
-
]
|
|
74156
|
+
],
|
|
74157
|
+
style: {
|
|
74158
|
+
'background-color': _vm.isDiablo ? '#1E2326' : _vm.needBackground ? '#F6F7F9' : '#fff'
|
|
74159
|
+
}
|
|
74105
74160
|
}, [_c('text', {
|
|
74106
74161
|
class: ['noData-txt', _vm.isDiablo && 'noData-txt-isDiablo']
|
|
74107
74162
|
}, [_vm._v("- -")])])]] : (it.remainingValueType == 5 && it.icons && it.icons.icon1) ? [_c('div', {
|
|
@@ -74109,7 +74164,10 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c
|
|
|
74109
74164
|
'circle-noData1',
|
|
74110
74165
|
_vm.isScale && 'circle-noData1-isScale',
|
|
74111
74166
|
_vm.isDiablo && 'circle-noData1-isDiablo'
|
|
74112
|
-
]
|
|
74167
|
+
],
|
|
74168
|
+
style: {
|
|
74169
|
+
'background-color': _vm.isDiablo ? '#1E2326' : _vm.needBackground ? '#F6F7F9' : '#fff'
|
|
74170
|
+
}
|
|
74113
74171
|
}, [_c('image', {
|
|
74114
74172
|
staticClass: ["title-icon-noData1"],
|
|
74115
74173
|
staticStyle: {
|
|
@@ -74124,7 +74182,10 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c
|
|
|
74124
74182
|
'circle-noData',
|
|
74125
74183
|
_vm.isScale && 'circle-noData-isScale',
|
|
74126
74184
|
_vm.isDiablo && 'circle-noData-isDiablo'
|
|
74127
|
-
]
|
|
74185
|
+
],
|
|
74186
|
+
style: {
|
|
74187
|
+
'background-color': _vm.isDiablo ? '#1E2326' : _vm.needBackground ? '#F6F7F9' : '#fff'
|
|
74188
|
+
}
|
|
74128
74189
|
}, [_c('text', {
|
|
74129
74190
|
class: ['noData-txt', _vm.isDiablo && 'noData-txt-isDiablo']
|
|
74130
74191
|
}, [_vm._v("- -")])])]], 2), _c('div', {
|
|
@@ -74132,18 +74193,18 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c
|
|
|
74132
74193
|
}, [_c('div', {
|
|
74133
74194
|
staticClass: ["item-right-txt"]
|
|
74134
74195
|
}, [_c('text', {
|
|
74135
|
-
class: ['item-txt1', _vm.isScale && 'item-txt1-isScale', _vm.isDiablo && 'item-txt1-isDiablo']
|
|
74136
|
-
style: {
|
|
74137
|
-
width: _vm.width / (686 / 350) + 'px'
|
|
74138
|
-
}
|
|
74196
|
+
class: ['item-txt1', _vm.isScale && 'item-txt1-isScale', _vm.isDiablo && 'item-txt1-isDiablo']
|
|
74139
74197
|
}, [_vm._v(_vm._s(it.name))]), (item.deviceInfo.isOnline == 1 && it.remainingValueType != 5) ? [(it.remainingValue == 0 || it.remainingValue > 0) ? _c('div', {
|
|
74140
74198
|
staticClass: ["item-txt2-row"]
|
|
74141
74199
|
}, [(it.remainingStatus == 2) ? _c('text', {
|
|
74142
74200
|
class: ['item-txt4', _vm.isScale && 'item-txt4-isScale', _vm.isDiablo && 'item-txt4-isDiablo']
|
|
74143
74201
|
}, [_vm._v(_vm._s(it.classification == 3 ? '洁净度良好,请放心使用' : '余量充足,请放心使用'))]) : (it.remainingStatus == 1 && it.remainingValueType != 4) ? _c('text', {
|
|
74144
74202
|
class: ['item-txt5', _vm.isScale && 'item-txt5-isScale', _vm.isDiablo && 'item-txt5-isDiablo']
|
|
74145
|
-
}, [_vm._v(_vm._s(it.classification == 3 ? '
|
|
74146
|
-
class: ['item-txt3', _vm.isScale && 'item-txt3-isScale', _vm.isDiablo && 'item-txt3-isDiablo']
|
|
74203
|
+
}, [_vm._v(_vm._s(it.classification == 3 ? '洁净度下降,请及时清洗' : '即将用尽,请及时补充或更换'))]) : _c('text', {
|
|
74204
|
+
class: ['item-txt3', _vm.isScale && 'item-txt3-isScale', _vm.isDiablo && 'item-txt3-isDiablo'],
|
|
74205
|
+
style: {
|
|
74206
|
+
width: _vm.width == 686 ? '380px' : _vm.width / (686 / 340) + 'px'
|
|
74207
|
+
}
|
|
74147
74208
|
}, [_vm._v(_vm._s(it.classification == 3 ? '洁净度严重不足,请立即清洗' : '已用尽,请立即补充或更换'))])]) : _c('div', [_c('text', {
|
|
74148
74209
|
class: ['item-txt4', _vm.isScale && 'item-txt4-isScale', _vm.isDiablo && 'item-txt4-isDiablo']
|
|
74149
74210
|
}, [_vm._v("未获取到设备耗材数据")])])] : (it.remainingValueType == 5) ? void 0 : [_c('div', [_c('text', {
|
|
@@ -74165,7 +74226,7 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c
|
|
|
74165
74226
|
class: ['txt-purhase', _vm.isScale && 'txt-purhase-isScale', _vm.isDiablo && 'txt-purhase-isDiablo']
|
|
74166
74227
|
}, [_vm._v("更换")]) : (it.btnType == 4) ? _c('text', {
|
|
74167
74228
|
class: ['txt-purhase', _vm.isScale && 'txt-purhase-isScale', _vm.isDiablo && 'txt-purhase-isDiablo']
|
|
74168
|
-
}, [_vm._v(
|
|
74229
|
+
}, [_vm._v("清洗")]) : _vm._e()]) : _vm._e(), (it.remainingValueType != 5) ? _c('image', {
|
|
74169
74230
|
class: ['arrow-icon', _vm.isScale && 'arrow-icon-isScale', _vm.isDiablo && 'arrow-icon-isDiablo'],
|
|
74170
74231
|
attrs: {
|
|
74171
74232
|
"resize": "stretch",
|