Commit c9202cd0 authored by 刘殿昕's avatar 刘殿昕

优化详情页

parent 71bbc1c1
......@@ -93,7 +93,7 @@
{{
specification && specification.spcs_type == 1
? specification.descript
: data.serviceRequestSpcs.spcs_type_1[0].descript
: data.serviceRequestSpcs.spcs_type_1 && data.serviceRequestSpcs.spcs_type_1.length != 0 ? data.serviceRequestSpcs.spcs_type_1[0].descript : ""
}}
</div>
<div
......
......@@ -182,9 +182,9 @@ export default {
},
},
];
let arr = datas.serviceRequestSpcs.spcs_type_1.concat(
datas.serviceRequestSpcs.spcs_type_2
);
let arr1 = datas.serviceRequestSpcs.spcs_type_1 || [];
let arr2 = datas.serviceRequestSpcs.spcs_type_2 || [];
let arr = arr1.concat(arr2);
arr.map((item) => {
item.type = item.spcs_type == 1 ? "计次收费规格" : "时长收费规格";
item.spce =
......
......@@ -182,9 +182,9 @@ export default {
},
},
];
let arr = datas.serviceRequestSpcs.spcs_type_1.concat(
datas.serviceRequestSpcs.spcs_type_2
);
let arr1 = datas.serviceRequestSpcs.spcs_type_1 || [];
let arr2 = datas.serviceRequestSpcs.spcs_type_2 || [];
let arr = arr1.concat(arr2);
arr.map((item) => {
item.type = item.spcs_type == 1 ? "计次收费规格" : "时长收费规格";
item.spce =
......
......@@ -142,9 +142,9 @@ export default {
],
}, */
];
let arr = datas.serviceRequestSpcs.spcs_type_1.concat(
datas.serviceRequestSpcs.spcs_type_2
);
let arr1 = datas.serviceRequestSpcs.spcs_type_1 || [];
let arr2 = datas.serviceRequestSpcs.spcs_type_2 || [];
let arr = arr1.concat(arr2);
arr.map((item) => {
item.type = item.spcs_type == 1 ? "计次收费规格" : "时长收费规格";
item.spce =
......
......@@ -182,9 +182,9 @@ export default {
},
},
];
let arr = datas.serviceRequestSpcs.spcs_type_1.concat(
datas.serviceRequestSpcs.spcs_type_2
);
let arr1 = datas.serviceRequestSpcs.spcs_type_1 || [];
let arr2 = datas.serviceRequestSpcs.spcs_type_2 || [];
let arr = arr1.concat(arr2);
arr.map((item) => {
item.type = item.spcs_type == 1 ? "计次收费规格" : "时长收费规格";
item.spce =
......
......@@ -137,9 +137,9 @@ export default {
value: datas.workflows_id,
});
}
let arr = datas.serviceRequestSpcs.spcs_type_1.concat(
datas.serviceRequestSpcs.spcs_type_2
);
let arr1 = datas.serviceRequestSpcs.spcs_type_1 || [];
let arr2 = datas.serviceRequestSpcs.spcs_type_2 || [];
let arr = arr1.concat(arr2);
arr.map((item) => {
item.type = item.spcs_type == 1 ? "计次收费规格" : "时长收费规格";
item.spce =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment