_three.blade.php 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  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 small">
  108. <label v-for="(logistic,j) in express.logistics" class="m-0">@{{ poolMapping.logistics[logistic] }}</label>
  109. </div>
  110. </td>
  111. <td>@{{ express.name }}</td>
  112. <td>@{{ express.initial_weight }}</td>
  113. <td>@{{ express.additional_weight }}</td>
  114. <td @click="show('express-item-'+i)" class="cursor-pointer">
  115. <span class="fa" :class="upList['express-item-'+i] ? 'fa-angle-double-right' : 'fa-angle-double-down'"></span>
  116. &nbsp;@{{ express.items.length }} 省份</td>
  117. </tr>
  118. <tr>
  119. <td colspan="5">
  120. <div :id="'express-item-'+i" class="offset-3">
  121. <table class="table table-sm col-10">
  122. <tr>
  123. <th>省份</th>
  124. <th>首重价格</th>
  125. <th>续重价格</th>
  126. </tr>
  127. <tr v-for="(item,i) in express.items">
  128. <td>@{{ poolMapping.provinces[item.province_id] }}</td>
  129. <td>@{{ item.initial_weight_price }}</td>
  130. <td>@{{ item.additional_weight_price }}</td>
  131. </tr>
  132. </table>
  133. </div>
  134. </td>
  135. </tr>
  136. </tbody>
  137. </table>
  138. </div>
  139. </div>
  140. <div class="card" id="logistic-card">
  141. <div class="card-header bg-light-info">
  142. <span class="pull-left font-weight-bold cursor-pointer" @click="show('logistic')"><span class="fa fa-truck"></span>&nbsp;物流</span>
  143. </div>
  144. <div class="card-body" id="logistic">
  145. <table class="table table-sm">
  146. <tr>
  147. <th>承运商</th>
  148. <th>名称</th>
  149. <th>单位一</th>
  150. <th>一区间值</th>
  151. <th>单位二</th>
  152. <th>二区间值</th>
  153. <th>提货费</th>
  154. <th>燃油附加费</th>
  155. <th>信息服务费</th>
  156. <th>详情</th>
  157. </tr>
  158. <tbody v-for="(logistic,i) in selectedModel.logistic">
  159. <tr>
  160. <td>
  161. <div class="text-overflow-warp-100 small">
  162. <label v-for="(logistic,j) in logistic.logistics" class="m-0">@{{ poolMapping.logistics[logistic] }}</label>
  163. </div>
  164. </td>
  165. <td>@{{ logistic.name }}</td>
  166. <td>@{{ poolMapping.units[logistic.unit_id] }}</td>
  167. <td>@{{ logistic.unit_range }}</td>
  168. <td>@{{ poolMapping.units[logistic.other_unit_id] }}</td>
  169. <td>@{{ logistic.other_unit_range }}</td>
  170. <td>@{{ logistic.pick_up_price }}</td>
  171. <td>@{{ logistic.fuel_price }}</td>
  172. <td>@{{ logistic.service_price }}</td>
  173. <td @click="show('logistic-item-'+i)" class="cursor-pointer">
  174. <span class="fa" :class="upList['logistic-item-'+i] ? 'fa-angle-double-right' : 'fa-angle-double-down'"></span>
  175. &nbsp;@{{ logistic.items.length }} 地区
  176. </td>
  177. </tr>
  178. <tr>
  179. <td colspan="9">
  180. <div :id="'logistic-item-'+i" class="offset-1">
  181. <table class="table table-sm">
  182. <tr>
  183. <th>省份</th>
  184. <th>市区</th>
  185. <th>单位</th>
  186. <th>区间</th>
  187. <th>单价</th>
  188. <th>送货费</th>
  189. <th>起始计费</th>
  190. <th>起始计数</th>
  191. <th>费率(%)</th>
  192. </tr>
  193. <tr v-for="item in logistic.items">
  194. <td class="font-weight-bold">@{{ poolMapping.provinces[item.province_id] }}</td>
  195. <td class="font-weight-bold">@{{ poolMapping.cities[item.city_id] }}</td>
  196. <td>@{{ poolMapping.units[item.unit_id] }}</td>
  197. <td>@{{ item.range }}</td>
  198. <td>@{{ item.unit_price }}</td>
  199. <td>@{{ item.delivery_fee }}</td>
  200. <td>@{{ item.initial_fee }}</td>
  201. <td>@{{ item.initial_amount }}</td>
  202. <td>@{{ item.rate }}<span v-if="item.rate" class="font-weight-bold">&nbsp;%</span></td>
  203. </tr>
  204. </table>
  205. </div>
  206. </td>
  207. </tr>
  208. </tbody>
  209. </table>
  210. </div>
  211. </div>
  212. <div class="card" id="directLogistic-card">
  213. <div class="card-header bg-light-info">
  214. <span class="pull-left font-weight-bold cursor-pointer" @click="show('directLogistic')"><span class="fa fa-rocket"></span>&nbsp;直发</span>
  215. </div>
  216. <div class="card-body" id="directLogistic">
  217. <div class="row">
  218. <label class="col-4">名称:<b>@{{ selectedModel.express.name }}</b></label>
  219. <label class="col-4">首重值(KG):<b>@{{ selectedModel.express.initial_weight }}</b></label>
  220. <label class="col-4">续重值(KG):<b>@{{ selectedModel.express.additional_weight }}</b></label>
  221. </div>
  222. <div class="row">
  223. <label class="text-primary col-2">详情</label>
  224. <table class="table table-sm col-10">
  225. <tr>
  226. <th>省份</th>
  227. <th>首重价格</th>
  228. <th>续重价格</th>
  229. </tr>
  230. <tr v-for="(item,i) in selectedModel.express.items">
  231. <td>@{{ poolMapping.provinces[item.province_id] }}</td>
  232. <td>@{{ item.initial_weight_price }}</td>
  233. <td>@{{ item.additional_weight_price }}</td>
  234. </tr>
  235. </table>
  236. </div>
  237. </div>
  238. </div>
  239. </div>
  240. <div class="col-6">
  241. <div class="card">
  242. <div class="card-header bg-light-info">
  243. <button type="button" class="btn mr-1" :class="type == 'storage' ? 'btn-primary text-white' : 'btn-outline-primary'" @click="switchType('storage')">仓储</button>
  244. <button type="button" class="btn mr-1" :class="type == 'operation' ? 'btn-primary text-white' : 'btn-outline-primary'" @click="switchType('operation')">作业</button>
  245. <button type="button" class="btn mr-1" :class="type == 'express' ? 'btn-primary text-white' : 'btn-outline-primary'" @click="switchType('express')">快递</button>
  246. <button type="button" class="btn mr-1" :class="type == 'logistic' ? 'btn-primary text-white' : 'btn-outline-primary'" @click="switchType('logistic')">物流</button>
  247. <button type="button" class="btn mr-1" :class="type == 'directLogistic' ? 'btn-primary text-white' : 'btn-outline-primary'" @click="switchType('directLogistic')">直发</button>
  248. </div>
  249. <div class="card-body">
  250. <div v-if="type == 'storage'">
  251. @include("customer.project.part._storage")
  252. </div>
  253. <div v-show="type == 'operation'">
  254. @include("customer.project.part._operation")
  255. @include("customer.project.part._addFeature")
  256. </div>
  257. <div v-show="type == 'express'">
  258. @include("customer.project.part._express")
  259. </div>
  260. <div v-show="type == 'logistic'">
  261. @include("customer.project.part._logistic")
  262. @include("customer.project.part._logisticDetail")
  263. </div>
  264. <div v-show="type == 'directLogistic'">
  265. @include("customer.project.part._directLogistic")
  266. </div>
  267. <div class="row mt-3" v-if="base=='three'">
  268. <div class="col-3"></div>
  269. <button type="button" class="btn btn-success ml-1 col-6" @click="saveModel()">保存</button>
  270. </div>
  271. </div>
  272. </div>
  273. </div>
  274. </div>