| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340 |
- <div class="row">
- <div class="col-6" id="parent">
- <div class="card" id="storage-card">
- <div class="card-header bg-light-info">
- <span class="pull-left font-weight-bold cursor-pointer" @click="show('storage')"><span class="fa fa-cubes"></span> 仓储</span>
- </div>
- <div class="card-body" id="storage">
- <table class="table table-sm">
- <tr>
- <th>名称</th>
- <th>计费类型</th>
- <th>用仓类型</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>@{{ item.price }}</td>
- <td>@{{ item.discount_type }}</td>
- <td>@{{ item.discount_value }}</td>
- <td>@{{ poolMapping.units ? poolMapping.units[item.unit_id] : '' }}</td>
- <td class="cursor-pointer" @click.stop="delStorage(item,i)"><span class="font-weight-bold text-danger">×</span></td>
- </tr>
- </table>
- </div>
- </div>
- <div class="card" id="operation-card">
- <div class="card-header bg-light-info">
- <span class="pull-left font-weight-bold cursor-pointer" @click="show('operation')"><span class="fa fa-suitcase"></span> 作业</span>
- </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>
- @{{ operation.strategy }}:
- </label>
- <label>@{{ operation.name }}</label>
- <label v-if="operation.remark" class="text-secondary"> (@{{ operation.remark }})</label>
- </div>
- <div class="col-1">
- <span class="cursor-pointer text-danger font-weight-bold"
- v-if="operation.strategy == '特征'" @click.stop="delOperation(operation,i)">×</span>
- </div>
- </div>
- <div class="row offset-1 small mt-0" style="background-color: RGB(248,248,248)" v-if="operation.strategy === '特征'">
- @{{ operation.featureFormat }}
- </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 }}</label>:
- <b>@{{ item.amount }}</b> @{{ poolMapping.units ? poolMapping.units[item.unit_id] : '' }} / <b>@{{ item.unit_price }}</b>元
- </div>
- <div class="col-1">
- <span class="cursor-pointer text-danger font-weight-bold"
- v-if="item.strategy == '特征'" @click.stop="deleteOperationItem(item,j,i)">×</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>
- @{{ operation.strategy }}:
- </label>
- <label>@{{ operation.name }}</label>
- <label v-if="operation.remark" class="text-secondary"> (@{{ operation.remark }})</label>
- </div>
- <div class="col-1">
- <span class="cursor-pointer text-danger font-weight-bold"
- v-if="operation.strategy == '特征'" @click.stop="delOperation(operation,i)">×</span>
- </div>
- </div>
- <div class="row offset-1 small mt-0" style="background-color: RGB(248,248,248)" v-if="operation.strategy === '特征'">
- @{{ operation.featureFormat }}
- </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 }}</label>:
- <b>@{{ item.amount }}</b> @{{ poolMapping.units ? poolMapping.units[item.unit_id] : '' }} / <b>@{{ item.unit_price }}</b>元
- </div>
- <div class="col-1">
- <span class="cursor-pointer text-danger font-weight-bold"
- v-if="item.strategy == '特征'" @click.stop="deleteOperationItem(item,j,i)">×</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">
- <span class="pull-left font-weight-bold cursor-pointer" @click="show('express')"><span class="fa fa-cube"></span> 快递</span>
- </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>
- </tr>
- <tbody v-for="(express,i) in selectedModel.express" @click="editExpress()">
- <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] : '' }}</label>
- </div>
- </td>
- <td>@{{ express.name }}</td>
- <td>@{{ express.initial_weight }}</td>
- <td>@{{ express.additional_weight }}</td>
- <td @click="show('express-item-'+i)" class="cursor-pointer">
- <span class="fa" :class="upList['express-item-'+i] ? 'fa-angle-double-right' : 'fa-angle-double-down'"></span>
- @{{ express.items.length }} 省份</td>
- <td>
- <span class="cursor-pointer text-danger font-weight-bold" @click="delExpress(express,i)">×</span>
- </td>
- </tr>
- <tr>
- <td colspan="5">
- <div :id="'express-item-'+i" class="offset-3">
- <table class="table table-sm col-10">
- <tr>
- <th>省份</th>
- <th>首重价格</th>
- <th>续重价格</th>
- <th></th>
- </tr>
- <tr v-for="(item,j) in express.items">
- <td>@{{ poolMapping.provinces ? poolMapping.provinces[item.province_id] : '' }}</td>
- <td>@{{ item.initial_weight_price }}</td>
- <td>@{{ item.additional_weight_price }}</td>
- <td>
- <span class="cursor-pointer text-danger font-weight-bold" @click="deleteExpressItem(item,j,i)">×</span>
- </td>
- </tr>
- </table>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- <div class="card" id="logistic-card">
- <div class="card-header bg-light-info">
- <span class="pull-left font-weight-bold cursor-pointer" @click="show('logistic')"><span class="fa fa-truck"></span> 物流</span>
- </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>
- </tr>
- <tbody v-for="(logistic,i) in selectedModel.logistic">
- <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 @click="show('logistic-item-'+i)" class="cursor-pointer">
- <span class="fa" :class="upList['logistic-item-'+i] ? 'fa-angle-double-right' : 'fa-angle-double-down'"></span>
- @{{ logistic.items.length }} 地区
- </td>
- <td>
- <span class="cursor-pointer text-danger font-weight-bold" @click="delLogistic(logistic,i)">×</span>
- </td>
- </tr>
- <tr>
- <td colspan="9">
- <div :id="'logistic-item-'+i" class="offset-1">
- <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"> %</span></td>
- <td>
- <span class="cursor-pointer text-danger font-weight-bold" @click="deleteLogisticItem(item,j,i)">×</span>
- </td>
- </tr>
- </table>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- <div class="card" id="directLogistic-card">
- <div class="card-header bg-light-info">
- <span class="pull-left font-weight-bold cursor-pointer" @click="show('directLogistic')"><span class="fa fa-rocket"></span> 直发</span>
- </div>
- <div class="card-body" id="directLogistic">
- <div class="row">
- <label class="col-4">名称:<b>@{{ selectedModel.directLogistic.name }}</b></label>
- <label class="col-4">起步数(KM):<b>@{{ selectedModel.directLogistic.base_km }}</b></label>
- <label class="col-1 offset-3" v-if="selectedModel.directLogistic.name">
- <span class="cursor-pointer text-danger font-weight-bold" @click="delDirectLogistic(selectedModel.directLogistic)">×</span>
- </label>
- </div>
- <div class="row">
- <div class="cursor-pointer text-primary col-2" @click="show('directLogistic-item')">
- <span class="fa" :class="upList['directLogistic-item'] ? 'fa-angle-double-right' : 'fa-angle-double-down'"></span> 详情</div>
- <div class="col-10" 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="deleteDirectLogisticItem(item,i)">×</span>
- </td>
- </tr>
- </table>
- </div>
- </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>
- </div>
- <div class="card-body">
- <div v-if="type == 'storage'">
- @include("customer.project.part._storage")
- </div>
- <div v-show="type == 'operation'">
- @include("customer.project.part._operation")
- @include("customer.project.part._addFeature")
- </div>
- <div v-show="type == 'express'">
- @include("customer.project.part._express")
- </div>
- <div v-show="type == 'logistic'">
- @include("customer.project.part._logistic")
- @include("customer.project.part._logisticDetail")
- </div>
- <div v-show="type == 'directLogistic'">
- @include("customer.project.part._directLogistic")
- </div>
- @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>
- </div>
- </div>
- </div>
|