Commit 72f149a0 authored by 张俊's avatar 张俊

应用审批

parent 36e8624f
...@@ -24,8 +24,7 @@ ...@@ -24,8 +24,7 @@
<div class="type_box_select"> <div class="type_box_select">
<mavon-editor v-model="list_arr" :boxShadow="false" :toolbarsFlag="false" :subfield="false" defaultOpen="preview" :editable="false" v-if="now_service == 0"/> <mavon-editor v-model="list_arr" :boxShadow="false" :toolbarsFlag="false" :subfield="false" defaultOpen="preview" :editable="false" v-if="now_service == 0"/>
<info-list <info-list
v-if=" now_service == 1" v-if=" now_service !== 0"
@download="download"
:list_arr="servicead_arr :list_arr="servicead_arr
" "
> >
...@@ -171,12 +170,7 @@ export default { ...@@ -171,12 +170,7 @@ export default {
], ],
}, },
], ],
approval_arr3:[ approval_arr3:[],
{
title: "一级审批",
result: "审批中",
},
],
service_arr: ["基本信息", "申请审批信息"], service_arr: ["基本信息", "申请审批信息"],
service_header_arr: { service_header_arr: {
id:"", id:"",
...@@ -280,7 +274,7 @@ export default { ...@@ -280,7 +274,7 @@ export default {
created() { created() {
this.getServiceInfo(); this.getServiceInfo();
this.getreadme(); this.getreadme();
// this.getServiceBaseInfo(); this.getServiceBaseInfo();
this.getServiceapplyInfo(); this.getServiceapplyInfo();
}, },
mounted() {}, mounted() {},
...@@ -294,36 +288,57 @@ export default { ...@@ -294,36 +288,57 @@ export default {
}) })
.catch(function(response) {}); .catch(function(response) {});
}, },
download(val){
console.log(val);
},
getServiceapplyInfo() { getServiceapplyInfo() {
this.$http this.$http
.get("./static/applyappdetail.json") .get(`/apaas/hubApi/market/approvalInfo/${this.$route.params.id}`)
.then((response) => {
let data = response.data.data;
if(!(data&&data.length)){
this.approval_arr3.push({
title: "一级审批",
result: "待审批"
})
return
}
data.forEach(e => {
this.approval_arr3.push({
title: e.level==1?"一级审批":'二级审批',
result: e.apply_type_name,
arr: [
{
title: "审批时间:",
info: e.created,
},
{
title: "审批单位:",
info: e.department_name,
},
{
title: "审批人:",
info: e.user_name,
},
{
title: "审批意见:",
info: e.comments,
}
]
})
});
})
.catch(function(response) {});
},
getServiceBaseInfo() {
this.$http
.get("/apaas/hubApi/market/applyDetailInfo/"+this.$route.params.id)
.then((response) => { .then((response) => {
let data = response.data.data; let data = response.data.data;
this.$set(this.servicead_arr[1], "info", data.appapplyinfo.scene); this.$set(this.servicead_arr[1], "info", data.scene);
this.$set(this.servicead_arr[2], "info", data.appapplyinfo.filename); this.$set(this.servicead_arr[2], "info", data.apply_file);
this.$set(this.servicead_arr[2], "url", data.appapplyinfo.fileurl); this.$set(this.servicead_arr[2], "url", data.apply_file);
this.$set(this.servicead_arr[3], "info", data.appapplyinfo.size); this.$set(this.servicead_arr[3], "info", data.apply_type_name);
}) })
.catch(function(response) {}); .catch(function(response) {});
}, },
// getServiceBaseInfo() {
// this.$http
// .get("/apaas/hubApi/market/applyDetailInfo/"+this.$route.params.id)
// .then((response) => {
// let data = response.data.data;
// this.$set(this.list_arr[0], "info", data.appbaseinfo.intorduce);
// this.$set(this.list_arr[1], "info", data.appbaseinfo.action);
// this.$set(this.list_arr[2], "info", data.scene);
// this.$set(this.list_arr[4], "info", data.contact_person);
// this.$set(this.list_arr[5], "info", data.contact_number);
// this.appcode = data.appbaseinfo.appcode;
// })
// .catch(function(response) {});
// },
deploy(val){ deploy(val){
console.log(val); console.log(val);
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment