‘937886381’ 4 місяці тому
джерело
коміт
dacae0cbd8
1 змінених файлів з 11 додано та 11 видалено
  1. +11
    -11
      src/views/OperationalOverview/processingBoard.vue

+ 11
- 11
src/views/OperationalOverview/processingBoard.vue Переглянути файл

@@ -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) : '',
};
}
});


Завантаження…
Відмінити
Зберегти