| | |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="24"> |
| | | <el-row :gutter="24" v-if="title == '查看'"> |
| | | <el-col :span="24" style="margin-left: 50px"> |
| | | <span style="font-size: 19px;font-weight: 600;">签字意见</span> |
| | | <el-table :data="state.form.flows" :border="true" style="width: 90%;margin-top: 10px"> |
| | | <el-table-column label="流程名称" prop="flowName" width="220" align="center"></el-table-column> |
| | | <el-table-column label="内容" align="center"> |
| | | <template #default="scope"> |
| | | <span>{{scope.row.approveDeptName}}/{{scope.row.approveUserName}} {{scope.row.approveTime}} {{scope.row.approveContent}}</span> |
| | | <span>{{scope.row.approveDeptName}}/{{scope.row.approveUserName}} {{scope.row.approveTime}} {{scope.row.approveContent}} {{scope.row.approveMess}}</span> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | }) |
| | | |
| | | const openDialog = async (type, value,companyList) => { |
| | | title.value = type === 'add' ? '新增' : type ==='edit' ? '编辑' : '查看' ; |
| | | const userInfo = JSON.parse(Cookies.get('userInfo')) |
| | | state.isAdmin = userInfo.userType === 0; |
| | | state.form.companyName = userInfo.companyName |
| | |
| | | status: null |
| | | } |
| | | state.form.flows[0]=obj |
| | | if(!state.form.applyDeptId){ |
| | | ElMessage.warning('该用户无所属部门!') |
| | | return |
| | | |
| | | } |
| | | //部门负责人信息 |
| | | await getLeaderInfo() |
| | | await getFlowList() |
| | |
| | | state.companyList = companyList |
| | | state.form.companyId = null |
| | | } |
| | | title.value = type === 'add' ? '新增' : type ==='edit' ? '编辑' : '查看' ; |
| | | |
| | | if(type === 'edit' || type === 'review') { |
| | | state.form = JSON.parse(JSON.stringify(value)); |
| | | state.form.compilationBy = state.form.compilationId |
| | |
| | | approveUserName: res.data.leaderName, |
| | | approveDeptName: res.data.deptName, |
| | | approveContent: '', |
| | | approveMess:'', |
| | | approveTime: null, |
| | | approveStatus: null, |
| | | status: null |
| | |
| | | pageSize: 999, |
| | | companyId: state.form.companyId |
| | | } |
| | | |
| | | const res = await getSealFlow(param) |
| | | if(res.code === 200){ |
| | | res.data.forEach(item => { |
| | | item.approveDeptName = item.deptName |
| | | item.approveDeptId = item.deptId |
| | | }) |
| | | if(title.value == '新增'){ |
| | | state.form.flows = state.form.flows.concat(res.data) |
| | |
| | | if(title.value === '新增'){ |
| | | console.log('sta',state.form) |
| | | state.form.flows[0].approveTime = moment(new Date()).format('YYYY-MM-DD HH:mm:ss') |
| | | debugger |
| | | const {id, ...data} = JSON.parse(JSON.stringify(state.form)) |
| | | const res = await addSealApply(data) |
| | | if(res.code === 200){ |