<div class="row">
    <div class="col-6" id="parent">
        <div class="card" id="storage-card">
            <div class="card-header bg-light-info row">
                <div class="col-3 pull-left font-weight-bold cursor-pointer text-secondary" @click="show('storage')"><span class="fa fa-align-justify"></span>&nbsp;仓储</div>
                <div class="col-6 text-center">
                    <div v-if="audit.storage">
                        @can("项目管理-项目-计费模型-审核")<button class="btn btn-sm btn-success" type="button" @click="auditOrRecoverModel('storage')">审核</button>
                        <button class="btn btn-sm btn-danger" type="button" @click="auditOrRecoverModel('storage',false)">恢复</button>@endcan
                    </div>
                </div>
                <div class="col-3 pull-right small mb-0 text-secondary" v-if="selectedModel.storage.length>0">双击下方已添加内容可编辑</div>
            </div>
            <div class="card-body" id="storage">
                <table class="table table-sm">
                    <tr>
                        <th>名称</th>
                        <th>计费类型</th>
                        <th>用仓类型</th>
                        <th>起租面积</th>
                        <th class="text-center">单价</th>
                        <th>单位</th>
                        <th>计时单位</th>
                        <th>减免类型</th>
                        <th>减免值</th>
                        <th>税率</th>
                        <th></th>
                    </tr>
                    <tr v-for="(item,i) in selectedModel.storage" style="cursor: pointer" @dblclick="editStorage(i)">
                        <td>@{{ item.name }}</td>
                        <td>@{{ item.counting_type }}</td>
                        <td>@{{ item.using_type }}</td>
                        <td>@{{ item.minimum_area }}</td>
                        <td>
                            <div v-if="item.amount_interval">
                                <div v-for="(amount,i) in item.amount_interval" class="row text-nowrap">
                                    <b class="col-4 offset-1 m-0">@{{ item.price[i] }}</b>
                                    <label class="col-7 m-0">(@{{ item.amount_interval[i+1] ? amount+'-'+item.amount_interval[i+1] : amount+" +" }}单)</label>
                                </div>
                            </div>
                            <div v-else><b>@{{ item.price[0] }}</b></div>
                        </td>
                        <td>@{{ poolMapping.units ? poolMapping.units[item.unit_id] : '' }}</td>
                        <td>@{{ poolMapping.units ? poolMapping.units[item.time_unit_id] : '' }}</td>
                        <td>@{{ item.discount_type }}</td>
                        <td>@{{ item.discount_value }}</td>
                        <td>@{{ poolMapping.taxRates ? poolMapping.taxRates[item.tax_rate_id] : '' }}</td>
                        <td class="cursor-pointer" @click.stop="delStorage(item,i)"><span class="font-weight-bold text-danger">&times;</span></td>
                    </tr>
                </table>
            </div>
        </div>
        <div class="card" id="operation-card">
            <div class="card-header bg-light-info row">
                <div class="col-3 pull-left font-weight-bold cursor-pointer text-secondary" @click="show('operation')"><span class="fa fa-align-justify"></span>&nbsp;作业</div>
                <div class="col-6 text-center">
                    <div v-if="audit.operation">
                        @can("项目管理-项目-计费模型-审核")<button class="btn btn-sm btn-success" type="button" @click="auditOrRecoverModel('operation')">审核</button>
                        <button class="btn btn-sm btn-danger" type="button" @click="auditOrRecoverModel('operation',false)">恢复</button>@endcan
                    </div>
                </div>  
                <div class="col-3 pull-right small mb-0 text-secondary" v-if="selectedModel.operation.length>0">双击下方已添加内容可编辑</div>
            </div>
            <div class="card-body" id="operation">
                <div class="container-fluid">
                    <div class="row font-weight-bold">
                        <div class="cursor-pointer" @click="show('operation-list-in')"><span class="fa" :class="upList['operation-list-in'] ? 'fa-caret-right' : 'fa-caret-down'"></span> 入库</div>
                    </div>
                    <div id="operation-list-in">
                        <div class="container-fluid" v-for="(operation,i) in selectedModel.operation"
                             @dblclick="editOperation(i)" style="cursor: pointer" v-if="operation.operation_type === '入库'">
                            <div class="row">
                                <div class="col-9 offset-1">
                                    <label class="font-weight-bold cursor-pointer" @click.stop="show('operation-item-'+i)">
                                        <span class="fa" :class="upList['operation-item-'+i] ? 'fa-caret-right' : 'fa-caret-down'"></span>
                                        &nbsp;@{{ operation.strategy }}：
                                    </label>
                                    <label>@{{ operation.name }}</label><span class="badge badge-pill badge-danger" v-if="operation.isRejected">退</span>
                                    <label v-if="operation.remark" class="text-secondary">&nbsp;&nbsp;(@{{ operation.remark }})</label>
                                    <label v-if="operation.surcharge">耗材附加费：<b>@{{ operation.surcharge }}</b>/@{{ poolMapping.units ? poolMapping.units[operation.surcharge_unit_id] : '' }}</label>
                                    <label v-if="operation.max_fee">封顶费：<b>@{{ operation.max_fee }}</b></label>
                                    <label v-if="operation.tax_rate_id">税率：@{{ poolMapping.taxRates ? poolMapping.taxRates[operation.tax_rate_id] : '' }}</label>
                                </div>
                                <div class="col-1">
                                    <span class="cursor-pointer text-danger font-weight-bold"
                                          @click.stop="delOperation(operation,i)">&times;</span>
                                </div>
                            </div>
                            <div class="row offset-1 small mt-0" style="background-color: RGB(248,248,248)" v-if="operation.strategy === '特征'">
                                <span class="text-secondary">特征：</span>@{{ operation.featureFormat }}
                            </div>
                            <div class="container-fluid offset-2" v-if="operation.isSingle">
                                按单计费：<b>@{{ operation.total_price }}</b>&nbsp;元/单
                            </div>
                            <div class="container-fluid offset-2" :id="'operation-item-'+i">
                                <div v-for="(item,j) in operation.items" class="container-fluid">
                                    <div class="row">
                                        <div class="col-10">
                                            <label>@{{ item.strategy }} <span v-if="item.strategy!='起步'">续费</span></label>：
                                            <b>@{{ item.amount }}</b>&nbsp;@{{ poolMapping.units ? poolMapping.units[item.unit_id] : '' }} / <b>@{{ item.unit_price }}</b>元
                                            <span class="badge badge-secondary" v-if="item.odd_price">零头价：@{{ item.odd_price }}元</span>
                                            <span v-if="operation.isDiscount">&nbsp;(满减单价：<b>@{{ item.discount_price }}元</b>)</span>
                                        </div>
                                        <div class="col-1">
                                            <span class="cursor-pointer text-danger font-weight-bold"
                                                  @click.stop="deleteOperationItem(item,j,i)">&times;</span>
                                        </div>
                                    </div>
                                    <div class="row small mt-0 ml-1" style="background-color: RGB(248,248,248)" v-if="item.strategy == '特征'">
                                        @{{ item.featureFormat }}
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row font-weight-bold">
                        <div class="cursor-pointer" @click="show('operation-list-out')"><span class="fa" :class="upList['operation-list-out'] ? 'fa-caret-right' : 'fa-caret-down'"></span> 出库</div>
                    </div>
                    <div id="operation-list-out">
                        <div class="container-fluid" v-for="(operation,i) in selectedModel.operation"
                             @dblclick="editOperation(i)" style="cursor: pointer" v-if="operation.operation_type === '出库'">
                            <div class="row">
                                <div class="col-9 offset-1">
                                    <label class="font-weight-bold cursor-pointer" @click.stop="show('operation-item-'+i)">
                                        <span class="fa" :class="upList['operation-item-'+i] ? 'fa-caret-right' : 'fa-caret-down'"></span>
                                        &nbsp;@{{ operation.strategy }}：
                                    </label>
                                    <label>@{{ operation.name }}</label>
                                    <label v-if="operation.remark" class="text-secondary">&nbsp;&nbsp;(@{{ operation.remark }})</label>
                                    <label v-if="operation.surcharge">耗材附加费：<b>@{{ operation.surcharge }}</b>/@{{ poolMapping.units ? poolMapping.units[operation.surcharge_unit_id] : '' }}</label>
                                    <label v-if="operation.max_fee">封顶费：<b>@{{ operation.max_fee }}</b></label>
                                    <label v-if="operation.tax_rate_id">税率：@{{ poolMapping.taxRates ? poolMapping.taxRates[operation.tax_rate_id] : '' }}</label>
                                </div>
                                <div class="col-1">
                                    <span class="cursor-pointer text-danger font-weight-bold"
                                          @click.stop="delOperation(operation,i)">&times;</span>
                                </div>
                            </div>
                            <div class="row offset-1 small mt-0" style="background-color: RGB(248,248,248)" v-if="operation.strategy === '特征'">
                                <span class="text-secondary">特征：</span>@{{ operation.featureFormat }}
                            </div>
                            <div class="container-fluid offset-2" v-if="operation.isSingle">
                                按单计费：<b>@{{ operation.total_price }}</b>&nbsp;元/单<span v-if="operation.isDiscount">&nbsp;(满减价：
                                    <span v-for="(value,k) in operation.total_discount_price">
                                        <span v-if="k!=0">,</span>
                                        @{{ operation.discount_count[k] ? (operation.discount_count[k+1] ? operation.discount_count[k]+'-'+(operation.discount_count[k+1]-1)+' 单' : operation.discount_count[k]+'+ 单') : '' }}(<b>@{{ value }}</b>元)
                                    </span>)</span>
                            </div>
                            <div class="container-fluid offset-2" :id="'operation-item-'+i">
                                <div v-for="(item,j) in operation.items" class="container-fluid">
                                    <div class="row">
                                        <div class="col-10">
                                            <label>@{{ item.strategy }}<span v-if="item.strategy!='起步'">续费</span></label>：
                                            <span v-if="item.amount > 0"><b>@{{ item.amount }}</b>&nbsp;@{{ poolMapping.units ? poolMapping.units[item.unit_id] : '' }} /</span><b>&nbsp;@{{ item.unit_price }}</b>元
                                            <span class="badge badge-secondary" v-if="item.odd_price">零头价：@{{ item.odd_price }}元</span>
                                            <span v-if="operation.isDiscount">&nbsp;(满减单价：
                                                <span v-for="(value,k) in item.discount_price">
                                                    <span v-if="k!=0">,</span>
                                                    @{{ operation.discount_count[k] ? (operation.discount_count[k+1] ? operation.discount_count[k]+'-'+(operation.discount_count[k+1]-1)+' 单' : operation.discount_count[k]+'+ 单') : '' }}(<b>@{{ value }}</b>元)
                                                </span>
                                                )</span>
                                        </div>
                                        <div class="col-1">
                                            <span class="cursor-pointer text-danger font-weight-bold"
                                                  v-if="item.strategy == '特征'" @click.stop="deleteOperationItem(item,j,i)">&times;</span>
                                        </div>
                                    </div>
                                    <div class="row small mt-0 ml-1" style="background-color: RGB(248,248,248)" v-if="item.strategy == '特征'">
                                        @{{ item.featureFormat }}
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="card" id="express-card">
            <div class="card-header bg-light-info row">
                <div class="col-3 pull-left font-weight-bold cursor-pointer text-secondary" @click="show('express')"><span class="fa fa-align-justify"></span>&nbsp;快递</div>
                <div class="col-6 text-center">
                    <div v-if="audit.express">
                        @can("项目管理-项目-计费模型-审核")<button class="btn btn-sm btn-success" type="button" @click="auditOrRecoverModel('express')">审核</button>
                        <button class="btn btn-sm btn-danger" type="button" @click="auditOrRecoverModel('express',false)">恢复</button>@endcan
                    </div>
                </div>
                <div class="col-3 pull-right small mb-0 text-secondary" v-if="selectedModel.express.length>0">双击下方已添加内容可编辑</div>
            </div>
            <div class="card-body" id="express">
                <table class="table table-sm">
                    <tr>
                        <th>承运商</th>
                        <th>名称</th>
                        <th>首重值(KG)</th>
                        <th>续重值(KG)</th>
                        <th>税率</th>
                        <th>详情</th>
                        <th></th>
                    </tr>
                    <tbody v-for="(express,i) in selectedModel.express" @dblclick="editExpress(i)" style="cursor: pointer">
                        <tr>
                            <td>
                                <div class="text-overflow-warp-100 small">
                                    <label v-for="(logistic,j) in express.logistics" class="m-0">@{{ poolMapping.logistics ? poolMapping.logistics[logistic] : '' }}<br></label>
                                </div>
                            </td>
                            <td>@{{ express.name }}</td>
                            <td>@{{ express.initial_weight }}</td>
                            <td>@{{ express.additional_weight }}</td>
                            <td>@{{ poolMapping.taxRates ? poolMapping.taxRates[express.tax_rate_id] : '' }}</td>
                            <td @click.stop="show('express-item-'+i)" class="cursor-pointer">
                                <span class="fa" :class="upList['express-item-'+i] ? 'fa-angle-double-right' : 'fa-angle-double-down'"></span>
                                &nbsp;@{{ express.items.length }} 省份</td>
                            <td>
                                <span class="cursor-pointer text-danger font-weight-bold" @click.stop="delExpress(express,i)">&times;</span>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="5">
                                <div :id="'express-item-'+i" class="offset-3 up overflow-scrollbar-200">
                                    <table class="table table-sm col-10 text-nowrap">
                                        <tr>
                                            <th>省份</th>
                                            <template v-if="express.isInterval">
                                                <th v-for="(amount,i) in express.amount_interval" class="text-center" :colspan="express.weight_interval[i] ? express.weight_interval[i].length : 1">
                                                    首重价格(@{{ (express.amount_interval[i+1]) ? (express.amount_interval[i]+'-'+express.amount_interval[i+1]) : (express.amount_interval[i]+' +') }}单)
                                                </th>
                                                <th v-for="(amount,i) in express.amount_interval" class="text-center" :colspan="express.weight_interval[i] ? express.weight_interval[i].length : 1">
                                                    续重价格(@{{ (express.amount_interval[i+1]) ? (express.amount_interval[i]+'-'+express.amount_interval[i+1]) : (express.amount_interval[i]+' +') }}单)
                                                </th>
                                            </template>
                                            <template v-else>
                                                <th>首重价格</th>
                                                <th>续重价格</th>
                                            </template>
                                            <th></th>
                                        </tr>
                                        <tr v-if="express.isInterval">
                                            <th></th>
                                            <template v-for="(amount,j) in express.amount_interval">
                                                <th v-for="(weight,k) in express.weight_interval[j]">
                                                    重(@{{ express.weight_interval[j][k+1] ? (express.weight_interval[j][k]+'-'+express.weight_interval[j][k+1]) : (express.weight_interval[j][k]+' +') }}kg)
                                                </th>
                                                <th v-if="express.weight_interval[j].length==0">重(0 +kg)</th>
                                            </template>
                                            <template v-for="(amount,j) in express.amount_interval">
                                                <th v-for="(weight,k) in express.weight_interval[j]">
                                                    重(@{{ express.weight_interval[j][k+1] ? (express.weight_interval[j][k]+'-'+express.weight_interval[j][k+1]) : (express.weight_interval[j][k]+' +') }}kg)
                                                </th>
                                                <th v-if="express.weight_interval[j].length==0">重(0 +kg)</th>
                                            </template>
                                        </tr>
                                        <tr v-for="(item,j) in express.items">
                                            <td>@{{ poolMapping.provinces ? poolMapping.provinces[item.province_id] : '' }}</td>
                                            <template v-for="arr in item.initial_weight_price">
                                                <td v-for="init in arr">@{{ init }}</td>
                                            </template>
                                            <template v-for="arr in item.additional_weight_price">
                                                <td v-for="add in arr">@{{ add }}</td>
                                            </template>
                                            <td>
                                                <span class="cursor-pointer text-danger font-weight-bold" @click.stop="deleteExpressItem(item,j,i)">&times;</span>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
        <div class="card" id="logistic-card">
            <div class="card-header bg-light-info row">
                <div class="col-3 pull-left font-weight-bold cursor-pointer text-secondary" @click="show('logistic')"><span class="fa fa-align-justify"></span>&nbsp;物流</div>
                <div class="col-6 text-center">
                    <div v-if="audit.logistic">
                        @can("项目管理-项目-计费模型-审核")<button class="btn btn-sm btn-success" type="button" @click="auditOrRecoverModel('logistic')">审核</button>
                        <button class="btn btn-sm btn-danger" type="button" @click="auditOrRecoverModel('logistic',false)">恢复</button>@endcan
                    </div>
                </div>
                <div class="col-3 pull-right small mb-0 text-secondary" v-if="selectedModel.logistic.length>0">双击下方已添加内容可编辑</div>
            </div>
            <div class="card-body" id="logistic">
                <table class="table table-sm">
                    <tr>
                        <th>承运商</th>
                        <th>名称</th>
                        <th>单位一</th>
                        <th>一区间值</th>
                        <th>单位二</th>
                        <th>二区间值</th>
                        <th>提货费</th>
                        <th>燃油附加费</th>
                        <th>信息服务费</th>
                        <th>税率</th>
                        <th>详情</th>
                        <th></th>
                    </tr>
                    <tbody v-for="(logistic,i) in selectedModel.logistic" @dblclick="editLogistic(i)" style="cursor: pointer">
                        <tr>
                            <td>
                                <div class="text-overflow-warp-100 small">
                                    <label v-for="(logistic,j) in logistic.logistics" class="m-0">@{{ poolMapping.logistics ? poolMapping.logistics[logistic] : '' }}</label>
                                </div>
                            </td>
                            <td>@{{ logistic.name }}</td>
                            <td>@{{ poolMapping.units ? poolMapping.units[logistic.unit_id] : '' }}</td>
                            <td>@{{ logistic.unit_range }}</td>
                            <td>@{{ poolMapping.units ? poolMapping.units[logistic.other_unit_id] : '' }}</td>
                            <td>@{{ logistic.other_unit_range }}</td>
                            <td>@{{ logistic.pick_up_price }}</td>
                            <td>@{{ logistic.fuel_price }}</td>
                            <td>@{{ logistic.service_price }}</td>
                            <td>@{{ poolMapping.taxRates ? poolMapping.taxRates[logistic.tax_rate_id] : '' }}</td>
                            <td @click.stop="show('logistic-item-'+i)" class="cursor-pointer">
                                <span class="fa" :class="upList['logistic-item-'+i] ? 'fa-angle-double-right' : 'fa-angle-double-down'"></span>
                                &nbsp;@{{ logistic.items.length }} 地区
                            </td>
                            <td>
                                <span class="cursor-pointer text-danger font-weight-bold" @click.stop="delLogistic(logistic,i)">&times;</span>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="9">
                                <div :id="'logistic-item-'+i" class="offset-1 up">
                                    <table class="table table-sm">
                                        <tr>
                                            <th>省份</th>
                                            <th>市区</th>
                                            <th>单位</th>
                                            <th>区间</th>
                                            <th>单价</th>
                                            <th>送货费</th>
                                            <th>起始计费</th>
                                            <th>起始计数</th>
                                            <th>费率(%)</th>
                                            <th></th>
                                        </tr>
                                        <tr v-for="(item,j) in logistic.items">
                                            <td class="font-weight-bold">@{{ poolMapping.provinces ? poolMapping.provinces[item.province_id] : '' }}</td>
                                            <td class="font-weight-bold">@{{ poolMapping.cities ? poolMapping.cities[item.city_id] : '' }}</td>
                                            <td>@{{ poolMapping.units ? poolMapping.units[item.unit_id] : '' }}</td>
                                            <td>@{{ item.range }}</td>
                                            <td>@{{ item.unit_price }}</td>
                                            <td>@{{ item.delivery_fee }}</td>
                                            <td>@{{ item.initial_fee }}</td>
                                            <td>@{{ item.initial_amount }}</td>
                                            <td>@{{ item.rate }}<span v-if="item.rate" class="font-weight-bold">&nbsp;%</span></td>
                                            <td>
                                                <span class="cursor-pointer text-danger font-weight-bold" @click.stop="deleteLogisticItem(item,j,i)">&times;</span>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
        <div class="card" id="directLogistic-card">
            <div class="card-header bg-light-info row">
                <div class="col-3 pull-left font-weight-bold cursor-pointer text-secondary" @click="show('directLogistic')"><span class="fa fa-align-justify"></span>&nbsp;直发</div>
                <div class="col-6 text-center">
                    <div v-if="audit.directLogistic">
                        @can("项目管理-项目-计费模型-审核")<button class="btn btn-sm btn-success" type="button" @click="auditOrRecoverModel('directLogistic')">审核</button>
                        <button class="btn btn-sm btn-danger" type="button" @click="auditOrRecoverModel('directLogistic',false)">恢复</button>@endcan
                    </div>
                </div>
                <div class="col-3 pull-right small mb-0 text-secondary" v-if="selectedModel.directLogistic.name">双击下方已添加内容可编辑</div>
            </div>
            <div class="card-body" id="directLogistic" @dblclick="editDirectLogistic()" style="cursor: pointer">
                <div class="row">
                    <span class="col-4">名称：<b>@{{ selectedModel.directLogistic.name }}</b></span>
                    <span class="col-4">起步数(KM)：<b>@{{ selectedModel.directLogistic.base_km }}</b></span>
                    <span class="col-3">税率：<b>@{{ poolMapping.taxRates ? poolMapping.taxRates[selectedModel.directLogistic.tax_rate_id] : '' }}</b></span>
                    <span class="col-1" v-if="selectedModel.directLogistic.name">
                        <span class="cursor-pointer text-danger font-weight-bold" @click.stop="delDirectLogistic(selectedModel.directLogistic)">&times;</span>
                    </span>
                </div>
                <div class="row">
                    <div class="cursor-pointer text-primary col-2" @click.stop="show('directLogistic-item')">
                        <span class="fa" :class="upList['directLogistic-item'] ? 'fa-angle-double-right' : 'fa-angle-double-down'"></span>&nbsp;详情</div>
                    <div class="col-10 up" id="directLogistic-item">
                        <table class="table table-sm">
                            <tr>
                                <th>车型</th>
                                <th>起步费</th>
                                <th>续费(元/KM)</th>
                                <th></th>
                            </tr>
                            <tr v-for="(item,i) in selectedModel.directLogistic.items">
                                <td>@{{ poolMapping.cars ? poolMapping.cars[item.car_type_id] : '' }}</td>
                                <td>@{{ item.base_fee }}</td>
                                <td>@{{ item.additional_fee }}</td>
                                <td>
                                    <span class="cursor-pointer text-danger font-weight-bold" @click.stop="deleteDirectLogisticItem(item,i)">&times;</span>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
            </div>
        </div>
        <div class="card" id="system-card">
            <div class="card-header bg-light-info row">
                <div class="col-3 pull-left font-weight-bold cursor-pointer text-secondary" @click="show('system')"><span class="fa fa-align-justify"></span>&nbsp;系统</div>
                <div class="col-6 text-center">
                    <div v-if="audit.system">
                        @can("项目管理-项目-计费模型-审核")<button class="btn btn-sm btn-success" type="button" @click="auditOrRecoverModel('system')">审核</button>
                        <button class="btn btn-sm btn-danger" type="button" @click="auditOrRecoverModel('system',false)">恢复</button>@endcan
                    </div>
                </div>
                <div class="col-3 pull-right small mb-0 text-secondary" v-if="selectedModel.system.id">双击下方已添加内容可编辑</div>
            </div>
            <div class="card-body" id="system" @dblclick="editSystem()" style="cursor: pointer">
                <div class="row">
                    <label class="col-3">系统使用费：</label>
                    <label class="col-9">@{{ selectedModel.system.usage_fee }}</label>
                </div>
                <div class="row">
                    <label class="col-3">计时单位：</label>
                    <label class="col-9">@{{ poolMapping.units ? poolMapping.units[selectedModel.system.time_unit_id] : '' }}</label>
                </div>
                <div class="row">
                    <label class="col-3">税率：</label>
                    <label class="col-9">@{{ poolMapping.taxRates ? poolMapping.taxRates[selectedModel.system.tax_rate_id] : '' }}</label>
                </div>
            </div>
        </div>
    </div>
    <div class="col-6">
        <div class="card">
            <div class="card-header bg-light-info">
                <button type="button" class="btn mr-1" :class="type == 'storage' ? 'btn-primary text-white' : 'btn-outline-primary'" @click="switchType('storage')">仓储</button>
                <button type="button" class="btn mr-1" :class="type == 'operation' ? 'btn-primary text-white' : 'btn-outline-primary'" @click="switchType('operation')">作业</button>
                <button type="button" class="btn mr-1" :class="type == 'express' ? 'btn-primary text-white' : 'btn-outline-primary'" @click="switchType('express')">快递</button>
                <button type="button" class="btn mr-1" :class="type == 'logistic' ? 'btn-primary text-white' : 'btn-outline-primary'" @click="switchType('logistic')">物流</button>
                <button type="button" class="btn mr-1" :class="type == 'directLogistic' ? 'btn-primary text-white' : 'btn-outline-primary'" @click="switchType('directLogistic')">直发</button>
                <button type="button" class="btn mr-1" :class="type == 'system' ? 'btn-primary text-white' : 'btn-outline-primary'" @click="switchType('system')">系统</button>
            </div>
            <div class="card-body">
                @can("计费模型-仓储-录入")<div v-if="type == 'storage'">
                    @include("customer.project.part._storage")
                </div>@endcan
                @can("计费模型-作业-录入")<div v-show="type == 'operation'">
                    @include("customer.project.part._operation")
                    @include("customer.project.part._addFeature")
                </div>@endcan
                @can("计费模型-快递-录入")<div v-show="type == 'express'">
                    @include("customer.project.part._express")
                </div>@endcan
                @can("计费模型-物流-录入")<div v-show="type == 'logistic'">
                    @include("customer.project.part._logistic")
                    @include("customer.project.part._logisticDetail")
                </div>@endcan
                @can("计费模型-直发-录入")<div v-show="type == 'directLogistic'">
                    @include("customer.project.part._directLogistic")
                </div>@endcan
                @can("计费模型-系统-录入")<div v-show="type == 'system'">
                    @include("customer.project.part._system")
                </div>@endcan
                @include("customer.project.part._introducePriceModel")
                <div class="row mt-3" v-if="base=='three'">
                    <div class="col-2"></div>
                    <button type="button" class="btn btn-success ml-1 col-4" @click="saveModel()">保存</button>
                    <button type="button" class="btn btn-sm btn-info text-white offset-1 col-2"
                            data-toggle="modal" data-target="#introduce" @click="loadIntroduce()">引入</button>
                    <h5><span class="ml-0 fa fa-question-circle-o cursor-pointer"
                              data-toggle="tooltip" data-placement="top" title="引入克隆一份已存在模型"></span></h5>
                </div>
                <div class="mt-1 offset-2" v-if="errors">
                    <p v-for="val in errors" class="small text-danger font-weight-bold">@{{ val[0] }}</p>
                </div>
            </div>
        </div>
    </div>
</div>
