projects/mesxc-zhp #370

Merged
juzi merged 7 commits from projects/mesxc-zhp into projects/mesxc-test 2024-04-26 08:49:54 +08:00
Showing only changes of commit dacae0cbd8 - Show all commits

View File

@ -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',
@ -459,11 +459,11 @@ export default {
if (ele.progressRate && ele.progressRate != 1) {
return {
id: ele.id,
name: ele.name,
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) : '',
};
}
});
@ -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) : '',
};
}
});