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