|
@@ -208,6 +208,9 @@
|
|
|
<template v-slot:headerTotalCount="{ column }">
|
|
<template v-slot:headerTotalCount="{ column }">
|
|
|
<span :class="{ 'is-required': isTotalCount }">{{ column.label }}</span>
|
|
<span :class="{ 'is-required': isTotalCount }">{{ column.label }}</span>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
+ <template v-slot:headerTaxRate="{ column }">
|
|
|
|
|
+ <span :class="{ 'is-required': isTaxRate == 1 }">{{ column.label }}</span>
|
|
|
|
|
+ </template>
|
|
|
<template v-slot:totalPrice="scope">
|
|
<template v-slot:totalPrice="scope">
|
|
|
<el-form-item :prop="'datasource.' + scope.$index + '.totalPrice'">
|
|
<el-form-item :prop="'datasource.' + scope.$index + '.totalPrice'">
|
|
|
{{ (Number(scope.row.totalPrice) || 0).toFixed(2) }}元
|
|
{{ (Number(scope.row.totalPrice) || 0).toFixed(2) }}元
|
|
@@ -333,7 +336,14 @@
|
|
|
</template> -->
|
|
</template> -->
|
|
|
|
|
|
|
|
<template v-slot:taxRate="scope">
|
|
<template v-slot:taxRate="scope">
|
|
|
- <el-form-item :prop="'datasource.' + scope.$index + '.taxRate'">
|
|
|
|
|
|
|
+ <el-form-item
|
|
|
|
|
+ :prop="'datasource.' + scope.$index + '.taxRate'"
|
|
|
|
|
+ :rules="{
|
|
|
|
|
+ required: isTaxRate == 1 ? true : false,
|
|
|
|
|
+ message: '请输入税率',
|
|
|
|
|
+ trigger: 'change'
|
|
|
|
|
+ }"
|
|
|
|
|
+ >
|
|
|
<el-input
|
|
<el-input
|
|
|
v-model="scope.row.taxRate"
|
|
v-model="scope.row.taxRate"
|
|
|
placeholder="请输入"
|
|
placeholder="请输入"
|
|
@@ -918,10 +928,15 @@
|
|
|
type: Boolean,
|
|
type: Boolean,
|
|
|
default: false
|
|
default: false
|
|
|
},
|
|
},
|
|
|
- defTaxRate: {
|
|
|
|
|
|
|
+ // 是否税率必填
|
|
|
|
|
+ isTaxRate: {
|
|
|
type: Number,
|
|
type: Number,
|
|
|
default: 0
|
|
default: 0
|
|
|
},
|
|
},
|
|
|
|
|
+ defTaxRate: {
|
|
|
|
|
+ type: Number,
|
|
|
|
|
+ default: undefined
|
|
|
|
|
+ },
|
|
|
countObj: {
|
|
countObj: {
|
|
|
type: Object,
|
|
type: Object,
|
|
|
default: () => {
|
|
default: () => {
|
|
@@ -1143,7 +1158,8 @@
|
|
|
prop: 'taxRate',
|
|
prop: 'taxRate',
|
|
|
label: '税率',
|
|
label: '税率',
|
|
|
slot: 'taxRate',
|
|
slot: 'taxRate',
|
|
|
- align: 'center'
|
|
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ headerSlot: 'headerTaxRate',
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
width: 180,
|
|
width: 180,
|