|
|
@ -97,6 +97,20 @@ |
|
|
<view class="tui-price-large">{{ sales.totalAmount == null ?'暂无':sales.totalAmount }}</view> |
|
|
<view class="tui-price-large">{{ sales.totalAmount == null ?'暂无':sales.totalAmount }}</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
<view v-if="Math.abs(returnNum) > 0" class="tui-price-flex tui-size32 tui-pbtm20" style="font-weight:bold;"> |
|
|
|
|
|
<view class="tui-flex-shrink">退货数量</view> |
|
|
|
|
|
<view class="tui-goods-price"> |
|
|
|
|
|
<view class="tui-size-24">¥</view> |
|
|
|
|
|
<view class="tui-price-large">{{ returnNum == null ?'暂无':returnNum }}</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
<view v-if="Math.abs(returnNum) > 0" class="tui-price-flex tui-size32 tui-pbtm20" style="font-weight:bold;"> |
|
|
|
|
|
<view class="tui-flex-shrink">退货金额</view> |
|
|
|
|
|
<view class="tui-goods-price"> |
|
|
|
|
|
<view class="tui-size-24">¥</view> |
|
|
|
|
|
<view class="tui-price-large">{{ returnPrice == null ?'暂无':returnPrice }}</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
<view class="tui-price-flex tui-size32" v-if="userType == 0 && isDownKH == false"> |
|
|
<view class="tui-price-flex tui-size32" v-if="userType == 0 && isDownKH == false"> |
|
|
<view class="tui-flex-shrink">总成本</view> |
|
|
<view class="tui-flex-shrink">总成本</view> |
|
|
@ -933,14 +947,24 @@ |
|
|
.productName == null ? '' : that.newData[i].productName) + ')') |
|
|
.productName == null ? '' : that.newData[i].productName) + ')') |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
if (that.newData[i].productName == that.newData[i].productSn) { |
|
|
if (that.newData[i].productName == that.newData[i].productSn && that.order.name !='散客') { |
|
|
strCmd += blesdk.addCPCLText('0', that.yNum += 40, '24', '0', 0, '【销】' + that |
|
|
if(that.newData[i].stockLogList1[m].isPurchasedBefore == 1){ //买过 |
|
|
.newData[i].productSn) |
|
|
strCmd += blesdk.addCPCLText('0', that.yNum += 40, '24', '0', 0, '【补】' + that |
|
|
|
|
|
.newData[i].productSn) |
|
|
|
|
|
}else{ // 0是没买过 |
|
|
|
|
|
strCmd += blesdk.addCPCLText('0', that.yNum += 40, '24', '0', 0, '【销】' + that |
|
|
|
|
|
.newData[i].productSn) |
|
|
|
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
strCmd += blesdk.addCPCLText('0', that.yNum += 40, '24', '0', 0, '【销】' + that |
|
|
if(that.newData[i].stockLogList1[m].isPurchasedBefore == 1 && that.order.name !='散客'){ //买过 |
|
|
.newData[i].productSn + |
|
|
strCmd += blesdk.addCPCLText('0', that.yNum += 40, '24', '0', 0, '【补】' + that |
|
|
'(' + (that.newData[i] |
|
|
.newData[i].productSn + '(' + (that.newData[i] |
|
|
.productName == null ? '' : that.newData[i].productName) + ')') |
|
|
.productName == null ? '' : that.newData[i].productName) + ')') |
|
|
|
|
|
}else{ // 0是没买过 |
|
|
|
|
|
strCmd += blesdk.addCPCLText('0', that.yNum += 40, '24', '0', 0, '【销】' + that |
|
|
|
|
|
.newData[i].productSn + '(' + (that.newData[i] |
|
|
|
|
|
.productName == null ? '' : that.newData[i].productName) + ')') |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -985,14 +1009,24 @@ |
|
|
.productName == null ? '' : that.newData[i].productName) + ')') |
|
|
.productName == null ? '' : that.newData[i].productName) + ')') |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
if (that.newData[i].productName == that.newData[i].productSn) { |
|
|
if (that.newData[i].productName == that.newData[i].productSn && that.order.name !='散客') { |
|
|
strCmd += blesdk.addCPCLText('0', that.yNum += 40, '24', '0', 0, '【销】' + that |
|
|
if(that.newData[i].stockLogList1[m].isPurchasedBefore == 1){ //买过 |
|
|
.newData[i].productSn) |
|
|
strCmd += blesdk.addCPCLText('0', that.yNum += 40, '24', '0', 0, '【补】' + that |
|
|
|
|
|
.newData[i].productSn) |
|
|
|
|
|
}else{ // 0是没买过 |
|
|
|
|
|
strCmd += blesdk.addCPCLText('0', that.yNum += 40, '24', '0', 0, '【销】' + that |
|
|
|
|
|
.newData[i].productSn) |
|
|
|
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
strCmd += blesdk.addCPCLText('0', that.yNum += 40, '24', '0', 0, '【销】' + that |
|
|
if(that.newData[i].stockLogList1[m].isPurchasedBefore == 1 && that.order.name !='散客'){ //买过 |
|
|
.newData[i].productSn + |
|
|
strCmd += blesdk.addCPCLText('0', that.yNum += 40, '24', '0', 0, '【补】' + that |
|
|
'(' + (that.newData[i] |
|
|
.newData[i].productSn + '(' + (that.newData[i] |
|
|
.productName == null ? '' : that.newData[i].productName) + ')') |
|
|
.productName == null ? '' : that.newData[i].productName) + ')') |
|
|
|
|
|
}else{ // 0是没买过 |
|
|
|
|
|
strCmd += blesdk.addCPCLText('0', that.yNum += 40, '24', '0', 0, '【销】' + that |
|
|
|
|
|
.newData[i].productSn + '(' + (that.newData[i] |
|
|
|
|
|
.productName == null ? '' : that.newData[i].productName) + ')') |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -1052,13 +1086,23 @@ |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
if (that.newData[i].productName == that.newData[i].productSn) { |
|
|
if (that.newData[i].productName == that.newData[i].productSn) { |
|
|
strCmd += blesdk.addCPCLText('0', that.yNum += 40, '24', '0', 0, '【销】' + that |
|
|
if(that.newData[i].stockLogList1[m].isPurchasedBefore == 1 && that.order.name !='散客'){ //买过 |
|
|
.newData[i].productSn) |
|
|
strCmd += blesdk.addCPCLText('0', that.yNum += 40, '24', '0', 0, '【补】' + that |
|
|
|
|
|
.newData[i].productSn) |
|
|
|
|
|
}else{ // 0是没买过 |
|
|
|
|
|
strCmd += blesdk.addCPCLText('0', that.yNum += 40, '24', '0', 0, '【销】' + that |
|
|
|
|
|
.newData[i].productSn) |
|
|
|
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
strCmd += blesdk.addCPCLText('0', that.yNum += 40, '24', '0', 0, '【销】' + that |
|
|
if(that.newData[i].stockLogList1[m].isPurchasedBefore == 1 && that.order.name !='散客'){ //买过 |
|
|
.newData[i].productSn + |
|
|
strCmd += blesdk.addCPCLText('0', that.yNum += 40, '24', '0', 0, '【补】' + that |
|
|
'(' + (that.newData[i] |
|
|
.newData[i].productSn + '(' + (that.newData[i] |
|
|
.productName == null ? '' : that.newData[i].productName) + ')') |
|
|
.productName == null ? '' : that.newData[i].productName) + ')') |
|
|
|
|
|
}else{ // 0是没买过 |
|
|
|
|
|
strCmd += blesdk.addCPCLText('0', that.yNum += 40, '24', '0', 0, '【销】' + that |
|
|
|
|
|
.newData[i].productSn + '(' + (that.newData[i] |
|
|
|
|
|
.productName == null ? '' : that.newData[i].productName) + ')') |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -1104,13 +1148,23 @@ |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
if (that.newData[i].productName == that.newData[i].productSn) { |
|
|
if (that.newData[i].productName == that.newData[i].productSn) { |
|
|
strCmd += blesdk.addCPCLText('0', that.yNum += 40, '24', '0', 0, '【销】' + that |
|
|
if(that.newData[i].stockLogList1[m].isPurchasedBefore == 1 && that.order.name !='散客'){ //买过 |
|
|
.newData[i].productSn) |
|
|
strCmd += blesdk.addCPCLText('0', that.yNum += 40, '24', '0', 0, '【补】' + that |
|
|
|
|
|
.newData[i].productSn) |
|
|
|
|
|
}else{ // 0是没买过 |
|
|
|
|
|
strCmd += blesdk.addCPCLText('0', that.yNum += 40, '24', '0', 0, '【销】' + that |
|
|
|
|
|
.newData[i].productSn) |
|
|
|
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
strCmd += blesdk.addCPCLText('0', that.yNum += 40, '24', '0', 0, '【销】' + that |
|
|
if(that.newData[i].stockLogList1[m].isPurchasedBefore == 1 && that.order.name !='散客'){ //买过 |
|
|
.newData[i].productSn + |
|
|
strCmd += blesdk.addCPCLText('0', that.yNum += 40, '24', '0', 0, '【补】' + that |
|
|
'(' + (that.newData[i] |
|
|
.newData[i].productSn + '(' + (that.newData[i] |
|
|
.productName == null ? '' : that.newData[i].productName) + ')') |
|
|
.productName == null ? '' : that.newData[i].productName) + ')') |
|
|
|
|
|
}else{ // 0是没买过 |
|
|
|
|
|
strCmd += blesdk.addCPCLText('0', that.yNum += 40, '24', '0', 0, '【销】' + that |
|
|
|
|
|
.newData[i].productSn + '(' + (that.newData[i] |
|
|
|
|
|
.productName == null ? '' : that.newData[i].productName) + ')') |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
if (that.shopId == '1820269107191353344' || that.shopId == '1818888277105709056' || that |
|
|
if (that.shopId == '1820269107191353344' || that.shopId == '1818888277105709056' || that |
|
|
|