_three.blade.php 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  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 font-weight-bold">
  37. <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>
  38. </div>
  39. <div class="container-fluid" v-for="(operation,i) in selectedModel.operation" v-if="operation.operation_type === '入库'" id="operation-list-in">
  40. <div class="row offset-1">
  41. <label class="font-weight-bold cursor-pointer" @click="show('operation-item-'+i)">
  42. <span class="fa" :class="upList['operation-item-'+i] ? 'fa-caret-right' : 'fa-caret-down'"></span>
  43. &nbsp;@{{ operation.strategy }}:
  44. </label>
  45. <label>@{{ operation.name }}</label>
  46. <label v-if="operation.remark" class="text-secondary">&nbsp;&nbsp;(@{{ operation.remark }})</label>
  47. </div>
  48. <div class="row offset-1 small mt-0" style="background-color: RGB(248,248,248)" v-if="operation.strategy === '特征'">
  49. @{{ operation.featureFormat }}
  50. </div>
  51. <div class="container-fluid offset-2" :id="'operation-item-'+i">
  52. <div v-for="item in operation.items" class="container-fluid">
  53. <div class="row"><label>@{{ item.strategy }}</label>:
  54. <b>@{{ item.amount }}</b>/@{{ poolMapping.units[item.unit_id] }} (<b>@{{ item.unit_price }}</b>元)
  55. </div>
  56. <div class="row small mt-0" style="background-color: RGB(248,248,248)">
  57. @{{ item.featureFormat }}
  58. </div>
  59. </div>
  60. </div>
  61. </div>
  62. <div class="row font-weight-bold">
  63. <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>
  64. </div>
  65. <div class="container-fluid" v-for="(operation,i) in selectedModel.operation" v-if="operation.operation_type === '出库'" id="operation-list-out">
  66. <div class="row offset-1">
  67. <label class="font-weight-bold cursor-pointer" @click="show('operation-item-'+i)">
  68. <span class="fa" :class="upList['operation-item-'+i] ? 'fa-caret-right' : 'fa-caret-down'"></span>
  69. &nbsp;@{{ operation.strategy }}:
  70. </label>
  71. <label>@{{ operation.name }}</label>
  72. <label v-if="operation.remark" class="text-secondary">&nbsp;&nbsp;(@{{ operation.remark }})</label>
  73. </div>
  74. <div class="row offset-1 small mt-0" style="background-color: RGB(248,248,248)" v-if="operation.strategy === '特征'">
  75. @{{ operation.featureFormat }}
  76. </div>
  77. <div class="container-fluid offset-2" :id="'operation-item-'+i">
  78. <div v-for="item in operation.items" class="container-fluid">
  79. <div class="row"><label>@{{ item.strategy }}</label>:
  80. <b>@{{ item.amount }}</b>/@{{ poolMapping.units[item.unit_id] }} (<b>@{{ item.unit_price }}</b>元)
  81. </div>
  82. <div class="row small mt-0" style="background-color: RGB(248,248,248)">
  83. @{{ item.featureFormat }}
  84. </div>
  85. </div>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. </div>
  91. <div class="card" id="express-card">
  92. <div class="card-header bg-light-info">
  93. <span class="pull-left font-weight-bold cursor-pointer" @click="show('express')"><span class="fa fa-cube"></span>&nbsp;快递</span>
  94. </div>
  95. <div class="card-body" id="express">
  96. <table class="table table-sm">
  97. <tr>
  98. <th>承运商</th>
  99. <th>名称</th>
  100. <th>首重值(KG)</th>
  101. <th>续重值(KG)</th>
  102. <th>详情</th>
  103. </tr>
  104. <tbody v-for="(express,i) in selectedModel.express">
  105. <tr>
  106. <td>
  107. <div class="text-overflow-warp-100">
  108. <label v-for="(logistic,j) in express.logistics">
  109. @{{ poolMapping.provinces[logistic] }}<label v-if="express.logistics && j<(express.logistics.length-1)">,</label>
  110. </label>
  111. </div>
  112. </td>
  113. <td>@{{ express.name }}</td>
  114. <td>@{{ express.initial_weight }}</td>
  115. <td>@{{ express.additional_weight }}</td>
  116. <td @click="show('express-item-'+i)">
  117. <span class="fa" :class="upList['express-item-'+i] ? 'fa-angle-double-right' : 'fa-angle-double-down'"></span>
  118. &nbsp;@{{ express.items.length }} 省份</td>
  119. </tr>
  120. <tr>
  121. <td colspan="5">
  122. <div :id="'express-item-'+i">
  123. <table class="table table-sm col-10">
  124. <tr>
  125. <th>省份</th>
  126. <th>首重价格</th>
  127. <th>续重价格</th>
  128. </tr>
  129. <tr v-for="(item,i) in express.items">
  130. <td>@{{ poolMapping.provinces[item.province_id] }}</td>
  131. <td>@{{ item.initial_weight_price }}</td>
  132. <td>@{{ item.additional_weight_price }}</td>
  133. </tr>
  134. </table>
  135. </div>
  136. </td>
  137. </tr>
  138. </tbody>
  139. </table>
  140. {{-- <div class="row">
  141. <label class="col-4">名称:<b>@{{ selectedModel.express.name }}</b></label>
  142. <label class="col-4">首重值(KG):<b>@{{ selectedModel.express.initial_weight }}</b></label>
  143. <label class="col-4">续重值(KG):<b>@{{ selectedModel.express.additional_weight }}</b></label>
  144. </div>--}}
  145. {{--<div class="row">
  146. <label class="text-primary col-2">详情</label>
  147. <table class="table table-sm col-10">
  148. <tr>
  149. <th>省份</th>
  150. <th>首重价格</th>
  151. <th>续重价格</th>
  152. </tr>
  153. <tr v-for="(item,i) in selectedModel.express.items">
  154. <td>@{{ poolMapping.provinces[item.province_id] }}</td>
  155. <td>@{{ item.initial_weight_price }}</td>
  156. <td>@{{ item.additional_weight_price }}</td>
  157. </tr>
  158. </table>
  159. </div>--}}
  160. </div>
  161. </div>
  162. <div class="card" id="logistic-card">
  163. <div class="card-header bg-light-info">
  164. <span class="pull-left font-weight-bold cursor-pointer" @click="show('logistic')"><span class="fa fa-truck"></span>&nbsp;物流</span>
  165. </div>
  166. <div class="card-body" id="logistic">
  167. <div class="row">
  168. <label class="col-4">名称:<b>@{{ selectedModel.express.name }}</b></label>
  169. <label class="col-4">首重值(KG):<b>@{{ selectedModel.express.initial_weight }}</b></label>
  170. <label class="col-4">续重值(KG):<b>@{{ selectedModel.express.additional_weight }}</b></label>
  171. </div>
  172. <div class="row">
  173. <label class="text-primary col-2">详情</label>
  174. <table class="table table-sm col-10">
  175. <tr>
  176. <th>省份</th>
  177. <th>首重价格</th>
  178. <th>续重价格</th>
  179. </tr>
  180. <tr v-for="(item,i) in selectedModel.express.items">
  181. <td>@{{ poolMapping.provinces[item.province_id] }}</td>
  182. <td>@{{ item.initial_weight_price }}</td>
  183. <td>@{{ item.additional_weight_price }}</td>
  184. </tr>
  185. </table>
  186. </div>
  187. </div>
  188. </div>
  189. <div class="card" id="directLogistic-card">
  190. <div class="card-header bg-light-info">
  191. <span class="pull-left font-weight-bold cursor-pointer" @click="show('directLogistic')"><span class="fa fa-rocket"></span>&nbsp;直发</span>
  192. </div>
  193. <div class="card-body" id="directLogistic">
  194. <div class="row">
  195. <label class="col-4">名称:<b>@{{ selectedModel.express.name }}</b></label>
  196. <label class="col-4">首重值(KG):<b>@{{ selectedModel.express.initial_weight }}</b></label>
  197. <label class="col-4">续重值(KG):<b>@{{ selectedModel.express.additional_weight }}</b></label>
  198. </div>
  199. <div class="row">
  200. <label class="text-primary col-2">详情</label>
  201. <table class="table table-sm col-10">
  202. <tr>
  203. <th>省份</th>
  204. <th>首重价格</th>
  205. <th>续重价格</th>
  206. </tr>
  207. <tr v-for="(item,i) in selectedModel.express.items">
  208. <td>@{{ poolMapping.provinces[item.province_id] }}</td>
  209. <td>@{{ item.initial_weight_price }}</td>
  210. <td>@{{ item.additional_weight_price }}</td>
  211. </tr>
  212. </table>
  213. </div>
  214. </div>
  215. </div>
  216. </div>
  217. <div class="col-6">
  218. <div class="card">
  219. <div class="card-header bg-light-info">
  220. <button type="button" class="btn mr-1" :class="type == 'storage' ? 'btn-primary text-white' : 'btn-outline-primary'" @click="switchType('storage')">仓储</button>
  221. <button type="button" class="btn mr-1" :class="type == 'operation' ? 'btn-primary text-white' : 'btn-outline-primary'" @click="switchType('operation')">作业</button>
  222. <button type="button" class="btn mr-1" :class="type == 'express' ? 'btn-primary text-white' : 'btn-outline-primary'" @click="switchType('express')">快递</button>
  223. <button type="button" class="btn mr-1" :class="type == 'logistic' ? 'btn-primary text-white' : 'btn-outline-primary'" @click="switchType('logistic')">物流</button>
  224. <button type="button" class="btn mr-1" :class="type == 'directLogistic' ? 'btn-primary text-white' : 'btn-outline-primary'" @click="switchType('directLogistic')">直发</button>
  225. </div>
  226. <div class="card-body">
  227. <div v-if="type == 'storage'">
  228. @include("customer.project.part._storage")
  229. </div>
  230. <div v-show="type == 'operation'">
  231. @include("customer.project.part._operation")
  232. @include("customer.project.part._addFeature")
  233. </div>
  234. <div v-show="type == 'express'">
  235. @include("customer.project.part._express")
  236. </div>
  237. <div v-show="type == 'logistic'">
  238. @include("customer.project.part._logistic")
  239. @include("customer.project.part._logisticDetail")
  240. </div>
  241. <div v-show="type == 'directLogistic'">
  242. @include("customer.project.part._directLogistic")
  243. </div>
  244. <div class="row mt-3" v-if="base=='three'">
  245. <div class="col-3"></div>
  246. <button type="button" class="btn btn-success ml-1 col-6" @click="saveModel()">保存</button>
  247. </div>
  248. </div>
  249. </div>
  250. </div>
  251. </div>