0a41b548 by 蔡俊立

审批意见

1 parent d9ee3a4a
......@@ -96,3 +96,21 @@ export function stepExpandInfo (data) {
data
})
}
// 获取审批意见
export function getSpyjList (data) {
return request({
url: '/business/workFlow/getSpyjList',
method: 'post',
data
})
}
// 保存审批意见
export function saveSpyj (data) {
return request({
url: '/business/workFlow/saveSpyj',
method: 'post',
data
})
}
......
......@@ -138,6 +138,8 @@ export default {
message: '删除成功!'
});
this.fetchData()
}else {
this.$message.error(res.message);
}
})
}).catch(() => {
......
......@@ -13,8 +13,8 @@
<div class="item_right">
<el-row>
<el-col :span="24">
<el-form-item label-width="0" class="opinion_item" prop="csyj">
<el-input type="textarea" :rows="4" class="opinion" placeholder="请输入内容" v-model="ruleForm.csyj">
<el-form-item label-width="0" class="opinion_item" prop="shyj">
<el-input type="textarea" :rows="4" class="opinion" placeholder="请输入内容" v-model="ruleForm.shyj">
</el-input>
<el-popover placement="right" width="50" trigger="hover">
<ul class="pointer">
......@@ -28,18 +28,13 @@
</el-row>
<el-row>
<el-col :span="8">
<el-form-item label="审查人" prop="scr">
{{ ruleForm.scr }}
<el-col :span="16">
<el-form-item label="审查人" prop="scr">
{{ ruleForm.shryxm }}
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="审核开始时间" prop="shkssj">
{{ ruleForm.shkssj }}
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="审核结束时间" prop="shjssj">
<el-form-item label="审核时间:" prop="shjssj">
{{ ruleForm.shjssj }}
</el-form-item>
</el-col>
......@@ -53,8 +48,8 @@
<div class="item_right">
<el-row>
<el-col :span="24">
<el-form-item label-width="0" class="opinion_item" prop="csyj">
<el-input type="textarea" :rows="4" class="opinion" placeholder="请输入内容" v-model="ruleForm.csyj">
<el-form-item label-width="0" class="opinion_item" prop="shyj">
<el-input type="textarea" :rows="4" class="opinion" placeholder="请输入内容" v-model="ruleForm.shyj">
</el-input>
<el-popover placement="right" width="50" trigger="hover">
<ul class="pointer">
......@@ -68,18 +63,13 @@
</el-row>
<el-row>
<el-col :span="8">
<el-form-item label="审查人" prop="scr">
{{ ruleForm.scr }}
<el-col :span="16">
<el-form-item label="审查人" prop="scr">
{{ ruleForm.shryxm }}
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="审核开始时间" prop="shkssj">
{{ ruleForm.shkssj }}
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="审核结束时间" prop="shjssj">
<el-form-item label="审核时间:" prop="shjssj">
{{ ruleForm.shjssj }}
</el-form-item>
</el-col>
......@@ -93,8 +83,8 @@
<div class="item_right">
<el-row>
<el-col :span="24">
<el-form-item label-width="0" class="opinion_item" prop="csyj">
<el-input type="textarea" :rows="4" class="opinion" placeholder="请输入内容" v-model="ruleForm.csyj">
<el-form-item label-width="0" class="opinion_item" prop="shyj">
<el-input type="textarea" :rows="4" class="opinion" placeholder="请输入内容" v-model="ruleForm.shyj">
</el-input>
<el-popover placement="right" width="50" trigger="hover">
<ul class="pointer">
......@@ -108,18 +98,13 @@
</el-row>
<el-row>
<el-col :span="8">
<el-form-item label="审查人" prop="scr">
{{ ruleForm.scr }}
<el-col :span="16">
<el-form-item label="审查人" prop="scr">
{{ ruleForm.shryxm }}
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="审核开始时间" prop="shkssj">
{{ ruleForm.shkssj }}
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="审核结束时间" prop="shjssj">
<el-form-item label="审核时间:" prop="shjssj">
{{ ruleForm.shjssj }}
</el-form-item>
</el-col>
......@@ -127,32 +112,60 @@
</div>
</div>
<div class="submit_button">
<el-button type="primary">保存</el-button>
<el-button type="primary" @click="onSubmit">保存</el-button>
</div>
</el-form>
</div>
</template>
<script>
import { getSpyjList,saveSpyj } from "@/api/fqsq.js";
export default {
components: {},
props: {
bsmBusiness:{type:String},
bestepid: {type:String}
},
data () {
return {
ruleForm: {
csyj: '',
scr: '',
shyj: '',
bsmBusiness: this.bsmBusiness,
stepid: this.bestepid
},
rules: {
csyj: [
shyj: [
{ required: true, message: '请输入审批意见', trigger: 'blur' }
],
}
},
unitData: []
}
},
methods: {
handleClick () {
console.log(1)
}
},
//审批意见数据初始化
list (bsmBusiness,bestepid) {
var formdata = new FormData();
formdata.append("bsmBusiness", bsmBusiness);
formdata.append("bestepid", bestepid);
getSpyjList(formdata).then((res) => {
if (res.code === 200 && res.result) {
this.ruleForm = {...res.result[0]}
}
})
},
onSubmit () {
saveSpyj(this.ruleForm).then(res => {
if (res.code === 200) {
}else{
this.$message.error(res.message)
}
})
},
},
}
</script>
......
......@@ -43,8 +43,9 @@
<el-tabs v-model="activeName" @tab-click='activeClick'>
<el-tab-pane :label="item.name" :name="item.value" v-for="(item, index) in tabList" :key="index">
<div class="splitScreen-con">
<component ref='slxx' v-if='index == 0' :is="editItem" :flag="flag" :key="key" />
<component ref='clxx' :is="editItem" v-else-if="index == 1" :key="key" />
<component ref='slxx' v-if='item.value == "slxx"' :is="editItem" :flag="flag" :key="key" />
<component ref='clxx' :is="editItem" v-else-if='item.value == "clxx"' :key="key" />
<component ref='spyj' :is="editItem" v-else-if='item.value == "spyj"' :key="key" :bsmBusiness="bsmBusiness" :bestepid="queryForm.bestepid"/>
<component :is="editItem" v-else :key="key" />
</div>
</el-tab-pane>
......@@ -144,12 +145,21 @@ export default {
}
},
// 左侧列表点击调用接口
unitClick (item) {
unitClick (item) {
this.taskId = item.taskId
this.bsmBusiness = item.bsmBusiness
this.$nextTick(() => {
this.$refs.slxx[0].list(item.bsmSldy)
})
var activeTabName = this.activeName
if(activeTabName == 'slxx'){
//受理信息页面接口调取
this.$nextTick(() => {
this.$refs.slxx[0].list(item.bsmSldy)
})
}else if(activeTabName == 'spyj'){
//审批页面接口调取
this.$nextTick(() => {
this.$refs.spyj[0].list(this.bsmBusiness,this.queryForm.bestepid)
})
}
},
operation (index, item) {
if (item.value == 'zsyl') {
......