parent
0acb8e7d93
commit
dc911d608a
@ -0,0 +1,80 @@
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<my-dialog title="提示" ref="liebiaoDialog" @close="importClose" class="taskDialogBox" width="40%">
|
||||
<el-row>
|
||||
<el-col :span="21">
|
||||
<el-form :model="dialogruleForm" :rules="dialogruleFormrules" ref="eldialogruleForm" label-width="100px">
|
||||
<el-form-item label="关停原因:" prop="bfyy">
|
||||
<el-input v-model="dialogruleForm.bfyy" placeholder="请输入关停原因"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item class="newTask-form-item">
|
||||
<el-button @click="resetForm('eldialogruleForm')">取消</el-button>
|
||||
<el-button type="primary" @click="submitForm('eldialogruleForm')">确定</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</el-col>
|
||||
<el-col :span="6"></el-col>
|
||||
</el-row>
|
||||
</my-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import myDialog from "@/views/components/myDialog/index.vue"
|
||||
|
||||
|
||||
export default {
|
||||
components:{
|
||||
myDialog
|
||||
},
|
||||
name: 'baofei',
|
||||
data () {
|
||||
return {
|
||||
dialogruleForm:{
|
||||
bfyy:""
|
||||
},
|
||||
dialogruleFormrules:{
|
||||
bfyy: [
|
||||
{ required: true, message: '请输入', trigger: 'blur' },
|
||||
],
|
||||
},
|
||||
}
|
||||
},
|
||||
created () { },
|
||||
mounted () { },
|
||||
props:['ruleForm', 'assetTaskzc'],
|
||||
methods: {
|
||||
importClose(){},
|
||||
resetForm() {
|
||||
this.dialogruleForm = {
|
||||
bfyy:""
|
||||
}
|
||||
this.$refs.liebiaoDialog.close()
|
||||
|
||||
},
|
||||
open(){
|
||||
this.$refs.liebiaoDialog.open()
|
||||
|
||||
},
|
||||
submitForm(formName) {
|
||||
this.$refs[formName].validate((valid) => {
|
||||
if (valid) {
|
||||
this.ruleForm.isbf = 2
|
||||
this.ruleForm.bfyy = this.dialogruleForm.bfyy
|
||||
this.$emit("assetTaskzc",this.ruleForm)
|
||||
} else {
|
||||
console.log('error submit!!');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
},
|
||||
},
|
||||
|
||||
computed: {}
|
||||
}
|
||||
</script>
|
||||
<style scoped lang='scss'>
|
||||
|
||||
</style>
|
@ -0,0 +1,92 @@
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<my-dialog title="提示" ref="liebiaoDialog" @close="importClose" class="taskDialogBox" width="40%">
|
||||
<el-row>
|
||||
<el-col :span="21">
|
||||
<el-form :model="dialogruleForm" :rules="dialogruleFormrules" ref="dialogruleForm" label-width="100px">
|
||||
<el-form-item label="不通过原因:" prop="btgyy">
|
||||
<el-input v-model="dialogruleForm.btgyy" placeholder="请输入不通过原因"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item class="newTask-form-item">
|
||||
<el-button @click="resetForm('dialogruleForm')">取消</el-button>
|
||||
<el-button type="primary" @click="submitForm('dialogruleForm')">确定</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</el-col>
|
||||
<el-col :span="6"></el-col>
|
||||
</el-row>
|
||||
</my-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import myDialog from "@/views/components/myDialog/index.vue"
|
||||
import { assetTasksh } from "@/api/renwuApi/index.js"
|
||||
|
||||
|
||||
export default {
|
||||
components:{
|
||||
myDialog
|
||||
},
|
||||
name: 'baofei',
|
||||
data () {
|
||||
return {
|
||||
dialogruleForm:{
|
||||
btgyy:""
|
||||
},
|
||||
dialogruleFormrules:{
|
||||
btgyy: [
|
||||
{ required: true, message: '请输入', trigger: 'blur' },
|
||||
],
|
||||
},
|
||||
}
|
||||
},
|
||||
created () { },
|
||||
mounted () { },
|
||||
props:['chuandemingcheng', 'assetTaskzc'],
|
||||
methods: {
|
||||
importClose(){},
|
||||
resetForm() {
|
||||
this.dialogruleForm = {
|
||||
btgyy:""
|
||||
}
|
||||
this.$refs.liebiaoDialog.close()
|
||||
|
||||
},
|
||||
open(){
|
||||
this.$refs.liebiaoDialog.open()
|
||||
|
||||
},
|
||||
submitForm(formName) {
|
||||
this.$refs[formName].validate((valid) => {
|
||||
if (valid) {
|
||||
let tijioaobj = {
|
||||
taskId: this.$route.query.taskId,
|
||||
assetId: this.$route.query.assetId,
|
||||
xtmc:this.chuandemingcheng,
|
||||
btgyy:this.dialogruleForm.btgyy,
|
||||
status: 4,
|
||||
type:this.$route.query.type
|
||||
}
|
||||
assetTasksh(tijioaobj).then(res=>{
|
||||
if(res.code == 200){
|
||||
this.$modal.msgSuccess("审核成功");
|
||||
this.$router.go(-1);
|
||||
}
|
||||
})
|
||||
} else {
|
||||
console.log('error submit!!');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
},
|
||||
},
|
||||
|
||||
computed: {}
|
||||
}
|
||||
</script>
|
||||
<style scoped lang='scss'>
|
||||
|
||||
</style>
|
Loading…
Reference in new issue