_three.blade.php 35 KB

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