|
@@ -249,7 +249,7 @@
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
|
|
|
- <el-dialog title="日常巡检记录" :visible.sync="record.open" width="80%" append-to-body
|
|
|
+ <el-dialog title="日常巡检记录" :visible.sync="record.open" width="70%" append-to-body
|
|
|
:close-on-click-modal="false">
|
|
|
<el-form :model="record.queryParams" ref="recordQueryForm" size="small" :inline="true" label-width="68px">
|
|
|
<el-form-item label="日期" prop="checkDateM">
|
|
@@ -321,41 +321,29 @@
|
|
|
<td>{{ item.leakagePosition }}</td>
|
|
|
<td>{{ item.leakageMedium }}</td>
|
|
|
<td>
|
|
|
- <el-checkbox-group v-model="item.suspendPlateMTmpl" :disabled="record.isEdit">
|
|
|
- <el-checkbox label="是"></el-checkbox>
|
|
|
- <el-checkbox label="否"></el-checkbox>
|
|
|
- </el-checkbox-group>
|
|
|
+ ▢ 是 ▢ 否
|
|
|
</td>
|
|
|
<td>
|
|
|
- <el-checkbox-group v-model="item.leakageStatusMTmpl" :disabled="record.isEdit">
|
|
|
- <el-checkbox label="未检出"></el-checkbox>
|
|
|
- <el-checkbox label="轻微"></el-checkbox>
|
|
|
- <el-checkbox label="严重"></el-checkbox>
|
|
|
- </el-checkbox-group>
|
|
|
+ ▢ 未检出 ▢ 轻微 ▢ 严重
|
|
|
</td>
|
|
|
<td>
|
|
|
- <el-checkbox-group v-model="item.suspendPlateNTmpl" :disabled="record.isEdit">
|
|
|
- <el-checkbox label="是"></el-checkbox>
|
|
|
- <el-checkbox label="否"></el-checkbox>
|
|
|
- </el-checkbox-group>
|
|
|
+ ▢ 是 ▢ 否
|
|
|
</td>
|
|
|
<td>
|
|
|
- <el-checkbox-group v-model="item.leakageStatusNTmpl" :disabled="record.isEdit">
|
|
|
- <el-checkbox label="未检出"></el-checkbox>
|
|
|
- <el-checkbox label="轻微"></el-checkbox>
|
|
|
- <el-checkbox label="严重"></el-checkbox>
|
|
|
- </el-checkbox-group>
|
|
|
+ ▢ 未检出 ▢ 轻微 ▢ 严重
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td colspan="7">
|
|
|
- 备注:<el-input type="textarea" v-model="record.pointPatrol.remarks" style="width: 95%"/>
|
|
|
+ 备注:
|
|
|
+ <el-input type="textarea" v-model="record.pointPatrol.remarks" style="width: 95%"/>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td colspan="7" style="text-align: left">
|
|
|
● 根据每日巡检状况在相应处打 “✔”<br>
|
|
|
- <span class="no-print">● 每日首次打开时请先点击保存按钮</span>
|
|
|
+ <span class="no-print">● 每日首次打开时请先点击保存按钮</span><br>
|
|
|
+ <span class="no-print">● 打印时请调整纸张为横向或设置纵向页面缩放</span>
|
|
|
</td>
|
|
|
</tr>
|
|
|
</table>
|
|
@@ -406,7 +394,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import {addPoints, delPoints, getPoints, listPoints, updatePoints} from "@/api/asset/points";
|
|
|
+import {addPoints, delPoints, getLastPointNum, getPoints, listPoints, updatePoints} from "@/api/asset/points";
|
|
|
import PointRecord from "@/views/asset/pointRecord/index.vue";
|
|
|
import PointPatrol from "@/views/asset/pointPatrol/index.vue";
|
|
|
import {getToken} from "@/utils/auth";
|
|
@@ -419,10 +407,10 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
// 打印区域配置对象
|
|
|
- printInfoObj:{
|
|
|
- id:"printInfo",
|
|
|
- popTitle:"漏点清单",
|
|
|
- preview:false, // 是否开启预览
|
|
|
+ printInfoObj: {
|
|
|
+ id: "printInfo",
|
|
|
+ popTitle: "漏点清单",
|
|
|
+ preview: false, // 是否开启预览
|
|
|
},
|
|
|
fullscreenLoading: false,
|
|
|
record: {
|
|
@@ -513,7 +501,14 @@ export default {
|
|
|
// 表单参数
|
|
|
form: {},
|
|
|
// 表单校验
|
|
|
- rules: {}
|
|
|
+ rules: {
|
|
|
+ pointNo:[
|
|
|
+ {required: true, message: "漏点编号不能为空", trigger: "blur"}
|
|
|
+ ],
|
|
|
+ leakagePosition:[
|
|
|
+ {required: true, message: "漏点位置不能为空", trigger: "blur"}
|
|
|
+ ]
|
|
|
+ }
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -524,10 +519,10 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
methods: {
|
|
|
- isNotEmpty(value){
|
|
|
+ isNotEmpty(value) {
|
|
|
if (value !== null && value !== "" && typeof (value) !== "undefined") {
|
|
|
return true
|
|
|
- }else {
|
|
|
+ } else {
|
|
|
return false
|
|
|
}
|
|
|
},
|
|
@@ -548,19 +543,19 @@ export default {
|
|
|
let list = response.rows;
|
|
|
if (list.length > 0) {
|
|
|
for (let item of list[0].records) {
|
|
|
- item.suspendPlateMTmpl=item.suspendPlateM==null?[]:item.suspendPlateM.split(",");
|
|
|
- item.suspendPlateNTmpl=item.suspendPlateN==null?[]:item.suspendPlateN.split(",");
|
|
|
- item.leakageStatusMTmpl=item.leakageStatusM==null?[]:item.leakageStatusM.split(",");
|
|
|
- item.leakageStatusNTmpl=item.leakageStatusN==null?[]:item.leakageStatusN.split(",");
|
|
|
+ item.suspendPlateMTmpl = item.suspendPlateM == null ? [] : item.suspendPlateM.split(",");
|
|
|
+ item.suspendPlateNTmpl = item.suspendPlateN == null ? [] : item.suspendPlateN.split(",");
|
|
|
+ item.leakageStatusMTmpl = item.leakageStatusM == null ? [] : item.leakageStatusM.split(",");
|
|
|
+ item.leakageStatusNTmpl = item.leakageStatusN == null ? [] : item.leakageStatusN.split(",");
|
|
|
}
|
|
|
this.record.pointPatrol = list[0];
|
|
|
console.log(this.record.pointPatrol)
|
|
|
this.record.isEdit = false
|
|
|
} else {
|
|
|
- getTeams(this.record.queryParams.checkDateM).then(res=>{
|
|
|
+ getTeams(this.record.queryParams.checkDateM).then(res => {
|
|
|
this.record.pointPatrol = {};
|
|
|
- this.record.pointPatrol.teamM=res.data.teamM;
|
|
|
- this.record.pointPatrol.teamN=res.data.teamN;
|
|
|
+ this.record.pointPatrol.teamM = res.data.teamM;
|
|
|
+ this.record.pointPatrol.teamN = res.data.teamN;
|
|
|
})
|
|
|
this.record.isEdit = true;
|
|
|
|
|
@@ -582,10 +577,10 @@ export default {
|
|
|
this.record.pointPatrol.checkDateM = this.record.queryParams.checkDateM;
|
|
|
if (this.record.pointPatrol.id != null) {
|
|
|
for (let item of this.record.pointPatrol.records) {
|
|
|
- item.suspendPlateM=item.suspendPlateMTmpl.join(',')
|
|
|
- item.suspendPlateN=item.suspendPlateNTmpl.join(',')
|
|
|
- item.leakageStatusM=item.leakageStatusMTmpl.join(',')
|
|
|
- item.leakageStatusN=item.leakageStatusNTmpl.join(',')
|
|
|
+ item.suspendPlateM = item.suspendPlateMTmpl.join(',')
|
|
|
+ item.suspendPlateN = item.suspendPlateNTmpl.join(',')
|
|
|
+ item.leakageStatusM = item.leakageStatusMTmpl.join(',')
|
|
|
+ item.leakageStatusN = item.leakageStatusNTmpl.join(',')
|
|
|
}
|
|
|
updatePointPatrol(this.record.pointPatrol).then(response => {
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
@@ -690,8 +685,8 @@ export default {
|
|
|
/** 重置按钮操作 */
|
|
|
resetQuery() {
|
|
|
this.resetForm("queryForm");
|
|
|
- this.queryParams.leakageEliminationResults=[]
|
|
|
- this.queryParams.leakageEliminationResult=null;
|
|
|
+ this.queryParams.leakageEliminationResults = []
|
|
|
+ this.queryParams.leakageEliminationResult = null;
|
|
|
this.handleQuery();
|
|
|
},
|
|
|
// 多选框选中数据
|
|
@@ -705,6 +700,10 @@ export default {
|
|
|
this.reset();
|
|
|
this.open = true;
|
|
|
this.title = "添加漏点清单";
|
|
|
+ getLastPointNum().then(res => {
|
|
|
+ let pointNo = res.data.pointNo;
|
|
|
+ this.form.pointNo = pointNo.substring(0, pointNo.indexOf('-')+1) + (parseInt(pointNo.substring(pointNo.indexOf('-')+1, pointNo.length)) + 1)
|
|
|
+ })
|
|
|
},
|
|
|
/** 修改按钮操作 */
|
|
|
handleUpdate(row) {
|
|
@@ -774,15 +773,16 @@ table td {
|
|
|
padding: 10px;
|
|
|
text-align: center;
|
|
|
}
|
|
|
+
|
|
|
@media print {
|
|
|
.no-print {
|
|
|
display: none;
|
|
|
}
|
|
|
::v-deep .el-radio__input,
|
|
|
- ::v-deep .el-checkbox__input{
|
|
|
- -webkit-print-color-adjust:exact;
|
|
|
- -moz-print-color-adjust:exact;
|
|
|
- color-adjust:exact;
|
|
|
+ ::v-deep .el-checkbox__input {
|
|
|
+ -webkit-print-color-adjust: exact;
|
|
|
+ -moz-print-color-adjust: exact;
|
|
|
+ color-adjust: exact;
|
|
|
}
|
|
|
}
|
|
|
</style>
|