|
|
@@ -9,9 +9,9 @@
|
|
|
tool-class="ele-toolbar-form"
|
|
|
class="time-form"
|
|
|
@columns-change="handleColumnChange"
|
|
|
- show-summary
|
|
|
- :summary-method="getSummaries"
|
|
|
- >
|
|
|
+ >
|
|
|
+ <!-- show-summary
|
|
|
+ :summary-method="getSummaries" -->
|
|
|
<template v-slot:technicalDrawings="scope">
|
|
|
<el-form-item
|
|
|
:prop="'datasource.' + scope.$index + '.technicalDrawings'"
|
|
|
@@ -74,6 +74,7 @@
|
|
|
<template v-slot:toolbar>
|
|
|
<div class="headbox">
|
|
|
<div class="pricebox">
|
|
|
+ <span class="amount" v-if="showSummary">数量合计:{{ allQuantity }}</span>
|
|
|
<span class="amount" v-if="isAllPrice">总计:{{ allPrice }}元</span>
|
|
|
<span class="amount" v-if="isDiscountTotalPrice"
|
|
|
>优惠后总金额:{{ form.discountTotalPrice }}元</span
|
|
|
@@ -95,6 +96,7 @@
|
|
|
import timeDialog from '@/components/timeDialog/index.vue';
|
|
|
import tableColumnsMixin from '@/mixins/tableColumnsMixin.js';
|
|
|
import { getSummaries } from '@/utils/util.js';
|
|
|
+ import { getAllQuantity } from '@/BIZComponents/setProduct.js';
|
|
|
|
|
|
export default {
|
|
|
mixins: [dictMixins, tableColumnsMixin],
|
|
|
@@ -136,6 +138,11 @@
|
|
|
type: Boolean,
|
|
|
default: true
|
|
|
},
|
|
|
+ // 是否显示数量合计
|
|
|
+ showSummary: {
|
|
|
+ type: Boolean,
|
|
|
+ default: true
|
|
|
+ },
|
|
|
//是否显示订单编码
|
|
|
isOrderNo: {
|
|
|
type: Boolean,
|
|
|
@@ -174,6 +181,7 @@
|
|
|
return {
|
|
|
cacheKeyUrl: 'sales-order-bizcomponent-InventoryTableDetails',
|
|
|
allPrice: 0,
|
|
|
+ allQuantity: 0,
|
|
|
supplierObj: [],
|
|
|
form: {
|
|
|
discountTotalPrice: 0,
|
|
|
@@ -887,6 +895,7 @@
|
|
|
this.form.datasource = productList;
|
|
|
this.allPrice =
|
|
|
data.totalAmount || data.totalPrice || data?.contractVO?.totalPrice;
|
|
|
+ this.allQuantity = getAllQuantity(this.form.datasource, this.countObj)
|
|
|
if (this.isDiscountTotalPrice) {
|
|
|
this.form.discountTotalPrice =
|
|
|
data.payAmount ||
|