二手回收后台,师傅端,用户端
刘帅
2026-09-02 3b8fe42d6764de9af33608c6c7054547cf703f3d
余额明细备注字段取值明确
1个文件已修改
28 ■■■■■ 已修改文件
master/pages/joinDeductionDetails/joinDeductionDetails.vue 28 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
master/pages/joinDeductionDetails/joinDeductionDetails.vue
@@ -41,7 +41,7 @@
        </view>
        <view class="mt-35 ml-27 mr-27">
            <view class="fs-27 font-bold color2">备注</view>
            <view class="fs-27 font-bold mt-27 color3">{{ info.remark || '' }}</view>
            <view class="fs-27 font-bold mt-27 color3">{{ remarkContent }}</view>
        </view>
        <view class="flex mt-27 ml-27" style="flex-wrap: wrap;">
            <view @tap.stop="viewImage(item)" v-for="(item,index) in info.pics" :key="index" class="flex">
@@ -72,6 +72,7 @@
                showMask: false,
                info: {},
                image: '',
                remarkContent: '',
                deductionInfo: {
                    orderNo: '',
                    orderAmount: '',
@@ -89,9 +90,34 @@
                }
                this.info = res.data
                this.deductionInfo = this.parseDeductionRemark(res.data.remark)
                this.remarkContent = this.formatRemark(res.data.remark)
            })
        },
        methods: {
            formatRemark(remark) {
                if (!remark) return ''
                const excludedLabels = [
                    '省',
                    '市',
                    '区/县',
                    '乡/镇',
                    '街道/乡镇',
                    '旧机四级品类',
                    '网点名称',
                    '扣除成本费',
                    '扣除信息费'
                ]
                return String(remark)
                    .split(/[;;\r\n]+/)
                    .map(item => item.trim())
                    .filter(item => {
                        const match = item.match(/^([^::]+?)\s*[::]/)
                        return !match || !excludedLabels.includes(match[1].trim())
                    })
                    .join(';')
            },
            parseDeductionRemark(remark) {
                const getValue = (label) => {
                    if (!remark) return ''