Browse Source

fix: 修复bug

sy-water-data-board-ui
hejunjie 1 month ago
parent
commit
967d610571
  1. 13
      src/views/dike/runManage/patrolMaintenance/componentsDetails/acceptanceDetails.vue
  2. 4
      src/views/dike/runManage/patrolMaintenance/componentsDetails/defectDetails.vue
  3. 1
      src/views/dike/runManage/patrolMaintenance/componentsDetails/inspectionRecordDetails.vue
  4. 2
      src/views/dike/runManage/patrolMaintenance/componentsDetails/maintenanceDetails.vue

13
src/views/dike/runManage/patrolMaintenance/componentsDetails/acceptanceDetails.vue

@ -137,8 +137,8 @@
</el-table> </el-table>
<div class="form-row-title">验收意见</div> <div class="form-row-title">验收意见</div>
<el-form ref="form" :model="form" :rules="rules" label-width="120px" label-position="right"> <el-form ref="form" :model="form" :rules="rules" label-width="120px" label-position="right">
<el-row gutter="48"> <el-row :gutter="48">
<el-col span="8"> <el-col :span="8">
<el-form-item label="复核人:" prop="operator"> <el-form-item label="复核人:" prop="operator">
<el-input <el-input
disabled disabled
@ -147,7 +147,7 @@
</el-input> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col span="8"> <el-col :span="8">
<el-form-item label="复核时间:" prop="approvalTime"> <el-form-item label="复核时间:" prop="approvalTime">
<el-date-picker <el-date-picker
size="small" size="small"
@ -163,7 +163,7 @@
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col span="16"> <el-col :span="16">
<el-form-item label="复核意见:" prop="comment"> <el-form-item label="复核意见:" prop="comment">
<el-input <el-input
type="textarea" type="textarea"
@ -281,7 +281,6 @@ export default {
this.form.type = checking.data.type this.form.type = checking.data.type
this.form.startDate = checking.data.startDate this.form.startDate = checking.data.startDate
this.form.endDate = checking.data.endDate this.form.endDate = checking.data.endDate
console.log(checking)
checking.data.problems.forEach(item => { checking.data.problems.forEach(item => {
if(item.id === this.$route.query.defectId) { if(item.id === this.$route.query.defectId) {
this.form.content = item.content this.form.content = item.content
@ -311,8 +310,8 @@ export default {
this.form.images = Yh.data.doc.images this.form.images = Yh.data.doc.images
this.fileData = Yh.data.doc.docs this.fileData = Yh.data.doc.docs
const ApprovalComment = await getV2ApprovalComment(this.$route.query.formId) const ApprovalComment = await getV2ApprovalComment(this.$route.query.formId)
this.form.approvalTime = ApprovalComment.data.approvalTime this.form.approvalTime = ApprovalComment.data[0].approvalTime
this.form.comment = ApprovalComment.data.comment this.form.comment = ApprovalComment.data[0].comment
}, },
getDictLabelName(type, dictListName) { getDictLabelName(type, dictListName) {

4
src/views/dike/runManage/patrolMaintenance/componentsDetails/defectDetails.vue

@ -131,8 +131,6 @@ export default {
methods: { methods: {
async initData() { async initData() {
const checking = await gettV2Record(this.$route.query.recordId) const checking = await gettV2Record(this.$route.query.recordId)
console.log('checking',checking)
console.log('checking',this.userName)
this.form.createName = checking.data.createName this.form.createName = checking.data.createName
this.form.userName = this.userName this.form.userName = this.userName
this.form.userId = this.userId this.form.userId = this.userId
@ -148,7 +146,6 @@ export default {
this.form.type = checking.data.type this.form.type = checking.data.type
this.form.startDate = checking.data.startDate this.form.startDate = checking.data.startDate
this.form.endDate = checking.data.endDate this.form.endDate = checking.data.endDate
console.log(checking)
checking.data.problems.forEach(item => { checking.data.problems.forEach(item => {
if(item.id === this.$route.query.defectId) { if(item.id === this.$route.query.defectId) {
this.form.content = item.content this.form.content = item.content
@ -198,7 +195,6 @@ export default {
startDate: this.form.time && this.form.time.length > 1 ? this.form.time[0] : '', startDate: this.form.time && this.form.time.length > 1 ? this.form.time[0] : '',
endDate: this.form.time && this.form.time.length > 1 ? this.form.time[1] : '', endDate: this.form.time && this.form.time.length > 1 ? this.form.time[1] : '',
} }
console.log(data)
if (this.$route.query.id) { if (this.$route.query.id) {
data.id = this.$route.query.id data.id = this.$route.query.id
} }

1
src/views/dike/runManage/patrolMaintenance/componentsDetails/inspectionRecordDetails.vue

@ -478,7 +478,6 @@ export default {
if (this.$route.query.id) { if (this.$route.query.id) {
data.id = this.$route.query.id; data.id = this.$route.query.id;
} }
console.log(data);
postV2Record(data, commit).then((res) => { postV2Record(data, commit).then((res) => {
this.$message.success("保存成功"); this.$message.success("保存成功");
this.$router.go(-1); this.$router.go(-1);

2
src/views/dike/runManage/patrolMaintenance/componentsDetails/maintenanceDetails.vue

@ -298,7 +298,6 @@ export default {
}) })
if (this.$route.query.id) { if (this.$route.query.id) {
const ApprovalComment = await getV2Yh(this.$route.query.id) const ApprovalComment = await getV2Yh(this.$route.query.id)
console.log(ApprovalComment)
this.form.time[0] = ApprovalComment.data.startDate this.form.time[0] = ApprovalComment.data.startDate
this.form.time[1] = ApprovalComment.data.endDate this.form.time[1] = ApprovalComment.data.endDate
this.form.describe = ApprovalComment.data.content this.form.describe = ApprovalComment.data.content
@ -402,7 +401,6 @@ export default {
startDate: this.form.time && this.form.time.length > 1 ? this.form.time[0] : '', startDate: this.form.time && this.form.time.length > 1 ? this.form.time[0] : '',
endDate: this.form.time && this.form.time.length > 1 ? this.form.time[1] : '', endDate: this.form.time && this.form.time.length > 1 ? this.form.time[1] : '',
} }
console.log(data)
if (this.$route.query.id) { if (this.$route.query.id) {
data.id = this.$route.query.id data.id = this.$route.query.id
} }

Loading…
Cancel
Save