_three.blade.php 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  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. <table class="table table-sm">
  36. <tr>
  37. <th>操作类型</th>
  38. <th>计费策略</th>
  39. <th>名称</th>
  40. <th>子策略</th>
  41. <th>特征</th>
  42. <th>备注</th>
  43. </tr>
  44. <tr v-for="(operation,i) in selectedModel.operation" :id="'operation-'+i">
  45. <td>@{{ operation.operation_type }}</td>
  46. <td>@{{ operation.strategy }}</td>
  47. <td>@{{ operation.name }}</td>
  48. <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>
  49. <td @mouseenter="textClass($event,true)" @mouseleave="textClass($event,false)"><div class="cursor-pointer text-overflow-replace-100">@{{ operation.featureFormat }}</div></td>
  50. <td @mouseenter="textClass($event,true)" @mouseleave="textClass($event,false)"><div class="cursor-pointer text-overflow-replace-100">@{{ operation.remark }}</div></td>
  51. </tr>
  52. </table>
  53. </div>
  54. </div>
  55. <div class="card" id="express-card">
  56. <div class="card-header bg-light-info">
  57. <span class="pull-left font-weight-bold cursor-pointer" @click="show('express')"><span class="fa fa-cube"></span>&nbsp;快递</span>
  58. </div>
  59. <div class="card-body" id="express">
  60. <div class="row">
  61. <label class="col-4">名称:<b>@{{ selectedModel.express.name }}</b></label>
  62. <label class="col-4">首重值(KG):<b>@{{ selectedModel.express.initial_weight }}</b></label>
  63. <label class="col-4">续重值(KG):<b>@{{ selectedModel.express.additional_weight }}</b></label>
  64. </div>
  65. <div class="row">
  66. <label class="text-primary col-2">详情</label>
  67. <table class="table table-sm col-10">
  68. <tr>
  69. <th>省份</th>
  70. <th>首重价格</th>
  71. <th>续重价格</th>
  72. </tr>
  73. <tr v-for="(item,i) in selectedModel.express.items">
  74. <td>@{{ poolMapping.provinces[item.province_id] }}</td>
  75. <td>@{{ item.initial_weight_price }}</td>
  76. <td>@{{ item.additional_weight_price }}</td>
  77. </tr>
  78. </table>
  79. </div>
  80. </div>
  81. </div>
  82. <div class="card" id="logistic-card">
  83. <div class="card-header bg-light-info">
  84. <span class="pull-left font-weight-bold cursor-pointer" @click="show('logistic')"><span class="fa fa-truck"></span>&nbsp;物流</span>
  85. </div>
  86. <div class="card-body" id="logistic">
  87. <div class="row">
  88. <label class="col-4">名称:<b>@{{ selectedModel.express.name }}</b></label>
  89. <label class="col-4">首重值(KG):<b>@{{ selectedModel.express.initial_weight }}</b></label>
  90. <label class="col-4">续重值(KG):<b>@{{ selectedModel.express.additional_weight }}</b></label>
  91. </div>
  92. <div class="row">
  93. <label class="text-primary col-2">详情</label>
  94. <table class="table table-sm col-10">
  95. <tr>
  96. <th>省份</th>
  97. <th>首重价格</th>
  98. <th>续重价格</th>
  99. </tr>
  100. <tr v-for="(item,i) in selectedModel.express.items">
  101. <td>@{{ poolMapping.provinces[item.province_id] }}</td>
  102. <td>@{{ item.initial_weight_price }}</td>
  103. <td>@{{ item.additional_weight_price }}</td>
  104. </tr>
  105. </table>
  106. </div>
  107. </div>
  108. </div>
  109. <div class="card" id="directLogistic-card">
  110. <div class="card-header bg-light-info">
  111. <span class="pull-left font-weight-bold cursor-pointer" @click="show('directLogistic')"><span class="fa fa-rocket"></span>&nbsp;直发</span>
  112. </div>
  113. <div class="card-body" id="directLogistic">
  114. <div class="row">
  115. <label class="col-4">名称:<b>@{{ selectedModel.express.name }}</b></label>
  116. <label class="col-4">首重值(KG):<b>@{{ selectedModel.express.initial_weight }}</b></label>
  117. <label class="col-4">续重值(KG):<b>@{{ selectedModel.express.additional_weight }}</b></label>
  118. </div>
  119. <div class="row">
  120. <label class="text-primary col-2">详情</label>
  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 selectedModel.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. </div>
  135. </div>
  136. </div>
  137. <div class="col-6">
  138. <div class="card">
  139. <div class="card-header bg-light-info">
  140. <button type="button" class="btn mr-1" :class="type == 'storage' ? 'btn-primary text-white' : 'btn-outline-primary'" @click="switchType('storage')">仓储</button>
  141. <button type="button" class="btn mr-1" :class="type == 'operation' ? 'btn-primary text-white' : 'btn-outline-primary'" @click="switchType('operation')">作业</button>
  142. <button type="button" class="btn mr-1" :class="type == 'express' ? 'btn-primary text-white' : 'btn-outline-primary'" @click="switchType('express')">快递</button>
  143. <button type="button" class="btn mr-1" :class="type == 'logistic' ? 'btn-primary text-white' : 'btn-outline-primary'" @click="switchType('logistic')">物流</button>
  144. <button type="button" class="btn mr-1" :class="type == 'directLogistic' ? 'btn-primary text-white' : 'btn-outline-primary'" @click="switchType('directLogistic')">直发</button>
  145. </div>
  146. <div class="card-body">
  147. <div v-if="type == 'storage'">
  148. @include("customer.project.part._storage")
  149. </div>
  150. <div v-show="type == 'operation'">
  151. @include("customer.project.part._operation")
  152. @include("customer.project.part._addFeature")
  153. </div>
  154. <div v-show="type == 'express'">
  155. @include("customer.project.part._express")
  156. </div>
  157. <div v-show="type == 'logistic'">
  158. @include("customer.project.part._logistic")
  159. @include("customer.project.part._logisticDetail")
  160. </div>
  161. <div v-show="type == 'directLogistic'">
  162. @include("customer.project.part._directLogistic")
  163. </div>
  164. <div class="row mt-3" v-if="base=='three'">
  165. <div class="col-3"></div>
  166. <button type="button" class="btn btn-success ml-1 col-6" @click="saveModel()">保存</button>
  167. </div>
  168. </div>
  169. </div>
  170. </div>
  171. </div>