diff --git a/supervise-uniapp/App.vue b/supervise-uniapp/App.vue
index cd0d74e5..32242828 100644
--- a/supervise-uniapp/App.vue
+++ b/supervise-uniapp/App.vue
@@ -12,6 +12,7 @@
sid: "",
headImage: "",
username: "",
+ orgSidPath: "",
orgNamePath: "",
organizationSid: "",
}, //全局变量,
diff --git a/supervise-uniapp/common/request.api.js b/supervise-uniapp/common/request.api.js
index 807cb51f..ea62fbeb 100644
--- a/supervise-uniapp/common/request.api.js
+++ b/supervise-uniapp/common/request.api.js
@@ -84,19 +84,46 @@ export default {
// 获取首页面数据
getWorkData: (params = {}) => request.get("/reportwxmpapi/messagepushlog/numberOfJobs/" + params, params),
-
+
// 获取消息类型列表
messageTypeList: (params = {}) => request.post("/reportwxmpapi/MessageType/list ", params),
-
+
// 获取风险预警消息
riskListPage: (params = {}) => request.post("/reportwxmpapi/ImgMessagesLog/listPage", params),
-
+
// 获取待阅工作、已阅工作
messageListPage: (params = {}) => request.post("/reportwxmpapi/messagepushlog/listPage", params),
-
+
// 获取设备状态
deviceListPage: (params = {}) => request.post("/reportwxmpapi/RiskMessagesLog/listPage", params),
+
+ // 获取待办工作列表
+ todoAllTaskList: (params = {}) => request.post("/api/portal/v1/flow/todoAllTaskList/" + params.params.userSid,
+ params),
+
+ // 获取已办工作列表
+ doneAllTaskList: (params = {}) => request.post("/api/portal/v1/flow/doneAllTaskList/" + params.params.userSid,
+ params),
+
+ // 获取业务流转记录
+ flowRecordList: (params = {}) => request.get("/api/portal/v1/flow/task/flowRecord/" + params.procInsId + "/" +
+ params.deployId, {}),
+
+ // 同意申请
+ completeProcess: (params = {}) => request.post("/enterprisecentre/v1/sealrecord/complete", params),
+
+ // 终止申请
+ breakProcess: (params = {}) => request.post("/enterprisecentre/v1/sealrecord/breakProcess", params),
+
+ // 撤回申请
+ revokeProcess: (params = {}) => request.post("/enterprisecentre/v1/sealrecord/revokeProcess", params),
+
+ // 获取用章申请详情
+ sealApplyDetail: (params = {}) => request.get("/enterprisecentre/v1/sealrecord/fetchDetailsBySid/" + params,
+ params),
+
+
// 获取云仓列表
storeHouseListPage: (params = {}) => request.post("/api/portal/v1/flow/storeHouseListPage", params),
// 获取云仓详情
@@ -119,17 +146,17 @@ export default {
// 获取数据总览列表
projectListPage: (params = {}) => request.post("/reportwxmpapi/projectdaily/selectListPage", params),
-
-
-
-
-
-
-
+
+
+
+
+
+
+
// 修改密码
updatePassword: (params = {}) => request.post("/api/portal/v1/sysuser/updatePassword", params),
-
+
// 修改头像
uploadHandImage: (params = {}) => request.post("/api/portal/v1/sysuser/uploadImage", params),
-
+
}
\ No newline at end of file
diff --git a/supervise-uniapp/common/wxSilentLogin.js b/supervise-uniapp/common/wxSilentLogin.js
index 0c8d6139..de1ac3cc 100644
--- a/supervise-uniapp/common/wxSilentLogin.js
+++ b/supervise-uniapp/common/wxSilentLogin.js
@@ -82,6 +82,7 @@ const wxSilentLogin = () => {
.mobile
getApp().globalData.isAdmin = res.data.data.isAdmin
+ getApp().globalData.orgSidPath = res.data.data.orgSidPath
getApp().globalData.orgNamePath = res.data.data.orgNamePath
getApp().globalData.organizationSid = res.data.data.organizationSid
getApp().globalData.headImage = res.data.data.headImage
diff --git a/supervise-uniapp/components/ProcessButtons/ProcessButtons.vue b/supervise-uniapp/components/ProcessButtons/ProcessButtons.vue
new file mode 100644
index 00000000..578612fb
--- /dev/null
+++ b/supervise-uniapp/components/ProcessButtons/ProcessButtons.vue
@@ -0,0 +1,202 @@
+
+
+
+
+ 撤回
+ 终止
+ 同意
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/supervise-uniapp/components/ProcessRecords/ProcessRecords.vue b/supervise-uniapp/components/ProcessRecords/ProcessRecords.vue
new file mode 100644
index 00000000..3e6be72e
--- /dev/null
+++ b/supervise-uniapp/components/ProcessRecords/ProcessRecords.vue
@@ -0,0 +1,371 @@
+
+
+
+ 审批流程
+ - 已办结
+
+
+
+
+
+
+
+
+
+ {{item.taskName}}
+ 审批中
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{item.taskUserInfos[0].assigneeName}}
+ {{item.finishTime}}
+
+
+ 发起申请
+ 已同意
+ 已拒绝
+
+
+
+
+
+
+
+ 审批意见:
+ {{item.comment.comment}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{info.assigneeName}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/supervise-uniapp/pages.json b/supervise-uniapp/pages.json
index 96b7aaaa..761ce2b3 100644
--- a/supervise-uniapp/pages.json
+++ b/supervise-uniapp/pages.json
@@ -33,6 +33,14 @@
"navigationBarTitleText": "工作台"
}
},
+ {
+ "path": "pages/index/WaitingProcessed",
+ "style": {
+ "navigationBarTitleText": "待办工作",
+ "enablePullDownRefresh": true
+ }
+
+ },
{
"path": "pages/home/MessageFragment",
@@ -69,14 +77,7 @@
},
- {
- "path": "pages/index/WaitingProcessed",
- "style": {
- "navigationBarTitleText": "待办工作",
- "enablePullDownRefresh": true
- }
-
- },
+
{
@@ -363,6 +364,15 @@
}
}
+ ,{
+ "path" : "pages/index/sealApplyDetail",
+ "style" :
+ {
+ "navigationBarTitleText": "印鉴申请详情",
+ "enablePullDownRefresh": false
+ }
+
+ }
],
"lazyCodeLoading": "requiredComponents",
"globalStyle": {
diff --git a/supervise-uniapp/pages/home/WorkFragment.vue b/supervise-uniapp/pages/home/WorkFragment.vue
index acb57571..5fc0d1b4 100644
--- a/supervise-uniapp/pages/home/WorkFragment.vue
+++ b/supervise-uniapp/pages/home/WorkFragment.vue
@@ -19,7 +19,7 @@
-
+
{{dyNum}}
@@ -296,7 +296,7 @@
// if (resp.success) {
console.log('1111', resp)
this.isShow = msg;
- this.dbNum = resp.todoNumber
+ this.dbNum = resp.toDo
this.dyNum = resp.pendingMessages
this.textArr = resp.notice
this.swipers = resp.urls
diff --git a/supervise-uniapp/pages/index/AlreadyProcessed.vue b/supervise-uniapp/pages/index/AlreadyProcessed.vue
index 2e8d1c4d..d0cae543 100644
--- a/supervise-uniapp/pages/index/AlreadyProcessed.vue
+++ b/supervise-uniapp/pages/index/AlreadyProcessed.vue
@@ -17,44 +17,36 @@
@refresherrestore="onRestore" @refresherabort="onAbort" @scrolltolower="scrollBottem">
-
+
- {{item.workName}}
- {{item.state}}
+ {{item.procDefName}}
+ {{item.endTime==null?item.taskName:"已办结"}}
-
+
发起人:
- {{item.name}}
+ {{item.startUserName}}
发起部门:
- {{item.department}}
+ {{item.startDeptName}}
-
+
发起日期:
- {{item.startDate}}
+ {{item.createTime}}
-
+
当前处理人:
- {{item.currentProcessor}}
+ {{item.assigneeName}}
-
-
-
-
-
-
- {{item.submitDate}}
-
@@ -71,20 +63,20 @@
申请日期
-
+
至
-
+
- 发起人
+
-
+
{{item.name}}
-
-
+ >
@@ -132,111 +122,10 @@
export default {
data() {
return {
- searchText: "",
- search: {
- startDate: "",
- endDate: "",
- promoter: ""
- },
selectDate: "",
datetimeShow: false,
datetimeIndex: "1",
- personnelList: [{
- id: "1",
- name: "张安1",
- department: "研发部",
- checked: false
- },
- {
- id: "2",
- name: "张安2",
- department: "研发部",
- checked: false
- },
- {
- id: "3",
- name: "张安3",
- department: "研发部",
- checked: false
- },
- {
- id: "4",
- name: "张安4",
- department: "研发部",
- checked: false
- },
- {
- id: "5",
- name: "张安5",
- department: "研发部",
- checked: false
- },
- {
- id: "6",
- name: "张安6",
- department: "研发部",
- checked: false
- },
- {
- id: "7",
- name: "张安7",
- department: "研发部",
- checked: false
- },
- {
- id: "8",
- name: "张安8",
- department: "研发部",
- checked: false
- },
- {
- id: "9",
- name: "张安9",
- department: "研发部",
- checked: false
- },
- {
- id: "10",
- name: "张安10",
- department: "研发部",
- checked: false
- },
- {
- id: "11",
- name: "张安11",
- department: "研发部",
- checked: false
- },
- {
- id: "12",
- name: "张安12",
- department: "研发部",
- checked: false
- },
- {
- id: "13",
- name: "张安13",
- department: "研发部",
- checked: false
- },
- {
- id: "14",
- name: "张安14",
- department: "研发部",
- checked: false
- },
- {
- id: "1",
- name: "张安1",
- department: "研发部",
- checked: false
- },
- {
- id: "15",
- name: "张安16",
- department: "研发部",
- checked: false
- },
+ personnelList: [
],
triggered: true,
@@ -251,171 +140,43 @@
current: 1,
size: 10,
params: {
+ procDefName: "",
+ startDate: "",
+ endDate: "",
+ userSid: "",
woekName: "",
}
},
loadingType: 'more', //加载更多状态
- dataList: [{
- workName: "测试XXXX申请",
- state: "经理审核",
- name: "张磊",
- department: "研发部",
- startDate: "2022-01-23-10:26",
- currentProcessor:"张衡、吴",
- submitDate: "2022.01.28 10:28"
-
- },
- {
- workName: "测试XXXX申请",
- state: "经理审核",
- name: "张磊",
- department: "研发部",
- startDate: "2022-01-23-10:26",
- currentProcessor:"张衡、吴",
- submitDate: "2022.01.28 10:28"
-
- },
- {
- workName: "测试XXXX申请",
- state: "经理审核",
- name: "张磊",
- department: "研发部",
- startDate: "2022-01-23-10:26",
- currentProcessor:"张衡、吴",
- submitDate: "2022.01.28 10:28"
-
- },
- {
- workName: "测试XXXX申请",
- state: "经理审核",
- name: "张磊",
- department: "研发部",
- startDate: "2022-01-23-10:26",
- currentProcessor:"张衡、吴",
- submitDate: "2022.01.28 10:28"
-
- },
- {
- workName: "测试XXXX申请",
- state: "经理审核",
- name: "张磊",
- department: "研发部",
- startDate: "2022-01-23-10:26",
- currentProcessor:"张衡、吴",
- submitDate: "2022.01.28 10:28"
-
- },
- {
- workName: "测试XXXX申请",
- state: "经理审核",
- name: "张磊",
- department: "研发部",
- startDate: "2022-01-23-10:26",
- currentProcessor:"张衡、吴",
- submitDate: "2022.01.28 10:28"
-
- },
- {
- workName: "测试XXXX申请",
- state: "经理审核",
- name: "张磊",
- department: "研发部",
- startDate: "2022-01-23-10:26",
- currentProcessor:"张衡、吴",
- submitDate: "2022.01.28 10:28"
-
- },
- {
- workName: "测试XXXX申请",
- state: "经理审核",
- name: "张磊",
- department: "研发部",
- startDate: "2022-01-23-10:26",
- currentProcessor:"张衡、吴",
- submitDate: "2022.01.28 10:28"
-
- },
- {
- workName: "测试XXXX申请",
- state: "经理审核",
- name: "张磊",
- department: "研发部",
- startDate: "2022-01-23-10:26",
- currentProcessor:"张衡、吴",
- submitDate: "2022.01.28 10:28"
-
- },
- {
- workName: "测试XXXX申请",
- state: "经理审核",
- name: "张磊",
- department: "研发部",
- startDate: "2022-01-23-10:26",
- currentProcessor:"张衡、吴",
- submitDate: "2022.01.28 10:28"
-
- },
- {
- workName: "测试XXXX申请",
- state: "经理审核",
- name: "张磊",
- department: "研发部",
- startDate: "2022-01-23-10:26",
- currentProcessor:"张衡、吴",
- submitDate: "2022.01.28 10:28"
-
- },
-
- {
- workName: "测试XXXX申请",
- state: "经理审核",
- name: "张磊",
- department: "研发部",
- startDate: "2022-01-23-10:26",
- currentProcessor:"张衡、吴",
- submitDate: "2022.01.28 10:28"
-
- },
- {
- workName: "测试XXXX申请",
- state: "经理审核",
- name: "张磊",
- department: "研发部",
- startDate: "2022-01-23-10:26",
- currentProcessor:"张衡、吴",
- submitDate: "2022.01.28 10:28"
-
- },
-
- ],
+ dataList: [],
};
},
-
+
created() {
this.$bus.$on('wholeSpin', msg => {
//这里获取到http工具js文件中传过来的wholeSpin值
console.log(">>>>>", this.isShow)
-
+
var userSid = getApp().globalData.sid
console.log(">>>>>", userSid)
this.loadData();
});
},
-
-
+
+
onLoad() {
-
+
},
-
+
onShow() {
console.log('onShow', getApp().globalData.isLogin)
-
+
let token = uni.getStorageSync("Global-Auth-Token")
if (token != null && token.length != 0) {
getApp().globalData.token = token
}
- let isLogin =uni.getStorageSync("isLogin")
+ let isLogin = uni.getStorageSync("isLogin")
if (isLogin != null && isLogin == 1) {
getApp().globalData.isLogin = isLogin
}
@@ -423,26 +184,28 @@
if (sid != null && sid.length != 0) {
getApp().globalData.sid = sid
}
-
+
console.log('用户Sid', getApp().globalData.sid)
console.log('token', getApp().globalData.token)
console.log('是否登陆', getApp().globalData.isLogin)
-
+
// setTimeout(() => {
if (getApp().globalData.isLogin) {
var userSid = getApp().globalData.sid
console.log(">>>>>", userSid)
- this.loadData();
+ this.listQuery.params.userSid = userSid
+ this.dataList = []
+ this.loadData();
// uni.setTabBarBadge({ //显示数字
// index: 0, //tabbar下标
// text: '100' //数字
// })
} else {
-
+
/* #ifdef MP-WEIXIN */
this.WxSilentLogin()
/* #endif */
-
+
/* #ifdef APP-PLUS */
uni.redirectTo({
url: '../login/login'
@@ -450,27 +213,7 @@
/* #endif */
}
},
-
- // onShow() {
- // this.listQuery.current = 1
- // this.dataList = [];
- // this.loadData();
- // },
- // onLoad() {
-
- // },
- // onPullDownRefresh() {
- // this.listQuery.current = 1
- // this.loadData('refresh');
- // setTimeout(function() {
- // uni.stopPullDownRefresh();
- // }, 2000);
- // },
- // //加载更多
- // onReachBottom() {
- // this.listQuery.current = this.listQuery.current + 1
- // this.loadData();
- // },
+
onReady() {
/* #ifdef MP-WEIXIN */
// 微信小程序需要用此写法
@@ -504,17 +247,21 @@
console.log("onAbort");
},
searchInput(e) {
- console.log("searchText》》》", e.detail.value);
- this.searchText = e.detail.value
+ this.listQuery.params.procDefName = e.detail.value
+ this.dataList = []
+ this.listQuery.current = 1,
+ this.listQuery.size = 10,
+
+ this.loadData()
},
highLight(value) {
console.log("highLight》》》", value);
if (value == '' || value == undefined || value == null)
return
- if (value.includes(this.searchText)) {
+ if (value.includes(this.listQuery.params.procDefName)) {
value = value.replace(
- this.searchText,
- "" + this.searchText + ""
+ this.listQuery.params.procDefName,
+ "" + this.listQuery.params.procDefName + ""
)
return value
} else {
@@ -560,10 +307,10 @@
switch (this.datetimeIndex) {
case "1":
- this.search.startDate = formatTimeTwo(parseInt(date.value), "Y-M-D")
+ this.listQuery.params.startDate = formatTimeTwo(parseInt(date.value), "Y-M-D")
break;
case "2":
- this.search.endDate = formatTimeTwo(parseInt(date.value), "Y-M-D")
+ this.listQuery.params.endDate = formatTimeTwo(parseInt(date.value), "Y-M-D")
break;
default:
break;
@@ -594,24 +341,21 @@
// this.personnelList[index].checked = !this.personnelList[index].checked
},
resetClik() {
- this.search = {
- startDate: "",
- endDate: "",
- promoter: ""
- }
+ this.listQuery.params.startDate = ""
+ this.listQuery.params.endDate = ""
},
assignClick() {
- console.log('confirm', this.search)
+ console.log('confirm', this.listQuery.params)
this.datetimeShow = false
this.$refs['drawer'].close()
-
- uni.showToast({
- icon: "none",
- title: JSON.stringify( this.search),
- duration: 5000,
- });
+
+ this.dataList = []
+ this.listQuery.current = 1,
+ this.listQuery.size = 10,
+
+ this.loadData()
},
//加载商品 ,带下拉刷新和上滑加载
@@ -627,18 +371,11 @@
}
var list = []
-
- this.$api.storeHouseListPage(this.listQuery).then((resp) => {
+ console.log('listQuery', this.listQuery)
+ this.$api.doneAllTaskList(this.listQuery).then((resp) => {
// if (resp.success) {
console.log('1111', resp)
- this.listQuery = {
- current: resp.current,
- size: 10,
- params: {
-
- }
- }
list = resp.records
console.log("消息列表", list)
@@ -665,6 +402,35 @@
})
},
+ itemClick(item) {
+ console.log('item', item)
+
+ var sid = item.processVariables.businessSid
+ var procInsId = item.procInsId
+ var deployId = item.deployId
+ var previousPersonSid = item.previousPersonSid
+ var taskId = item.taskId
+ var taskDefKey = item.taskDefKey
+
+ var isFinish = item.endTime == null?"":item.endTime
+
+ console.log('sid', sid)
+ console.log('procInsId', procInsId)
+ console.log('deployId', deployId)
+ console.log('previousPersonSid', previousPersonSid)
+ console.log('taskId', taskId)
+ console.log('taskDefKey', taskDefKey)
+ console.log('isFinish', isFinish)
+
+
+
+ uni.navigateTo({
+ url: 'sealApplyDetail?sid=' + sid + "&procInsId=" + procInsId + "&deployId=" + deployId +
+ "&previousPersonSid=" + previousPersonSid + "&type=2" + "&isFinish="+isFinish+
+ "&taskId=" + taskId + "&taskDefKey=" + taskDefKey
+ });
+
+ }
}
}
diff --git a/supervise-uniapp/pages/index/WaitingProcessed.vue b/supervise-uniapp/pages/index/WaitingProcessed.vue
index b15740a5..11073706 100644
--- a/supervise-uniapp/pages/index/WaitingProcessed.vue
+++ b/supervise-uniapp/pages/index/WaitingProcessed.vue
@@ -17,27 +17,27 @@
@refresherrestore="onRestore" @refresherabort="onAbort" @scrolltolower="scrollBottem">
-
+
- {{item.workName}}
- {{item.state}}
+ {{item.procDefName}}
+ {{item.taskName}}
发起人:
- {{item.name}}
+ {{item.startUserName}}
发起部门:
- {{item.department}}
+ {{item.startDeptName}}
发起日期:
- {{item.startDate}}
+ {{item.createTime}}
@@ -46,7 +46,7 @@
- {{item.submitDate}}
+ {{item.processCreateTime}}
@@ -66,21 +66,21 @@
申请日期
-
+
至
-
+
- 发起人
+
-
-
{{item.name}}
-
+ -->
@@ -127,111 +126,10 @@
export default {
data() {
return {
- searchText: "",
- search: {
- startDate: "",
- endDate: "",
- promoter: ""
- },
selectDate: "",
datetimeShow: false,
datetimeIndex: "1",
- personnelList: [{
- id: "1",
- name: "张安1",
- department: "研发部",
- checked: false
- },
- {
- id: "2",
- name: "张安2",
- department: "研发部",
- checked: false
- },
- {
- id: "3",
- name: "张安3",
- department: "研发部",
- checked: false
- },
- {
- id: "4",
- name: "张安4",
- department: "研发部",
- checked: false
- },
- {
- id: "5",
- name: "张安5",
- department: "研发部",
- checked: false
- },
- {
- id: "6",
- name: "张安6",
- department: "研发部",
- checked: false
- },
- {
- id: "7",
- name: "张安7",
- department: "研发部",
- checked: false
- },
- {
- id: "8",
- name: "张安8",
- department: "研发部",
- checked: false
- },
- {
- id: "9",
- name: "张安9",
- department: "研发部",
- checked: false
- },
- {
- id: "10",
- name: "张安10",
- department: "研发部",
- checked: false
- },
- {
- id: "11",
- name: "张安11",
- department: "研发部",
- checked: false
- },
- {
- id: "12",
- name: "张安12",
- department: "研发部",
- checked: false
- },
- {
- id: "13",
- name: "张安13",
- department: "研发部",
- checked: false
- },
- {
- id: "14",
- name: "张安14",
- department: "研发部",
- checked: false
- },
- {
- id: "1",
- name: "张安1",
- department: "研发部",
- checked: false
- },
- {
- id: "15",
- name: "张安16",
- department: "研发部",
- checked: false
- },
+ personnelList: [
],
triggered: true,
@@ -246,141 +144,15 @@
current: 1,
size: 10,
params: {
+ proDefName: "",
+ startDate: "",
+ endDate: "",
+ userSid: "",
woekName: "",
}
},
loadingType: 'more', //加载更多状态
- dataList: [{
- workName: "测试XXXX申请",
- state: "经理审核",
- name: "张磊",
- department: "研发部",
- startDate: "2022-01-23-10:26",
- currentProcessor: "张衡、吴",
- submitDate: "2022.01.28 10:28"
-
- },
- {
- workName: "测试XXXX申请",
- state: "经理审核",
- name: "张磊",
- department: "研发部",
- startDate: "2022-01-23-10:26",
- currentProcessor: "张衡、吴",
- submitDate: "2022.01.28 10:28"
-
- },
- {
- workName: "测试XXXX申请",
- state: "经理审核",
- name: "张磊",
- department: "研发部",
- startDate: "2022-01-23-10:26",
- currentProcessor: "张衡、吴",
- submitDate: "2022.01.28 10:28"
-
- },
- {
- workName: "测试XXXX申请",
- state: "经理审核",
- name: "张磊",
- department: "研发部",
- startDate: "2022-01-23-10:26",
- currentProcessor: "张衡、吴",
- submitDate: "2022.01.28 10:28"
-
- },
- {
- workName: "测试XXXX申请",
- state: "经理审核",
- name: "张磊",
- department: "研发部",
- startDate: "2022-01-23-10:26",
- currentProcessor: "张衡、吴",
- submitDate: "2022.01.28 10:28"
-
- },
- {
- workName: "测试XXXX申请",
- state: "经理审核",
- name: "张磊",
- department: "研发部",
- startDate: "2022-01-23-10:26",
- currentProcessor: "张衡、吴",
- submitDate: "2022.01.28 10:28"
-
- },
- {
- workName: "测试XXXX申请",
- state: "经理审核",
- name: "张磊",
- department: "研发部",
- startDate: "2022-01-23-10:26",
- currentProcessor: "张衡、吴",
- submitDate: "2022.01.28 10:28"
-
- },
- {
- workName: "测试XXXX申请",
- state: "经理审核",
- name: "张磊",
- department: "研发部",
- startDate: "2022-01-23-10:26",
- currentProcessor: "张衡、吴",
- submitDate: "2022.01.28 10:28"
-
- },
- {
- workName: "测试XXXX申请",
- state: "经理审核",
- name: "张磊",
- department: "研发部",
- startDate: "2022-01-23-10:26",
- currentProcessor: "张衡、吴",
- submitDate: "2022.01.28 10:28"
-
- },
- {
- workName: "测试XXXX申请",
- state: "经理审核",
- name: "张磊",
- department: "研发部",
- startDate: "2022-01-23-10:26",
- currentProcessor: "张衡、吴",
- submitDate: "2022.01.28 10:28"
-
- },
- {
- workName: "测试XXXX申请",
- state: "经理审核",
- name: "张磊",
- department: "研发部",
- startDate: "2022-01-23-10:26",
- currentProcessor: "张衡、吴",
- submitDate: "2022.01.28 10:28"
-
- },
-
- {
- workName: "测试XXXX申请",
- state: "经理审核",
- name: "张磊",
- department: "研发部",
- startDate: "2022-01-23-10:26",
- currentProcessor: "张衡、吴",
- submitDate: "2022.01.28 10:28"
-
- },
- {
- workName: "测试XXXX申请",
- state: "经理审核",
- name: "张磊",
- department: "研发部",
- startDate: "2022-01-23-10:26",
- currentProcessor: "张衡、吴",
- submitDate: "2022.01.28 10:28"
-
- },
+ dataList: [
],
@@ -394,6 +166,7 @@
var userSid = getApp().globalData.sid
console.log(">>>>>", userSid)
+ this.listQuery.params.userSid = userSid
this.loadData();
});
},
@@ -427,6 +200,8 @@
if (getApp().globalData.isLogin) {
var userSid = getApp().globalData.sid
console.log(">>>>>", userSid)
+ this.listQuery.params.userSid = userSid
+ this.dataList=[]
this.loadData();
// uni.setTabBarBadge({ //显示数字
// index: 0, //tabbar下标
@@ -446,26 +221,6 @@
}
},
- // onShow() {
- // this.listQuery.current = 1
- // this.dataList = [];
- // this.loadData();
- // },
- // onLoad() {
-
- // },
- // onPullDownRefresh() {
- // this.listQuery.current = 1
- // this.loadData('refresh');
- // setTimeout(function() {
- // uni.stopPullDownRefresh();
- // }, 2000);
- // },
- // //加载更多
- // onReachBottom() {
- // this.listQuery.current = this.listQuery.current + 1
- // this.loadData();
- // },
onReady() {
/* #ifdef MP-WEIXIN */
// 微信小程序需要用此写法
@@ -499,17 +254,21 @@
console.log("onAbort");
},
searchInput(e) {
- console.log("searchText》》》", e.detail.value);
- this.searchText = e.detail.value
+ this.listQuery.params.proDefName = e.detail.value
+ this.dataList = []
+ this.listQuery.current = 1,
+ this.listQuery.size = 10,
+
+ this.loadData()
},
highLight(value) {
console.log("highLight》》》", value);
if (value == '' || value == undefined || value == null)
return
- if (value.includes(this.searchText)) {
+ if (value.includes(this.listQuery.params.proDefName)) {
value = value.replace(
- this.searchText,
- "" + this.searchText + ""
+ this.listQuery.params.proDefName,
+ "" + this.listQuery.params.proDefName + ""
)
return value
} else {
@@ -555,10 +314,10 @@
switch (this.datetimeIndex) {
case "1":
- this.search.startDate = formatTimeTwo(parseInt(date.value), "Y-M-D")
+ this.listQuery.params.startDate = formatTimeTwo(parseInt(date.value), "Y-M-D")
break;
case "2":
- this.search.endDate = formatTimeTwo(parseInt(date.value), "Y-M-D")
+ this.listQuery.params.endDate = formatTimeTwo(parseInt(date.value), "Y-M-D")
break;
default:
break;
@@ -589,24 +348,27 @@
// this.personnelList[index].checked = !this.personnelList[index].checked
},
resetClik() {
- this.search = {
- startDate: "",
- endDate: "",
- promoter: ""
- }
+ this.listQuery.params.startDate = ""
+ this.listQuery.params.endDate = ""
},
assignClick() {
- console.log('confirm', this.search)
+ console.log('confirm', this.listQuery.params)
this.datetimeShow = false
this.$refs['drawer'].close()
- uni.showToast({
- icon: "none",
- title: JSON.stringify(this.search),
- duration: 5000,
- });
+ this.dataList = []
+ this.listQuery.current = 1,
+ this.listQuery.size = 10,
+
+ this.loadData()
+
+ // uni.showToast({
+ // icon: "none",
+ // title: JSON.stringify(this.listQuery.params),
+ // duration: 5000,
+ // });
},
//加载商品 ,带下拉刷新和上滑加载
@@ -622,23 +384,23 @@
}
var list = []
-
- this.$api.storeHouseListPage(this.listQuery).then((resp) => {
+ console.log('listQuery', this.listQuery)
+ this.$api.todoAllTaskList(this.listQuery).then((resp) => {
// if (resp.success) {
console.log('1111', resp)
- this.listQuery = {
- current: resp.current,
- size: 10,
- params: {
+ // this.listQuery = {
+ // current: resp.current,
+ // size: 10,
+ // params: {
+
+ // }
+ // }
- }
- }
list = resp.records
console.log("消息列表", list)
- // this.goodsList = list;
- // let goodsList = await this.$api.json('goodsList');
+
if (type === 'refresh') {
this.dataList = [];
}
@@ -660,6 +422,31 @@
})
},
+
+ itemClick(item) {
+ console.log('item', item)
+
+ var sid = item.processVariables.businessSid
+ var procInsId = item.procInsId
+ var deployId = item.deployId
+ var previousPersonSid = item.previousPersonSid
+ var taskId = item.taskId
+ var taskDefKey = item.taskDefKey
+
+ console.log('sid', sid)
+ console.log('procInsId', procInsId)
+ console.log('deployId', deployId)
+ console.log('previousPersonSid', previousPersonSid)
+ console.log('taskId', taskId)
+ console.log('taskDefKey', taskDefKey)
+
+ uni.navigateTo({
+ url: 'sealApplyDetail?sid=' + sid + "&procInsId=" + procInsId + "&deployId=" + deployId
+ + "&previousPersonSid=" +previousPersonSid + "&type=1"
+ + "&taskId=" +taskId + "&taskDefKey="+taskDefKey
+ });
+
+ }
}
}
diff --git a/supervise-uniapp/pages/index/sealApplyDetail.vue b/supervise-uniapp/pages/index/sealApplyDetail.vue
new file mode 100644
index 00000000..1bfd0e48
--- /dev/null
+++ b/supervise-uniapp/pages/index/sealApplyDetail.vue
@@ -0,0 +1,337 @@
+
+
+
+
+
+ {{info.applicant_name}}提交的印鉴使用申请
+ {{info.ent_name}}
+
+
+
+
+
+
+ 项目名称
+ {{info.project_name}}
+
+
+ 申请人
+ {{info.applicant_name}}
+
+
+ 使用人
+ {{info.user_name}}
+
+
+ 用印事由
+ {{info.use_reason}}
+
+
+ 使用日期
+ {{info.use_date}}
+
+
+ 用印文件名称
+ {{info.use_file_name}}
+
+
+ 加盖何种公章
+ {{seal_type}}
+
+
+ 用印文件(附件)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 备注
+ {{info.remarks}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/supervise-uniapp/pages/login/login.vue b/supervise-uniapp/pages/login/login.vue
index bec0266c..1e380ddb 100644
--- a/supervise-uniapp/pages/login/login.vue
+++ b/supervise-uniapp/pages/login/login.vue
@@ -216,6 +216,7 @@
getApp().globalData.sid = uinfo.sid
getApp().globalData.mobile = uinfo.mobile
getApp().globalData.isAdmin = uinfo.isAdmin
+ getApp().globalData.orgSidPath = uinfo.orgSidPath
getApp().globalData.orgNamePath = uinfo.orgNamePath
getApp().globalData.organizationSid = uinfo.organizationSid
getApp().globalData.headImage = uinfo.headImage
diff --git a/supervise-uniapp/static/baseIcon/fqw.png b/supervise-uniapp/static/baseIcon/fqw.png
new file mode 100644
index 00000000..1add124a
Binary files /dev/null and b/supervise-uniapp/static/baseIcon/fqw.png differ
diff --git a/supervise-uniapp/static/baseIcon/jj.png b/supervise-uniapp/static/baseIcon/jj.png
new file mode 100644
index 00000000..6c4bb542
Binary files /dev/null and b/supervise-uniapp/static/baseIcon/jj.png differ
diff --git a/supervise-uniapp/static/baseIcon/spz.png b/supervise-uniapp/static/baseIcon/spz.png
new file mode 100644
index 00000000..a9f59040
Binary files /dev/null and b/supervise-uniapp/static/baseIcon/spz.png differ
diff --git a/supervise-uniapp/static/baseIcon/ty.png b/supervise-uniapp/static/baseIcon/ty.png
new file mode 100644
index 00000000..9de10bb6
Binary files /dev/null and b/supervise-uniapp/static/baseIcon/ty.png differ