diff --git a/apis/creditManagementApi.js b/apis/creditManagementApi.js index 8b3a8f8..a2cbf7c 100644 --- a/apis/creditManagementApi.js +++ b/apis/creditManagementApi.js @@ -7,10 +7,3 @@ export function addPaper(data) { data }) } - -export function getPaperCategory(data) { - return http.get({ - url: '/base-paper-trading/get/product/category-list', - data - }) -} diff --git a/apis/orderApi.js b/apis/orderApi.js index b2f5b54..f757301 100644 --- a/apis/orderApi.js +++ b/apis/orderApi.js @@ -107,3 +107,36 @@ export function supplierConfirmRepay(data) { data }) } + +/** + * 账期订单融资列表 + * @param {object} data enterpriseId status + */ +export function getFinanceList(data) { + return http.get({ + url: '/base-paper-trading/get/supplier/order/financing/list/page', + data + }) +} + +/** + * 供应商获取合同列表 + * @param {object} data signDate enterpriseId type + */ +export function getContractList(data) { + return http.get({ + url: '/base-paper-trading/supplier/get/contract-list', + data + }) +} + +/** + * 获取已签署合同企业列表 + * @param {object} data enterpriseId + */ +export function getCooperationList(data) { + return http.get({ + url: '/base-paper-trading/supplier/get/contract-enterprise-list', + data + }) +} diff --git a/components/qn-datetime-picker/qn-datetime-picker.vue b/components/qn-datetime-picker/qn-datetime-picker.vue index 7c8d4f4..4ea79cf 100644 --- a/components/qn-datetime-picker/qn-datetime-picker.vue +++ b/components/qn-datetime-picker/qn-datetime-picker.vue @@ -5,7 +5,7 @@ - + diff --git a/components/qn-map/qn-map.nvue b/components/qn-map/qn-map.nvue index a2aa7d9..04bfc72 100644 --- a/components/qn-map/qn-map.nvue +++ b/components/qn-map/qn-map.nvue @@ -70,7 +70,7 @@ export default { // 生成markers causeMarker(item) { let result = {} - if (this.scale >= 15) { + if (this.scale >= 14) { result = { latitude: item.latitude - 0, longitude: item.longitude - 0, diff --git a/enums/index.js b/enums/index.js index bec7584..99bbe53 100644 --- a/enums/index.js +++ b/enums/index.js @@ -1,6 +1,8 @@ import env from '@/env/index.js' const urlEnv = env === 'production' ? '' : `-${env}` +export const XAPPID = '503258978847966403' + /** * 账号类型 */ @@ -43,8 +45,8 @@ export const fddEnterpriseStatus = { * 上传地址 */ export const uploadUrl = { - image: `https://api-ops-yyt${urlEnv}.qniao.cn/yyt-uec/file-uploading/upload/image`, - file: `https://api-ops-yyt${urlEnv}.qniao.cn/yyt-uec/file-uploading/upload/file` + image: `https://api-client-yyt${urlEnv}.qniao.cn/yyt-uec/file-uploading/upload/image`, + file: `https://api-client-yyt${urlEnv}.qniao.cn/yyt-uec/file-uploading/upload/file` } /** * 结算周期:1:月结30(飞算1期),2:月结45,3:月结60(飞算2期),4:月结75,5:月结90(飞算3期) @@ -133,12 +135,12 @@ export const supplierOrderStatusMap = { [supplierOrderStatusEnum.WAIT_SUPPLIER_CONFIRM]: '待确认', [supplierOrderStatusEnum.WAIT_DELIVERY]: '待发货', [supplierOrderStatusEnum.RECEIVED]: '已发货', - [supplierOrderStatusEnum.WAIT_CLIENT_LOAN]: '待借款', + [supplierOrderStatusEnum.WAIT_CLIENT_LOAN]: '待客户借款', [supplierOrderStatusEnum.PAYING]: '支付中', [supplierOrderStatusEnum.WAIT_CLIENT_PAY]: '待支付', [supplierOrderStatusEnum.PAY_FAIL]: '付款失败', [supplierOrderStatusEnum.FINISHED]: '已完成', - [supplierOrderStatusEnum.WAIT_CLIENT_REPAY]: '待还款', + [supplierOrderStatusEnum.WAIT_CLIENT_REPAY]: '待客户还款', [supplierOrderStatusEnum.REPAYING]: '还款中', [supplierOrderStatusEnum.CANCELED]: '已取消' } @@ -157,3 +159,36 @@ export const paymentMethodMap = { [paymentMethodEnum.MONTHLY_PAY]: '月结支付', [paymentMethodEnum.FLY_PAY]: '飞算支付' } + +/** + * 账期订单融资状态 30181 待客户借款,30182 待融资,30183 已融资,30184 融资失败 + */ +export const financeStatusEnum = { + WAIT_CLIENT_LOAN: 30181, + WAIT_FINANCE: 30182, + FINISHED: 30183, + FAILED: 30184 +} + +/** + * 账期订单融资状态 30181 待客户借款,30182 待融资,30183 已融资,30184 融资失败 + */ +export const financeStatusMap = { + [financeStatusEnum.WAIT_CLIENT_LOAN]: '待客户借款', + [financeStatusEnum.WAIT_FINANCE]: '待融资', + [financeStatusEnum.FINISHED]: '已融资', + [financeStatusEnum.FAILED]: '融资失败' +} + +/** + * 合同类型。1:订单合同,2:担保合同 + */ +export const contractTypeEnum = { + ORDER_CONTRACT: 1, + GUARANTEE_CONTRACT: 2 +} + +export const contractTypeMap = { + [contractTypeEnum.ORDER_CONTRACT]: '订单合同', + [contractTypeEnum.GUARANTEE_CONTRACT]: '担保合同' +} diff --git a/manifest.json b/manifest.json index ae8c6ec..2caaf6c 100644 --- a/manifest.json +++ b/manifest.json @@ -1,119 +1,151 @@ { - "name": "纸掌柜", - "appid": "__UNI__8C1E198", - "description": "", - "versionName": "1.0.0", - "versionCode": "100", - "transformPx": false, - "networkTimeout": { - "request": 6000 - }, - /* 5+App特有相关 */ - "app-plus": { - "usingComponents": true, - "nvueStyleCompiler": "uni-app", - "compilerVersion": 3, - "splashscreen": { - "alwaysShowBeforeRender": true, - "waiting": true, - "autoclose": true, - "delay": 0 + "name" : "纸掌柜", + "appid" : "__UNI__8C1E198", + "description" : "", + "versionName" : "1.0.0", + "versionCode" : "100", + "transformPx" : false, + "networkTimeout" : { + "request" : 6000 }, - "compatible": { - "ignoreVersion": true - }, - /* 模块配置 */ - "modules": { - "Maps": {}, - "Geolocation": {}, - "FaceID": {}, - "iBeacon": {} - }, - /* 应用发布信息 */ - "distribute": { - /* android打包配置 */ - "android": { - "permissions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ], - "abiFilters": ["armeabi-v7a", "x86"] - }, - /* ios打包配置 */ - "ios": {}, - /* SDK配置 */ - "sdkConfigs": { - "maps": { - "amap": { - "appkey_ios": "0182ee2a9fdd5fd3ef6a8bd5a2f98325", - "appkey_android": "877848546f7f3717101a17c33e1d4df3" - } + /* 5+App特有相关 */ + "app-plus" : { + "usingComponents" : true, + "nvueStyleCompiler" : "uni-app", + "compilerVersion" : 3, + "splashscreen" : { + "alwaysShowBeforeRender" : true, + "waiting" : true, + "autoclose" : true, + "delay" : 0 + }, + "compatible" : { + "ignoreVersion" : true }, - "payment": { - "weixin": { - "__platform__": ["ios", "android"], - "appid": "", - "UniversalLinks": "" - } + /* 模块配置 */ + "modules" : { + "Maps" : {}, + "Geolocation" : {}, + "FaceID" : {}, + "iBeacon" : {} }, - "ad": {}, - "geolocation": { - "amap": { - "__platform__": ["ios", "android"], - "appkey_ios": "0182ee2a9fdd5fd3ef6a8bd5a2f98325", - "appkey_android": "877848546f7f3717101a17c33e1d4df3" - } + /* 应用发布信息 */ + "distribute" : { + /* android打包配置 */ + "android" : { + "permissions" : [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "abiFilters" : [ "armeabi-v7a", "x86" ] + }, + /* ios打包配置 */ + "ios" : {}, + /* SDK配置 */ + "sdkConfigs" : { + "maps" : { + "amap" : { + "appkey_ios" : "0182ee2a9fdd5fd3ef6a8bd5a2f98325", + "appkey_android" : "877848546f7f3717101a17c33e1d4df3" + } + }, + "payment" : { + "weixin" : { + "__platform__" : [ "ios", "android" ], + "appid" : "", + "UniversalLinks" : "" + } + }, + "ad" : {}, + "geolocation" : { + "amap" : { + "__platform__" : [ "ios", "android" ], + "appkey_ios" : "0182ee2a9fdd5fd3ef6a8bd5a2f98325", + "appkey_android" : "877848546f7f3717101a17c33e1d4df3" + } + }, + "share" : {} + }, + "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" + } + } + } }, - "share": {} - } + "uniStatistics" : { + "enable" : true + } }, - "uniStatistics": { - "enable": true - } - }, - /* 快应用特有相关 */ - "quickapp": {}, - /* 小程序特有相关 */ - "mp-weixin": { - "appid": "", - "setting": { - "urlCheck": false + /* 快应用特有相关 */ + "quickapp" : {}, + /* 小程序特有相关 */ + "mp-weixin" : { + "appid" : "", + "setting" : { + "urlCheck" : false + }, + "usingComponents" : true + }, + "mp-alipay" : { + "usingComponents" : true + }, + "mp-baidu" : { + "usingComponents" : true + }, + "mp-toutiao" : { + "usingComponents" : true + }, + "uniStatistics" : { + "enable" : false }, - "usingComponents": true - }, - "mp-alipay": { - "usingComponents": true - }, - "mp-baidu": { - "usingComponents": true - }, - "mp-toutiao": { - "usingComponents": true - }, - "uniStatistics": { - "enable": false - }, - "vueVersion": "2", - "h5": { - "router": { - "mode": "history" + "vueVersion" : "2", + "h5" : { + "router" : { + "mode" : "history" + } } - } } diff --git a/pages.json b/pages.json index d4d4db1..db20736 100644 --- a/pages.json +++ b/pages.json @@ -101,7 +101,9 @@ { "path": "pages/agreement/index", "style": { - "navigationBarTitleText": "用户与隐私协议" + "navigationBarTitleText": "用户与隐私协议", + "enablePullDownRefresh": false, + "navigationStyle": "custom" } }, { @@ -221,6 +223,20 @@ "navigationStyle": "custom" } }, + { + "path": "pages/credit-order-list/index", + "style": { + "navigationBarTitleText": "账期订单融资", + "navigationStyle": "custom" + } + }, + { + "path": "pages/contract-manage/index", + "style": { + "navigationBarTitleText": "合同管理", + "navigationStyle": "custom" + } + }, { "path": "pages/store-settings/index", "style": { @@ -232,6 +248,7 @@ { "path": "pages/follow-up-records/index", "style": { + "navigationStyle": "custom", "navigationBarTitleText": "跟进记录" } }, diff --git a/pages/agreement/index.vue b/pages/agreement/index.vue index 7ebaabe..c79c362 100644 --- a/pages/agreement/index.vue +++ b/pages/agreement/index.vue @@ -1,35 +1,82 @@ - +const content = `软件许可使用协议 +发布时间:2020年 7 月 1 日 - diff --git a/pages/client-credit-detail/index.vue b/pages/client-credit-detail/index.vue index 41ca8cd..ab2310a 100644 --- a/pages/client-credit-detail/index.vue +++ b/pages/client-credit-detail/index.vue @@ -3,7 +3,7 @@ 授信额度(元) - 5{{ info.creditLine }} + {{ info.creditLine }} diff --git a/pages/client-list/index.vue b/pages/client-list/index.vue index e5a3bf8..7ed3d71 100644 --- a/pages/client-list/index.vue +++ b/pages/client-list/index.vue @@ -103,8 +103,6 @@ export default { } else { this.list = this.list.concat(res.records) } - // this.list = [] - // this.list = [...this.list, ...[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]] resolve({ list: this.list, total: res.total }) } else { reject() diff --git a/pages/contract-manage/index.vue b/pages/contract-manage/index.vue new file mode 100644 index 0000000..292d5b9 --- /dev/null +++ b/pages/contract-manage/index.vue @@ -0,0 +1,257 @@ + + + + + diff --git a/pages/credit-management/index.vue b/pages/credit-management/index.vue index 22e5d69..e1b1068 100644 --- a/pages/credit-management/index.vue +++ b/pages/credit-management/index.vue @@ -1,52 +1,24 @@ - + diff --git a/pages/credit-order-list/index.vue b/pages/credit-order-list/index.vue new file mode 100644 index 0000000..2f6cd5d --- /dev/null +++ b/pages/credit-order-list/index.vue @@ -0,0 +1,208 @@ + + + + + diff --git a/pages/mall/index.vue b/pages/mall/index.vue index 8a04442..e8e9a25 100644 --- a/pages/mall/index.vue +++ b/pages/mall/index.vue @@ -1,414 +1,417 @@ + diff --git a/pages/mine/index.vue b/pages/mine/index.vue index eba45be..f86e802 100644 --- a/pages/mine/index.vue +++ b/pages/mine/index.vue @@ -100,23 +100,23 @@ 其他工具 - + + 账期订单融资 - + 合同管理 - + 征信管理 - + 授信记录 @@ -133,7 +133,7 @@