| | |
| | | </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"> |
| | |
| | | showMask: false, |
| | | info: {}, |
| | | image: '', |
| | | remarkContent: '', |
| | | deductionInfo: { |
| | | orderNo: '', |
| | | orderAmount: '', |
| | |
| | | } |
| | | 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 '' |