_three.blade.php 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. <div class="row">
  2. <div class="col-6" id="parent">
  3. <div class="card">
  4. <div class="card-header bg-light-info">
  5. <span class="pull-left font-weight-bold cursor-pointer" @click="show('storage')"><span class="fa fa-cubes"></span>&nbsp;仓储</span>
  6. </div>
  7. <div class="card-body" id="storage">
  8. <table class="table table-sm">
  9. <tr>
  10. <th>计费类型</th>
  11. <th>用仓类型</th>
  12. <th>起租面积</th>
  13. <th>单价</th>
  14. <th>单位</th>
  15. <th>减免类型</th>
  16. <th>减免值</th>
  17. </tr>
  18. <tr v-for="item in selectedModel.storage">
  19. <td>@{{ item.counting_type }}</td>
  20. <td>@{{ item.using_type }}</td>
  21. <td>@{{ item.minimum_area }}</td>
  22. <td>@{{ item.price }}</td>
  23. <td>@{{ item.discount_type }}</td>
  24. <td>@{{ item.discount_value }}</td>
  25. <td>@{{ poolMapping.units[item.unit_id] }}</td>
  26. </tr>
  27. </table>
  28. </div>
  29. </div>
  30. <div class="card" id="operation-card">
  31. <div class="card-header bg-light-info">
  32. <span class="pull-left font-weight-bold cursor-pointer" @click="show('operation')"><span class="fa fa-suitcase"></span>&nbsp;作业</span>
  33. </div>
  34. <div class="card-body" id="operation">
  35. <div class="container-fluid">
  36. <div class="row">
  37. <div>入库</div>
  38. </div>
  39. <div class="row">
  40. <div>入库</div>
  41. </div>
  42. </div>
  43. <table class="table table-sm">
  44. <tr>
  45. <th>操作类型</th>
  46. <th>计费策略</th>
  47. <th>名称</th>
  48. <th>子策略</th>
  49. <th>特征</th>
  50. <th>备注</th>
  51. </tr>
  52. <tr v-for="(operation,i) in selectedModel.operation" :id="'operation-'+i">
  53. <td>@{{ operation.operation_type }}</td>
  54. <td>@{{ operation.strategy }}</td>
  55. <td>@{{ operation.name }}</td>
  56. <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>
  57. <td @mouseenter="textClass($event,true)" @mouseleave="textClass($event,false)"><div class="cursor-pointer text-overflow-replace-100">@{{ operation.featureFormat }}</div></td>
  58. <td @mouseenter="textClass($event,true)" @mouseleave="textClass($event,false)"><div class="cursor-pointer text-overflow-replace-100">@{{ operation.remark }}</div></td>
  59. </tr>
  60. </table>
  61. </div>
  62. </div>
  63. <div class="card" id="express-card">
  64. <div class="card-header bg-light-info">
  65. <span class="pull-left font-weight-bold cursor-pointer" @click="show('express')"><span class="fa fa-cube"></span>&nbsp;快递</span>
  66. </div>
  67. <div class="card-body" id="express">
  68. <div class="row">
  69. <label class="col-4">名称:<b>@{{ selectedModel.express.name }}</b></label>
  70. <label class="col-4">首重值(KG):<b>@{{ selectedModel.express.initial_weight }}</b></label>
  71. <label class="col-4">续重值(KG):<b>@{{ selectedModel.express.additional_weight }}</b></label>
  72. </div>
  73. <div class="row">
  74. <label class="text-primary col-2">详情</label>
  75. <table class="table table-sm col-10">
  76. <tr>
  77. <th>省份</th>
  78. <th>首重价格</th>
  79. <th>续重价格</th>
  80. </tr>
  81. <tr v-for="(item,i) in selectedModel.express.items">
  82. <td>@{{ poolMapping.provinces[item.province_id] }}</td>
  83. <td>@{{ item.initial_weight_price }}</td>
  84. <td>@{{ item.additional_weight_price }}</td>
  85. </tr>
  86. </table>
  87. </div>
  88. </div>
  89. </div>
  90. <div class="card" id="logistic-card">
  91. <div class="card-header bg-light-info">
  92. <span class="pull-left font-weight-bold cursor-pointer" @click="show('logistic')"><span class="fa fa-truck"></span>&nbsp;物流</span>
  93. </div>
  94. <div class="card-body" id="logistic">
  95. <div class="row">
  96. <label class="col-4">名称:<b>@{{ selectedModel.express.name }}</b></label>
  97. <label class="col-4">首重值(KG):<b>@{{ selectedModel.express.initial_weight }}</b></label>
  98. <label class="col-4">续重值(KG):<b>@{{ selectedModel.express.additional_weight }}</b></label>
  99. </div>
  100. <div class="row">
  101. <label class="text-primary col-2">详情</label>
  102. <table class="table table-sm col-10">
  103. <tr>
  104. <th>省份</th>
  105. <th>首重价格</th>
  106. <th>续重价格</th>
  107. </tr>
  108. <tr v-for="(item,i) in selectedModel.express.items">
  109. <td>@{{ poolMapping.provinces[item.province_id] }}</td>
  110. <td>@{{ item.initial_weight_price }}</td>
  111. <td>@{{ item.additional_weight_price }}</td>
  112. </tr>
  113. </table>
  114. </div>
  115. </div>
  116. </div>
  117. <div class="card" id="directLogistic-card">
  118. <div class="card-header bg-light-info">
  119. <span class="pull-left font-weight-bold cursor-pointer" @click="show('directLogistic')"><span class="fa fa-rocket"></span>&nbsp;直发</span>
  120. </div>
  121. <div class="card-body" id="directLogistic">
  122. <div class="row">
  123. <label class="col-4">名称:<b>@{{ selectedModel.express.name }}</b></label>
  124. <label class="col-4">首重值(KG):<b>@{{ selectedModel.express.initial_weight }}</b></label>
  125. <label class="col-4">续重值(KG):<b>@{{ selectedModel.express.additional_weight }}</b></label>
  126. </div>
  127. <div class="row">
  128. <label class="text-primary col-2">详情</label>
  129. <table class="table table-sm col-10">
  130. <tr>
  131. <th>省份</th>
  132. <th>首重价格</th>
  133. <th>续重价格</th>
  134. </tr>
  135. <tr v-for="(item,i) in selectedModel.express.items">
  136. <td>@{{ poolMapping.provinces[item.province_id] }}</td>
  137. <td>@{{ item.initial_weight_price }}</td>
  138. <td>@{{ item.additional_weight_price }}</td>
  139. </tr>
  140. </table>
  141. </div>
  142. </div>
  143. </div>
  144. </div>
  145. <div class="col-6">
  146. <div class="card">
  147. <div class="card-header bg-light-info">
  148. <button type="button" class="btn mr-1" :class="type == 'storage' ? 'btn-primary text-white' : 'btn-outline-primary'" @click="switchType('storage')">仓储</button>
  149. <button type="button" class="btn mr-1" :class="type == 'operation' ? 'btn-primary text-white' : 'btn-outline-primary'" @click="switchType('operation')">作业</button>
  150. <button type="button" class="btn mr-1" :class="type == 'express' ? 'btn-primary text-white' : 'btn-outline-primary'" @click="switchType('express')">快递</button>
  151. <button type="button" class="btn mr-1" :class="type == 'logistic' ? 'btn-primary text-white' : 'btn-outline-primary'" @click="switchType('logistic')">物流</button>
  152. <button type="button" class="btn mr-1" :class="type == 'directLogistic' ? 'btn-primary text-white' : 'btn-outline-primary'" @click="switchType('directLogistic')">直发</button>
  153. </div>
  154. <div class="card-body">
  155. <div v-if="type == 'storage'">
  156. @include("customer.project.part._storage")
  157. </div>
  158. <div v-show="type == 'operation'">
  159. @include("customer.project.part._operation")
  160. @include("customer.project.part._addFeature")
  161. </div>
  162. <div v-show="type == 'express'">
  163. @include("customer.project.part._express")
  164. </div>
  165. <div v-show="type == 'logistic'">
  166. @include("customer.project.part._logistic")
  167. @include("customer.project.part._logisticDetail")
  168. </div>
  169. <div v-show="type == 'directLogistic'">
  170. @include("customer.project.part._directLogistic")
  171. </div>
  172. <div class="row mt-3" v-if="base=='three'">
  173. <div class="col-3"></div>
  174. <button type="button" class="btn btn-success ml-1 col-6" @click="saveModel()">保存</button>
  175. </div>
  176. </div>
  177. </div>
  178. </div>
  179. </div>