info.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764
  1. <template>
  2. <view class="app-content">
  3. <view v-if="!$util.isEmpty(detailInfo)" class="info-content_box">
  4. <view class="title">
  5. 客户
  6. </view>
  7. <view class="address-des_bx content-box" @click='pageTo({url:"/pagesClient/member/detail",query: {id: detailInfo.customId}})'>
  8. <view>
  9. <view style="overflow:hidden;text-overflow:ellipsis;white-space: nowrap;width:450upx;"> {{ detailInfo.customName }} {{ detailInfo.customMobile }}</view>
  10. <view style="margin-bottom:20upx;color:#333333">店长:{{ detailInfo.customSuper.name||''}}</view>
  11. <view>{{ detailInfo.customAddress}}</view>
  12. </view>
  13. <view>
  14. <i @click.stop="callUp(detailInfo.customMobile)" class="iconfont icondianhua1"></i>
  15. <i @click.stop="navigateTo(detailInfo.lat,detailInfo.long,detailInfo.customName)" class="iconfont icondianhua" style="font-size:53upx;margin-left:40upx;margin-right:25upx;color:#3385ff;"></i>
  16. </view>
  17. </view>
  18. <view class="title">
  19. 单据信息
  20. </view>
  21. <view class="bills-info_box content-box">
  22. <view class="order-info_box">
  23. <view>订单日期:</view>
  24. <view>{{ detailInfo.addTime?detailInfo.addTime.substr(5,11):'' }}</view>
  25. </view>
  26. <view class="order-info_box">
  27. <view>订单编号:</view>
  28. <view>{{ detailInfo.orderSn }}</view>
  29. <view class="price">
  30. <button @click="copy(detailInfo.orderSn)" class="admin-button-com default">复制</button>
  31. </view>
  32. </view>
  33. <view class="order-info_box">
  34. <view>客户单号:</view>
  35. <view>{{ detailInfo.cgInfo.orderSn }}</view>
  36. </view>
  37. <view class="order-info_box" v-if="detailInfo.book == 1">
  38. <view>订单类型:</view>
  39. <view>
  40. <text style="color:white;border:1px solid #657cac;border-radius:20upx;font-size:20upx;padding:5upx 12upx;background:#657cac;">预订单</text>
  41. </view>
  42. </view>
  43. <view class="order-info_box">
  44. <view>送货时间:</view>
  45. <view>{{ detailInfo.sendTimeWant }}</view>
  46. </view>
  47. <view class="order-info_box">
  48. <view>开单人员:</view>
  49. <view>{{ detailInfo.shopAdminName }}</view>
  50. </view>
  51. <view class="order-info_box" v-if="detailInfo.status != 1 && detailInfo.status!=5">
  52. <view>客户下单:</view>
  53. <view v-if="detailInfo.customShopAdminId == 0">--</view>
  54. <view v-else>
  55. <i class="iconfont icondagou" style="font-size:35upx;"></i>
  56. </view>
  57. </view>
  58. <view class="order-info_box" v-if="detailInfo.status != 1 && detailInfo.status!=5">
  59. <view>支付方式:</view>
  60. <view>{{ detailInfo.payWay==0?'微信':detailInfo.payWay==1?'支付宝':detailInfo.payWay==2?'余额':detailInfo.payWay==4?'现金':detailInfo.payWay==5?'银行卡':'--' }}</view>
  61. </view>
  62. <view class="order-info_box">
  63. <view>订单状态:</view>
  64. <view>{{ detailInfo.status==1?'待付款':detailInfo.status==2?'待发货':detailInfo.status==3?'配送中':detailInfo.status==4?'已完成':detailInfo.status==5?'已取消':'已退款' }}</view>
  65. </view>
  66. <view v-if="detailInfo.status==1" class="order-info_box">
  67. <view>过期时间:</view>
  68. <view>{{detailInfo.deadline?detailInfo.deadline.substr(5,11):''}}</view>
  69. </view>
  70. <view v-if="detailInfo.refund == 2" class="order-info_box">
  71. <view>累计退款:</view>
  72. <view style="color:red;font-weight:bold;font-size:30upx;">{{parseFloat(detailInfo.tkPrice)}}</view>
  73. <view class="price" v-if="detailInfo.refund==2">
  74. <button @click="pageTo({url: '/pagesOrder/refundList',query: {orderSn: detailInfo.orderSn}})" style="color:red;" class="admin-button-com">售后记录</button>
  75. </view>
  76. </view>
  77. <view v-if="detailInfo.refund == 2" class="order-info_box">
  78. <view>退款方式:</view>
  79. <view style="color:red;font-weight:bold;font-size:30upx;">{{detailInfo.tkExplain||''}}</view>
  80. </view>
  81. </view>
  82. <view class="bills-info_box content-box" style="margin-top:25upx;">
  83. <view class="order-info_box" v-if="detailInfo.debt == 1">
  84. <view>订单状态:</view>
  85. <view style="color:red;font-weight:bold;">欠款</view>
  86. </view>
  87. <view class="order-info_box" v-else>
  88. <view>订单状态:</view>
  89. <view v-if="detailInfo.clearId > 0">已结清</view>
  90. <view class="price" v-if="detailInfo.clearId > 0">
  91. </view>
  92. <view v-if="detailInfo.clearId == 0">--</view>
  93. </view>
  94. </view>
  95. <view class="content-box shipping-address" v-if="detailInfo.expressProgress!=''">
  96. <view> 配送进展:<text>{{ detailInfo.expressProgress.progressName }}</text> </view>
  97. <i class="iconfont iconqishouyinying"></i>
  98. </view>
  99. <view class="flex-space title">
  100. 商品信息
  101. </view>
  102. <view class="module-com content-box">
  103. <view class="commodity-view">
  104. <view class="commodity-list">
  105. <view v-for="(s, idx) in detailInfo.product" :key="idx" class="commodity-item" >
  106. <image class="item-icon" :src="s.cover" @click="pageTo({url:'/admin/item/detail',query:{id: s.productId}})" />
  107. <view class="item-info">
  108. <view class="info-line">
  109. <text class="item-name">{{ s.name }}</text>
  110. <text class="item-price">
  111. <text class="unit"></text>
  112. <text class="price">
  113. <text v-if="detailInfo.stockChange == 1">{{parseFloat(s.xhNum)}}{{s.xhUnitName}}*¥{{parseFloat(s.xhUnitPrice)}}</text>
  114. <text></text>
  115. </text>
  116. </text>
  117. </view>
  118. <view class="info-line">
  119. <text class="item-type" v-if="detailInfo.book == 1">预订 {{ parseFloat(s.xhPreNum) }}{{s.xhUnitName}}*¥{{parseFloat(s.xhPreUnitPrice)}}</text>
  120. <text class="item-type" v-else></text>
  121. <text class="item-count" v-if="detailInfo.stockChange == 1">¥{{parseFloat(s.xhPrice)}}</text>
  122. <text class="item-count" v-else></text>
  123. </view>
  124. </view>
  125. </view>
  126. </view>
  127. <view class="summary-bar">
  128. <view class="operate-view" ></view>
  129. <view class="describe-view">
  130. 共{{ detailInfo.productStat.kind}}种,共
  131. <text v-if="detailInfo.productStat.bigNum > 0">{{ detailInfo.productStat.bigNum }}扎</text>
  132. <text v-if="detailInfo.productStat.smallNun > 0">{{detailInfo.productStat.smallNun}}支</text>
  133. ,合计 ¥<text class="price">{{ totalItemPrice }}</text>
  134. </view>
  135. </view>
  136. </view>
  137. </view>
  138. <view v-if="detailInfo.remark!=''" class="content-box price-detail">
  139. <div class="module-com input-line-wrap">
  140. <tui-list-cell class="line-cell" :hover="false">
  141. <div class="tui-title">备注</div>
  142. <div>{{ detailInfo.remark }}</div>
  143. </tui-list-cell>
  144. </div>
  145. </view>
  146. <view class="content-box price-detail" v-if="detailInfo.book == 0">
  147. <div class="module-com input-line-wrap">
  148. <tui-list-cell class="line-cell" v-if="detailInfo.sendCost > 0" :hover="false">
  149. <div class="tui-title">运费</div>
  150. <div class="detail-price_box" style="font-size: 28upx">¥{{ parseFloat(detailInfo.sendCost) }}</div>
  151. </tui-list-cell>
  152. <tui-list-cell class="line-cell" v-if="detailInfo.labourCost > 0" :hover="false">
  153. <div class="tui-title">人工资材费</div>
  154. <div class="detail-price_box" style="font-size: 28upx">¥{{ parseFloat(detailInfo.labourCost) }}</div>
  155. </tui-list-cell>
  156. <tui-list-cell v-if="detailInfo.discountAmount > 0" class="line-cell" :hover="false">
  157. <div class="tui-title"><text v-if="detailInfo.discountType == 4">红包</text><text v-else>优惠金额</text></div>
  158. <div class="detail-price_box" style="font-size: 28upx">-¥{{ parseFloat(detailInfo.discountAmount) }}</div>
  159. </tui-list-cell>
  160. <tui-list-cell v-if="detailInfo.refundPrice > 0" class="line-cell" :hover="false">
  161. <div class="tui-title">订单金额</div>
  162. <div class="detail-price_box" style="font-size: 28upx">¥{{ parseFloat(detailInfo.orderPrice) }}</div>
  163. </tui-list-cell>
  164. <tui-list-cell v-if="detailInfo.refundPrice > 0" class="line-cell" :hover="false">
  165. <div class="tui-title">退款金额</div>
  166. <div class="detail-price_box" style="font-size: 28upx">-¥{{ parseFloat(detailInfo.refundPrice) }}</div>
  167. </tui-list-cell>
  168. <tui-list-cell class="line-cell" :hover="false">
  169. <div class="tui-title">实际金额</div>
  170. <div class="detail-price_box" style="font-size: 32upx;">¥{{ parseFloat(detailInfo.realPrice)}}</div>
  171. </tui-list-cell>
  172. </div>
  173. </view>
  174. <view class="content-box price-detail" v-else>
  175. <div class="module-com input-line-wrap">
  176. <tui-list-cell class="line-cell" :hover="false">
  177. <div class="tui-title">重量(公斤)</div>
  178. <div class="detail-price_box" style="font-size: 28upx;">
  179. <text v-if="Number(detailInfo.miniKilo) > Number(detailInfo.weight)" style="color:#CCCCCC;margin-right:15upx;">未达{{parseFloat(detailInfo.miniKilo)}}公斤按{{parseFloat(detailInfo.miniKilo)}}公斤计算</text>
  180. <text>{{ detailInfo.weight ? parseFloat(detailInfo.weight) : 0 }}</text>
  181. </div>
  182. </tui-list-cell>
  183. <tui-list-cell class="line-cell" :hover="false">
  184. <div class="tui-title">服务费</div>
  185. <div class="detail-price_box" style="font-size: 28upx;">
  186. <text style="color:#CCCCCC;margin-right:15upx;">{{ Number(detailInfo.miniKilo) > Number(detailInfo.weight) ? parseFloat(detailInfo.miniKilo) : parseFloat(detailInfo.weight) }}*¥{{ detailInfo.kiloFee ? parseFloat(detailInfo.kiloFee) : 0}}</text>
  187. <text>¥{{ detailInfo.allKiloFee ? parseFloat(detailInfo.allKiloFee) : 0}}</text>
  188. </div>
  189. </tui-list-cell>
  190. <tui-list-cell class="line-cell" :hover="false">
  191. <div class="tui-title">商品金额</div>
  192. <div class="detail-price_box" style="font-size: 28upx;">¥{{ detailInfo.itemPrice ? parseFloat(detailInfo.itemPrice) : 0 }}</div>
  193. </tui-list-cell>
  194. <tui-list-cell class="line-cell" :hover="false">
  195. <div class="tui-title">总计</div>
  196. <div class="detail-price_box red" style="font-size: 28upx;">¥{{ detailInfo.orderPrice ? parseFloat(detailInfo.orderPrice) : 0 }}</div>
  197. </tui-list-cell>
  198. <tui-list-cell class="line-cell" :hover="false">
  199. <div class="tui-title">预付金额</div>
  200. <div class="detail-price_box red" style="font-size: 28upx;">¥{{ detailInfo.bookPrice ? parseFloat(detailInfo.bookPrice) : 0}}</div>
  201. </tui-list-cell>
  202. <tui-list-cell class="line-cell" :hover="false" v-if="detailInfo.stockChange == 1">
  203. <view class="tui-title">结账</view>
  204. <view class="detail-price_box" style="font-size: 28upx;color:green;" v-if="settlePrice > 0">退 ¥{{settlePrice}}</view>
  205. <view class="detail-price_box" style="font-size: 28upx;color:red;" v-else-if="settlePrice < 0">欠 ¥{{Math.abs(settlePrice)}}</view>
  206. <view class="detail-price_box" style="font-size: 28upx;" v-else>0</view>
  207. </tui-list-cell>
  208. </div>
  209. </view>
  210. </view>
  211. <div class="app-footer">
  212. </div>
  213. </view>
  214. </template>
  215. <script>
  216. import { mapGetters } from "vuex";
  217. import stepStatus from "./components/stepStatus";
  218. import TuiListCell from "@/components/plugin/list-cell";
  219. import { getInfo,debtPay,hasPay, freeShipping,confirmFinish,cancel } from "@/api/order/index";
  220. import { getOrderProduct } from "@/api/order-item/index";
  221. import productMins from "@/mixins/product";
  222. import { ORDER_STATUS } from "@/utils/declare";
  223. import { cloudPrintOrder, cancelOrder } from "@/api/order";
  224. import { hasHitNavigate } from "@/api/map";
  225. export default {
  226. name: "orderDetail",
  227. components: {
  228. stepStatus,
  229. TuiListCell
  230. },
  231. mixins: [productMins],
  232. data() {
  233. return {
  234. ORDER_STATUS,
  235. orderId:'',
  236. selectJobType: "order_change",
  237. autoLoad: false,
  238. stepActive: 0,
  239. totalItemPrice: 0,
  240. form: {
  241. name: ""
  242. },
  243. detailInfo: {},
  244. freeShipModal: false,
  245. loading: false,
  246. settlePrice:0,
  247. showCancelBtn: true
  248. };
  249. },
  250. onPullDownRefresh() {
  251. this.init().then(res => {
  252. uni.stopPullDownRefresh()
  253. })
  254. },
  255. onShow() {
  256. this.init();
  257. },
  258. computed: {
  259. ...mapGetters({ loginInfo: "getLoginInfo" }),
  260. },
  261. methods: {
  262. goRefund(){
  263. if(this.detailInfo.payWay == 1){
  264. this.$msg('支付宝订单暂不支持退款,请线下退款')
  265. return false
  266. }
  267. this.$util.pageTo({url:'/pagesOrder/refund?id='+this.option.id})
  268. },
  269. navigateTo(latitude, longitude, address) {
  270. // #ifdef APP-PLUS
  271. let that = this
  272. if(that.loginInfo.hasHitNavigate != 1){
  273. that.$util.confirmModal({content:'打开后点右下角按钮可正常导航'},() => {
  274. hasHitNavigate().then(res=>{
  275. console.log(res.code)
  276. that.$store.commit("setHitNavigation")
  277. })
  278. that.openNavigateto(latitude, longitude, address)
  279. })
  280. }else{
  281. that.openNavigateto(latitude, longitude, address)
  282. }
  283. // #endif
  284. // #ifdef MP-WEIXIN
  285. this.openNavigateto(latitude, longitude, address)
  286. // #endif
  287. },
  288. openNavigateto(latitude, longitude, address){
  289. // 将经纬度转换成Number
  290. let latituded = Number(latitude);
  291. let longituded = Number(longitude);
  292. uni.openLocation({
  293. latitude: latituded,
  294. longitude: longituded,
  295. address: address,
  296. success: function() {
  297. console.log('success');
  298. }
  299. });
  300. },
  301. freeShipModalClick() {
  302. freeShipping({ id: this.detailInfo.id }).then(res => {
  303. this.init();
  304. this.$msg("操作成功!");
  305. })
  306. },
  307. modalCancel() {
  308. this.freeShipModal = false;
  309. },
  310. cancelOrderFn(info) {
  311. let that = this
  312. that.$util.confirmModal({content:'确认取消?'},() => {
  313. var params = {orderId:info.id}
  314. cancelOrder(params).then((res) => {
  315. if(res.code == 1){
  316. this.showCancelBtn = false
  317. this.detailInfo.status = 5
  318. this.$msg("取消成功")
  319. }
  320. }).catch((error) => {
  321. console.error(error);
  322. })
  323. })
  324. },
  325. showCancelOrder(cgInfo) {
  326. if (cgInfo == undefined) {
  327. return false
  328. }
  329. var status = cgInfo.status
  330. var deadline = cgInfo.deadline
  331. if (status != 1) {
  332. return false
  333. }
  334. if (deadline == "" || deadline == undefined) {
  335. return false
  336. }
  337. var orderTimestamp = this.formatDate(deadline)
  338. var currTimestam = new Date().getTime() / 1000
  339. var diff = orderTimestamp - currTimestam
  340. //console.log(orderTimestamp)
  341. //console.log(currTimestam)
  342. //console.log(diff)
  343. if (diff > 120) {
  344. return true
  345. }
  346. return false
  347. },
  348. formatDate(deadline) {
  349. var timeStr = String(deadline)
  350. const [dateComponents, timeComponents] = timeStr.split(' ');
  351. //console.log(dateComponents);
  352. //console.log(timeComponents);
  353. const [year, month, day] = dateComponents.split('-');
  354. const [hours, minutes, seconds] = timeComponents.split(':');
  355. const date = new Date(+year, month - 1, +day, +hours, +minutes, +seconds);
  356. //console.log(date);
  357. // Get Unix timestamp
  358. const unixTimestamp = Math.floor(date.getTime() / 1000);
  359. //console.log(unixTimestamp);
  360. return unixTimestamp;
  361. },
  362. clickBtn(s, item) {
  363. this.orderId = item.id;
  364. if (s.type === "selfGet") {
  365. // 自取
  366. let self = this;
  367. self.$util.confirmModal({content:'确认客户已自取'},() => {
  368. self.freeShipModalClick()
  369. })
  370. this.freeShipModal = true;
  371. }else if(s.type === 'arrival'){
  372. //到货
  373. this.pageTo({url: "/pagesOrder/arrival",query: {id: item.id}});
  374. } else if (s.type === "print") {
  375. if(item.hasCloudPrint == 1){
  376. //云打印
  377. uni.showLoading({title:"打印中..."})
  378. cloudPrintOrder({id:item.id}).then((res) => {
  379. item.printNum++
  380. uni.hideLoading()
  381. })
  382. }else{
  383. console.log('走蓝牙打印方式')
  384. let BleVal = JSON.parse(item.printData);
  385. switch(uni.getSystemInfoSync().platform){
  386. case 'android':
  387. this.destroyed(BleVal);
  388. break;
  389. case 'ios':
  390. this.autoLinkBle(BleVal);
  391. break;
  392. }
  393. }
  394. } else if (s.type === "send") {
  395. //发货
  396. this.pageTo({url: "/pagesOrder/ship",query: {id: item.id}});
  397. }else if (s.type === "debtPay") {
  398. let self = this;
  399. //延期收款
  400. self.$util.confirmModal({content:'确认要延期收款?'},() => {
  401. return debtPay({ id: self.option.id }).then(res => {
  402. console.log(res)
  403. uni.showToast({title:'操作成功!',icon:'none'})
  404. self.init();
  405. })
  406. })
  407. }else if (s.type === "hasPay") {
  408. let self = this;
  409. //已收款
  410. self.$util.confirmModal({content:'您确认已收款?'},() => {
  411. return hasPay({ id: self.option.id }).then(res => {
  412. uni.showToast({title:'操作成功!',icon:'none'})
  413. self.init();
  414. })
  415. })
  416. }else if (s.type === "modifyProduct") {
  417. //修改花材
  418. let self = this;
  419. let orderId = item.id
  420. let customName = item.customName
  421. let customId = item.customId
  422. let modifyProductKey = 'modifyProduct_orderId_'+orderId
  423. getOrderProduct({ id: orderId }).then(res => {
  424. let productList = res.data.productList
  425. uni.setStorageSync('selectList_'+modifyProductKey, productList)
  426. self.$util.pageTo({url: '/admin/billing/index',type:2,query: {customId: customId,customName:customName,orderId:orderId,modifyProductKey:modifyProductKey}})
  427. })
  428. }else if(s.type == 'confirm'){
  429. let self = this;
  430. uni.showActionSheet({
  431. itemList: ['结算方式:', '欠款', '已收款'],
  432. success: function (res) {
  433. if(res.tapIndex == 0){
  434. return false
  435. }
  436. let payWay = 0
  437. let title = res.tapIndex == 1 ? '确认客户欠款?' : '确认已收款?'
  438. //1欠款 2已收款
  439. let clearType = res.tapIndex == 1 ? 1 : 2;
  440. //选择的已收款,还需要选择收款方式
  441. if(clearType == 2){
  442. uni.showActionSheet({
  443. itemList: ['收款方式:', '微信', '支付宝','现金','银行卡'],
  444. success: function (respond) {
  445. let currentIndex = respond.tapIndex
  446. let inWay = [{name:"未选择",id:-1},{name:"微信",id:0},{name:"支付宝",id:1},{name:"现金",id:4},{name:"银行卡",id:5}]
  447. if(currentIndex == 0){
  448. return false
  449. }
  450. payWay = inWay[currentIndex].id
  451. let params = {id:item.id,clearType:clearType,payWay:payWay}
  452. self.toConfrim(params,title)
  453. }
  454. })
  455. }else{
  456. let params = {id:item.id,clearType:clearType,payWay:payWay}
  457. self.toConfrim(params,title)
  458. }
  459. }
  460. });
  461. }else if(s.type == 'cancel'){
  462. let self = this;
  463. self.$util.confirmModal({content:'确认取消订单?'},() => {
  464. cancel({id:item.id}).then((res) => {
  465. uni.showToast({title:res.msg,icon:'none'})
  466. self.init();
  467. })
  468. })
  469. }
  470. },
  471. toConfrim(params,title){
  472. let that = this
  473. that.$util.confirmModal({content:'订单完成'},() => {
  474. that.toConfirmRequest(params)
  475. })
  476. },
  477. toConfirmRequest(params){
  478. let self = this;
  479. confirmFinish(params).then((res) => {
  480. uni.showToast({title:res.msg,icon:'none'})
  481. self.init();
  482. })
  483. },
  484. copy(val) {
  485. const self = this;
  486. uni.setClipboardData({
  487. data: val,
  488. success: function() {
  489. self.$msg("复制成功");
  490. }
  491. });
  492. },
  493. callUp(mobile) {
  494. this.$util.callUp(mobile)
  495. },
  496. async init() {
  497. try {
  498. if (this.loading) {
  499. return new Promise.reject();
  500. }
  501. this.loading = true;
  502. const res = await getInfo({
  503. id: this.option.id
  504. });
  505. this.detailInfo = res.data;
  506. this.settlePrice = Number(this.detailInfo.bookPrice) - Number(this.detailInfo.orderPrice)
  507. this.settlePrice = parseFloat(this.settlePrice.toFixed(2))
  508. this.totalItemPrice = 0
  509. this.detailInfo.product.forEach(ele=>{
  510. this.totalItemPrice += Number(ele.xhPrice)
  511. })
  512. this.totalItemPrice = this.totalItemPrice.toFixed(2)
  513. this.totalItemPrice = parseFloat(this.totalItemPrice)
  514. const { product } = this.detailInfo;
  515. if (product) {
  516. this.setSelectInfo({
  517. selectJobType: this.selectJobType,
  518. info: product.map(ele => { return { ...ele, bigCount: Number(ele.bigNum), smallCount: Number(ele.smallNum) } }),
  519. selectJobId:this.selectJobId
  520. });
  521. }
  522. } catch {
  523. } finally {
  524. this.loading = false;
  525. }
  526. },
  527. gotoSelect() {
  528. uni.navigateTo({url: `/pagesOrder/select?id=${this.detailInfo.id}`});
  529. }
  530. }
  531. };
  532. </script>
  533. <style lang="scss" scoped>
  534. .info-content_box {
  535. padding: 0 20upx 100upx;
  536. & > .title {
  537. color: #666666;
  538. font-size: 28upx;
  539. font-weight: 600;
  540. padding: 30upx 3upx;
  541. }
  542. & .address-des_bx {
  543. display: flex;
  544. padding: 20upx 10upx 30upx 20upx;
  545. & > view:nth-child(1) {
  546. flex: 1;
  547. margin-top: 10upx;
  548. & > view:nth-child(1) {
  549. color: #333333;
  550. font-size: 32upx;
  551. font-weight: bold;
  552. }
  553. & > view:nth-child(2) {
  554. color: #666666;
  555. font-size: 28upx;
  556. font-weight: 400;
  557. margin-top: 20upx;
  558. }
  559. }
  560. & > view:nth-child(2) {
  561. display: flex;
  562. & .icondianhua1 {
  563. font-size: 50upx;
  564. color: #3385ff;
  565. margin-left: 0upx;
  566. }
  567. }
  568. }
  569. .bills-info_box {
  570. padding: 30upx 20upx 30upx;
  571. & > .order-info_box {
  572. display: flex;
  573. align-items: center;
  574. font-size: 26upx;
  575. font-weight: 400;
  576. margin-bottom: 5upx;
  577. & > view:nth-child(1) {
  578. color: #999999;
  579. width: 135upx;
  580. text-align: right;
  581. }
  582. & > view:nth-child(2) {
  583. color: #333333;
  584. }
  585. & > .price {
  586. flex: 1;
  587. font-size: 30upx;
  588. color: #333333;
  589. display: flex;
  590. align-items: center;
  591. justify-content: flex-end;
  592. & .iconxiangyou {
  593. color: #999999;
  594. font-size: 25upx;
  595. margin-left: 12upx;
  596. }
  597. }
  598. }
  599. }
  600. .content-box {
  601. background-color: #ffffff;
  602. border-radius: 10upx;
  603. }
  604. .commodity-view {
  605. display: flex;
  606. flex-direction: column;
  607. .commodity-list {
  608. padding: 20upx;
  609. .commodity-item {
  610. display: flex;
  611. margin-bottom: 20upx;
  612. .item-icon {
  613. flex-shrink: 0;
  614. width: 140upx;
  615. height: 140upx;
  616. }
  617. .item-info {
  618. display: flex;
  619. flex-direction: column;
  620. justify-content: center;
  621. flex: 1;
  622. margin-left: 20upx;
  623. .info-line {
  624. margin-bottom: 20upx;
  625. display: flex;
  626. justify-content: space-between;
  627. align-items: flex-end;
  628. .item-name {
  629. color: black;
  630. font-size: 30upx;
  631. font-weight: 700;
  632. overflow: hidden;
  633. white-space: nowrap;
  634. text-overflow: ellipsis;
  635. width:360upx;
  636. }
  637. .item-price {
  638. color: #333;
  639. font-size: 22upx;
  640. .price {
  641. font-size: 25upx;
  642. }
  643. }
  644. .item-type {
  645. color: #999;
  646. font-size: 24upx;
  647. }
  648. .item-count {
  649. color: #666;
  650. font-size: 24upx;
  651. }
  652. }
  653. }
  654. }
  655. }
  656. .summary-bar {
  657. padding: 0 20upx;
  658. height: 90upx;
  659. display: flex;
  660. align-items: center;
  661. justify-content: space-between;
  662. border-top: 1upx solid #eeeeee;
  663. .operate-view {
  664. display: flex;
  665. align-items: center;
  666. color: #3385ff;
  667. font-size: 26upx;
  668. .iconfont {
  669. margin-right: 20upx;
  670. font-size: 40upx;
  671. }
  672. }
  673. .describe-view {
  674. display: flex;
  675. align-items: center;
  676. color: #333;
  677. font-size: 24upx;
  678. .price {
  679. font-weight: bold;
  680. font-size: 28upx;
  681. }
  682. }
  683. }
  684. }
  685. .shipping-address {
  686. display: flex;
  687. align-items: center;
  688. margin-top: 20upx;
  689. & > view:nth-child(1) {
  690. color: #999999;
  691. font-size: 28upx;
  692. font-weight: 400;
  693. display: inline-block;
  694. padding: 30upx 0 30upx 20upx;
  695. flex: 1;
  696. & > text {
  697. color: #333333;
  698. font-weight: 600;
  699. }
  700. }
  701. & > view:nth-child(2) {
  702. font-size: 60upx;
  703. color: #d6e7ff;
  704. margin-right: 10upx;
  705. }
  706. }
  707. .price-detail {
  708. margin-top: 20upx;
  709. margin-bottom: 20upx;
  710. }
  711. .detail-price_box {
  712. color: #333333;
  713. font-size: 22upx;
  714. text-align: right;
  715. flex: 1;
  716. font-weight: 600;
  717. &.red {
  718. color: #ff2842;
  719. }
  720. }
  721. }
  722. .app-footer {
  723. display: flex;
  724. align-items: center;
  725. justify-content: flex-end;
  726. & .admin-button-com {
  727. padding: 0;
  728. margin-right:40upx;
  729. width: 180upx;
  730. height: 90upx;
  731. line-height: 90upx;
  732. font-size:30upx;
  733. text-align: center;
  734. color: #3385ff;
  735. border: 1upx solid #3385ff;
  736. &.active{
  737. color: #666666;
  738. border: 1upx solid #ccc;
  739. }
  740. }
  741. }
  742. </style>