Commit e13da015 authored by 刘杰's avatar 刘杰

企业微信前端

parent 3612bc13
{ // launch.json 配置了启动调试时相关设置,configurations下节点名称可为 app-plus/h5/mp-weixin/mp-baidu/mp-alipay/mp-qq/mp-toutiao/mp-360/
// launchtype项可配置值为local或remote, local代表前端连本地云函数,remote代表前端连云端云函数
"version": "0.0",
"configurations": [{
"default" :
{
"launchtype" : "local"
},
"mp-weixin" :
{
"launchtype" : "local"
},
"type" : "uniCloud"
}
]
}
......@@ -16,6 +16,9 @@ export function searchBossCard(data) {
export function searchOrderEvent(data) {
return Request(`/api/entry/{mini}/m-action/biz.tm.OrderRelease.service.searchOrderEvent`, data)
}
export function searchOrderEventDetail(data) {
return Request(`/api/entry/{mini}/m-action/biz.tm.OrderRelease.service.searchOrderEventDetail`, data)
}
export function BindCompany(data) {
return Request(
......
This diff is collapsed.
......@@ -3,15 +3,23 @@
<!-- 顶部统计 -->
<view class="report-stats">
<view class="stat-item" @click="selectReport('submit')">
<text class="number" style="color: #52c41a;">{{ searchDatas.submitted }}</text>
<text class="number" style="color: #52c41a;">
{{ searchDatas.submitted }}
<text class="unit" style="color: #52c41a;"></text>
</text>
<text class="label">已提交</text>
</view>
<view class="stat-item" @click="selectReport('unSubmit')">
<text class="number" style="color: #ff4d4f;">{{ searchDatas.unSubmitted }}</text>
<text class="number" style="color: #ff4d4f;">
{{ searchDatas.unSubmitted }}
<text class="unit" style="color: #ff4d4f;"></text>
</text>
<text class="label">未提交</text>
</view>
<view class="stat-item" @click="selectReport('all')">
<text class="number" style="color: #1890ff;">{{ searchDatas.total }}</text>
<text class="number" style="color: #1890ff;">{{ searchDatas.total }}
<text class="unit" style="color: #1890ff;"></text></text>
<text class="label">总人数</text>
</view>
......@@ -85,6 +93,9 @@
this.staffCode = uni.getStorageSync('staffCode');
this.staffKind = uni.getStorageSync('uc_staff_kind');
this.commonName = uni.getStorageSync('commonName');
console.log("this.staffCode"+this.staffCode)
console.log("this.staffKind"+this.staffKind)
console.log("this.commonName"+this.commonName)
console.log('获取到的commonName:', this.commonName);
......@@ -167,6 +178,12 @@
font-weight: bold;
color: #333;
margin-bottom: 8px;
.unit {
font-size: 12px;
color: #999;
margin-left: 5px;
}
}
.label {
......@@ -178,7 +195,7 @@
.report-list {
// 调整高度,移除分页器的空间
height: calc(100vh - 120px);
height: calc(100vh - 200px);
.report-card {
display: block;
......
......@@ -52,7 +52,7 @@
<!-- 按钮组 -->
<view class="button-group">
<button class="back-btn" @click="goBack">返回</button>
<!-- <button class="back-btn" @click="goBack">返回</button> -->
<button class="submit-btn" @click="submitReport">提交日报</button>
</view>
</view>
......
......@@ -79,7 +79,7 @@
"devServer" : {
"https" : false,
"disableHostCheck" : true,
"port" : 8082,
"port" : 8083,
"proxy" : {
"/api" : {
// "target" : "http://122.112.220.204:8089",
......
......@@ -16,75 +16,75 @@ import * as ww from "@wecom/jssdk";
module.exports = {
methods: {
initWeCom(callback = () => {}) {
getTicketByType({
aux: {
entryName: MINI.h5Uat,
// initWeCom(callback = () => {}) {
// getTicketByType({
// aux: {
// entryName: MINI.h5Uat,
type: "app",
},
}).then((res) => {
const appTicket = res.data.data.ticket;
getTicketByType({
aux: {
entryName: MINI.h5Uat,
// type: "app",
// },
// }).then((res) => {
// const appTicket = res.data.data.ticket;
// getTicketByType({
// aux: {
// entryName: MINI.h5Uat,
type: "company",
},
}).then((res) => {
const comTicket = res.data.data.ticket;
const timestamp = new Date().getTime();
ww.register({
corpId: CORP_ID,
agentId: AGENT_ID,
jsApiList: JS_API_LIST,
async getConfigSignature(url) {
const {
signature
} = ww.getSignature({
ticket: comTicket,
nonceStr: MINI.h5Uat,
timestamp,
url,
});
return {
timestamp,
nonceStr: MINI.h5Uat,
signature,
};
},
async getAgentConfigSignature(url) {
const {
signature
} = ww.getSignature({
ticket: appTicket,
nonceStr: MINI.h5Uat,
timestamp,
url,
});
return {
timestamp,
nonceStr: MINI.h5Uat,
signature,
};
},
onConfigSuccess(res) {
console.log("onConfigSuccess", res);
},
onConfigFail(res) {
console.log("onConfigFail" + res);
},
onAgentConfigSuccess(res) {
console.log("onAgentConfigSuccess" + JSON.stringify(res));
callback()
},
onAgentConfigFail(res) {
console.log("onAgentConfigFail" + res);
},
});
});
});
},
// type: "company",
// },
// }).then((res) => {
// const comTicket = res.data.data.ticket;
// const timestamp = new Date().getTime();
// ww.register({
// corpId: CORP_ID,
// agentId: AGENT_ID,
// jsApiList: JS_API_LIST,
// async getConfigSignature(url) {
// const {
// signature
// } = ww.getSignature({
// ticket: comTicket,
// nonceStr: MINI.h5Uat,
// timestamp,
// url,
// });
// return {
// timestamp,
// nonceStr: MINI.h5Uat,
// signature,
// };
// },
// async getAgentConfigSignature(url) {
// const {
// signature
// } = ww.getSignature({
// ticket: appTicket,
// nonceStr: MINI.h5Uat,
// timestamp,
// url,
// });
// return {
// timestamp,
// nonceStr: MINI.h5Uat,
// signature,
// };
// },
// onConfigSuccess(res) {
// console.log("onConfigSuccess", res);
// },
// onConfigFail(res) {
// console.log("onConfigFail" + res);
// },
// onAgentConfigSuccess(res) {
// console.log("onAgentConfigSuccess" + JSON.stringify(res));
// callback()
// },
// onAgentConfigFail(res) {
// console.log("onAgentConfigFail" + res);
// },
// });
// });
// });
// },
//获取微信token
getWxToken() {
uni.login({
......
This diff is collapsed.
......@@ -5,18 +5,22 @@
<view class="stat-item" @click="selectReport('new')">
<text class="number" style="color: #faad14;">{{ searchDatas.new }}</text>
<text class="label">未审批</text>
<text class="number2" style="color: #faad14;">¥{{ searchDatas.newAmount }}</text>
</view>
<view class="stat-item" @click="selectReport('approving')">
<text class="number" style="color: #1890ff;">{{ searchDatas.approving }}</text>
<text class="label">审批中</text>
<text class="number2" style="color: #1890ff;">¥{{ searchDatas.approvingAmount }}</text>
</view>
<view class="stat-item" @click="selectReport('approved')">
<text class="number" style="color:#52c41a;">{{ searchDatas.approved }}</text>
<text class="label">审批完成</text>
<text class="number2" style="color:#52c41a;">¥{{ searchDatas.approvedAmount }}</text>
</view>
<view class="stat-item" @click="selectReport('total')">
<text class="number" style="color:#ff4d4f;">{{ searchDatas.total }}</text>
<text class="label">总计</text>
<text class="number2" style="color:#ff4d4f;">¥{{ searchDatas.totalAmount }}</text>
</view>
</view>
......@@ -32,7 +36,7 @@
{{ order.approvalStatus }}
</text>
</view>
<text class="time">{{ order.occurTime }}</text>
<text class="time">{{ order.eventTime }}</text>
</view>
<view class="card-content">
......@@ -70,7 +74,7 @@
return {
staffCode: "",
staffKind: "",
activeStatus:"total",
activeStatus: "total",
searchDatas: {},
orderList: []
}
......@@ -79,9 +83,9 @@
this.initData()
},
methods: {
selectReport(active){
this.activeStatus=active
this.orderList=[]
selectReport(active) {
this.activeStatus = active
this.orderList = []
this.initData()
},
initData() {
......@@ -152,9 +156,10 @@
.stat-item {
text-align: center;
padding: 15px 24px;
// padding: 15px 24px;
background: #f9f9f9;
border-radius: 6px;
width: 25%;
transition: background 0.3s, transform 0.3s;
/* 添加过渡效果 */
......@@ -173,6 +178,14 @@
margin-bottom: 8px;
}
.number2 {
display: block;
font-size: 28px;
// font-weight: bold;
color: #333;
margin-bottom: 8px;
}
.label {
font-size: 14px;
color: #999;
......@@ -241,6 +254,7 @@
.time {
font-size: 14px;
color: #999;
float: right;
}
}
......
......@@ -53,12 +53,10 @@
},
onLoad() {
console.log('index页面加载'); // 调试日志
this.getUserInfo()
this.getBindCompanyResult()
this.bindGroupChatCompany()
this.uc_staff_kind = uni.getStorageSync(`uc_staff_kind`);
this.updateTopUserList()
// this.getBindCompanyResult()
// this.bindGroupChatCompany()
},
onShow() {
......@@ -72,26 +70,23 @@
},
methods: {
updateTopUserList() {
if (this.uc_staff_kind === 'boss') {
this.topUserList = [{
name: '订单查询',
key: 'orderQuery',
name: '老板看板',
key: 'bossCard',
url: '/pages/index/index'
},
{
name: '查看日报',
key: 'dailyReport',
url: '/pages/index/index'
}, {
name: '老板看板',
key: 'bossCard',
url: '/pages/index/index'
},
];
} else {
} else if (this.uc_staff_kind === 'simulatedBoss') {
this.topUserList = [{
name: '订单查询',
key: 'orderQuery',
name: '老板看板',
key: 'bossCard',
url: '/pages/index/index'
},
{
......@@ -102,12 +97,14 @@
name: '填写日报',
key: 'dailyReportCreate',
url: '/pages/index/index'
}, {
name: '老板看板',
key: 'bossCard',
url: '/pages/index/index'
},
];
} else {
this.topUserList = [{
name: '填写日报',
key: 'dailyReportCreate',
url: '/pages/index/index'
}, ]
}
},
......@@ -281,4 +278,4 @@
padding: 0px 12px 12px 12px;
}
}
</style>
\ No newline at end of file
</style>s
\ No newline at end of file
This diff is collapsed.
......@@ -10,7 +10,7 @@ let BASEURL = {
// url: 'http://192.168.0.230:8080' // xiaohan
// url: "https://botms-demo.logwirecloud.com",
url: "http://localhost:8083", //开发
// url: "http://122.112.220.204:8089", //开发/
// url: "http://122.112.220.204:8089", //开发
// url: "https://stms.bjzc-scs.com", //生产
};
......
......@@ -3,83 +3,83 @@
"@amap/amap-jsapi-loader@^1.0.1":
version "1.0.1"
resolved "https://mirrors.cloud.tencent.com/npm/@amap/amap-jsapi-loader/-/amap-jsapi-loader-1.0.1.tgz"
integrity sha512-nPyLKt7Ow/ThHLkSvn2etQlUzqxmTVgK7bIgwdBRTg2HK5668oN7xVxkaiRe3YZEzGzfV2XgH5Jmu2T73ljejw==
"integrity" "sha512-nPyLKt7Ow/ThHLkSvn2etQlUzqxmTVgK7bIgwdBRTg2HK5668oN7xVxkaiRe3YZEzGzfV2XgH5Jmu2T73ljejw=="
"resolved" "https://mirrors.cloud.tencent.com/npm/@amap/amap-jsapi-loader/-/amap-jsapi-loader-1.0.1.tgz"
"version" "1.0.1"
"@babel/runtime@^7.17.2":
version "7.26.7"
resolved "https://mirrors.cloud.tencent.com/npm/@babel/runtime/-/runtime-7.26.7.tgz"
integrity sha512-AOPI3D+a8dXnja+iwsUqGRjr1BbZIe771sXdapOtYI531gSqpi92vXivKcq2asu/DFpdl1ceFAKZyRzK2PCVcQ==
"integrity" "sha512-AOPI3D+a8dXnja+iwsUqGRjr1BbZIe771sXdapOtYI531gSqpi92vXivKcq2asu/DFpdl1ceFAKZyRzK2PCVcQ=="
"resolved" "https://mirrors.cloud.tencent.com/npm/@babel/runtime/-/runtime-7.26.7.tgz"
"version" "7.26.7"
dependencies:
regenerator-runtime "^0.14.0"
"regenerator-runtime" "^0.14.0"
"@dcloudio/uni-ui@^1.5.7":
version "1.5.7"
resolved "https://mirrors.cloud.tencent.com/npm/@dcloudio/uni-ui/-/uni-ui-1.5.7.tgz"
integrity sha512-DugxSIrQrze1FLdUOj9a+JEQ0bHGjnJTcGUK1mN/MivKg7nuKJBRWk5Ipa9sUdoBznX6ndz5h2e7Uao6x1CdCw==
"integrity" "sha512-DugxSIrQrze1FLdUOj9a+JEQ0bHGjnJTcGUK1mN/MivKg7nuKJBRWk5Ipa9sUdoBznX6ndz5h2e7Uao6x1CdCw=="
"resolved" "https://mirrors.cloud.tencent.com/npm/@dcloudio/uni-ui/-/uni-ui-1.5.7.tgz"
"version" "1.5.7"
"@wecom/jssdk@^2.1.0":
version "2.2.5"
resolved "https://mirrors.cloud.tencent.com/npm/@wecom/jssdk/-/jssdk-2.2.5.tgz"
integrity sha512-qOBAsfqaiYM8jZHWYs/atHSpJhsLdZVNaxHQdmEQ7ZWul/GZMt4P5VY8Nf7GII7GhG8z/k+r37Dto6qtAaRqow==
"integrity" "sha512-qOBAsfqaiYM8jZHWYs/atHSpJhsLdZVNaxHQdmEQ7ZWul/GZMt4P5VY8Nf7GII7GhG8z/k+r37Dto6qtAaRqow=="
"resolved" "https://mirrors.cloud.tencent.com/npm/@wecom/jssdk/-/jssdk-2.2.5.tgz"
"version" "2.2.5"
copy-text-to-clipboard@^3.0.1:
version "3.2.0"
resolved "https://mirrors.cloud.tencent.com/npm/copy-text-to-clipboard/-/copy-text-to-clipboard-3.2.0.tgz"
integrity sha512-RnJFp1XR/LOBDckxTib5Qjr/PMfkatD0MUCQgdpqS8MdKiNUzBjAQBEN6oUy+jW7LI93BBG3DtMB2KOOKpGs2Q==
"copy-text-to-clipboard@^3.0.1":
"integrity" "sha512-RnJFp1XR/LOBDckxTib5Qjr/PMfkatD0MUCQgdpqS8MdKiNUzBjAQBEN6oUy+jW7LI93BBG3DtMB2KOOKpGs2Q=="
"resolved" "https://mirrors.cloud.tencent.com/npm/copy-text-to-clipboard/-/copy-text-to-clipboard-3.2.0.tgz"
"version" "3.2.0"
core-js@^3.11.0:
version "3.40.0"
resolved "https://mirrors.cloud.tencent.com/npm/core-js/-/core-js-3.40.0.tgz"
integrity sha512-7vsMc/Lty6AGnn7uFpYT56QesI5D2Y/UkgKounk87OP9Z2H9Z8kj6jzcSGAxFmUtDOS0ntK6lbQz+Nsa0Jj6mQ==
"core-js@^3.11.0":
"integrity" "sha512-7vsMc/Lty6AGnn7uFpYT56QesI5D2Y/UkgKounk87OP9Z2H9Z8kj6jzcSGAxFmUtDOS0ntK6lbQz+Nsa0Jj6mQ=="
"resolved" "https://mirrors.cloud.tencent.com/npm/core-js/-/core-js-3.40.0.tgz"
"version" "3.40.0"
echarts@^5.6.0:
version "5.6.0"
resolved "https://mirrors.cloud.tencent.com/npm/echarts/-/echarts-5.6.0.tgz"
integrity sha512-oTbVTsXfKuEhxftHqL5xprgLoc0k7uScAwtryCgWF6hPYFLRwOUHiFmHGCBKP5NPFNkDVopOieyUqYGH8Fa3kA==
"echarts@^5.6.0":
"integrity" "sha512-oTbVTsXfKuEhxftHqL5xprgLoc0k7uScAwtryCgWF6hPYFLRwOUHiFmHGCBKP5NPFNkDVopOieyUqYGH8Fa3kA=="
"resolved" "https://mirrors.cloud.tencent.com/npm/echarts/-/echarts-5.6.0.tgz"
"version" "5.6.0"
dependencies:
tslib "2.3.0"
zrender "5.6.1"
"tslib" "2.3.0"
"zrender" "5.6.1"
jweixin-module@^1.6.0:
version "1.6.0"
resolved "https://mirrors.cloud.tencent.com/npm/jweixin-module/-/jweixin-module-1.6.0.tgz"
integrity sha512-dGk9cf+ipipHmtzYmKZs5B2toX+p4hLyllGLF6xuC8t+B05oYxd8fYoaRz0T30U2n3RUv8a4iwvjhA+OcYz52w==
"jweixin-module@^1.6.0":
"integrity" "sha512-dGk9cf+ipipHmtzYmKZs5B2toX+p4hLyllGLF6xuC8t+B05oYxd8fYoaRz0T30U2n3RUv8a4iwvjhA+OcYz52w=="
"resolved" "https://mirrors.cloud.tencent.com/npm/jweixin-module/-/jweixin-module-1.6.0.tgz"
"version" "1.6.0"
mutation-observer@^1.0.3:
version "1.0.3"
resolved "https://mirrors.cloud.tencent.com/npm/mutation-observer/-/mutation-observer-1.0.3.tgz"
integrity sha512-M/O/4rF2h776hV7qGMZUH3utZLO/jK7p8rnNgGkjKUw8zCGjRQPxB8z6+5l8+VjRUQ3dNYu4vjqXYLr+U8ZVNA==
"mutation-observer@^1.0.3":
"integrity" "sha512-M/O/4rF2h776hV7qGMZUH3utZLO/jK7p8rnNgGkjKUw8zCGjRQPxB8z6+5l8+VjRUQ3dNYu4vjqXYLr+U8ZVNA=="
"resolved" "https://mirrors.cloud.tencent.com/npm/mutation-observer/-/mutation-observer-1.0.3.tgz"
"version" "1.0.3"
regenerator-runtime@^0.14.0:
version "0.14.1"
resolved "https://mirrors.cloud.tencent.com/npm/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz"
integrity sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==
"regenerator-runtime@^0.14.0":
"integrity" "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw=="
"resolved" "https://mirrors.cloud.tencent.com/npm/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz"
"version" "0.14.1"
tslib@2.3.0:
version "2.3.0"
resolved "https://mirrors.cloud.tencent.com/npm/tslib/-/tslib-2.3.0.tgz"
integrity sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==
"tslib@2.3.0":
"integrity" "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg=="
"resolved" "https://mirrors.cloud.tencent.com/npm/tslib/-/tslib-2.3.0.tgz"
"version" "2.3.0"
uview-ui@^2.0.31:
version "2.0.31"
resolved "https://registry.npmjs.org/uview-ui/-/uview-ui-2.0.31.tgz"
integrity sha512-I/0fGuvtiKHH/mBb864SGYk+SJ7WaF32tsBgYgeBOsxlUp+Th+Ac2tgz2cTvsQJl6eZYWsKZ3ixiSXCAcxZ8Sw==
"uview-ui@^2.0.31":
"integrity" "sha512-I/0fGuvtiKHH/mBb864SGYk+SJ7WaF32tsBgYgeBOsxlUp+Th+Ac2tgz2cTvsQJl6eZYWsKZ3ixiSXCAcxZ8Sw=="
"resolved" "https://registry.npmjs.org/uview-ui/-/uview-ui-2.0.31.tgz"
"version" "2.0.31"
vconsole@^3.15.0:
version "3.15.1"
resolved "https://mirrors.cloud.tencent.com/npm/vconsole/-/vconsole-3.15.1.tgz"
integrity sha512-KH8XLdrq9T5YHJO/ixrjivHfmF2PC2CdVoK6RWZB4yftMykYIaXY1mxZYAic70vADM54kpMQF+dYmvl5NRNy1g==
"vconsole@^3.15.0":
"integrity" "sha512-KH8XLdrq9T5YHJO/ixrjivHfmF2PC2CdVoK6RWZB4yftMykYIaXY1mxZYAic70vADM54kpMQF+dYmvl5NRNy1g=="
"resolved" "https://mirrors.cloud.tencent.com/npm/vconsole/-/vconsole-3.15.1.tgz"
"version" "3.15.1"
dependencies:
"@babel/runtime" "^7.17.2"
copy-text-to-clipboard "^3.0.1"
core-js "^3.11.0"
mutation-observer "^1.0.3"
"copy-text-to-clipboard" "^3.0.1"
"core-js" "^3.11.0"
"mutation-observer" "^1.0.3"
zrender@5.6.1:
version "5.6.1"
resolved "https://mirrors.cloud.tencent.com/npm/zrender/-/zrender-5.6.1.tgz"
integrity sha512-OFXkDJKcrlx5su2XbzJvj/34Q3m6PvyCZkVPHGYpcCJ52ek4U/ymZyfuV1nKE23AyBJ51E/6Yr0mhZ7xGTO4ag==
"zrender@5.6.1":
"integrity" "sha512-OFXkDJKcrlx5su2XbzJvj/34Q3m6PvyCZkVPHGYpcCJ52ek4U/ymZyfuV1nKE23AyBJ51E/6Yr0mhZ7xGTO4ag=="
"resolved" "https://mirrors.cloud.tencent.com/npm/zrender/-/zrender-5.6.1.tgz"
"version" "5.6.1"
dependencies:
tslib "2.3.0"
"tslib" "2.3.0"
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