|
@@ -161,7 +161,7 @@ export default {
|
|
|
units: "kilometers",
|
|
|
}) * 1000
|
|
|
).toFixed(4);
|
|
|
- let jl = Number(distance) + that.info.zL / 2;
|
|
|
+ let jl = Number(distance - 0.6) + that.info.zL / 2;
|
|
|
if (jl > 0.5) {
|
|
|
ruleResult = "false";
|
|
|
} else {
|
|
@@ -194,9 +194,10 @@ export default {
|
|
|
(c) => c.label == "FLOORH"
|
|
|
);
|
|
|
//广告上沿高度
|
|
|
- let ggsygd = that.info.z + that.info.yL / 2;
|
|
|
+ let ggsygd1 =
|
|
|
+ Number(that.info.z) + Number(that.info.yL) / 2;
|
|
|
if (FLOORH && FLOORH.value) {
|
|
|
- if (Number(FLOORH.value) > ggsygd) {
|
|
|
+ if (Number(FLOORH.value) > ggsygd1) {
|
|
|
if (Number(FLOORH.value) <= 4.5) {
|
|
|
if (that.info.yL <= 1.5) {
|
|
|
ruleResult = "true";
|
|
@@ -232,7 +233,7 @@ export default {
|
|
|
}) * 1000
|
|
|
).toFixed(4);
|
|
|
|
|
|
- var jl1 = Number(distance1) + that.info.zL / 2;
|
|
|
+ var jl1 = Number(distance1 - 0.8) + that.info.zL / 2;
|
|
|
if (jl1 > 0.3) {
|
|
|
ruleResult = "false";
|
|
|
} else {
|
|
@@ -246,7 +247,7 @@ export default {
|
|
|
}
|
|
|
ReviewItem.ruleResult = ruleResult;
|
|
|
} else {
|
|
|
- ReviewItem.ruleResult = "";
|
|
|
+ ReviewItem.ruleResult = "1";
|
|
|
}
|
|
|
|
|
|
that.tableData.push(ReviewItem);
|
|
@@ -259,13 +260,28 @@ export default {
|
|
|
* 审核状态提交
|
|
|
*/
|
|
|
setReview(isPass) {
|
|
|
+ let that = this;
|
|
|
let item = window.billboardModelList.find((c) => c.id == this.info.id);
|
|
|
item.ReviewComments = this.ReviewComments;
|
|
|
if (isPass) {
|
|
|
+ let sd = that.tableData.find(
|
|
|
+ (c) => c.ruleResult == "false" || c.ruleResult == "1"
|
|
|
+ );
|
|
|
+ if (sd) {
|
|
|
+ this.$message({
|
|
|
+ message: "存在不符合项,请整改后重新审查",
|
|
|
+ type: "warning",
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
item.ReviewStatus = "已通过";
|
|
|
} else {
|
|
|
item.ReviewStatus = "未通过";
|
|
|
}
|
|
|
+ this.$message({
|
|
|
+ message: "审查完成",
|
|
|
+ type: "success",
|
|
|
+ });
|
|
|
this.lyoption.cancel();
|
|
|
this.$layer.close(this.layerid);
|
|
|
},
|