_three.blade.php 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437
  1. <div class="row">
  2. <div class="col-6" id="parent">
  3. <div class="card" id="storage-card">
  4. <div class="card-header bg-light-info row">
  5. <div class="col-3 pull-left font-weight-bold cursor-pointer text-secondary" @click="show('storage')"><span class="fa fa-align-justify"></span>&nbsp;仓储</div>
  6. <div class="col-6 text-center">
  7. <div v-if="audit.storage">
  8. @can("项目管理-项目-计费模型-审核")<button class="btn btn-sm btn-success" type="button" @click="auditOrRecoverModel('storage')">审核</button>
  9. <button class="btn btn-sm btn-danger" type="button" @click="auditOrRecoverModel('storage',false)">恢复</button>@endcan
  10. </div>
  11. </div>
  12. <div class="col-3 pull-right small mb-0 text-secondary" v-if="selectedModel.storage.length>0">双击下方已添加内容可编辑</div>
  13. </div>
  14. <div class="card-body" id="storage">
  15. <table class="table table-sm">
  16. <tr>
  17. <th>名称</th>
  18. <th>计费类型</th>
  19. <th>用仓类型</th>
  20. <th>起租面积</th>
  21. <th class="text-center">单价</th>
  22. <th>单位</th>
  23. <th>计时单位</th>
  24. <th>减免类型</th>
  25. <th>减免值</th>
  26. <th></th>
  27. </tr>
  28. <tr v-for="(item,i) in selectedModel.storage" style="cursor: pointer" @dblclick="editStorage(i)">
  29. <td>@{{ item.name }}</td>
  30. <td>@{{ item.counting_type }}</td>
  31. <td>@{{ item.using_type }}</td>
  32. <td>@{{ item.minimum_area }}</td>
  33. <td>
  34. <div v-if="item.amount_interval">
  35. <div v-for="(amount,i) in item.amount_interval" class="row text-nowrap">
  36. <b class="col-4 offset-1 m-0">@{{ item.price[i] }}</b>
  37. <label class="col-7 m-0">(@{{ item.amount_interval[i+1] ? amount+'-'+item.amount_interval[i+1] : amount+" +" }}单)</label>
  38. </div>
  39. </div>
  40. <div v-else><b>@{{ item.price[0] }}</b></div>
  41. </td>
  42. <td>@{{ poolMapping.units ? poolMapping.units[item.unit_id] : '' }}</td>
  43. <td>@{{ poolMapping.units ? poolMapping.units[item.time_unit_id] : '' }}</td>
  44. <td>@{{ item.discount_type }}</td>
  45. <td>@{{ item.discount_value }}</td>
  46. <td class="cursor-pointer" @click.stop="delStorage(item,i)"><span class="font-weight-bold text-danger">&times;</span></td>
  47. </tr>
  48. </table>
  49. </div>
  50. </div>
  51. <div class="card" id="operation-card">
  52. <div class="card-header bg-light-info row">
  53. <div class="col-3 pull-left font-weight-bold cursor-pointer text-secondary" @click="show('operation')"><span class="fa fa-align-justify"></span>&nbsp;作业</div>
  54. <div class="col-6 text-center">
  55. <div v-if="audit.operation">
  56. @can("项目管理-项目-计费模型-审核")<button class="btn btn-sm btn-success" type="button" @click="auditOrRecoverModel('operation')">审核</button>
  57. <button class="btn btn-sm btn-danger" type="button" @click="auditOrRecoverModel('operation',false)">恢复</button>@endcan
  58. </div>
  59. </div>
  60. <div class="col-3 pull-right small mb-0 text-secondary" v-if="selectedModel.operation.length>0">双击下方已添加内容可编辑</div>
  61. </div>
  62. <div class="card-body" id="operation">
  63. <div class="container-fluid">
  64. <div class="row font-weight-bold">
  65. <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>
  66. </div>
  67. <div id="operation-list-in">
  68. <div class="container-fluid" v-for="(operation,i) in selectedModel.operation"
  69. @dblclick="editOperation(i)" style="cursor: pointer" v-if="operation.operation_type === '入库'">
  70. <div class="row">
  71. <div class="col-9 offset-1">
  72. <label class="font-weight-bold cursor-pointer" @click.stop="show('operation-item-'+i)">
  73. <span class="fa" :class="upList['operation-item-'+i] ? 'fa-caret-right' : 'fa-caret-down'"></span>
  74. &nbsp;@{{ operation.strategy }}:
  75. </label>
  76. <label>@{{ operation.name }}</label><span class="badge badge-pill badge-danger" v-if="operation.isRejected">退</span>
  77. <label v-if="operation.remark" class="text-secondary">&nbsp;&nbsp;(@{{ operation.remark }})</label>
  78. <label v-if="operation.surcharge">耗材附加费:<b>@{{ operation.surcharge }}</b>/@{{ poolMapping.units ? poolMapping.units[operation.surcharge_unit_id] : '' }}</label>
  79. </div>
  80. <div class="col-1">
  81. <span class="cursor-pointer text-danger font-weight-bold"
  82. @click.stop="delOperation(operation,i)">&times;</span>
  83. </div>
  84. </div>
  85. <div class="row offset-1 small mt-0" style="background-color: RGB(248,248,248)" v-if="operation.strategy === '特征'">
  86. <span class="text-secondary">特征:</span>@{{ operation.featureFormat }}
  87. </div>
  88. <div class="container-fluid offset-2" v-if="operation.isSingle">
  89. 按单计费:<b>@{{ operation.total_price }}</b>&nbsp;元/单
  90. </div>
  91. <div class="container-fluid offset-2" :id="'operation-item-'+i">
  92. <div v-for="(item,j) in operation.items" class="container-fluid">
  93. <div class="row">
  94. <div class="col-10">
  95. <label>@{{ item.strategy }} <span v-if="item.strategy!='起步'">续费</span></label>:
  96. <b>@{{ item.amount }}</b>&nbsp;@{{ poolMapping.units ? poolMapping.units[item.unit_id] : '' }} / <b>@{{ item.unit_price }}</b>元
  97. <span v-if="operation.isDiscount">&nbsp;(满减单价:<b>@{{ item.discount_price }}元</b>)</span>
  98. </div>
  99. <div class="col-1">
  100. <span class="cursor-pointer text-danger font-weight-bold"
  101. @click.stop="deleteOperationItem(item,j,i)">&times;</span>
  102. </div>
  103. </div>
  104. <div class="row small mt-0 ml-1" style="background-color: RGB(248,248,248)" v-if="item.strategy == '特征'">
  105. @{{ item.featureFormat }}
  106. </div>
  107. </div>
  108. </div>
  109. </div>
  110. </div>
  111. <div class="row font-weight-bold">
  112. <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>
  113. </div>
  114. <div id="operation-list-out">
  115. <div class="container-fluid" v-for="(operation,i) in selectedModel.operation"
  116. @dblclick="editOperation(i)" style="cursor: pointer" v-if="operation.operation_type === '出库'">
  117. <div class="row">
  118. <div class="col-9 offset-1">
  119. <label class="font-weight-bold cursor-pointer" @click.stop="show('operation-item-'+i)">
  120. <span class="fa" :class="upList['operation-item-'+i] ? 'fa-caret-right' : 'fa-caret-down'"></span>
  121. &nbsp;@{{ operation.strategy }}:
  122. </label>
  123. <label>@{{ operation.name }}</label>
  124. <label v-if="operation.remark" class="text-secondary">&nbsp;&nbsp;(@{{ operation.remark }})</label>
  125. <label v-if="operation.surcharge">耗材附加费:<b>@{{ operation.surcharge }}</b>/@{{ poolMapping.units ? poolMapping.units[operation.surcharge_unit_id] : '' }}</label>
  126. </div>
  127. <div class="col-1">
  128. <span class="cursor-pointer text-danger font-weight-bold"
  129. @click.stop="delOperation(operation,i)">&times;</span>
  130. </div>
  131. </div>
  132. <div class="row offset-1 small mt-0" style="background-color: RGB(248,248,248)" v-if="operation.strategy === '特征'">
  133. <span class="text-secondary">特征:</span>@{{ operation.featureFormat }}
  134. </div>
  135. <div class="container-fluid offset-2" v-if="operation.isSingle">
  136. 按单计费:<b>@{{ operation.total_price }}</b>&nbsp;元/单<span v-if="operation.isDiscount">&nbsp;(满减价:
  137. <span v-for="(value,k) in operation.total_discount_price">
  138. <span v-if="k!=0">,</span>
  139. @{{ operation.discount_count[k] ? (operation.discount_count[k+1] ? operation.discount_count[k]+'-'+(operation.discount_count[k+1]-1)+' 单' : operation.discount_count[k]+'+ 单') : '' }}(<b>@{{ value }}</b>元)
  140. </span>)</span>
  141. </div>
  142. <div class="container-fluid offset-2" :id="'operation-item-'+i">
  143. <div v-for="(item,j) in operation.items" class="container-fluid">
  144. <div class="row">
  145. <div class="col-10">
  146. <label>@{{ item.strategy }}<span v-if="item.strategy!='起步'">续费</span></label>:
  147. <span v-if="item.amount > 0"><b>@{{ item.amount }}</b>&nbsp;@{{ poolMapping.units ? poolMapping.units[item.unit_id] : '' }} /</span><b>&nbsp;@{{ item.unit_price }}</b>元
  148. <span class="badge badge-secondary" v-if="item.odd_price">零头价:@{{ item.odd_price }}元</span>
  149. <span v-if="operation.isDiscount">&nbsp;(满减单价:
  150. <span v-for="(value,k) in item.discount_price">
  151. <span v-if="k!=0">,</span>
  152. @{{ operation.discount_count[k] ? (operation.discount_count[k+1] ? operation.discount_count[k]+'-'+(operation.discount_count[k+1]-1)+' 单' : operation.discount_count[k]+'+ 单') : '' }}(<b>@{{ value }}</b>元)
  153. </span>
  154. )</span>
  155. </div>
  156. <div class="col-1">
  157. <span class="cursor-pointer text-danger font-weight-bold"
  158. v-if="item.strategy == '特征'" @click.stop="deleteOperationItem(item,j,i)">&times;</span>
  159. </div>
  160. </div>
  161. <div class="row small mt-0 ml-1" style="background-color: RGB(248,248,248)" v-if="item.strategy == '特征'">
  162. @{{ item.featureFormat }}
  163. </div>
  164. </div>
  165. </div>
  166. </div>
  167. </div>
  168. </div>
  169. </div>
  170. </div>
  171. <div class="card" id="express-card">
  172. <div class="card-header bg-light-info row">
  173. <div class="col-3 pull-left font-weight-bold cursor-pointer text-secondary" @click="show('express')"><span class="fa fa-align-justify"></span>&nbsp;快递</div>
  174. <div class="col-6 text-center">
  175. <div v-if="audit.express">
  176. @can("项目管理-项目-计费模型-审核")<button class="btn btn-sm btn-success" type="button" @click="auditOrRecoverModel('express')">审核</button>
  177. <button class="btn btn-sm btn-danger" type="button" @click="auditOrRecoverModel('express',false)">恢复</button>@endcan
  178. </div>
  179. </div>
  180. <div class="col-3 pull-right small mb-0 text-secondary" v-if="selectedModel.express.length>0">双击下方已添加内容可编辑</div>
  181. </div>
  182. <div class="card-body" id="express">
  183. <table class="table table-sm">
  184. <tr>
  185. <th>承运商</th>
  186. <th>名称</th>
  187. <th>首重值(KG)</th>
  188. <th>续重值(KG)</th>
  189. <th>详情</th>
  190. <th></th>
  191. </tr>
  192. <tbody v-for="(express,i) in selectedModel.express" @dblclick="editExpress(i)" style="cursor: pointer">
  193. <tr>
  194. <td>
  195. <div class="text-overflow-warp-100 small">
  196. <label v-for="(logistic,j) in express.logistics" class="m-0">@{{ poolMapping.logistics ? poolMapping.logistics[logistic] : '' }}</label>
  197. </div>
  198. </td>
  199. <td>@{{ express.name }}</td>
  200. <td>@{{ express.initial_weight }}</td>
  201. <td>@{{ express.additional_weight }}</td>
  202. <td @click.stop="show('express-item-'+i)" class="cursor-pointer">
  203. <span class="fa" :class="upList['express-item-'+i] ? 'fa-angle-double-right' : 'fa-angle-double-down'"></span>
  204. &nbsp;@{{ express.items.length }} 省份</td>
  205. <td>
  206. <span class="cursor-pointer text-danger font-weight-bold" @click.stop="delExpress(express,i)">&times;</span>
  207. </td>
  208. </tr>
  209. <tr>
  210. <td colspan="5">
  211. <div :id="'express-item-'+i" class="offset-3 up overflow-scrollbar-200">
  212. <table class="table table-sm col-10 text-nowrap">
  213. <tr>
  214. <th>省份</th>
  215. <template v-if="express.isInterval">
  216. <th v-for="(amount,i) in express.amount_interval" class="text-center" :colspan="express.weight_interval[i] ? express.weight_interval[i].length : 1">
  217. 首重价格(@{{ (express.amount_interval[i+1]) ? (express.amount_interval[i]+'-'+express.amount_interval[i+1]) : (express.amount_interval[i]+' +') }}单)
  218. </th>
  219. <th v-for="(amount,i) in express.amount_interval" class="text-center" :colspan="express.weight_interval[i] ? express.weight_interval[i].length : 1">
  220. 续重价格(@{{ (express.amount_interval[i+1]) ? (express.amount_interval[i]+'-'+express.amount_interval[i+1]) : (express.amount_interval[i]+' +') }}单)
  221. </th>
  222. </template>
  223. <template v-else>
  224. <th>首重价格</th>
  225. <th>续重价格</th>
  226. </template>
  227. <th></th>
  228. </tr>
  229. <tr v-if="express.isInterval">
  230. <th></th>
  231. <template v-for="(amount,j) in express.amount_interval">
  232. <th v-for="(weight,k) in express.weight_interval[j]">
  233. 重(@{{ express.weight_interval[j][k+1] ? (express.weight_interval[j][k]+'-'+express.weight_interval[j][k+1]) : (express.weight_interval[j][k]+' +') }}kg)
  234. </th>
  235. <th v-if="express.weight_interval[j].length==0">重(0 +kg)</th>
  236. </template>
  237. <template v-for="(amount,j) in express.amount_interval">
  238. <th v-for="(weight,k) in express.weight_interval[j]">
  239. 重(@{{ express.weight_interval[j][k+1] ? (express.weight_interval[j][k]+'-'+express.weight_interval[j][k+1]) : (express.weight_interval[j][k]+' +') }}kg)
  240. </th>
  241. <th v-if="express.weight_interval[j].length==0">重(0 +kg)</th>
  242. </template>
  243. </tr>
  244. <tr v-for="(item,j) in express.items">
  245. <td>@{{ poolMapping.provinces ? poolMapping.provinces[item.province_id] : '' }}</td>
  246. <template v-for="arr in item.initial_weight_price">
  247. <td v-for="init in arr">@{{ init }}</td>
  248. </template>
  249. <template v-for="arr in item.additional_weight_price">
  250. <td v-for="add in arr">@{{ add }}</td>
  251. </template>
  252. <td>
  253. <span class="cursor-pointer text-danger font-weight-bold" @click.stop="deleteExpressItem(item,j,i)">&times;</span>
  254. </td>
  255. </tr>
  256. </table>
  257. </div>
  258. </td>
  259. </tr>
  260. </tbody>
  261. </table>
  262. </div>
  263. </div>
  264. <div class="card" id="logistic-card">
  265. <div class="card-header bg-light-info row">
  266. <div class="col-3 pull-left font-weight-bold cursor-pointer text-secondary" @click="show('logistic')"><span class="fa fa-align-justify"></span>&nbsp;物流</div>
  267. <div class="col-6 text-center">
  268. <div v-if="audit.logistic">
  269. @can("项目管理-项目-计费模型-审核")<button class="btn btn-sm btn-success" type="button" @click="auditOrRecoverModel('logistic')">审核</button>
  270. <button class="btn btn-sm btn-danger" type="button" @click="auditOrRecoverModel('logistic',false)">恢复</button>@endcan
  271. </div>
  272. </div>
  273. <div class="col-3 pull-right small mb-0 text-secondary" v-if="selectedModel.logistic.length>0">双击下方已添加内容可编辑</div>
  274. </div>
  275. <div class="card-body" id="logistic">
  276. <table class="table table-sm">
  277. <tr>
  278. <th>承运商</th>
  279. <th>名称</th>
  280. <th>单位一</th>
  281. <th>一区间值</th>
  282. <th>单位二</th>
  283. <th>二区间值</th>
  284. <th>提货费</th>
  285. <th>燃油附加费</th>
  286. <th>信息服务费</th>
  287. <th>详情</th>
  288. <th></th>
  289. </tr>
  290. <tbody v-for="(logistic,i) in selectedModel.logistic" @dblclick="editLogistic(i)" style="cursor: pointer">
  291. <tr>
  292. <td>
  293. <div class="text-overflow-warp-100 small">
  294. <label v-for="(logistic,j) in logistic.logistics" class="m-0">@{{ poolMapping.logistics ? poolMapping.logistics[logistic] : '' }}</label>
  295. </div>
  296. </td>
  297. <td>@{{ logistic.name }}</td>
  298. <td>@{{ poolMapping.units ? poolMapping.units[logistic.unit_id] : '' }}</td>
  299. <td>@{{ logistic.unit_range }}</td>
  300. <td>@{{ poolMapping.units ? poolMapping.units[logistic.other_unit_id] : '' }}</td>
  301. <td>@{{ logistic.other_unit_range }}</td>
  302. <td>@{{ logistic.pick_up_price }}</td>
  303. <td>@{{ logistic.fuel_price }}</td>
  304. <td>@{{ logistic.service_price }}</td>
  305. <td @click.stop="show('logistic-item-'+i)" class="cursor-pointer">
  306. <span class="fa" :class="upList['logistic-item-'+i] ? 'fa-angle-double-right' : 'fa-angle-double-down'"></span>
  307. &nbsp;@{{ logistic.items.length }} 地区
  308. </td>
  309. <td>
  310. <span class="cursor-pointer text-danger font-weight-bold" @click.stop="delLogistic(logistic,i)">&times;</span>
  311. </td>
  312. </tr>
  313. <tr>
  314. <td colspan="9">
  315. <div :id="'logistic-item-'+i" class="offset-1 up">
  316. <table class="table table-sm">
  317. <tr>
  318. <th>省份</th>
  319. <th>市区</th>
  320. <th>单位</th>
  321. <th>区间</th>
  322. <th>单价</th>
  323. <th>送货费</th>
  324. <th>起始计费</th>
  325. <th>起始计数</th>
  326. <th>费率(%)</th>
  327. <th></th>
  328. </tr>
  329. <tr v-for="(item,j) in logistic.items">
  330. <td class="font-weight-bold">@{{ poolMapping.provinces ? poolMapping.provinces[item.province_id] : '' }}</td>
  331. <td class="font-weight-bold">@{{ poolMapping.cities ? poolMapping.cities[item.city_id] : '' }}</td>
  332. <td>@{{ poolMapping.units ? poolMapping.units[item.unit_id] : '' }}</td>
  333. <td>@{{ item.range }}</td>
  334. <td>@{{ item.unit_price }}</td>
  335. <td>@{{ item.delivery_fee }}</td>
  336. <td>@{{ item.initial_fee }}</td>
  337. <td>@{{ item.initial_amount }}</td>
  338. <td>@{{ item.rate }}<span v-if="item.rate" class="font-weight-bold">&nbsp;%</span></td>
  339. <td>
  340. <span class="cursor-pointer text-danger font-weight-bold" @click.stop="deleteLogisticItem(item,j,i)">&times;</span>
  341. </td>
  342. </tr>
  343. </table>
  344. </div>
  345. </td>
  346. </tr>
  347. </tbody>
  348. </table>
  349. </div>
  350. </div>
  351. <div class="card" id="directLogistic-card">
  352. <div class="card-header bg-light-info row">
  353. <div class="col-3 pull-left font-weight-bold cursor-pointer text-secondary" @click="show('directLogistic')"><span class="fa fa-align-justify"></span>&nbsp;直发</div>
  354. <div class="col-6 text-center">
  355. <div v-if="audit.directLogistic">
  356. @can("项目管理-项目-计费模型-审核")<button class="btn btn-sm btn-success" type="button" @click="auditOrRecoverModel('directLogistic')">审核</button>
  357. <button class="btn btn-sm btn-danger" type="button" @click="auditOrRecoverModel('directLogistic',false)">恢复</button>@endcan
  358. </div>
  359. </div>
  360. <div class="col-3 pull-right small mb-0 text-secondary" v-if="selectedModel.directLogistic.name">双击下方已添加内容可编辑</div>
  361. </div>
  362. <div class="card-body" id="directLogistic" @dblclick="editDirectLogistic()" style="cursor: pointer">
  363. <div class="row">
  364. <span class="col-4">名称:<b>@{{ selectedModel.directLogistic.name }}</b></span>
  365. <span class="col-4">起步数(KM):<b>@{{ selectedModel.directLogistic.base_km }}</b></span>
  366. <span class="col-1 offset-3" v-if="selectedModel.directLogistic.name">
  367. <span class="cursor-pointer text-danger font-weight-bold" @click.stop="delDirectLogistic(selectedModel.directLogistic)">&times;</span>
  368. </span>
  369. </div>
  370. <div class="row">
  371. <div class="cursor-pointer text-primary col-2" @click.stop="show('directLogistic-item')">
  372. <span class="fa" :class="upList['directLogistic-item'] ? 'fa-angle-double-right' : 'fa-angle-double-down'"></span>&nbsp;详情</div>
  373. <div class="col-10 up" id="directLogistic-item">
  374. <table class="table table-sm">
  375. <tr>
  376. <th>车型</th>
  377. <th>起步费</th>
  378. <th>续费(元/KM)</th>
  379. <th></th>
  380. </tr>
  381. <tr v-for="(item,i) in selectedModel.directLogistic.items">
  382. <td>@{{ poolMapping.cars ? poolMapping.cars[item.car_type_id] : '' }}</td>
  383. <td>@{{ item.base_fee }}</td>
  384. <td>@{{ item.additional_fee }}</td>
  385. <td>
  386. <span class="cursor-pointer text-danger font-weight-bold" @click.stop="deleteDirectLogisticItem(item,i)">&times;</span>
  387. </td>
  388. </tr>
  389. </table>
  390. </div>
  391. </div>
  392. </div>
  393. </div>
  394. </div>
  395. <div class="col-6">
  396. <div class="card">
  397. <div class="card-header bg-light-info">
  398. <button type="button" class="btn mr-1" :class="type == 'storage' ? 'btn-primary text-white' : 'btn-outline-primary'" @click="switchType('storage')">仓储</button>
  399. <button type="button" class="btn mr-1" :class="type == 'operation' ? 'btn-primary text-white' : 'btn-outline-primary'" @click="switchType('operation')">作业</button>
  400. <button type="button" class="btn mr-1" :class="type == 'express' ? 'btn-primary text-white' : 'btn-outline-primary'" @click="switchType('express')">快递</button>
  401. <button type="button" class="btn mr-1" :class="type == 'logistic' ? 'btn-primary text-white' : 'btn-outline-primary'" @click="switchType('logistic')">物流</button>
  402. <button type="button" class="btn mr-1" :class="type == 'directLogistic' ? 'btn-primary text-white' : 'btn-outline-primary'" @click="switchType('directLogistic')">直发</button>
  403. </div>
  404. <div class="card-body">
  405. @can("计费模型-仓储-录入")<div v-if="type == 'storage'">
  406. @include("customer.project.part._storage")
  407. </div>@endcan
  408. @can("计费模型-作业-录入")<div v-show="type == 'operation'">
  409. @include("customer.project.part._operation")
  410. @include("customer.project.part._addFeature")
  411. </div>@endcan
  412. @can("计费模型-快递-录入")<div v-show="type == 'express'">
  413. @include("customer.project.part._express")
  414. </div>@endcan
  415. @can("计费模型-物流-录入")<div v-show="type == 'logistic'">
  416. @include("customer.project.part._logistic")
  417. @include("customer.project.part._logisticDetail")
  418. </div>@endcan
  419. @can("计费模型-直发-录入")<div v-show="type == 'directLogistic'">
  420. @include("customer.project.part._directLogistic")
  421. </div>@endcan
  422. @include("customer.project.part._introducePriceModel")
  423. <div class="row mt-3" v-if="base=='three'">
  424. <div class="col-2"></div>
  425. <button type="button" class="btn btn-success ml-1 col-4" @click="saveModel()">保存</button>
  426. <button type="button" class="btn btn-sm btn-info text-white offset-1 col-2"
  427. data-toggle="modal" data-target="#introduce" @click="loadIntroduce()">引入</button>
  428. <h5><span class="ml-0 fa fa-question-circle-o cursor-pointer"
  429. data-toggle="tooltip" data-placement="top" title="引入克隆一份已存在模型"></span></h5>
  430. </div>
  431. <div class="mt-1 offset-2" v-if="errors">
  432. <p v-for="val in errors" class="small text-danger font-weight-bold">@{{ val[0] }}</p>
  433. </div>
  434. </div>
  435. </div>
  436. </div>
  437. </div>