|
@@ -179,16 +179,28 @@
|
|
|
<el-input type="text" v-model="scope.row.price" />
|
|
<el-input type="text" v-model="scope.row.price" />
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column :prop="priceBeforeTax" align="center">
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <el-table-column label="税后堂食价格" prop="priceAfterTax" align="center">
|
|
|
|
|
+ <template #default="scope">
|
|
|
|
|
+ <el-input type="text" v-model="scope.row.priceAfterTax" />
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column label="税后外卖价格" prop="priceAfterTaxTakeout" align="center">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
- <el-input type="text" v-model="scope.row.priceBeforeTax" />
|
|
|
|
|
|
|
+ <el-input type="text" v-model="scope.row.priceAfterTaxTakeout" />
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column :prop="taxRate" align="center">
|
|
|
|
|
|
|
+ <el-table-column label="外卖税率" prop="takeoutTaxRate" align="center">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
- <el-input type="text" v-model="scope.row.taxRate" />
|
|
|
|
|
|
|
+ <el-input type="text" v-model="scope.row.takeoutTaxRate" />
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
|
+ <el-table-column label="堂食税率" prop="dineInTaxRate" align="center">
|
|
|
|
|
+ <template #default="scope">
|
|
|
|
|
+ <el-input type="text" v-model="scope.row.dineInTaxRate" />
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+
|
|
|
<el-table-column :prop="t('product.cost')" :label="t('product.cost')" align="center">
|
|
<el-table-column :prop="t('product.cost')" :label="t('product.cost')" align="center">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
<el-input type="text" v-model="scope.row.cost" />
|
|
<el-input type="text" v-model="scope.row.cost" />
|
|
@@ -385,6 +397,10 @@ const oneFormValidate = ref([
|
|
|
seckill_price: 0,
|
|
seckill_price: 0,
|
|
|
pink_stock: 0,
|
|
pink_stock: 0,
|
|
|
pink_price: 0,
|
|
pink_price: 0,
|
|
|
|
|
+ priceAfterTax: 0,
|
|
|
|
|
+ priceAfterTaxTakeout: 0,
|
|
|
|
|
+ dineInTaxRate: 0,
|
|
|
|
|
+ takeoutTaxRate: 0,
|
|
|
bar_code: '',
|
|
bar_code: '',
|
|
|
weight: 0,
|
|
weight: 0,
|
|
|
volume: 0,
|
|
volume: 0,
|
|
@@ -418,6 +434,10 @@ const oneFormBatch = ref([
|
|
|
{
|
|
{
|
|
|
pic: '',
|
|
pic: '',
|
|
|
price: 0,
|
|
price: 0,
|
|
|
|
|
+ priceAfterTax: 0,
|
|
|
|
|
+ priceAfterTaxTakeout: 0,
|
|
|
|
|
+ dineInTaxRate: 0,
|
|
|
|
|
+ takeoutTaxRate: 0,
|
|
|
cost: 0,
|
|
cost: 0,
|
|
|
ot_price: 0,
|
|
ot_price: 0,
|
|
|
stock: 0,
|
|
stock: 0,
|
|
@@ -739,6 +759,10 @@ const getInfo = (id) => {
|
|
|
imageArr: [],
|
|
imageArr: [],
|
|
|
pic: '',
|
|
pic: '',
|
|
|
price: 0,
|
|
price: 0,
|
|
|
|
|
+ priceAfterTax: 0,
|
|
|
|
|
+ priceAfterTaxTakeout: 0,
|
|
|
|
|
+ dineInTaxRate: 0,
|
|
|
|
|
+ takeoutTaxRate: 0,
|
|
|
cost: 0,
|
|
cost: 0,
|
|
|
ot_price: 0,
|
|
ot_price: 0,
|
|
|
stock: 0,
|
|
stock: 0,
|