Browse Source

完善合格证管理

zhanglei
yunuo970428 3 years ago
parent
commit
c35fe70546
  1. 48
      anrui-scm/anrui-scm-ui/src/views/cheliang/hegezhengtaizhang/hegezhengtaizhangAdd.vue

48
anrui-scm/anrui-scm-ui/src/views/cheliang/hegezhengtaizhang/hegezhengtaizhangAdd.vue

@ -98,7 +98,8 @@
<el-col :span="24"> <el-col :span="24">
<el-form-item prop="remarks"> <el-form-item prop="remarks">
<span slot="label">备注</span> <span slot="label">备注</span>
<el-input v-model="temp.remarks" type="textarea" :rows="3" maxlength="125" placeholder="" class="addinputw addinputw_remarks" clearable/> <!-- <el-input v-model="temp.remarks" type="textarea" :rows="3" maxlength="125" placeholder="" class="addinputw addinputw_remarks" clearable/>-->
<span>{{ temp.remarks }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -320,6 +321,22 @@
</el-row> </el-row>
</el-form> </el-form>
</div> </div>
<el-dialog :visible.sync="dialogVisible" width="50%">
<el-form class="formadd">
<el-row style="border-top: 1px solid #E0E3EB">
<el-col :span="3" class="tleftb">
<span>说明原因</span>
</el-col>
<el-col :span="21">
<el-form-item><el-input v-model="smRemarks" type="textarea" :rows="3" maxlength="125" placeholder="" class="addinputw addinputw_remarks" clearable/></el-form-item>
</el-col>
</el-row>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button type="primary" @click="handleCreate"> </el-button>
<el-button @click="handleReturn"> </el-button>
</span>
</el-dialog>
</div> </div>
</template> </template>
@ -338,6 +355,8 @@ export default {
data() { data() {
return { return {
viewTitle: '', viewTitle: '',
dialogVisible: false,
smRemarks: '',
// --------- // ---------
menuState: { menuState: {
add: false, // add: false, //
@ -359,7 +378,8 @@ export default {
certificatePhoto: [], certificatePhoto: [],
certificateState: '004', // key certificateState: '004', // key
certificateStateValue: '正式', // value certificateStateValue: '正式', // value
noticeModel: '' // noticeModel: '', //
smRemarks: ''
}, // }, //
templook: {}, // templook: {}, //
Situation: [], Situation: [],
@ -667,8 +687,11 @@ export default {
certificateSituationValue: '', certificateSituationValue: '',
certificatePhoto: [], certificatePhoto: [],
certificateState: '0002', // key certificateState: '0002', // key
certificateStateValue: '正式' // value certificateStateValue: '正式', // value
smRemarks: ''
} // } //
this.dialogVisible = false
this.smRemarks = ''
this.$emit('doback') this.$emit('doback')
}, },
@ -711,10 +734,12 @@ export default {
}) })
} else { } else {
// this.temp.certificatePhoto = this.attachTypeYingyezhizhao // this.temp.certificatePhoto = this.attachTypeYingyezhizhao
this.temp.smRemarks = this.smRemarks
Update(this.temp).then((response) => { Update(this.temp).then((response) => {
this.FormLoading = false this.FormLoading = false
if (response.code === '200') { if (response.success) {
// this.getList() // this.getList()
if (response.msg !== '该车架号后八位与车辆台账中车架号不符,请填写说明原因') {
this.dialogFormVisible = false this.dialogFormVisible = false
this.$notify({ this.$notify({
title: '提示', title: '提示',
@ -723,6 +748,17 @@ export default {
duration: 2000 duration: 2000
}) })
this.handleReturn('true') this.handleReturn('true')
} else {
const tip = response.msg
this.$confirm(tip, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.smRemarks = ''
this.dialogVisible = true
})
}
} }
}) })
} }
@ -811,10 +847,6 @@ export default {
} }
</script> </script>
<style scoped> <style scoped>
.addinputwda {
width: 600px;
}
.formadd .el-row .el-col /deep/ .el-form-item .addinputw_remarks { .formadd .el-row .el-col /deep/ .el-form-item .addinputw_remarks {
width: 92%; width: 92%;
} }

Loading…
Cancel
Save