diff --git a/apis/addUserApi.js b/apis/addUserApi.js index 810e657..9c880e8 100644 --- a/apis/addUserApi.js +++ b/apis/addUserApi.js @@ -23,3 +23,14 @@ export function addCustomer(data) { data }) } +/** + * 根据企业名称查询企业坐标列表 + * @param {*} data + * @returns + */ +export function getCompanyLocationList(data) { + return http.get({ + url: '/yyt-uec/get/enterprise/geographic/position/address', + data + }) +} diff --git a/apis/commonApi.js b/apis/commonApi.js index 59cee82..13a1fcb 100644 --- a/apis/commonApi.js +++ b/apis/commonApi.js @@ -76,3 +76,13 @@ export function getVerifyUrl(data = {}) { export function getGuaranteeContract(data = {}) { return http.post({ url: '/yyt-uec/create/supplier/guarantee-contract?mallSupplierId=' + data.mallSupplierId, data }) } +/** + * 转换合同成图片 + * @param {object} data 图片地址链接 fileUrl + */ +export function transformFileToImg(data) { + http.get({ + url: '/document/get/enterprise-documents/file-image-base64', + data: data + }) +} diff --git a/apis/orderApi.js b/apis/orderApi.js index 7b37c81..1dbeb15 100644 --- a/apis/orderApi.js +++ b/apis/orderApi.js @@ -47,3 +47,39 @@ export function confirmSupplierOrder(data) { data }) } + +/** + * 供应商操作纸品状态 + * @param {object} data + * @returns {Promise} + */ +export function supplierOperatePaper(data) { + return http.post({ + url: '/base-paper-trading/supplier/submit/outbound/delivery', + data + }) +} + +/** + * 供应商上传送货凭证 + * @param {object} data + * @returns {Promise} + */ +export function supplierUploadVoucher(data) { + return http.post({ + url: '/base-paper-trading/supplier/submit/upload/delivery/voucher', + data + }) +} + +/** + * 供应商确认送货 + * @param {object} data supplierOrderId + * @returns {Promise} + */ +export function supplierDelivery(data) { + return http.post({ + url: '/base-paper-trading/supplier/submit/confirm/delivery', + data + }) +} diff --git a/components/bussiness-components/packingStationItem.vue b/components/bussiness-components/packingStationItem.vue index da5eeea..bf9e782 100644 --- a/components/bussiness-components/packingStationItem.vue +++ b/components/bussiness-components/packingStationItem.vue @@ -10,7 +10,7 @@ {{ transformBusiness(info.business) }} - + 月采购量 @@ -30,7 +30,7 @@ - + 法定代表人 diff --git a/components/qn-map/qn-map.nvue b/components/qn-map/qn-map.nvue index e7262de..a2aa7d9 100644 --- a/components/qn-map/qn-map.nvue +++ b/components/qn-map/qn-map.nvue @@ -49,9 +49,11 @@ export default { watch: { // 只监听items一层变化 items(val) { + console.log('val:',val) this.markers = val.map((item) => { return this.causeMarker(item) }) + console.log('res:',this.markers) this.mapContext.addMarkers({ markers: this.markers, clear: true, diff --git a/manifest.json b/manifest.json index 1a14e8e..ae8c6ec 100644 --- a/manifest.json +++ b/manifest.json @@ -1,120 +1,119 @@ { - "name" : "纸掌柜", - "appid" : "__UNI__8C1E198", - "description" : "", - "versionName" : "1.0.0", - "versionCode" : "100", - "transformPx" : false, - "networkTimeout" : { - "request" : 6000 + "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 }, - /* 5+App特有相关 */ - "app-plus" : { - "usingComponents" : true, - "nvueStyleCompiler" : "uni-app", - "compilerVersion" : 3, - "splashscreen" : { - "alwaysShowBeforeRender" : true, - "waiting" : true, - "autoclose" : true, - "delay" : 0 - }, - "compatible" : { - "ignoreVersion" : true - }, - /* 模块配置 */ - "modules" : { - "Maps" : {}, - "Geolocation" : {}, - "FaceID" : {}, - "iBeacon" : {} + "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" + } }, - /* 应用发布信息 */ - "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" : {}, - "oauth" : {} - } + "payment": { + "weixin": { + "__platform__": ["ios", "android"], + "appid": "", + "UniversalLinks": "" + } }, - "uniStatistics" : { - "enable" : true - } - }, - /* 快应用特有相关 */ - "quickapp" : {}, - /* 小程序特有相关 */ - "mp-weixin" : { - "appid" : "", - "setting" : { - "urlCheck" : false + "ad": {}, + "geolocation": { + "amap": { + "__platform__": ["ios", "android"], + "appkey_ios": "0182ee2a9fdd5fd3ef6a8bd5a2f98325", + "appkey_android": "877848546f7f3717101a17c33e1d4df3" + } }, - "usingComponents" : true + "share": {} + } }, - "mp-alipay" : { - "usingComponents" : true - }, - "mp-baidu" : { - "usingComponents" : true - }, - "mp-toutiao" : { - "usingComponents" : true - }, - "uniStatistics" : { - "enable" : false + "uniStatistics": { + "enable": true + } + }, + /* 快应用特有相关 */ + "quickapp": {}, + /* 小程序特有相关 */ + "mp-weixin": { + "appid": "", + "setting": { + "urlCheck": false }, - "vueVersion" : "2", - "h5" : { - "router" : { - "mode" : "history" - } + "usingComponents": true + }, + "mp-alipay": { + "usingComponents": true + }, + "mp-baidu": { + "usingComponents": true + }, + "mp-toutiao": { + "usingComponents": true + }, + "uniStatistics": { + "enable": false + }, + "vueVersion": "2", + "h5": { + "router": { + "mode": "history" } + } } diff --git a/pages/add-user/index.vue b/pages/add-user/index.vue index 8a74842..f03f9e0 100644 --- a/pages/add-user/index.vue +++ b/pages/add-user/index.vue @@ -73,6 +73,9 @@ > + + + @@ -81,7 +84,7 @@ @@ -243,6 +246,21 @@ + + + + 可选择以下定位公司 + + + + + {{ item.enterpriseName }} + {{ `${item.provinceName}/${item.cityName}/${item.districtName}/${item.address}` }} + + + + + @@ -259,7 +277,7 @@ diff --git a/pages/mall/index.vue b/pages/mall/index.vue index f5ff52d..d5df669 100644 --- a/pages/mall/index.vue +++ b/pages/mall/index.vue @@ -1,101 +1,101 @@ -