浏览代码

task 产权交易系统 会员注册查看新版审批流程

rongxin_test
QI_YUJIE 1年前
父节点
当前提交
7085267711
共有 2 个文件被更改,包括 51 次插入10 次删除
  1. +9
    -0
      src/api/user/index.js
  2. +42
    -10
      src/views/user/index.vue

+ 9
- 0
src/api/user/index.js 查看文件

@@ -193,6 +193,15 @@ export function realtimeList(query){
}) })
} }


// 查询审批历史
export function auditHistoryList(params) {
return request({
url: '/transaction/website/auditHistory/list',
method: 'get',
params: params
});
}

export const options = [ export const options = [
{ {
"value": "北京", "value": "北京",


+ 42
- 10
src/views/user/index.vue 查看文件

@@ -39,13 +39,30 @@
<van-dialog v-model="openView" title="审核记录"> <van-dialog v-model="openView" title="审核记录">
<div style="height: 50vh;overflow-y: scroll;padding: 0 5PX;"> <div style="height: 50vh;overflow-y: scroll;padding: 0 5PX;">
<van-cell-group :title="'进度'+(index+1)" v-for="(item,index) in historyList"> <van-cell-group :title="'进度'+(index+1)" v-for="(item,index) in historyList">
<van-cell title="活动名称" v-model="item.activityName" :border="false" />
<!-- <van-cell title="活动名称" v-model="item.activityName" :border="false" />
<van-cell title="办理人ID" v-model="item.assignee" :border="false" /> <van-cell title="办理人ID" v-model="item.assignee" :border="false" />
<van-cell title="办理人" v-model="item.assigneeName" :border="false" /> <van-cell title="办理人" v-model="item.assigneeName" :border="false" />
<van-cell title="审批意见" v-model="item.comment" :border="false" /> <van-cell title="审批意见" v-model="item.comment" :border="false" />
<van-cell title="开始时间" v-model="item.startTime" :border="false" /> <van-cell title="开始时间" v-model="item.startTime" :border="false" />
<van-cell title="结束时间" v-model="item.endTime" :border="false" /> <van-cell title="结束时间" v-model="item.endTime" :border="false" />
<van-cell title="耗时" v-model="item.durationInMillis" :border="false" />
<van-cell title="耗时" v-model="item.durationInMillis" :border="false" /> -->

<van-cell title="批次号" v-model="item.auditbatchNo" :border="false" value-class="cell_value" />
<van-cell title="节点名称" v-model="item.nodeName" :border="false" value-class="cell_value" />
<van-cell title="审批状态" :border="false" value-class="cell_value">
{{ auditStatusFormat(item.auditStatus) }}
</van-cell>
<van-cell title="审批对象" :border="false" value-class="cell_value">
<span v-if="item.auditType === '1'">
角色: {{ item.roleName }}
</span>
<span v-else-if="item.auditType === '2'">
用户: {{ item.nickName }}
</span>
</van-cell>
<van-cell title="审批人" v-model="item.auditBy" :border="false" value-class="cell_value" />
<van-cell title="审批时间" v-model="item.auditTime" :border="false" value-class="cell_value" />
<van-cell title="审批意见" v-model="item.auditRemark" :border="false" value-class="cell_value" />
</van-cell-group> </van-cell-group>


</div> </div>
@@ -54,7 +71,7 @@
</template> </template>


<script> <script>
import { getMember , supplyList , deleteSupply} from "@/api/user/index";
import { getMember , supplyList , deleteSupply, auditHistoryList} from "@/api/user/index";
import { logout ,getInfo } from "@/api/login/index"; import { logout ,getInfo } from "@/api/login/index";
import Cookies from "js-cookie"; import Cookies from "js-cookie";
import request from "@/utils/request"; import request from "@/utils/request";
@@ -68,15 +85,20 @@ export default {
instanceId:'', instanceId:'',
historyList:[], historyList:[],
openView:false, openView:false,
memberType:0
memberType:0,
auditbatchNo: null,
auditStatusOptions: [],
}; };
}, },
created() { created() {
this.getInfo(); this.getInfo();
this.getDicts("a_audit_status").then(response => {
this.auditStatusOptions = response.data;
});
}, },
methods: { methods: {
getHistoryList: function () { getHistoryList: function () {
this.loading = true;
/* this.loading = true;
var queryParams = { var queryParams = {
processInstanceId: this.instanceId processInstanceId: this.instanceId
}; };
@@ -97,7 +119,10 @@ export default {
this.total = response.total; this.total = response.total;
this.loading = false; this.loading = false;
}) })
.then(() => {});
.then(() => {}); */
auditHistoryList({ auditbatchNo: this.auditbatchNo, }).then(response => {
this.historyList = response.rows;
});
}, },
loginOut(){ loginOut(){
logout().then(response => { logout().then(response => {
@@ -111,22 +136,26 @@ export default {
}, },
getInfo(){ getInfo(){
getInfo().then(response => { getInfo().then(response => {
console.log(response)
this.user = response.user; this.user = response.user;
getMember(response.user.userId).then(response => { getMember(response.user.userId).then(response => {
console.log(response)
Cookies.set('memberId',response.data.id) Cookies.set('memberId',response.data.id)
this.phone = response.data.phone; this.phone = response.data.phone;
this.activitiStatus = response.data.activitiStatus; this.activitiStatus = response.data.activitiStatus;
this.instanceId = response.data.instanceId;
this.memberType = response.data.memberType; this.memberType = response.data.memberType;
/* this.instanceId = response.data.instanceId;
if(this.instanceId !== "" && this.instanceId != null){ if(this.instanceId !== "" && this.instanceId != null){
this.getHistoryList() this.getHistoryList()
} */
this.auditbatchNo = response.data.auditbatchNo;
if (this.auditbatchNo != null && this.auditbatchNo !== "") {
this.getHistoryList();
} }

}); });
}); });
}, },
auditStatusFormat(value) {
return this.selectDictLabel(this.auditStatusOptions, value);
},
format(time, format) { format(time, format) {
var t = new Date(time); var t = new Date(time);
var tf = function (i) { return (i < 10 ? '0' : '') + i }; var tf = function (i) { return (i < 10 ? '0' : '') + i };
@@ -246,4 +275,7 @@ export default {
width: 94%; width: 94%;
margin-left: 3%; margin-left: 3%;
} }
.cell_value {
min-width: 70%;
}
</style> </style>

正在加载...
取消
保存