Cette révision appartient à :
‘937886381’ 2024-04-26 08:32:32 +08:00
Parent be83c8196e
révision dacae0cbd8

Voir le fichier

@ -2,7 +2,7 @@
* @Author: zwq
* @Date: 2021-07-19 15:18:30
* @LastEditors: zhp
* @LastEditTime: 2024-04-25 18:24:31
* @LastEditTime: 2024-04-26 08:32:02
* @Description:
-->
<template>
@ -387,7 +387,7 @@ export default {
progressRate: 0.933333,
specifications: '1100*5554*22',
plan: 111111111111,
actualQuantity:10000001111,
actualQuantity:1000000111111,
},
{
id: '2',
@ -458,12 +458,12 @@ export default {
this.orderList = detData.map((ele, index) => {
if (ele.progressRate && ele.progressRate != 1) {
return {
id: ele.id,
name: ele.name,
id: ele.id,
name: this.getStr(String(ele.name), 8),
progressRate: parseFloat((ele.progressRate * 100).toFixed(0)),
specifications: ele.specifications ? '规格' + ele.specifications :'',
planQuantity: ele.plan ? '计划' + this.getStr(String(ele.plan,6)) : '',
actualQuantity: ele.actualQuantity ?this.getStr(String(ele.actualQuantity,6)) : '',
specifications: ele.specifications ? '规格' + ele.specifications : '',
planQuantity: ele.plan ? '计划' + this.getStr(String(ele.plan), 6) : '',
actualQuantity: ele.actualQuantity ? this.getStr(String(ele.actualQuantity), 6) : '',
};
}
});
@ -568,7 +568,7 @@ export default {
getStr(str,num) {
//
if (str.length > num) { //10...
str = str.substr(0, 6) + "..." //10...
str = str.substr(0, num) + "..." //10...
return str
} else {
return str
@ -743,11 +743,11 @@ export default {
if (ele.progressRate && ele.progressRate != 1) {
return {
id: ele.id,
name: this.getStr(String(ele.name,8)),
name: this.getStr(String(ele.name), 8),
progressRate: parseFloat((ele.progressRate * 100).toFixed(0)),
specifications: ele.specifications ? '规格' + ele.specifications : '',
planQuantity: ele.plan ? '计划' + this.getStr(String(ele.plan,6)) : '',
actualQuantity: ele.actualQuantity ? this.getStr(String(ele.actualQuantity,6)) : '',
planQuantity: ele.plan ? '计划' + this.getStr(String(ele.plan),6) : '',
actualQuantity: ele.actualQuantity ? this.getStr(String(ele.actualQuantity), 6) : '',
};
}
});