责任状

2024年1月19日V01.00.51
zhaoyu 2024-01-18 14:58:36 +08:00
parent 941626ca83
commit dda1af7787
1 changed files with 24 additions and 4 deletions

View File

@ -3,7 +3,10 @@
<el-form ref="form" :rules="rules" :model="form" label-width="120px"> <el-form ref="form" :rules="rules" :model="form" label-width="120px">
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="承诺书名称" prop="PROMISE_NAME"> <el-form-item v-if="form.TYPE!='1'" label="承诺书名称" prop="PROMISE_NAME">
<el-input v-model="form.PROMISE_NAME" placeholder="请输入"/>
</el-form-item>
<el-form-item v-if="form.TYPE =='1'" label="责任状名称" prop="PROMISE_NAME">
<el-input v-model="form.PROMISE_NAME" placeholder="请输入"/> <el-input v-model="form.PROMISE_NAME" placeholder="请输入"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -43,9 +46,10 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">
<el-divider content-position="left">承诺人</el-divider> <el-divider v-if="form.TYPE!='1'" content-position="left"></el-divider>
<el-divider v-if="form.TYPE=='1'" content-position="left"></el-divider>
</el-col> </el-col>
<el-col v-if="form.DISTRIBUTIONOBJECT" :span="24"> <el-col v-if="form.DISTRIBUTIONOBJECT&&form.TYPE!='1'" :span="24">
<el-form-item style="text-align: right"> <el-form-item style="text-align: right">
<el-button type="primary" @click="addPeople"></el-button> <el-button type="primary" @click="addPeople"></el-button>
</el-form-item> </el-form-item>
@ -148,7 +152,8 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<el-divider content-position="left">被承诺人</el-divider> <el-divider v-if="form.TYPE!='1'" content-position="left"></el-divider>
<el-divider v-if="form.TYPE=='1'" content-position="left"></el-divider>
</el-col> </el-col>
<!-- <el-col :span="24">--> <!-- <el-col :span="24">-->
<!-- <el-form-item style="text-align: right">--> <!-- <el-form-item style="text-align: right">-->
@ -649,6 +654,21 @@ export default {
this.form.TYPE = row.TYPE this.form.TYPE = row.TYPE
this.dialog.visible = false this.dialog.visible = false
this.isSelectTemplate = true this.isSelectTemplate = true
if (this.form.TYPE == '1') {
this.form.people = [
{
treeData: [],
postList: [],
userList: [],
CORPINFO_ID: '',
DEPARTMENT_ID: null,
POST_ID: '',
USER_ID: [],
id: Math.random()
}
]
this.$forceUpdate()
}
}).catch((e) => { }).catch((e) => {
}) })
}, },