|
|
@@ -33,31 +33,59 @@
|
|
|
</div>
|
|
|
<div class="card-body" id="operation">
|
|
|
<div class="container-fluid">
|
|
|
- <div class="row">
|
|
|
- <div>入库</div>
|
|
|
+ <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="row">
|
|
|
- <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>
|
|
|
- <table class="table table-sm">
|
|
|
- <tr>
|
|
|
- <th>操作类型</th>
|
|
|
- <th>计费策略</th>
|
|
|
- <th>名称</th>
|
|
|
- <th>子策略</th>
|
|
|
- <th>特征</th>
|
|
|
- <th>备注</th>
|
|
|
- </tr>
|
|
|
- <tr v-for="(operation,i) in selectedModel.operation" :id="'operation-'+i">
|
|
|
- <td>@{{ operation.operation_type }}</td>
|
|
|
- <td>@{{ operation.strategy }}</td>
|
|
|
- <td>@{{ operation.name }}</td>
|
|
|
- <td class="cursor-pointer" @click="showOperationItem(i)"><span class="fa" :class="operationItems['_'+i] === true ? 'fa-angle-double-down' : 'fa-angle-double-right'"></span>@{{ operation.items.length }}条策略</td>
|
|
|
- <td @mouseenter="textClass($event,true)" @mouseleave="textClass($event,false)"><div class="cursor-pointer text-overflow-replace-100">@{{ operation.featureFormat }}</div></td>
|
|
|
- <td @mouseenter="textClass($event,true)" @mouseleave="textClass($event,false)"><div class="cursor-pointer text-overflow-replace-100">@{{ operation.remark }}</div></td>
|
|
|
- </tr>
|
|
|
- </table>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="card" id="express-card">
|
|
|
@@ -65,12 +93,56 @@
|
|
|
<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">
|
|
|
- <div class="row">
|
|
|
+ <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">
|
|
|
+ </div>--}}
|
|
|
+ {{--<div class="row">
|
|
|
<label class="text-primary col-2">详情</label>
|
|
|
<table class="table table-sm col-10">
|
|
|
<tr>
|
|
|
@@ -84,7 +156,7 @@
|
|
|
<td>@{{ item.additional_weight_price }}</td>
|
|
|
</tr>
|
|
|
</table>
|
|
|
- </div>
|
|
|
+ </div>--}}
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="card" id="logistic-card">
|