master
fanfan 1 month ago
parent f023e6f447
commit 3b84876e11
  1. 10
      src/views/goods/lineReport/index.vue

@ -9,7 +9,7 @@
<div style="padding-bottom:50px" class="maxHeight"> <div style="padding-bottom:50px" class="maxHeight">
<div class="report-name">今天 {{today}}{{fromData.header_content}}</div> <div class="report-name">今天 {{today}}{{fromData.header_content}}</div>
<ul class="reportBox"><li v-for="(item, index) in goodsList" :key="index" class="report"> <ul class="reportBox"><li v-for="(item, index) in goodsList" :key="index" class="report">
{{item.goods_name}}</br> {{'★'+item.goods_name}}</br>
市场价:{{item.cost_price_min}}</br> 市场价:{{item.cost_price_min}}</br>
推广价:{{item.goods_price_min}}</br> 推广价:{{item.goods_price_min}}</br>
SKU:{{item.goods_no}}</br> SKU:{{item.goods_no}}</br>
@ -123,6 +123,7 @@ export default {
if (that.goodsList.length > 0) { if (that.goodsList.length > 0) {
that.goodsList.forEach(function (obj) { that.goodsList.forEach(function (obj) {
text += text +=
'★' +
obj.goods_name + obj.goods_name +
'\n' + '\n' +
'市场价:' + '市场价:' +
@ -135,9 +136,10 @@ export default {
obj.goods_no + obj.goods_no +
'\n' + '\n' +
obj.jd_short_url + obj.jd_short_url +
';\n' '\n' +
' \n'
}) })
let content = '今天' + that.today + ',' + that.fromData.header_content + '\n' + text let content = '今天' + that.today + ',' + that.fromData.header_content + '\n' + ' \n' + text
that.copyText(content) that.copyText(content)
// if (content) { // if (content) {
// let el = document.createElement('textarea') // let el = document.createElement('textarea')
@ -240,7 +242,7 @@ export default {
color: #000; color: #000;
padding-top: 15px; padding-top: 15px;
margin-top: 15px; margin-top: 15px;
border-top: 1px dashed #999; // border-top: 1px dashed #999;
} }
.report-name { .report-name {
font-size: 14px; font-size: 14px;

Loading…
Cancel
Save