|
@@ -17,13 +17,21 @@
|
|
|
<el-form-item
|
|
<el-form-item
|
|
|
style="width: 100%;"
|
|
style="width: 100%;"
|
|
|
:prop="'detailList.' + scope.$index + '.invoiceAmount'"
|
|
:prop="'detailList.' + scope.$index + '.invoiceAmount'"
|
|
|
- :rules="[
|
|
|
|
|
|
|
+
|
|
|
|
|
+ >
|
|
|
|
|
+ <span v-if="dialogType === 'view'"> {{ scope.row.invoiceAmount }}</span>
|
|
|
|
|
+ <el-input v-else v-model="scope.row.invoiceAmount" type="number" @input="(val) => invoiceAmountChange(val, scope.row, scope.$index)"></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </template>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- :rules="[
|
|
|
{
|
|
{
|
|
|
- required: true,
|
|
|
|
|
|
|
+ required: false,
|
|
|
message: '请输入开票金额',
|
|
message: '请输入开票金额',
|
|
|
trigger: 'blur'
|
|
trigger: 'blur'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
|
|
+ required: false,
|
|
|
validator: (rule, value, callback) => {
|
|
validator: (rule, value, callback) => {
|
|
|
if (value === undefined || value === null || value === '') {
|
|
if (value === undefined || value === null || value === '') {
|
|
|
callback('请输入开票金额');
|
|
callback('请输入开票金额');
|
|
@@ -35,12 +43,7 @@
|
|
|
},
|
|
},
|
|
|
trigger: 'blur'
|
|
trigger: 'blur'
|
|
|
}
|
|
}
|
|
|
- ]"
|
|
|
|
|
- >
|
|
|
|
|
- <span v-if="dialogType === 'view'"> {{ scope.row.invoiceAmount }}</span>
|
|
|
|
|
- <el-input v-else v-model="scope.row.invoiceAmount" type="number" @input="(val) => invoiceAmountChange(val, scope.row, scope.$index)"></el-input>
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
- </template>
|
|
|
|
|
|
|
+ ]" -->
|
|
|
|
|
|
|
|
<template v-slot:taxRate="scope">
|
|
<template v-slot:taxRate="scope">
|
|
|
<el-form-item
|
|
<el-form-item
|