From b0d7d8b9664d2b834d88d0d15f1726a162450f88 Mon Sep 17 00:00:00 2001
From: guoxing <1369478551@qq.com>
Date: Mon, 14 Aug 2023 08:38:30 +0800
Subject: [PATCH] 2023-8-14
---
supervise-uniapp/App.vue | 1 +
supervise-uniapp/common/config.js | 3 +-
supervise-uniapp/common/request.api.js | 28 +-
supervise-uniapp/common/wxSilentLogin.js | 5 +-
.../components/SendCodeItem/SendCodeItem.vue | 7 +
supervise-uniapp/pages.json | 132 ++--
supervise-uniapp/pages/home/UserFragment.vue | 4 +-
supervise-uniapp/pages/home/WorkFragment.vue | 63 +-
supervise-uniapp/pages/index/BindPhone.vue | 40 +-
supervise-uniapp/pages/index/BindPhone2.vue | 268 +++++++
.../pages/index/DataAssembleList.vue | 615 ++++++++++++++++
.../pages/index/InventoryInfoDetail.vue | 208 ++++++
.../pages/index/InventoryInfoList.vue | 696 ++++++++++++++++++
supervise-uniapp/pages/index/MyProject.vue | 5 +-
.../pages/index/RegulatoryReporting.vue | 12 +-
.../pages/index/WarehouseManagement.vue | 36 +-
16 files changed, 2015 insertions(+), 108 deletions(-)
create mode 100644 supervise-uniapp/pages/index/BindPhone2.vue
create mode 100644 supervise-uniapp/pages/index/DataAssembleList.vue
create mode 100644 supervise-uniapp/pages/index/InventoryInfoDetail.vue
create mode 100644 supervise-uniapp/pages/index/InventoryInfoList.vue
diff --git a/supervise-uniapp/App.vue b/supervise-uniapp/App.vue
index 20f7924f..143e52f6 100644
--- a/supervise-uniapp/App.vue
+++ b/supervise-uniapp/App.vue
@@ -5,6 +5,7 @@
// wxSilentLoginURL: "https://supervise.yxtsoft.com/portal/v1/wxuser/wxSilentLogin",
wxSilentLoginURL: "https://supervise.yxtsoft.com/api/portal/v1/wxuser/wxSilentLogin",
wxAuthLoginURL: "https://supervise.yxtsoft.com/api/portal//v1/wxuser/wxAuthLogin",
+ SilentLoginURL: "https://supervise.yxtsoft.com/api/portal/v1/wxuser/SilentLogin",// 注册
token: "",
isLogin: false,
sid: "",
diff --git a/supervise-uniapp/common/config.js b/supervise-uniapp/common/config.js
index 557825b9..21bf674c 100644
--- a/supervise-uniapp/common/config.js
+++ b/supervise-uniapp/common/config.js
@@ -8,7 +8,8 @@
module.exports = {
// baseUrl: 'https://jianguan.yyundong.com/api',
baseUrl: 'https://supervise.yxtsoft.com',
- // baseUrl: 'http://192.168.1.193:8112',
+ // baseUrl: 'http://192.168.1.193:8112',
+ // baseUrl: 'http://192.168.1.116:8112',
tokenName: "Authorization", // 请求头中token的名字,与服务器端对应
loginTimeoutCode: "5001", // 登录超时或失效的情况下,服务器端返回的错误码
loginTimeoutPage: "/pages/login/index", // 登录超时或失效的情况下,跳转到的登录页面
diff --git a/supervise-uniapp/common/request.api.js b/supervise-uniapp/common/request.api.js
index 70f2c5ac..e12e91b9 100644
--- a/supervise-uniapp/common/request.api.js
+++ b/supervise-uniapp/common/request.api.js
@@ -6,12 +6,17 @@ export default {
getSalesReport: (params = {}) => request.get("/system/reportCenter/getSalesReport", params),
getGoodsOnWay: (params = {}) => request.get("/system/reportCenter/getGoodsOnWay", params),
getThresholdAnalysis: (params = {}) => request.get("/system/risk/getThresholdAnalysis", params),
+
+ // 注册
+ useropenid: (params = {}) => request.post("/api/portal/useropenid/save", params),
+
// 获取 验证码
- sendVerificationCode: (params = {}) => request.get("/api/portal/v1/wxuser/sendVerificationCode/" + params.phone + "/" +
+ sendVerificationCode: (params = {}) => request.get("/api/portal/v1/wxuser/sendVerificationCode/" + params.phone +
+ "/" +
params.type, params),
// 绑定手机号
- wxBindMobile: (params = {}) => request.post("/api/portal/v1/wxuser/wxBindMobile",params),
+ wxBindMobile: (params = {}) => request.post("/api/portal/v1/wxuser/wxBindMobile", params),
// 查看预警信息
selectBusinessRiskInfo: (params = {}) => request.post("/wxmpapi/v1/businessData/selectBusinessRiskInfo", params),
@@ -52,19 +57,19 @@ export default {
getDayProduct: (params = {}) => request.get(
"/reportwxmpapi/reportstock/getDayProduct/" + params, params),
// "/report/reportstock/getDayProduct/" + params, params),
-
+
// 监管数据总览
getProjectDaily: (params = {}) => request.get(
- "/reportwxmpapi/projectdaily/getProjectDaily/" + params.projectSid + "/" + params.orderDate, params),
+ "/reportwxmpapi/projectdaily/getProjectDaily/" + params.projectSid + "/" + params.orderDate, params),
// "/report/projectdaily/getProjectDaily/" + params.projectSid + "/" + params.orderDate, params),
-
+
// 项目监管报表
getProjectDailyFiles: (params = {}) => request.get(
- "/reportwxmpapi/projectdaily/getProjectDailyFiles/" + params.projectSid + "/" + params.orderDate, params),
+ "/reportwxmpapi/projectdaily/getProjectDailyFiles/" + params.projectSid + "/" + params.orderDate, params),
// "/report/projectdaily/getProjectDailyFiles/" + params.projectSid + "/" + params.orderDate, params),
-
-
-
+
+
+
// 获取首页面数据
getWorkData: (params = {}) => request.get("/api/portal/v1/flow/task/" + params, params),
@@ -86,4 +91,9 @@ export default {
getStorehouseBySid: (params = {}) => request.get("/api/crm/v1/projectinformation/getStorehouseBySid/" + params,
params),
+ // 获取库存信息列表
+ inventoryInfoListPage: (params = {}) => request.post("/reportwxmpapi/prodStock/selectListPage", params),
+
+ // 获取数据总览列表
+ projectListPage: (params = {}) => request.post("/reportwxmpapi/projectdaily/selectListPage", params),
}
\ No newline at end of file
diff --git a/supervise-uniapp/common/wxSilentLogin.js b/supervise-uniapp/common/wxSilentLogin.js
index 5a395b49..21b4c22a 100644
--- a/supervise-uniapp/common/wxSilentLogin.js
+++ b/supervise-uniapp/common/wxSilentLogin.js
@@ -61,8 +61,9 @@ const wxSilentLogin = () => {
// if (res.data.code == 100) {
// 未绑定用户
uni.navigateTo({
- url: '../index/BindPhone?sysUserWxAuthSid=' +
- res.data.data
+ url: '../index/BindPhone?openid=' +
+ res.data.data.openid+"&unionid="+
+ res.data.data.unionid
})
// }
diff --git a/supervise-uniapp/components/SendCodeItem/SendCodeItem.vue b/supervise-uniapp/components/SendCodeItem/SendCodeItem.vue
index 81797f35..0c19b82d 100644
--- a/supervise-uniapp/components/SendCodeItem/SendCodeItem.vue
+++ b/supervise-uniapp/components/SendCodeItem/SendCodeItem.vue
@@ -7,6 +7,8 @@
+
+
\ No newline at end of file
diff --git a/supervise-uniapp/pages/index/DataAssembleList.vue b/supervise-uniapp/pages/index/DataAssembleList.vue
new file mode 100644
index 00000000..e968bba8
--- /dev/null
+++ b/supervise-uniapp/pages/index/DataAssembleList.vue
@@ -0,0 +1,615 @@
+
+
+
+
+
+
+
+
+
+
+ 筛选
+
+
+
+
+
+
+
+
+
+
+ {{item.projectName}}
+ {{item.orderDate}}
+
+
+ {{item.pledgeRatePercent}}%
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 申请日期
+
+
+ 至
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 重置
+ 确定
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/supervise-uniapp/pages/index/InventoryInfoDetail.vue b/supervise-uniapp/pages/index/InventoryInfoDetail.vue
new file mode 100644
index 00000000..44fbf800
--- /dev/null
+++ b/supervise-uniapp/pages/index/InventoryInfoDetail.vue
@@ -0,0 +1,208 @@
+
+
+
+
+ {{info.pro_name!=''?info.pro_name:"--"}}
+
+
+ 公司名称:
+ {{info.custer_name!=''?info.custer_name:"--"}}
+
+
+
+ 仓库名称:
+ {{info.store_house_name!=''?info.store_house_name:"--"}}
+
+
+
+ 核算价值:
+ ¥ {{info.calculated_value!=''?info.calculated_value:"--"}}
+
+
+
+
+
+
+
+
+
+ {{info.pro_model!=''?info.pro_model:"--"}}
+ 商品规格
+
+
+
+
+
+ {{info.confirmed_price!=''?info.confirmed_price:"--"}}
+ 单价(元)
+
+
+
+
+
+
+
+
+
+
+ {{info.num!=''?info.num:"--"}}
+ 数量
+
+
+
+
+
+ {{info.pro_unit!=''?info.pro_unit:"--"}}
+ 单位
+
+
+
+
+
+
+
+
+
+
+
+ {{info.confirmed_price!=''?info.confirmed_price:"--"}}
+ 质权人确认的单价(元)
+
+
+
+
+
+ {{info.location_id!=''?info.location_id:"--"}}
+ 货位号
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/supervise-uniapp/pages/index/InventoryInfoList.vue b/supervise-uniapp/pages/index/InventoryInfoList.vue
new file mode 100644
index 00000000..1b0e7aad
--- /dev/null
+++ b/supervise-uniapp/pages/index/InventoryInfoList.vue
@@ -0,0 +1,696 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{item.pro_name}}
+ ¥ {{item.calculated_value}}
+
+
+
+
+
+ 公司名称:
+ {{item.custer_name}}
+
+
+
+ 仓库名称:
+ {{item.store_house_name}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 申请日期
+
+
+ 至
+
+
+
+ 发起人
+
+
+
+
+
+
+
+
+
+
+ {{item.custer_name}}
+
+
+
+
+
+
+
+
+
+
+
+ 重置
+ 确定
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/supervise-uniapp/pages/index/MyProject.vue b/supervise-uniapp/pages/index/MyProject.vue
index c46bec1b..708591ca 100644
--- a/supervise-uniapp/pages/index/MyProject.vue
+++ b/supervise-uniapp/pages/index/MyProject.vue
@@ -56,8 +56,11 @@
onLoad() {
},
-
onShow() {
+
+ wx.hideHomeButton()
+
+
console.log('onShow', getApp().globalData.isLogin)
let token = uni.getStorageSync("Global-Auth-Token")
diff --git a/supervise-uniapp/pages/index/RegulatoryReporting.vue b/supervise-uniapp/pages/index/RegulatoryReporting.vue
index ca43b397..8131f85b 100644
--- a/supervise-uniapp/pages/index/RegulatoryReporting.vue
+++ b/supervise-uniapp/pages/index/RegulatoryReporting.vue
@@ -119,8 +119,8 @@
data() {
return {
params: {
- projectSid: "9a2c1e08-0e0a-4440-bc3d-3adbef082cdb",
- orderDate: "2023-08-07",
+ projectSid: "",
+ orderDate: "",
},
info: {
projectName: "",
@@ -184,10 +184,10 @@
},
onLoad(option) {
- // this.params = {
- // projectSid: option.projectSid,
- // orderDate: option.orderDate
- // }
+ this.params = {
+ projectSid: option.projectSid,
+ orderDate: option.orderDate
+ }
},
diff --git a/supervise-uniapp/pages/index/WarehouseManagement.vue b/supervise-uniapp/pages/index/WarehouseManagement.vue
index 7444730e..092ded2e 100644
--- a/supervise-uniapp/pages/index/WarehouseManagement.vue
+++ b/supervise-uniapp/pages/index/WarehouseManagement.vue
@@ -12,13 +12,13 @@
- 基础资料
+ 库存信息
-
+
-
+
@@ -83,11 +83,11 @@
switch (index) {
case "1":
// 云仓列表
- uni.showToast({
- icon: "none",
- title: '云仓列表',
- duration: 2000,
- });
+ // uni.showToast({
+ // icon: "none",
+ // title: '云仓列表',
+ // duration: 2000,
+ // });
uni.navigateTo({
url: '../index/WarehouseList'
@@ -95,12 +95,16 @@
break;
case "2":
- // 基础资料
- uni.showToast({
- icon: "none",
- title: '基础资料',
- duration: 2000,
- });
+ uni.navigateTo({
+ url: '../index/InventoryInfoList'
+ });
+
+ // // 基础资料
+ // uni.showToast({
+ // icon: "none",
+ // title: '基础资料',
+ // duration: 2000,
+ // });
break;
case "3":
// 入库管理