|
@@ -27,6 +27,15 @@
|
|
v-hasPermi="['distributionTicketMr:distributionTicketMr:add']"
|
|
v-hasPermi="['distributionTicketMr:distributionTicketMr:add']"
|
|
>新增</el-button>
|
|
>新增</el-button>
|
|
</el-col>
|
|
</el-col>
|
|
|
|
+ <el-col :span="1.5">
|
|
|
|
+ <el-button
|
|
|
|
+ type="primary"
|
|
|
|
+ plain
|
|
|
|
+ size="mini"
|
|
|
|
+ @click="handleSetTaxRateAdd"
|
|
|
|
+ v-hasPermi="['distributionTicketMr:distributionTicketMr:add']"
|
|
|
|
+ >佣金税率设置</el-button>
|
|
|
|
+ </el-col>
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
</el-row>
|
|
</el-row>
|
|
|
|
|
|
@@ -50,6 +59,7 @@
|
|
<span v-if="scope.row.brokeragePrice || scope.row.brokeragePrice==0">¥{{ scope.row.brokeragePrice }}</span>
|
|
<span v-if="scope.row.brokeragePrice || scope.row.brokeragePrice==0">¥{{ scope.row.brokeragePrice }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
+ <el-table-column label="佣金税率(%)" align="center" prop="brokerageTaxRate" />
|
|
<el-table-column label="状态" align="center">
|
|
<el-table-column label="状态" align="center">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-tag type="success" v-if="scope.row.status == 1">己上架</el-tag>
|
|
<el-tag type="success" v-if="scope.row.status == 1">己上架</el-tag>
|
|
@@ -99,7 +109,7 @@
|
|
:dict="dict"
|
|
:dict="dict"
|
|
@getList="getList"
|
|
@getList="getList"
|
|
/>
|
|
/>
|
|
-
|
|
|
|
|
|
+ <setTaxRate ref="setTaxRate" @getList="getList" />
|
|
<el-dialog
|
|
<el-dialog
|
|
title="查看"
|
|
title="查看"
|
|
:visible.sync="visibleStatus"
|
|
:visible.sync="visibleStatus"
|
|
@@ -128,11 +138,11 @@
|
|
|
|
|
|
import { pageList, deleteById, updateStatus } from '@/api/distribution/ticketMr'
|
|
import { pageList, deleteById, updateStatus } from '@/api/distribution/ticketMr'
|
|
import addAndEdit from "./dialog/addAndEdit.vue";
|
|
import addAndEdit from "./dialog/addAndEdit.vue";
|
|
-
|
|
|
|
|
|
+import setTaxRate from "./dialog/setTaxRate.vue"
|
|
export default {
|
|
export default {
|
|
name: "agreement",
|
|
name: "agreement",
|
|
dicts: ['distribution_type'],
|
|
dicts: ['distribution_type'],
|
|
- components: { addAndEdit },
|
|
|
|
|
|
+ components: { addAndEdit, setTaxRate},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
// 遮罩层
|
|
// 遮罩层
|
|
@@ -174,6 +184,7 @@ export default {
|
|
setForm: {},
|
|
setForm: {},
|
|
setRules: [],
|
|
setRules: [],
|
|
setLoading: false,
|
|
setLoading: false,
|
|
|
|
+ taxRate: null,
|
|
};
|
|
};
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
@@ -189,6 +200,11 @@ export default {
|
|
this.dataList.forEach(item =>{
|
|
this.dataList.forEach(item =>{
|
|
item.switchValue = item.status;
|
|
item.switchValue = item.status;
|
|
})
|
|
})
|
|
|
|
+ if(this.dataList && this.dataList.length>0 ){
|
|
|
|
+ this.taxRate = this.dataList[0].brokerageTaxRate
|
|
|
|
+ }else {
|
|
|
|
+ this.taxRate = null
|
|
|
|
+ }
|
|
this.total = response.data.total;
|
|
this.total = response.data.total;
|
|
this.loading = false;
|
|
this.loading = false;
|
|
}
|
|
}
|
|
@@ -222,6 +238,10 @@ export default {
|
|
handleAdd() {
|
|
handleAdd() {
|
|
this.$refs["addAndEdit"].openDialog("新增数据", null);
|
|
this.$refs["addAndEdit"].openDialog("新增数据", null);
|
|
},
|
|
},
|
|
|
|
+ /** 设置税率 */
|
|
|
|
+ handleSetTaxRateAdd() {
|
|
|
|
+ this.$refs["setTaxRate"].openDialog("新增数据", {taxRate: this.taxRate});
|
|
|
|
+ },
|
|
/** 修改按钮操作 */
|
|
/** 修改按钮操作 */
|
|
handleUpdate(row) {
|
|
handleUpdate(row) {
|
|
this.$refs["addAndEdit"].openDialog("修改数据", row);
|
|
this.$refs["addAndEdit"].openDialog("修改数据", row);
|