| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251 |
- <div class="row">
- <div class="col-6" id="parent">
- <div class="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>
- </tr>
- <tr v-for="item in selectedModel.storage">
- <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[item.unit_id] }}</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 class="container-fluid" v-for="(operation,i) in selectedModel.operation" v-if="operation.operation_type === '入库'" id="operation-list-in">
- <div class="row offset-1">
- <label class="font-weight-bold cursor-pointer" @click="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="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 in operation.items" class="container-fluid">
- <div class="row"><label>@{{ item.strategy }}</label>:
- <b>@{{ item.amount }}</b>/@{{ poolMapping.units[item.unit_id] }} (<b>@{{ item.unit_price }}</b>元)
- </div>
- <div class="row small mt-0" style="background-color: RGB(248,248,248)">
- @{{ item.featureFormat }}
- </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 class="container-fluid" v-for="(operation,i) in selectedModel.operation" v-if="operation.operation_type === '出库'" id="operation-list-out">
- <div class="row offset-1">
- <label class="font-weight-bold cursor-pointer" @click="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="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 in operation.items" class="container-fluid">
- <div class="row"><label>@{{ item.strategy }}</label>:
- <b>@{{ item.amount }}</b>/@{{ poolMapping.units[item.unit_id] }} (<b>@{{ item.unit_price }}</b>元)
- </div>
- <div class="row small mt-0" style="background-color: RGB(248,248,248)">
- @{{ item.featureFormat }}
- </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>
- </tr>
- <tbody v-for="(express,i) in selectedModel.express">
- <tr>
- <td>
- <div class="text-overflow-warp-100">
- <label v-for="(logistic,j) in express.logistics">
- @{{ poolMapping.provinces[logistic] }}<label v-if="express.logistics && j<(express.logistics.length-1)">,</label>
- </label>
- </div>
- </td>
- <td>@{{ express.name }}</td>
- <td>@{{ express.initial_weight }}</td>
- <td>@{{ express.additional_weight }}</td>
- <td @click="show('express-item-'+i)">
- <span class="fa" :class="upList['express-item-'+i] ? 'fa-angle-double-right' : 'fa-angle-double-down'"></span>
- @{{ express.items.length }} 省份</td>
- </tr>
- <tr>
- <td colspan="5">
- <div :id="'express-item-'+i">
- <table class="table table-sm col-10">
- <tr>
- <th>省份</th>
- <th>首重价格</th>
- <th>续重价格</th>
- </tr>
- <tr v-for="(item,i) in express.items">
- <td>@{{ poolMapping.provinces[item.province_id] }}</td>
- <td>@{{ item.initial_weight_price }}</td>
- <td>@{{ item.additional_weight_price }}</td>
- </tr>
- </table>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- {{-- <div class="row">
- <label class="col-4">名称:<b>@{{ selectedModel.express.name }}</b></label>
- <label class="col-4">首重值(KG):<b>@{{ selectedModel.express.initial_weight }}</b></label>
- <label class="col-4">续重值(KG):<b>@{{ selectedModel.express.additional_weight }}</b></label>
- </div>--}}
- {{--<div class="row">
- <label class="text-primary col-2">详情</label>
- <table class="table table-sm col-10">
- <tr>
- <th>省份</th>
- <th>首重价格</th>
- <th>续重价格</th>
- </tr>
- <tr v-for="(item,i) in selectedModel.express.items">
- <td>@{{ poolMapping.provinces[item.province_id] }}</td>
- <td>@{{ item.initial_weight_price }}</td>
- <td>@{{ item.additional_weight_price }}</td>
- </tr>
- </table>
- </div>--}}
- </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">
- <div class="row">
- <label class="col-4">名称:<b>@{{ selectedModel.express.name }}</b></label>
- <label class="col-4">首重值(KG):<b>@{{ selectedModel.express.initial_weight }}</b></label>
- <label class="col-4">续重值(KG):<b>@{{ selectedModel.express.additional_weight }}</b></label>
- </div>
- <div class="row">
- <label class="text-primary col-2">详情</label>
- <table class="table table-sm col-10">
- <tr>
- <th>省份</th>
- <th>首重价格</th>
- <th>续重价格</th>
- </tr>
- <tr v-for="(item,i) in selectedModel.express.items">
- <td>@{{ poolMapping.provinces[item.province_id] }}</td>
- <td>@{{ item.initial_weight_price }}</td>
- <td>@{{ item.additional_weight_price }}</td>
- </tr>
- </table>
- </div>
- </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.express.name }}</b></label>
- <label class="col-4">首重值(KG):<b>@{{ selectedModel.express.initial_weight }}</b></label>
- <label class="col-4">续重值(KG):<b>@{{ selectedModel.express.additional_weight }}</b></label>
- </div>
- <div class="row">
- <label class="text-primary col-2">详情</label>
- <table class="table table-sm col-10">
- <tr>
- <th>省份</th>
- <th>首重价格</th>
- <th>续重价格</th>
- </tr>
- <tr v-for="(item,i) in selectedModel.express.items">
- <td>@{{ poolMapping.provinces[item.province_id] }}</td>
- <td>@{{ item.initial_weight_price }}</td>
- <td>@{{ item.additional_weight_price }}</td>
- </tr>
- </table>
- </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>
- <div class="row mt-3" v-if="base=='three'">
- <div class="col-3"></div>
- <button type="button" class="btn btn-success ml-1 col-6" @click="saveModel()">保存</button>
- </div>
- </div>
- </div>
- </div>
- </div>
|