diff --git a/api/oaUser.js b/api/oaUser.js
index 68e6052..ac36c55 100644
--- a/api/oaUser.js
+++ b/api/oaUser.js
@@ -20,6 +20,11 @@ export const userCenter = (data) => oahttp.get('/user/center', data)
*/
export const userInfo = (data) => oahttp.get('/user/info', data)
+/**
+ * 修改密码
+ */
+export const changePassword = (data) => oahttp.post('/user/changePassword', data)
+
/**
* 新增人员
*/
diff --git a/components/company/company.vue b/components/company/company.vue
index 00379d8..a92bb08 100644
--- a/components/company/company.vue
+++ b/components/company/company.vue
@@ -20,7 +20,7 @@
区域:
- {{company.address}}
+ {{c_address}}
@@ -163,6 +163,23 @@
mounted() {
this.initContract(this.$props.id, this.$props.type || null);
},
+ computed:{
+ c_address(){
+ let str = '';
+ if(this.company.company_type==16){
+ this.company?.province_name?str+=this.company?.province_name:null;
+ this.company?.city_name?str+=this.company?.city_name:null;
+ this.company?.area_name?str+=this.company?.area_name:null;
+ this.company?.street_name?str+=this.company?.street_name:null;
+ }else {
+ this.company?.street_name?str+=this.company?.street_name:null;
+ this.company?.village_name?str+=this.company?.village_name:null;
+ this.company?.brigade_name?str+=this.company?.brigade_name:null;
+
+ }
+ return str;
+ }
+ },
methods: {
navTo(contract_no) {
download_file({ applyNo: contract_no }).then(res => {
diff --git a/manifest.json b/manifest.json
index 96c4c88..ef158e8 100644
--- a/manifest.json
+++ b/manifest.json
@@ -1,160 +1,160 @@
{
- "name": "供销综合平台",
- "appid": "__UNI__B5B1EDD",
- "description": "",
- "versionName": "1.0.0",
- "versionCode": "100",
- "transformPx": false,
- /* 5+App特有相关 */
- "app-plus": {
- "usingComponents": true,
- "nvueStyleCompiler": "uni-app",
- "compilerVersion": 3,
- "splashscreen": {
- "alwaysShowBeforeRender": true,
- "waiting": true,
- "autoclose": true,
- "delay": 0
- },
- /* 模块配置 */
- "modules": {
- "Payment": {},
- "Barcode": {},
- "Camera": {},
- "Maps": {}
- },
- /* 应用发布信息 */
- "distribute": {
- /* android打包配置 */
- "android": {
- "permissions": [
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- ""
- ]
- },
- /* ios打包配置 */
- "ios": {
- "dSYMs": false
- },
- /* SDK配置 */
- "sdkConfigs": {
- "payment": {
- "weixin": {
- "__platform__": ["ios", "android"],
- "appid": "wx4789d9f1b50390ba",
- "UniversalLinks": ""
- }
- },
- "ad": {},
- "maps": {
- "amap": {
- "appkey_ios": "0799f37420c0784f1e6cba230a68bdb1",
- "appkey_android": "0799f37420c0784f1e6cba230a68bdb1"
- }
- }
- },
- "splashscreen": {
- "useOriginalMsgbox": true
- },
- "icons": {
- "android": {
- "hdpi": "unpackage/res/icons/72x72.png",
- "xhdpi": "unpackage/res/icons/96x96.png",
- "xxhdpi": "unpackage/res/icons/144x144.png",
- "xxxhdpi": "unpackage/res/icons/192x192.png"
- },
- "ios": {
- "appstore": "unpackage/res/icons/1024x1024.png",
- "ipad": {
- "app": "unpackage/res/icons/76x76.png",
- "app@2x": "unpackage/res/icons/152x152.png",
- "notification": "unpackage/res/icons/20x20.png",
- "notification@2x": "unpackage/res/icons/40x40.png",
- "proapp@2x": "unpackage/res/icons/167x167.png",
- "settings": "unpackage/res/icons/29x29.png",
- "settings@2x": "unpackage/res/icons/58x58.png",
- "spotlight": "unpackage/res/icons/40x40.png",
- "spotlight@2x": "unpackage/res/icons/80x80.png"
- },
- "iphone": {
- "app@2x": "unpackage/res/icons/120x120.png",
- "app@3x": "unpackage/res/icons/180x180.png",
- "notification@2x": "unpackage/res/icons/40x40.png",
- "notification@3x": "unpackage/res/icons/60x60.png",
- "settings@2x": "unpackage/res/icons/58x58.png",
- "settings@3x": "unpackage/res/icons/87x87.png",
- "spotlight@2x": "unpackage/res/icons/80x80.png",
- "spotlight@3x": "unpackage/res/icons/120x120.png"
- }
- }
- }
- }
- },
- /* 快应用特有相关 */
- "quickapp": {},
- "h5": {
- "devServer": {
- "proxy": {
- "baseUrlTest/adminapi": {
- "target": "https://worker-task.lihaink.cn",
- "changeOrigin": true,
- "pathRewrite": {
- "^/baseUrlTest/adminapi": "/adminapi"
- }
- },
- "baseUrlTest/api": {
- "target": "https://worker-task.lihaink.cn",
- "changeOrigin": true,
- "pathRewrite": {
- "^/baseUrlTest/api": "/api"
- }
- }
- }
- },
- "sdkConfigs": {
- "maps": {
- "amap": {
- "key": "275cd3601b1b2d6414f6c988e7911664",
- "securityJsCode": "d2d7c56801819e8bdf71b8a71846f235",
- "serviceHost": ""
- }
- }
- }
- },
- /* 小程序特有相关 */
- "mp-weixin": {
- "appid": "wx6e14cb98394e36bc",
- "setting": {
- "urlCheck": false
- },
- "usingComponents": true
- },
- "mp-alipay": {
- "usingComponents": true
- },
- "mp-baidu": {
- "usingComponents": true
- },
- "mp-toutiao": {
- "usingComponents": true
- },
- "uniStatistics": {
- "enable": false
- },
- "vueVersion": "2"
-}
\ No newline at end of file
+ "name" : "供销综合平台",
+ "appid" : "__UNI__B5B1EDD",
+ "description" : "",
+ "versionName" : "1.0.0",
+ "versionCode" : "100",
+ "transformPx" : false,
+ /* 5+App特有相关 */
+ "app-plus" : {
+ "usingComponents" : true,
+ "nvueStyleCompiler" : "uni-app",
+ "compilerVersion" : 3,
+ "splashscreen" : {
+ "alwaysShowBeforeRender" : true,
+ "waiting" : true,
+ "autoclose" : true,
+ "delay" : 0
+ },
+ /* 模块配置 */
+ "modules" : {
+ "Payment" : {},
+ "Barcode" : {},
+ "Camera" : {},
+ "Maps" : {}
+ },
+ /* 应用发布信息 */
+ "distribute" : {
+ /* android打包配置 */
+ "android" : {
+ "permissions" : [
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ ""
+ ]
+ },
+ /* ios打包配置 */
+ "ios" : {
+ "dSYMs" : false
+ },
+ /* SDK配置 */
+ "sdkConfigs" : {
+ "payment" : {
+ "weixin" : {
+ "__platform__" : [ "ios", "android" ],
+ "appid" : "wx4789d9f1b50390ba",
+ "UniversalLinks" : ""
+ }
+ },
+ "ad" : {},
+ "maps" : {
+ "amap" : {
+ "appkey_ios" : "0799f37420c0784f1e6cba230a68bdb1",
+ "appkey_android" : "0799f37420c0784f1e6cba230a68bdb1"
+ }
+ }
+ },
+ "splashscreen" : {
+ "useOriginalMsgbox" : true
+ },
+ "icons" : {
+ "android" : {
+ "hdpi" : "unpackage/res/icons/72x72.png",
+ "xhdpi" : "unpackage/res/icons/96x96.png",
+ "xxhdpi" : "unpackage/res/icons/144x144.png",
+ "xxxhdpi" : "unpackage/res/icons/192x192.png"
+ },
+ "ios" : {
+ "appstore" : "unpackage/res/icons/1024x1024.png",
+ "ipad" : {
+ "app" : "unpackage/res/icons/76x76.png",
+ "app@2x" : "unpackage/res/icons/152x152.png",
+ "notification" : "unpackage/res/icons/20x20.png",
+ "notification@2x" : "unpackage/res/icons/40x40.png",
+ "proapp@2x" : "unpackage/res/icons/167x167.png",
+ "settings" : "unpackage/res/icons/29x29.png",
+ "settings@2x" : "unpackage/res/icons/58x58.png",
+ "spotlight" : "unpackage/res/icons/40x40.png",
+ "spotlight@2x" : "unpackage/res/icons/80x80.png"
+ },
+ "iphone" : {
+ "app@2x" : "unpackage/res/icons/120x120.png",
+ "app@3x" : "unpackage/res/icons/180x180.png",
+ "notification@2x" : "unpackage/res/icons/40x40.png",
+ "notification@3x" : "unpackage/res/icons/60x60.png",
+ "settings@2x" : "unpackage/res/icons/58x58.png",
+ "settings@3x" : "unpackage/res/icons/87x87.png",
+ "spotlight@2x" : "unpackage/res/icons/80x80.png",
+ "spotlight@3x" : "unpackage/res/icons/120x120.png"
+ }
+ }
+ }
+ }
+ },
+ /* 快应用特有相关 */
+ "quickapp" : {},
+ "h5" : {
+ "devServer" : {
+ "proxy" : {
+ "baseUrlTest/adminapi" : {
+ "target" : "https://worker-task.lihaink.cn",
+ "changeOrigin" : true,
+ "pathRewrite" : {
+ "^/baseUrlTest/adminapi" : "/adminapi"
+ }
+ },
+ "baseUrlTest/api" : {
+ "target" : "https://worker-task.lihaink.cn",
+ "changeOrigin" : true,
+ "pathRewrite" : {
+ "^/baseUrlTest/api" : "/api"
+ }
+ }
+ }
+ },
+ "sdkConfigs" : {
+ "maps" : {
+ "amap" : {
+ "key" : "275cd3601b1b2d6414f6c988e7911664",
+ "securityJsCode" : "d2d7c56801819e8bdf71b8a71846f235",
+ "serviceHost" : ""
+ }
+ }
+ }
+ },
+ /* 小程序特有相关 */
+ "mp-weixin" : {
+ "appid" : "wx6e14cb98394e36bc",
+ "setting" : {
+ "urlCheck" : false
+ },
+ "usingComponents" : true
+ },
+ "mp-alipay" : {
+ "usingComponents" : true
+ },
+ "mp-baidu" : {
+ "usingComponents" : true
+ },
+ "mp-toutiao" : {
+ "usingComponents" : true
+ },
+ "uniStatistics" : {
+ "enable" : false
+ },
+ "vueVersion" : "2"
+}
diff --git a/pages.json b/pages.json
index e1e3b02..f4ac82b 100644
--- a/pages.json
+++ b/pages.json
@@ -1,523 +1,531 @@
{
- "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
+ "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
- {
- "path": "pages/oaHome/oaHome",
- "style": {
- "navigationBarTitleText": "首页",
- "enablePullDownRefresh": true,
- "app-plus": {
- "titleNView": false
- }
- }
- },
- {
- "path": "pages/oaLogin/oaLogin",
- "style": {
- "navigationBarTitleText": "登录",
- "app-plus": {
- "titleNView": false
- }
- }
-
- },
- {
- "path": "pages/business/business",
- "style": {
- "navigationBarTitleText": "商机信息",
- "enablePullDownRefresh": true,
- "navigationBarBackgroundColor": "#3175f9",
- "navigationBarTextStyle": "white"
- }
-
- },
- {
- "path": "pages/index/index",
- "style": {
- "navigationBarTitleText": "uni-app",
- "navigationBarBackgroundColor": "#3175f9",
- "navigationBarTextStyle": "white"
- }
- },
- {
- "path": "pages/oaExamine/oaExamine",
- "style": {
- "navigationBarTitleText": "审批",
+ {
+ "path": "pages/oaHome/oaHome",
+ "style": {
+ "navigationBarTitleText": "首页",
"enablePullDownRefresh": true,
- "navigationBarBackgroundColor": "#3175f9",
- "navigationBarTextStyle": "white"
- }
- },
- {
- "path": "pages/oaTask/oaTask",
- "style": {
- "navigationBarTitleText": "今日任务",
+ "app-plus": {
+ "titleNView": false
+ }
+ }
+ },
+ {
+ "path": "pages/oaLogin/oaLogin",
+ "style": {
+ "navigationBarTitleText": "登录",
+ "app-plus": {
+ "titleNView": false
+ }
+ }
+
+ },
+ {
+ "path": "pages/business/business",
+ "style": {
+ "navigationBarTitleText": "商机信息",
"enablePullDownRefresh": true,
- "navigationBarBackgroundColor": "#3175f9",
- "navigationBarTextStyle": "white"
- }
- },
- {
- "path": "pages/oaMy/oaMy",
- "style": {
- "navigationBarTitleText": "我的",
- "app-plus": {
- "titleNView": false
- }
- }
- }, {
- "path": "pages/oaManager/oaManager",
- "style": {
- "navigationBarTitleText": "片区经理",
- "navigationBarBackgroundColor": "#3175f9",
- "navigationBarTextStyle": "white"
- }
+ "navigationBarBackgroundColor": "#3175f9",
+ "navigationBarTextStyle": "white"
+ }
- }, {
- "path": "pages/oaNews/oaNews",
- "style": {
- "navigationBarTitleText": "公告详情",
- "enablePullDownRefresh": false,
- "navigationBarBackgroundColor": "#3175f9",
- "navigationBarTextStyle": "white"
- }
+ },
+ {
+ "path": "pages/index/index",
+ "style": {
+ "navigationBarTitleText": "uni-app",
+ "navigationBarBackgroundColor": "#3175f9",
+ "navigationBarTextStyle": "white"
+ }
+ },
+ {
+ "path": "pages/oaExamine/oaExamine",
+ "style": {
+ "navigationBarTitleText": "审批",
+ "enablePullDownRefresh": true,
+ "navigationBarBackgroundColor": "#3175f9",
+ "navigationBarTextStyle": "white"
+ }
+ },
+ {
+ "path": "pages/oaTask/oaTask",
+ "style": {
+ "navigationBarTitleText": "今日任务",
+ "enablePullDownRefresh": true,
+ "navigationBarBackgroundColor": "#3175f9",
+ "navigationBarTextStyle": "white"
+ }
+ },
+ {
+ "path": "pages/oaMy/oaMy",
+ "style": {
+ "navigationBarTitleText": "我的",
+ "app-plus": {
+ "titleNView": false
+ }
+ }
+ }, {
+ "path": "pages/oaManager/oaManager",
+ "style": {
+ "navigationBarTitleText": "片区经理",
+ "navigationBarBackgroundColor": "#3175f9",
+ "navigationBarTextStyle": "white"
+ }
- }, {
- "path": "pages/logistics/index",
- "style": {
- "navigationBarTitleText": "订单列表",
- "enablePullDownRefresh": false,
- "navigationBarBackgroundColor": "#3175f9",
- "navigationBarTextStyle": "white"
- }
+ }, {
+ "path": "pages/oaNews/oaNews",
+ "style": {
+ "navigationBarTitleText": "公告详情",
+ "enablePullDownRefresh": false,
+ "navigationBarBackgroundColor": "#3175f9",
+ "navigationBarTextStyle": "white"
+ }
- }, {
- "path": "pages/logistics/logisticDetil",
- "style": {
- "navigationBarTitleText": "订单详情",
- "enablePullDownRefresh": false,
- "navigationBarBackgroundColor": "#3175f9",
- "navigationBarTextStyle": "white"
- }
+ }, {
+ "path": "pages/logistics/index",
+ "style": {
+ "navigationBarTitleText": "订单列表",
+ "enablePullDownRefresh": false,
+ "navigationBarBackgroundColor": "#3175f9",
+ "navigationBarTextStyle": "white"
+ }
- }, {
- "path": "pages/logistics/t",
- "style": {
- "navigationBarTitleText": "订单详情",
- "enablePullDownRefresh": false,
- "navigationBarBackgroundColor": "#3175f9",
- "navigationBarTextStyle": "white"
- }
+ }, {
+ "path": "pages/logistics/logisticDetil",
+ "style": {
+ "navigationBarTitleText": "订单详情",
+ "enablePullDownRefresh": false,
+ "navigationBarBackgroundColor": "#3175f9",
+ "navigationBarTextStyle": "white"
+ }
- }, {
- "path": "pages/logistics/deliveryDetil",
- "style": {
- "navigationBarTitleText": "配送信息",
- "enablePullDownRefresh": false,
- "navigationBarBackgroundColor": "#3175f9",
- "navigationBarTextStyle": "white"
- }
+ }, {
+ "path": "pages/logistics/t",
+ "style": {
+ "navigationBarTitleText": "订单详情",
+ "enablePullDownRefresh": false,
+ "navigationBarBackgroundColor": "#3175f9",
+ "navigationBarTextStyle": "white"
+ }
- }
+ }, {
+ "path": "pages/logistics/deliveryDetil",
+ "style": {
+ "navigationBarTitleText": "配送信息",
+ "enablePullDownRefresh": false,
+ "navigationBarBackgroundColor": "#3175f9",
+ "navigationBarTextStyle": "white"
+ }
- ],
- "subPackages": [{
- "root": "pages/views",
- "name": "views",
- "pages": [{
- "path": "application",
- "style": {
- "navigationBarTitleText": "地图首页",
- "enablePullDownRefresh": false
- }
- },
- {
- "path": "new_task",
- "style": {
- "navigationBarTitleText": "新建任务",
- "enablePullDownRefresh": false
- }
- },
- {
- "path": "com_approve",
- "style": {
- "navigationBarTitleText": "通用审批",
- "enablePullDownRefresh": false
- }
- }, {
- "path": "personal_center",
- "style": {
- "navigationBarTitleText": "个人中心1",
- "enablePullDownRefresh": false
- }
+ }, {
+ "path": "pages/updatePasswprd/updatePasswprd",
+ "style": {
+ "navigationBarTitleText": "修改密码",
+ "enablePullDownRefresh": false,
+ "navigationBarBackgroundColor": "#3175f9",
+ "navigationBarTextStyle": "white"
+ }
- }, {
- "path": "task_details",
- "style": {
- "navigationBarTitleText": "",
- "enablePullDownRefresh": false
- }
+ }
+ ],
+ "subPackages": [{
+ "root": "pages/views",
+ "name": "views",
+ "pages": [{
+ "path": "application",
+ "style": {
+ "navigationBarTitleText": "地图首页",
+ "enablePullDownRefresh": false
+ }
+ },
+ {
+ "path": "new_task",
+ "style": {
+ "navigationBarTitleText": "新建任务",
+ "enablePullDownRefresh": false
+ }
+ },
+ {
+ "path": "com_approve",
+ "style": {
+ "navigationBarTitleText": "通用审批",
+ "enablePullDownRefresh": false
+ }
+ }, {
+ "path": "personal_center",
+ "style": {
+ "navigationBarTitleText": "个人中心1",
+ "enablePullDownRefresh": false
+ }
- }, {
- "path": "personal_center_two",
- "style": {
- "navigationBarTitleText": "个人中心2",
- "enablePullDownRefresh": false
- }
+ }, {
+ "path": "task_details",
+ "style": {
+ "navigationBarTitleText": "",
+ "enablePullDownRefresh": false
+ }
- }, {
- "path": "public_document",
- "style": {
- "navigationBarTitleText": "公司公示文档",
- "enablePullDownRefresh": false,
- "navigationBarBackgroundColor": "#3175f9",
- "navigationBarTextStyle": "white"
- }
+ }, {
+ "path": "personal_center_two",
+ "style": {
+ "navigationBarTitleText": "个人中心2",
+ "enablePullDownRefresh": false
+ }
- }, {
- "path": "leave_request",
- "style": {
- "navigationBarTitleText": "请假申请",
- "enablePullDownRefresh": false,
- "navigationBarBackgroundColor": "#3175f9",
- "navigationBarTextStyle": "white"
- }
+ }, {
+ "path": "public_document",
+ "style": {
+ "navigationBarTitleText": "公司公示文档",
+ "enablePullDownRefresh": false,
+ "navigationBarBackgroundColor": "#3175f9",
+ "navigationBarTextStyle": "white"
+ }
- }
- ]
- }, {
- "root": "subpkg",
- "name": "subpkg",
- "pages": [{
- "path": "personnel/personnel",
- "style": {
- "navigationBarTitleText": "人员管理",
- "enablePullDownRefresh": true,
- "navigationBarBackgroundColor": "#3175f9",
- "navigationBarTextStyle": "white"
- }
+ }, {
+ "path": "leave_request",
+ "style": {
+ "navigationBarTitleText": "请假申请",
+ "enablePullDownRefresh": false,
+ "navigationBarBackgroundColor": "#3175f9",
+ "navigationBarTextStyle": "white"
+ }
- }, {
- "path": "finance/finance",
- "style": {
- "navigationBarTitleText": "财务管理",
- "enablePullDownRefresh": false,
- "navigationBarBackgroundColor": "#3175f9",
- "navigationBarTextStyle": "white"
- }
+ }
+ ]
+ }, {
+ "root": "subpkg",
+ "name": "subpkg",
+ "pages": [{
+ "path": "personnel/personnel",
+ "style": {
+ "navigationBarTitleText": "人员管理",
+ "enablePullDownRefresh": true,
+ "navigationBarBackgroundColor": "#3175f9",
+ "navigationBarTextStyle": "white"
+ }
- }, {
- "path": "topUp/topUp",
- "style": {
- "navigationBarTitleText": "账户充值",
- "enablePullDownRefresh": false,
- "navigationBarBackgroundColor": "#3175f9",
- "navigationBarTextStyle": "white",
- "app-plus": {
- "titleNView": {
- "buttons": [{
- "color": "#fff",
- "text": "充值记录",
- "fontSize": "15",
- "width": "90"
- }]
- }
- }
- }
+ }, {
+ "path": "finance/finance",
+ "style": {
+ "navigationBarTitleText": "财务管理",
+ "enablePullDownRefresh": false,
+ "navigationBarBackgroundColor": "#3175f9",
+ "navigationBarTextStyle": "white"
+ }
- }, {
- "path": "contract/contract",
- "style": {
- "navigationBarTitleText": "合同管理",
- "enablePullDownRefresh": true,
- "navigationBarBackgroundColor": "#3175f9",
- "navigationBarTextStyle": "white"
- }
+ }, {
+ "path": "topUp/topUp",
+ "style": {
+ "navigationBarTitleText": "账户充值",
+ "enablePullDownRefresh": false,
+ "navigationBarBackgroundColor": "#3175f9",
+ "navigationBarTextStyle": "white",
+ "app-plus": {
+ "titleNView": {
+ "buttons": [{
+ "color": "#fff",
+ "text": "充值记录",
+ "fontSize": "15",
+ "width": "90"
+ }]
+ }
+ }
+ }
- }, {
- "path": "contractDetail/contractDetail",
- "style": {
- "navigationBarTitleText": "合同详情",
- "enablePullDownRefresh": false,
- "navigationBarBackgroundColor": "#3175f9",
- "navigationBarTextStyle": "white"
- }
+ }, {
+ "path": "contract/contract",
+ "style": {
+ "navigationBarTitleText": "合同管理",
+ "enablePullDownRefresh": true,
+ "navigationBarBackgroundColor": "#3175f9",
+ "navigationBarTextStyle": "white"
+ }
- }, {
- "path": "pdfView/pdfView",
- "style": {
- "navigationBarTitleText": "合同内容",
- "enablePullDownRefresh": false,
- "navigationBarBackgroundColor": "#3175f9",
- "navigationBarTextStyle": "white"
- }
+ }, {
+ "path": "contractDetail/contractDetail",
+ "style": {
+ "navigationBarTitleText": "合同详情",
+ "enablePullDownRefresh": false,
+ "navigationBarBackgroundColor": "#3175f9",
+ "navigationBarTextStyle": "white"
+ }
- }, {
- "path": "companyInfo/companyInfo",
- "style": {
- "navigationBarTitleText": "公司信息",
- "enablePullDownRefresh": true,
- "navigationBarBackgroundColor": "#3175f9",
- "navigationBarTextStyle": "white"
- }
+ }, {
+ "path": "pdfView/pdfView",
+ "style": {
+ "navigationBarTitleText": "合同内容",
+ "enablePullDownRefresh": false,
+ "navigationBarBackgroundColor": "#3175f9",
+ "navigationBarTextStyle": "white"
+ }
- }, {
- "path": "companySign/companySign",
- "style": {
- "navigationBarTitleText": "签约公司详情",
- "enablePullDownRefresh": false,
- "navigationBarBackgroundColor": "#3175f9",
- "navigationBarTextStyle": "white"
- }
+ }, {
+ "path": "companyInfo/companyInfo",
+ "style": {
+ "navigationBarTitleText": "公司信息",
+ "enablePullDownRefresh": true,
+ "navigationBarBackgroundColor": "#3175f9",
+ "navigationBarTextStyle": "white"
+ }
- }, {
- "path": "personnelDetails/personnelDetails",
- "style": {
- "navigationBarTitleText": "人员详细信息",
- "enablePullDownRefresh": false,
- "navigationBarBackgroundColor": "#3175f9",
- "navigationBarTextStyle": "white"
- }
+ }, {
+ "path": "companySign/companySign",
+ "style": {
+ "navigationBarTitleText": "签约公司详情",
+ "enablePullDownRefresh": false,
+ "navigationBarBackgroundColor": "#3175f9",
+ "navigationBarTextStyle": "white"
+ }
- }, {
- "path": "orderDetail/orderDetail",
- "style": {
- "navigationBarTitleText": "流水详情",
- "enablePullDownRefresh": false,
- "navigationBarBackgroundColor": "#3175f9",
- "navigationBarTextStyle": "white"
- }
+ }, {
+ "path": "personnelDetails/personnelDetails",
+ "style": {
+ "navigationBarTitleText": "人员详细信息",
+ "enablePullDownRefresh": false,
+ "navigationBarBackgroundColor": "#3175f9",
+ "navigationBarTextStyle": "white"
+ }
- }, {
- "path": "withdrawDeposit/withdrawDeposit",
- "style": {
- "navigationBarTitleText": "提现余额",
- "enablePullDownRefresh": false,
- "navigationBarBackgroundColor": "#3175f9",
- "navigationBarTextStyle": "white",
- "app-plus": {
- "titleNView": {
- "buttons": [{
- "color": "#fff",
- "text": "提现记录",
- "fontSize": "15",
- "width": "90"
- }]
- }
- }
- }
- }, {
- "path": "withdrawList/withdrawList",
- "style": {
- "navigationBarTitleText": "提现记录",
- "enablePullDownRefresh": false,
- "navigationBarBackgroundColor": "#3175f9",
- "navigationBarTextStyle": "white"
- }
+ }, {
+ "path": "orderDetail/orderDetail",
+ "style": {
+ "navigationBarTitleText": "流水详情",
+ "enablePullDownRefresh": false,
+ "navigationBarBackgroundColor": "#3175f9",
+ "navigationBarTextStyle": "white"
+ }
- }, {
- "path": "noticeList/noticeList",
- "style": {
- "navigationBarTitleText": "公告列表",
- "enablePullDownRefresh": true,
- "navigationBarBackgroundColor": "#3175f9",
- "navigationBarTextStyle": "white"
- }
+ }, {
+ "path": "withdrawDeposit/withdrawDeposit",
+ "style": {
+ "navigationBarTitleText": "提现余额",
+ "enablePullDownRefresh": false,
+ "navigationBarBackgroundColor": "#3175f9",
+ "navigationBarTextStyle": "white",
+ "app-plus": {
+ "titleNView": {
+ "buttons": [{
+ "color": "#fff",
+ "text": "提现记录",
+ "fontSize": "15",
+ "width": "90"
+ }]
+ }
+ }
+ }
+ }, {
+ "path": "withdrawList/withdrawList",
+ "style": {
+ "navigationBarTitleText": "提现记录",
+ "enablePullDownRefresh": false,
+ "navigationBarBackgroundColor": "#3175f9",
+ "navigationBarTextStyle": "white"
+ }
- }, {
- "path": "topUpList/topUpList",
- "style": {
- "navigationBarTitleText": "充值记录",
- "enablePullDownRefresh": false,
- "navigationBarBackgroundColor": "#3175f9",
- "navigationBarTextStyle": "white"
- }
+ }, {
+ "path": "noticeList/noticeList",
+ "style": {
+ "navigationBarTitleText": "公告列表",
+ "enablePullDownRefresh": true,
+ "navigationBarBackgroundColor": "#3175f9",
+ "navigationBarTextStyle": "white"
+ }
- }, {
- "path": "companyAdmin/companyAdmin",
- "style": {
- "navigationBarTitleText": "公司管理",
- "enablePullDownRefresh": false,
- "navigationBarBackgroundColor": "#3175f9",
- "navigationBarTextStyle": "white"
- }
+ }, {
+ "path": "topUpList/topUpList",
+ "style": {
+ "navigationBarTitleText": "充值记录",
+ "enablePullDownRefresh": false,
+ "navigationBarBackgroundColor": "#3175f9",
+ "navigationBarTextStyle": "white"
+ }
- }, {
- "path": "newPersonnel/newPersonnel",
- "style": {
- "navigationBarTitleText": "新增人员",
- "enablePullDownRefresh": false,
- "navigationBarBackgroundColor": "#3175f9",
- "navigationBarTextStyle": "white"
- }
+ }, {
+ "path": "companyAdmin/companyAdmin",
+ "style": {
+ "navigationBarTitleText": "公司管理",
+ "enablePullDownRefresh": false,
+ "navigationBarBackgroundColor": "#3175f9",
+ "navigationBarTextStyle": "white"
+ }
- }, {
- "path": "archives/archives",
- "style": {
- "navigationBarTitleText": "档案管理",
- "enablePullDownRefresh": true,
- "navigationBarBackgroundColor": "#3175f9",
- "navigationBarTextStyle": "white"
- }
+ }, {
+ "path": "newPersonnel/newPersonnel",
+ "style": {
+ "navigationBarTitleText": "新增人员",
+ "enablePullDownRefresh": false,
+ "navigationBarBackgroundColor": "#3175f9",
+ "navigationBarTextStyle": "white"
+ }
- }, {
- "path": "newArchives/newArchives",
- "style": {
- "navigationBarTitleText": "信息登记",
- "enablePullDownRefresh": false,
- "navigationBarBackgroundColor": "#3175f9",
- "navigationBarTextStyle": "white"
- }
+ }, {
+ "path": "archives/archives",
+ "style": {
+ "navigationBarTitleText": "档案管理",
+ "enablePullDownRefresh": true,
+ "navigationBarBackgroundColor": "#3175f9",
+ "navigationBarTextStyle": "white"
+ }
- }, {
- "path": "updateArchives/updateArchives",
- "style": {
- "navigationBarTitleText": "信息更新",
- "enablePullDownRefresh": false,
- "navigationBarBackgroundColor": "#3175f9",
- "navigationBarTextStyle": "white"
- }
+ }, {
+ "path": "newArchives/newArchives",
+ "style": {
+ "navigationBarTitleText": "信息登记",
+ "enablePullDownRefresh": false,
+ "navigationBarBackgroundColor": "#3175f9",
+ "navigationBarTextStyle": "white"
+ }
- }, {
- "path": "fixedAssets/fixedAssets",
- "style": {
- "navigationBarTitleText": "固定资产",
- "enablePullDownRefresh": false,
- "navigationBarBackgroundColor": "#3175f9",
- "navigationBarTextStyle": "white"
- }
+ }, {
+ "path": "updateArchives/updateArchives",
+ "style": {
+ "navigationBarTitleText": "信息更新",
+ "enablePullDownRefresh": false,
+ "navigationBarBackgroundColor": "#3175f9",
+ "navigationBarTextStyle": "white"
+ }
- }, {
- "path": "taskAdmin/taskAdmin",
- "style": {
- "navigationBarTitleText": "任务管理",
- "enablePullDownRefresh": false,
- "navigationBarBackgroundColor": "#3175f9",
- "navigationBarTextStyle": "white"
- }
+ }, {
+ "path": "fixedAssets/fixedAssets",
+ "style": {
+ "navigationBarTitleText": "固定资产",
+ "enablePullDownRefresh": false,
+ "navigationBarBackgroundColor": "#3175f9",
+ "navigationBarTextStyle": "white"
+ }
- }, {
- "path": "archivesDetail/archivesDetail",
- "style": {
- "navigationBarTitleText": "档案详情",
- "enablePullDownRefresh": false,
- "navigationBarBackgroundColor": "#3175f9",
- "navigationBarTextStyle": "white"
- }
+ }, {
+ "path": "taskAdmin/taskAdmin",
+ "style": {
+ "navigationBarTitleText": "任务管理",
+ "enablePullDownRefresh": false,
+ "navigationBarBackgroundColor": "#3175f9",
+ "navigationBarTextStyle": "white"
+ }
- }, {
- "path": "captain/captain",
- "style": {
- "navigationBarTitleText": "队长列表",
- "enablePullDownRefresh": true,
- "navigationBarBackgroundColor": "#3175f9",
- "navigationBarTextStyle": "white"
- }
+ }, {
+ "path": "archivesDetail/archivesDetail",
+ "style": {
+ "navigationBarTitleText": "档案详情",
+ "enablePullDownRefresh": false,
+ "navigationBarBackgroundColor": "#3175f9",
+ "navigationBarTextStyle": "white"
+ }
- }, {
- "path": "companyFinance/companyFinance",
- "style": {
- "navigationBarTitleText": "公司财务",
- "enablePullDownRefresh": false,
- "navigationBarBackgroundColor": "#3175f9",
- "navigationBarTextStyle": "white"
- }
+ }, {
+ "path": "captain/captain",
+ "style": {
+ "navigationBarTitleText": "队长列表",
+ "enablePullDownRefresh": true,
+ "navigationBarBackgroundColor": "#3175f9",
+ "navigationBarTextStyle": "white"
+ }
- }, {
- "path": "companyUnsign/companyUnsign",
- "style": {
- "navigationBarTitleText": "未签约公司列表",
- "enablePullDownRefresh": false,
- "navigationBarBackgroundColor": "#3175f9",
- "navigationBarTextStyle": "white"
- }
+ }, {
+ "path": "companyFinance/companyFinance",
+ "style": {
+ "navigationBarTitleText": "公司财务",
+ "enablePullDownRefresh": false,
+ "navigationBarBackgroundColor": "#3175f9",
+ "navigationBarTextStyle": "white"
+ }
- }, {
- "path": "submit/submit",
- "style": {
- "navigationBarTitleText": "提交审核",
- "enablePullDownRefresh": false,
- "navigationBarBackgroundColor": "#3175f9",
- "navigationBarTextStyle": "white"
- }
+ }, {
+ "path": "companyUnsign/companyUnsign",
+ "style": {
+ "navigationBarTitleText": "未签约公司列表",
+ "enablePullDownRefresh": false,
+ "navigationBarBackgroundColor": "#3175f9",
+ "navigationBarTextStyle": "white"
+ }
- }, {
- "path": "dispatching/dispatching",
- "style": {
- "navigationBarTitleText": "任务:宣传配送",
- "enablePullDownRefresh": false,
- "navigationBarBackgroundColor": "#3175f9",
- "navigationBarTextStyle": "white"
- }
+ }, {
+ "path": "submit/submit",
+ "style": {
+ "navigationBarTitleText": "提交审核",
+ "enablePullDownRefresh": false,
+ "navigationBarBackgroundColor": "#3175f9",
+ "navigationBarTextStyle": "white"
+ }
- }, {
- "path": "blockTransaction/blockTransaction",
- "style": {
- "navigationBarTitleText": "任务:片区交易",
- "enablePullDownRefresh": false,
- "navigationBarBackgroundColor": "#3175f9",
- "navigationBarTextStyle": "white"
- }
+ }, {
+ "path": "dispatching/dispatching",
+ "style": {
+ "navigationBarTitleText": "任务:宣传配送",
+ "enablePullDownRefresh": false,
+ "navigationBarBackgroundColor": "#3175f9",
+ "navigationBarTextStyle": "white"
+ }
- }, {
- "path": "fileTask/fileTask",
- "style": {
- "navigationBarTitleText": "任务:档案更新",
- "enablePullDownRefresh": false,
- "navigationBarBackgroundColor": "#3175f9",
- "navigationBarTextStyle": "white"
- }
+ }, {
+ "path": "blockTransaction/blockTransaction",
+ "style": {
+ "navigationBarTitleText": "任务:片区交易",
+ "enablePullDownRefresh": false,
+ "navigationBarBackgroundColor": "#3175f9",
+ "navigationBarTextStyle": "white"
+ }
- }]
- }],
- "globalStyle": {
- "navigationBarTextStyle": "black",
- "navigationBarTitleText": "uni-app",
- "navigationBarBackgroundColor": "#F8F8F8",
- "backgroundColor": "#F8F8F8"
- },
- "tabBar": {
- "color": "#282828",
- "selectedColor": "#3175f9",
- "borderStyle": "white",
- "backgroundColor": "#ffffff",
- "list": [{
- "pagePath": "pages/oaHome/oaHome",
- "text": "首页",
- "iconPath": "/static/tabs-icon/home.png",
- "selectedIconPath": "/static/tabs-icon/home-a.png"
- },
- {
- "pagePath": "pages/oaExamine/oaExamine",
- "text": "审批",
- "iconPath": "/static/tabs-icon/Task.png",
- "selectedIconPath": "/static/tabs-icon/Task-a.png"
- },
- {
- "pagePath": "pages/oaTask/oaTask",
- "text": "任务",
- "iconPath": "/static/tabs-icon/approval.png",
- "selectedIconPath": "/static/tabs-icon/approval-a.png"
- },
- // {
- // "pagePath": "pages/oaManager/oaManager",
- // "text": "片区经理",
- // "iconPath": "/static/tabs-icon/manager.png",
- // "selectedIconPath": "/static/tabs-icon/manager-a.png"
- // },
- {
- "pagePath": "pages/business/business",
- "text": "商机",
- "iconPath": "/static/tabs-icon/manager.png",
- "selectedIconPath": "/static/tabs-icon/manager-a.png"
- },
- {
- "pagePath": "pages/oaMy/oaMy",
- "text": "我的",
- "iconPath": "/static/tabs-icon/my.png",
- "selectedIconPath": "/static/tabs-icon/my-a.png"
- }
- ]
- },
- "uniIdRouter": {}
+ }, {
+ "path": "fileTask/fileTask",
+ "style": {
+ "navigationBarTitleText": "任务:档案更新",
+ "enablePullDownRefresh": false,
+ "navigationBarBackgroundColor": "#3175f9",
+ "navigationBarTextStyle": "white"
+ }
+
+ }]
+ }],
+ "globalStyle": {
+ "navigationBarTextStyle": "black",
+ "navigationBarTitleText": "uni-app",
+ "navigationBarBackgroundColor": "#F8F8F8",
+ "backgroundColor": "#F8F8F8"
+ },
+ "tabBar": {
+ "color": "#282828",
+ "selectedColor": "#3175f9",
+ "borderStyle": "white",
+ "backgroundColor": "#ffffff",
+ "list": [{
+ "pagePath": "pages/oaHome/oaHome",
+ "text": "首页",
+ "iconPath": "/static/tabs-icon/home.png",
+ "selectedIconPath": "/static/tabs-icon/home-a.png"
+ },
+ {
+ "pagePath": "pages/oaExamine/oaExamine",
+ "text": "审批",
+ "iconPath": "/static/tabs-icon/Task.png",
+ "selectedIconPath": "/static/tabs-icon/Task-a.png"
+ },
+ {
+ "pagePath": "pages/oaTask/oaTask",
+ "text": "任务",
+ "iconPath": "/static/tabs-icon/approval.png",
+ "selectedIconPath": "/static/tabs-icon/approval-a.png"
+ },
+ // {
+ // "pagePath": "pages/oaManager/oaManager",
+ // "text": "片区经理",
+ // "iconPath": "/static/tabs-icon/manager.png",
+ // "selectedIconPath": "/static/tabs-icon/manager-a.png"
+ // },
+ {
+ "pagePath": "pages/business/business",
+ "text": "商机",
+ "iconPath": "/static/tabs-icon/manager.png",
+ "selectedIconPath": "/static/tabs-icon/manager-a.png"
+ },
+ {
+ "pagePath": "pages/oaMy/oaMy",
+ "text": "我的",
+ "iconPath": "/static/tabs-icon/my.png",
+ "selectedIconPath": "/static/tabs-icon/my-a.png"
+ }
+ ]
+ },
+ "uniIdRouter": {}
}
\ No newline at end of file
diff --git a/pages/oaLogin/oaLogin.vue b/pages/oaLogin/oaLogin.vue
index 549a50b..e3fbea0 100644
--- a/pages/oaLogin/oaLogin.vue
+++ b/pages/oaLogin/oaLogin.vue
@@ -79,9 +79,21 @@ import { Toast } from "../../libs/uniApi";
let { data } = await userInfo();
this.$store.commit('setUserInfo', data);
uni.hideLoading()
- uni.switchTab({
- url: '/pages/oaHome/oaHome'
- })
+ if(data.is_new_user) {
+ uni.showLoading({
+ mask:true,
+ title:'加载中'
+ })
+ uni.switchTab({
+ url:'/pages/oaHome/oaHome',
+ success: () => {
+ uni.hideLoading()
+ }
+ })
+ }
+ else uni.navigateTo({
+ url: '/pages/updatePasswprd/updatePasswprd'
+ });
},
initTerminal() {
// #ifndef APP-PLUS
diff --git a/pages/updatePasswprd/updatePasswprd.vue b/pages/updatePasswprd/updatePasswprd.vue
new file mode 100644
index 0000000..9f9e58a
--- /dev/null
+++ b/pages/updatePasswprd/updatePasswprd.vue
@@ -0,0 +1,96 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 提交
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/static/icons/setting.png b/static/icons/setting.png
new file mode 100644
index 0000000..719e7bf
Binary files /dev/null and b/static/icons/setting.png differ
diff --git a/static/server/server.js b/static/server/server.js
index c27b7cd..bcd67b5 100644
--- a/static/server/server.js
+++ b/static/server/server.js
@@ -392,6 +392,11 @@ export const myOaData = [
icon: '../../static/icons/manager.png',
url: '/pages/oaManager/oaManager'
},
+ {
+ name: '安全设置',
+ icon: '../../static/icons/setting.png',
+ url: '/pages/updatePasswprd/updatePasswprd'
+ },
// {
// name: '管理后台',
// icon: 'custom-icongongzi',
diff --git a/subpkg/companySign/companySign.vue b/subpkg/companySign/companySign.vue
index eeb6711..40cf125 100644
--- a/subpkg/companySign/companySign.vue
+++ b/subpkg/companySign/companySign.vue
@@ -11,7 +11,7 @@
-
+
@@ -22,6 +22,11 @@
+
+
+
+ 查看
+
@@ -101,6 +106,12 @@
type: 1 //1-公司,2-个人
})
},
+ // 查看合同
+ naviToContract(file) {
+ uni.navigateTo({
+ url: `/subpkg/pdfView/pdfView?url=${file}`
+ })
+ },
// 初始化合同类型
async initContractTypeList() {
let res = await dictDataLists({
@@ -110,50 +121,78 @@
},
// 生成合同
async createContract(data) {
- uni.showLoading({
- title:'合同生成中',
- mask: true
+ uni.showModal({
+ content: '请检查信息无误后再生成合同',
+ confirmText: '确认无误',
+ cancelText: '我再看看',
+ confirmColor: '#3175f9',
+ success: async (e) => {
+ if (e.confirm) {
+ uni.showLoading({
+ title:'合同生成中',
+ mask: true
+ })
+ let res = await initiateContract({
+ party_b: data.party_b,
+ contract_type: data.contract_type,
+ type: data.type
+ })
+ this.initCompany();
+ uni.hideLoading();
+ Toast(res.msg || '合同已生成');
+ this.navTo('/subpkg/submit/submit?type=' + 1);
+ }
+ }
})
- let res = await initiateContract({
- party_b: data.party_b,
- contract_type: data.contract_type,
- type: data.type
- })
- this.initCompany();
- uni.hideLoading();
- Toast(res.msg || '合同已生成')
},
// 发送合同
async addContract(data) {
- try{
- uni.showLoading({
- title:'合同发送中',
- mask: true
- })
- let res = await Draftingcontracts({
- id: this.id
- });
- this.initCompany();
- if (this.userInfo.contract.check_status == 3) {
- this.startTimer();
+ uni.showModal({
+ content: '请检查合同无误后再发送',
+ confirmText: '确认无误',
+ cancelText: '我再看看',
+ confirmColor: '#3175f9',
+ success: async (e) => {
+ if (e.confirm) {
+ try{
+ uni.showLoading({
+ title:'合同发送中',
+ mask: true
+ })
+ let res = await Draftingcontracts({
+ id: this.id
+ });
+ this.initCompany();
+ this.startTimer();
+ uni.hideLoading();
+ Toast('合同已发送');
+ // this.navTo('/subpkg/submit/submit');
+ }catch(e){
+ uni.hideLoading();
+ Toast(e.msg||'合同发送失败');
+ }
+ }
}
- uni.hideLoading();
- Toast('合同已发送');
- this.navTo('/subpkg/submit/submit');
- }catch(e){
- uni.hideLoading();
- Toast(e.msg||'合同发送失败');
- }
+ })
},
// 发送短信
async getPostsms() {
- if (this.timerCount == 0) {
- this.startTimer();
- let res = await postsms({
- id: this.id
+ try {
+ uni.showLoading({
+ title: '发送中',
+ mask: true
})
- Toast('短信已发送');
- this.navTo('/subpkg/submit/submit');
+ if (this.timerCount == 0) {
+ this.startTimer();
+ let res = await postsms({
+ id: this.id
+ })
+ Toast('短信已发送');
+ // this.navTo('/subpkg/submit/submit');
+ }
+ } catch (e) {
+ uni.hideLoading();
+ Toast(e.msg || '合同发送失败');
}
},
// 定时器
diff --git a/subpkg/companyUnsign/companyUnsign.vue b/subpkg/companyUnsign/companyUnsign.vue
index 2336d53..aaddeba 100644
--- a/subpkg/companyUnsign/companyUnsign.vue
+++ b/subpkg/companyUnsign/companyUnsign.vue
@@ -17,13 +17,14 @@
联系方式:{{item.master_phone}}
区县乡镇:
- {{item.city_name+'/'+item.area_name+'/'+item.street_name}}
+ {{c_address(item)}}
-
+
@@ -33,76 +34,91 @@
+
\ No newline at end of file
diff --git a/subpkg/personnelDetails/personnelDetails.vue b/subpkg/personnelDetails/personnelDetails.vue
index c940bd2..befcabf 100644
--- a/subpkg/personnelDetails/personnelDetails.vue
+++ b/subpkg/personnelDetails/personnelDetails.vue
@@ -106,14 +106,17 @@
-
+
-
-
@@ -165,12 +168,17 @@
- {{userInfo.contract.contract_type_name}}
+ {{userInfo.contract.contract_type_name||'合同'}}
{{userInfo.contract&&userInfo.contract.create_time}}
+
+
+
+ 查看
+
@@ -256,12 +264,12 @@
this.initContractTypeList();
this.loadUserDetail();
let time = uni.getStorageSync('time' + this.id);
- if(time>0&&(time - Date.now())/1000>0){
- this.startTimer((time - Date.now())/1000);
+ if (time > 0 && (time - Date.now()) / 1000 > 0) {
+ this.startTimer((time - Date.now()) / 1000);
}
},
onUnload() {
- if(this.timerCount>0) uni.setStorageSync('time'+this.id, this.timerCount*1000+Date.now());
+ if (this.timerCount > 0) uni.setStorageSync('time' + this.id, this.timerCount * 1000 + Date.now());
},
computed: {
cTimerCount() {
@@ -269,16 +277,21 @@
}
},
methods: {
+ // 查看合同
naviToContract(contract_no) {
- download_file({
- applyNo: contract_no
- }).then(res => {
- if (res.code != 1) {
- Toast(res.msg)
- }
- uni.navigateTo({
- url: `/subpkg/pdfView/pdfView?url=${res.data.url}`
+ if (this.userInfo.is_contract) {
+ download_file({
+ applyNo: contract_no
+ }).then(res => {
+ if (res.code != 1) {
+ Toast(res.msg)
+ }
+ uni.navigateTo({
+ url: `/subpkg/pdfView/pdfView?url=${res.data.url}`
+ })
})
+ } else uni.navigateTo({
+ url: `/subpkg/pdfView/pdfView?url=${this.userInfo?.contract?.file}`
})
},
navTo(url) {
@@ -322,41 +335,60 @@
this.contractTypeList = res.data;
},
// 生成合同
- async createContract(data) {
- uni.showLoading({
- title: '合同生成中',
- mask: true
+ createContract(data) {
+ uni.showModal({
+ content: '请检查信息无误后再生成合同',
+ confirmText: '确认无误',
+ cancelText: '我再看看',
+ confirmColor: '#3175f9',
+ success: async (e) => {
+ if (e.confirm) {
+ uni.showLoading({
+ title: '合同生成中',
+ mask: true
+ })
+ let res = await userInitiateContract({
+ party_b: data.party_b,
+ contract_type: data.contract_type,
+ type: data.type
+ })
+ this.loadUserDetail();
+ uni.hideLoading();
+ Toast('合同已生成');
+ this.navTo('/subpkg/submit/submit?type=' + 1);
+ }
+ }
})
- let res = await userInitiateContract({
- party_b: data.party_b,
- contract_type: data.contract_type,
- type: data.type
- })
- this.loadUserDetail();
- uni.hideLoading();
- Toast('合同已生成');
},
// 发送合同
async addContract(data) {
- try {
- uni.showLoading({
- title: '合同发送中',
- mask: true
- })
- let res = await userDraftingcontracts({
- id: this.userInfo.id
- });
- this.loadUserDetail();
- if (this.userInfo.contract.check_status == 3) {
- this.startTimer();
+ uni.showModal({
+ content: '请检查合同无误后再发送',
+ confirmText: '确认无误',
+ cancelText: '我再看看',
+ confirmColor: '#3175f9',
+ success: async (e) => {
+ if (e.confirm) {
+ try {
+ uni.showLoading({
+ title: '合同发送中',
+ mask: true
+ })
+ let res = await userDraftingcontracts({
+ id: this.userInfo.id
+ });
+ this.loadUserDetail();
+ this.startTimer();
+ uni.hideLoading();
+ Toast('合同已发送');
+ // this.navTo('/subpkg/submit/submit?type='+2);
+ } catch (e) {
+ uni.hideLoading();
+ Toast(e.msg || '合同发送失败');
+ }
+ }
}
- uni.hideLoading();
- Toast('合同已发送');
- this.navTo('/subpkg/submit/submit');
- } catch (e) {
- uni.hideLoading();
- Toast(e.msg || '合同发送失败');
- }
+ })
},
// 发送短信
async getPostsms() {
@@ -372,7 +404,7 @@
})
uni.hideLoading();
Toast('短信已发送');
- this.navTo('/subpkg/submit/submit');
+ // this.navTo('/subpkg/submit/submit?type='+3);
}
} catch (e) {
uni.hideLoading();
@@ -380,7 +412,7 @@
}
},
// 定时器
- startTimer(time=60){
+ startTimer(time = 60) {
this.timerCount = time.toFixed(0);
this.timer = setInterval(() => {
this.timerCount--;