From 2b45e72eb1a7e6365abe4cf40312134d43640c4a Mon Sep 17 00:00:00 2001 From: ylj20011123 Date: Fri, 5 Dec 2025 19:01:45 +0800 Subject: [PATCH] update --- pages/everdayRenven/AnhuiIndex.vue | 32 +- pages/index/index.vue | 2 +- pages/mbwa/mbwaDetail.vue | 1192 +++++++++++++++------------- pages/mbwa/mbwaUpload.vue | 1141 +++++++++++++------------- pages/walkAroundManager/detail.vue | 227 ++++-- pages/walkAroundManager/index.vue | 179 +++-- 6 files changed, 1507 insertions(+), 1266 deletions(-) diff --git a/pages/everdayRenven/AnhuiIndex.vue b/pages/everdayRenven/AnhuiIndex.vue index 707b3e5..d851659 100644 --- a/pages/everdayRenven/AnhuiIndex.vue +++ b/pages/everdayRenven/AnhuiIndex.vue @@ -319,7 +319,8 @@ 商品销售排行 - + + @@ -709,25 +710,35 @@ export default { const ctx = uni.createCanvasContext(obj.id, this); data.series = data.series.concat(obj.data) + // 针对不同图表使用不同配置 + const isAreaChart = obj.id === 'areaCont'; // nowTab为3的图表 + const legendConfig = isAreaChart ? { + show: true, // areaCont显示图例 + padding: 5, + lineHeight: 11, + margin: 10, + position: 'right' // 图例显示在右侧 + } : { + show: false, // 其他图表不显示图例 + padding: 5, + lineHeight: 11, + margin: 0, + }; + // 微信小程序专用优化配置 - 完全去除动画和过渡效果 rincanvas[obj.id] = new uCharts({ context: ctx, color: obj.colors, type: 'ring', fontSize: 12, - padding: [15, 15, 25, 15], - legend: { - show: false, - padding: 5, - lineHeight: 11, - margin: 0, - }, + padding: [15, 25, 25, 15], + legend: legendConfig, background: '#FFFFFF', pixelRatio: 1, // 使用较低的像素比率减少渲染负担 series: data.series, width: uni.upx2px(686), height: uni.upx2px(510), - dataLabel: true, + dataLabel: !isAreaChart, // 核心性能优化 - 完全禁用所有动画和交互 animation: false, // 禁用所有动画 @@ -997,6 +1008,7 @@ export default { _data1.push({ ...n, + name: n.name.split('管理单元')[0], textColor: '#999', formatter: function (arg) { @@ -2505,7 +2517,7 @@ canvas.operation-content { } .category-name { - font-size: 26rpx; + font-size: 24rpx; font-weight: 600; color: #2c3e50; } diff --git a/pages/index/index.vue b/pages/index/index.vue index 7eb03ce..ef92489 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -19,7 +19,7 @@ :key="item.id" :item ="item" :doCout="toDoMsg[item.id]" - :active="menus[item.id]==1" + :active="menus[item.id]==1" @tap="toPage(item)" > diff --git a/pages/mbwa/mbwaDetail.vue b/pages/mbwa/mbwaDetail.vue index 9a76a9f..7b0e1f8 100644 --- a/pages/mbwa/mbwaDetail.vue +++ b/pages/mbwa/mbwaDetail.vue @@ -4,31 +4,35 @@

- {{showData.SHOPNAME}} - {{showData.CREATE_DATE}} + {{ showData.SHOPNAME }} + {{ showData.CREATE_DATE }}

- {{showData.status}} + {{ + showData.status }}

- {{showData.MEMBERSHIP_NAME}}: - {{showData.MBWA_CONTENT}} + {{ showData.MEMBERSHIP_NAME }}: + {{ showData.MBWA_CONTENT }}

-
+
- +
-
- +
+
-
- +
+
-
- +
+

处理意见

@@ -38,8 +42,9 @@
问题处理人 - - {{pickerIndex==-1 ? '请选择': dealerList[pickerIndex].MEMBERSHIP_NAME}} + + {{ pickerIndex == -1 ? '请选择' : dealerList[pickerIndex].MEMBERSHIP_NAME }}
@@ -51,20 +56,21 @@

{{showData.APPROVE_INFO}}

--> -
- - {{showData.DEALER_NAME}} +
+ + {{ showData.DEALER_NAME }} - {{showData.HANDLING_INFO}} + {{ showData.HANDLING_INFO }}

照 片

- +
- +

处理结果

@@ -75,13 +81,13 @@

照 片

-
- × - +
+ × +
- + - + + +
@@ -93,8 +99,8 @@
-->
- - + + @@ -109,614 +115,693 @@ diff --git a/pages/mbwa/mbwaUpload.vue b/pages/mbwa/mbwaUpload.vue index 1d320c0..e2b5521 100644 --- a/pages/mbwa/mbwaUpload.vue +++ b/pages/mbwa/mbwaUpload.vue @@ -4,7 +4,7 @@
-

{{user.Membership_Name}}

+

{{ user.Membership_Name }}

巡查人员

@@ -14,8 +14,8 @@
-

{{work_address}}

-
巡查时间:{{now_time}}
+

{{ work_address }}

+
巡查时间:{{ now_time }}
@@ -23,35 +23,40 @@
    -
  • - +
  • +
    -
    *巡查内容
    +
    *巡查内容
    - +
    -
    -
    {{tags.FIELDENUM_NAME}}
    +
    +
    {{ tags.FIELDENUM_NAME }}
    -
    {{tag.FIELDENUM_NAME}}
    +
    {{ tag.FIELDENUM_NAME }} +
  • -
  • +
  • -
    *请上传现场图片
    +
    *请上传现场图片
    -
    - × +
    + ×
    @@ -63,15 +68,17 @@
  • -
  • +
  • - +
    @@ -80,576 +87,634 @@
-
-
-
处理人*
- - {{pickerIndex==-1 ? '请选择': dealerList[pickerIndex].Membership_Name}} - -
- +
+
+
处理人*
+ + {{ pickerIndex == -1 ? '请选择' : dealerList[pickerIndex].Membership_Name }} +
- +
+ +
diff --git a/pages/walkAroundManager/detail.vue b/pages/walkAroundManager/detail.vue index 46a6eb7..0add44d 100644 --- a/pages/walkAroundManager/detail.vue +++ b/pages/walkAroundManager/detail.vue @@ -50,7 +50,7 @@ {{ detailObj.template.serverPartName || "" }}{{ detailObj.userName || "-" - }} + }} {{ detailObj.createdAt ? $moment(detailObj.createdAt).format( @@ -1474,51 +1474,29 @@ export default { uni.showLoading({ title: "图片上传中...", }); - uni.uploadFile({ - // url: "https://eshangtech.com:18999/Coop.Merchant/Handler/handler_ajax.ashx?action_type=UploadFile&folder=MBWA", - // url: "https://es.robot-z.cn/oss/upload", - url: "https://es.eshangtech.com/oss/upload", - filePath: res.tempFilePath, - header: { - "Content-Type": "multipart/form-data", - }, - formData: {}, - fileType: "image", - name: "file", - success(res) { - console.log("res", res); - let data = {}; - if (res.data) { - data = JSON.parse(res.data); - } - console.log("data", data); - uni.hideLoading(); - if (type === "feedback") { - if (obj.feedbackImg && obj.feedbackImg.length > 0) { - obj.feedbackImg.push( - `https://es.eshangtech.com/${data.data.path}` - ); - } else { - obj.feedbackImg = [ - `https://es.eshangtech.com/${data.data.path}`, - ]; - } - // if (obj.feedbackImg && obj.feedbackImg.length > 0) { - // obj.feedbackImg.push( - // `https://es.eshangtech.com/${data.data.path}` - // ); - // } else { - // obj.feedbackImg = [ - // `https://es.eshangtech.com/${data.data.path}`, - // ]; - // } - _this.$forceUpdate(); - console.log("objobjobjobj21321", obj); - } else { - _this.feedbackImgList.push( - `https://es.eshangtech.com/${data.data.path}` - ); + uni.uploadFile({ + url: "https://eshangtech.com:18900/EShangApiMain/Picture/UploadPicture", + filePath: rs.tempFilePaths[0], + name: "file", // 表单中的文件字段名 + formData: { + Tabletype: "1133", // 表单中其他数据 + }, + success(uploadRes) { + if (uploadRes.data) { + let res = JSON.parse(uploadRes.data) + let url = res.Result_Data.ImageUrl + uni.hideLoading(); + if (type === "feedback") { + if (obj.feedbackImg && obj.feedbackImg.length > 0) { + obj.feedbackImg.push(url); + } else { + obj.feedbackImg = [url]; + } + _this.$forceUpdate(); + } else { + _this.feedbackImgList.push(url); + } } }, fail(error) { @@ -1526,6 +1504,58 @@ export default { _this.noPost = true; }, }); + // uni.uploadFile({ + // // url: "https://eshangtech.com:18999/Coop.Merchant/Handler/handler_ajax.ashx?action_type=UploadFile&folder=MBWA", + // // url: "https://es.robot-z.cn/oss/upload", + // url: "https://es.eshangtech.com/oss/upload", + // filePath: res.tempFilePath, + // header: { + // "Content-Type": "multipart/form-data", + // }, + // formData: {}, + // fileType: "image", + // name: "file", + // success(res) { + // console.log("res", res); + // let data = {}; + // if (res.data) { + // data = JSON.parse(res.data); + // } + // console.log("data", data); + // uni.hideLoading(); + // if (type === "feedback") { + // if (obj.feedbackImg && obj.feedbackImg.length > 0) { + // obj.feedbackImg.push( + // `https://es.eshangtech.com/${data.data.path}` + // ); + // } else { + // obj.feedbackImg = [ + // `https://es.eshangtech.com/${data.data.path}`, + // ]; + // } + + // // if (obj.feedbackImg && obj.feedbackImg.length > 0) { + // // obj.feedbackImg.push( + // // `https://es.eshangtech.com/${data.data.path}` + // // ); + // // } else { + // // obj.feedbackImg = [ + // // `https://es.eshangtech.com/${data.data.path}`, + // // ]; + // // } + // _this.$forceUpdate(); + // console.log("objobjobjobj21321", obj); + // } else { + // _this.feedbackImgList.push( + // `https://es.eshangtech.com/${data.data.path}` + // ); + // } + // }, + // fail(error) { + // console.log("error", error); + // _this.noPost = true; + // }, + // }); }, fail(error) { _this.noPost = true; @@ -1537,56 +1567,85 @@ export default { // mask: true }); uni.uploadFile({ - // url: "https://eshangtech.com:18999/Coop.Merchant/Handler/handler_ajax.ashx?action_type=UploadFile&folder=MBWA", - // url: "https://es.robot-z.cn/oss/upload", - url: "https://es.eshangtech.com/oss/upload", + url: "https://eshangtech.com:18900/EShangApiMain/Picture/UploadPicture", filePath: rs.tempFilePaths[0], - fileType: "image", - header: { - "Content-Type": "multipart/form-data", + name: "file", // 表单中的文件字段名 + formData: { + Tabletype: "1133", // 表单中其他数据 }, - name: "file", - success(res) { - console.log("res", res); - let data = {}; - if (res.data) { - data = JSON.parse(res.data); - } - console.log("data", data); - uni.hideLoading(); - if (type === "feedback") { - if (obj.feedbackImg && obj.feedbackImg.length > 0) { - obj.feedbackImg.push( - `https://es.eshangtech.com/${data.data.path}` - ); + success(uploadRes) { + if (uploadRes.data) { + let res = JSON.parse(uploadRes.data) + let url = res.Result_Data.ImageUrl + uni.hideLoading(); + if (type === "feedback") { + if (obj.feedbackImg && obj.feedbackImg.length > 0) { + obj.feedbackImg.push(url); + } else { + obj.feedbackImg = [url]; + } } else { - obj.feedbackImg = [ - `https://es.eshangtech.com/${data.data.path}`, - ]; + _this.feedbackImgList.push(url); } - // if (obj.feedbackImg && obj.feedbackImg.length > 0) { - // obj.feedbackImg.push( - // `https://es.eshangtech.com/${data.data.path}` - // ); - // } else { - // obj.feedbackImg = [ - // `https://es.eshangtech.com/${data.data.path}`, - // ]; - // } - console.log("objobjobjobj21321", obj); - } else { - _this.feedbackImgList.push( - `https://es.eshangtech.com/${data.data.path}` - ); } - _this.$forceUpdate(); - // path; }, fail(error) { console.log("error", error); _this.noPost = true; }, }); + + // uni.uploadFile({ + // // url: "https://eshangtech.com:18999/Coop.Merchant/Handler/handler_ajax.ashx?action_type=UploadFile&folder=MBWA", + // // url: "https://es.robot-z.cn/oss/upload", + // url: "https://es.eshangtech.com/oss/upload", + // filePath: rs.tempFilePaths[0], + // fileType: "image", + // header: { + // "Content-Type": "multipart/form-data", + // }, + // name: "file", + // success(res) { + // console.log("res", res); + // let data = {}; + // if (res.data) { + // data = JSON.parse(res.data); + // } + // console.log("data", data); + // uni.hideLoading(); + // if (type === "feedback") { + // if (obj.feedbackImg && obj.feedbackImg.length > 0) { + // obj.feedbackImg.push( + // `https://es.eshangtech.com/${data.data.path}` + // ); + // } else { + // obj.feedbackImg = [ + // `https://es.eshangtech.com/${data.data.path}`, + // ]; + // } + // // if (obj.feedbackImg && obj.feedbackImg.length > 0) { + // // obj.feedbackImg.push( + // // `https://es.eshangtech.com/${data.data.path}` + // // ); + // // } else { + // // obj.feedbackImg = [ + // // `https://es.eshangtech.com/${data.data.path}`, + // // ]; + // // } + // console.log("objobjobjobj21321", obj); + // } else { + // _this.feedbackImgList.push( + // `https://es.eshangtech.com/${data.data.path}` + // ); + // } + // _this.$forceUpdate(); + // // path; + // }, + // fail(error) { + // console.log("error", error); + // _this.noPost = true; + // }, + // }); } }, fail: function (err) { }, diff --git a/pages/walkAroundManager/index.vue b/pages/walkAroundManager/index.vue index 542ce1a..31bb377 100644 --- a/pages/walkAroundManager/index.vue +++ b/pages/walkAroundManager/index.vue @@ -977,52 +977,88 @@ export default { uni.showLoading({ title: "图片上传中...", }); - uni.uploadFile({ - // url: "https://eshangtech.com:18999/Coop.Merchant/Handler/handler_ajax.ashx?action_type=UploadFile&folder=MBWA", - // url: "https://es.robot-z.cn/oss/upload", - url: "https://es.eshangtech.com/oss/upload", - filePath: res.tempFilePath, - header: { - "Content-Type": "multipart/form-data", - }, - formData: {}, - fileType: "image", - name: "file", - success(res) { - console.log("res", res); - let data = {}; - if (res.data) { - data = JSON.parse(res.data); - } - console.log("data", data); - uni.hideLoading(); - if (type === "response") { - if (obj.imageResponse && obj.imageResponse.length > 0) { - obj.imageResponse.push( - `https://es.eshangtech.com/${data.data.path}` - ); + uni.uploadFile({ + url: "https://eshangtech.com:18900/EShangApiMain/Picture/UploadPicture", // 你的接口 URL + filePath: rs.tempFilePaths[0], + name: "file", // 表单中的文件字段名 + formData: { + Tabletype: "1133", // 表单中其他数据 + }, + success: async (uploadRes) => { + if (uploadRes.data) { + let res = JSON.parse(uploadRes.data) + console.log('resresresresres', res); + let url = res.Result_Data.ImageUrl + uni.hideLoading(); + + if (type === "response") { + if (obj.imageResponse && obj.imageResponse.length > 0) { + obj.imageResponse.push(url); + } else { + obj.imageResponse = [url]; + } + + _this.$forceUpdate(); } else { - obj.imageResponse = [ - `https://es.eshangtech.com/${data.data.path}`, - ]; + _this.imgsList.push(url); } - console.log( - "objobjobjobjobjobjobjobj", - _this.requestionRadioList - ); - _this.$forceUpdate(); - } else { - _this.imgsList.push( - `https://es.eshangtech.com/${data.data.path}` - ); + _this.noPost = true; } }, - fail(error) { + fail: (error) => { console.log("error", error); _this.noPost = true; - }, + } }); + + // uni.uploadFile({ + // // url: "https://eshangtech.com:18999/Coop.Merchant/Handler/handler_ajax.ashx?action_type=UploadFile&folder=MBWA", + // // url: "https://es.robot-z.cn/oss/upload", + // url: "https://es.eshangtech.com/oss/upload", + // filePath: res.tempFilePath, + // header: { + // "Content-Type": "multipart/form-data", + // }, + // formData: {}, + // fileType: "image", + // name: "file", + // success(res) { + // console.log("res", res); + // let data = {}; + // if (res.data) { + // data = JSON.parse(res.data); + // } + // console.log("data", data); + // uni.hideLoading(); + + // if (type === "response") { + // if (obj.imageResponse && obj.imageResponse.length > 0) { + // obj.imageResponse.push( + // `https://es.eshangtech.com/${data.data.path}` + // ); + // } else { + // obj.imageResponse = [ + // `https://es.eshangtech.com/${data.data.path}`, + // ]; + // } + // console.log( + // "objobjobjobjobjobjobjobj", + // _this.requestionRadioList + // ); + // _this.$forceUpdate(); + // } else { + // _this.imgsList.push( + // `https://es.eshangtech.com/${data.data.path}` + // ); + // } + // }, + // fail(error) { + // console.log("error", error); + // _this.noPost = true; + // }, + // }); + }, fail(error) { _this.noPost = true; @@ -1034,53 +1070,38 @@ export default { // mask: true }); uni.uploadFile({ - // url: "https://eshangtech.com:18999/Coop.Merchant/Handler/handler_ajax.ashx?action_type=UploadFile&folder=MBWA", - // url: "https://es.robot-z.cn/oss/upload", - url: "https://es.eshangtech.com/oss/upload", + url: "https://eshangtech.com:18900/EShangApiMain/Picture/UploadPicture", // 你的接口 URL filePath: rs.tempFilePaths[0], - fileType: "image", - header: { - "Content-Type": "multipart/form-data", + name: "file", // 表单中的文件字段名 + formData: { + Tabletype: "1133", // 表单中其他数据 }, - name: "file", - success(res) { - console.log("res", res); - let data = {}; - if (res.data) { - data = JSON.parse(res.data); - } - console.log("data", data); - uni.hideLoading(); - if (type === "response") { - if (obj.imageResponse && obj.imageResponse.length > 0) { - obj.imageResponse.push( - `https://es.eshangtech.com/${data.data.path}` - ); - } else { - obj.imageResponse = [ - `https://es.eshangtech.com/${data.data.path}`, - ]; - } - console.log( - "objobjobjobjobjobjobjobj", - _this.requestionRadioList - ); - _this.$forceUpdate(); - } else { - _this.imgsList.push( - `https://es.eshangtech.com/${data.data.path}` - ); - } + success: async (uploadRes) => { + console.log('uploadResuploadRes', uploadRes); + if (uploadRes.data) { + let res = JSON.parse(uploadRes.data) + console.log('resresresresres', res); + let url = res.Result_Data.ImageUrl + uni.hideLoading(); - // _this.imgsList.push( - // `https://es.eshangtech.com/${data.data.path}` - // ); - // path; + if (type === "response") { + if (obj.imageResponse && obj.imageResponse.length > 0) { + obj.imageResponse.push(url); + } else { + obj.imageResponse = [url]; + } + + _this.$forceUpdate(); + } else { + _this.imgsList.push(url); + } + _this.noPost = true; + } }, - fail(error) { + fail: (error) => { console.log("error", error); _this.noPost = true; - }, + } }); } // uni.uploadFile({