| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- <template>
- <el-form :model="examineForm" label-width="100px">
- <el-form-item label="工程名称">
- <el-input type="text" placeholder="请输入内容" v-model="examineForm.objName" readonly>
- </el-input>
- </el-form-item>
- <el-form-item label="阶段信息" style="text-align:left">
- <el-input type="text" placeholder="请输入内容" v-model="planProcessName" readonly>
- </el-input>
- </el-form-item>
- <el-form-item label="是否通过审定" style="text-align:left">
- <el-radio v-model="examineForm.stageStatus" label="1">是</el-radio>
- <el-radio v-model="examineForm.stageStatus" label="2">否</el-radio>
- </el-form-item>
- <el-form-item label="审定意见">
- <el-input type="textarea" :rows="2" placeholder="请输入内容" v-model="examineForm.stageStatusReson">
- </el-input>
- </el-form-item>
- <el-form-item style="margin-top: 50px">
- <el-button type="primary" @click="examineVisible">保存</el-button>
- <el-button @click="examineVisiblefalse">取消</el-button>
- </el-form-item>
- </el-form>
- </template>
- <script>
- import request from '@util/gw_ajax_request.js'
- export default {
- props: ['rgstrId', 'planProcessId','planProcessName'],
- data() {
- return {
- examineForm: {
- objName:"",
- rgstrId:"",
- planProcessId:"",
- stageStatusReson:"",
- stageStatus:""
- },
- }
- },
- mounted() {
- this.getByExamine()
- },
- methods: {
- getByExamine() {
- let data = {
- rgstrId: this.rgstrId,
- planProcessId: this.planProcessId
- };
- request.post(`/tac/province/examine/getBy`,data).then(res => {
- if (res.success) {
- this.examineForm=res.data;
- } else {
- this.$message.error(res.message)
- }
- })
- },
- examineVisible(){
- var _self = this;
- _self.examineForm.planProcessId=_self.planProcessId;
- _self.examineForm.rgstrId=_self.rgstrId;
- if (_self.rgstrId&&_self.planProcessId) {
- request.post(`/tac/province/examRecord/insertExamine`,_self.examineForm).then(res => {
- if (res.success) {
- _self.$message.success('审定提交成功')
- this.$emit('dialogClose');
- } else {
- _self.$message.error(res.message)
- }
- }).catch((err) => {
- this.$message.error(err)
- });
- } else {
- this.$message.warning('项目名称以及阶段不能为空')
- }
- },
- examineVisiblefalse(){
- this.$emit('dialogClose')
- }
- },
- watch: {
- rgstrId() {
- this.getByExamine()
- },
- planProcessId() {
- this.getByExamine()
- }
- }
- }
- </script>
- <style lang="scss">
- </style>
|