info.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762
  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 TuiListCell from "@/components/plugin/list-cell";
  218. import { getInfo,debtPay,hasPay, freeShipping,confirmFinish,cancel } from "@/api/order/index";
  219. import { getOrderProduct } from "@/api/order-item/index";
  220. import productMins from "@/mixins/product";
  221. import { ORDER_STATUS } from "@/utils/declare";
  222. import { cloudPrintOrder, cancelOrder } from "@/api/order";
  223. import { hasHitNavigate } from "@/api/map";
  224. export default {
  225. name: "orderDetail",
  226. components: {
  227. TuiListCell
  228. },
  229. mixins: [productMins],
  230. data() {
  231. return {
  232. ORDER_STATUS,
  233. orderId:'',
  234. selectJobType: "order_change",
  235. autoLoad: false,
  236. stepActive: 0,
  237. totalItemPrice: 0,
  238. form: {
  239. name: ""
  240. },
  241. detailInfo: {},
  242. freeShipModal: false,
  243. loading: false,
  244. settlePrice:0,
  245. showCancelBtn: true
  246. };
  247. },
  248. onPullDownRefresh() {
  249. this.init().then(res => {
  250. uni.stopPullDownRefresh()
  251. })
  252. },
  253. onShow() {
  254. this.init();
  255. },
  256. computed: {
  257. ...mapGetters({ loginInfo: "getLoginInfo" }),
  258. },
  259. methods: {
  260. goRefund(){
  261. if(this.detailInfo.payWay == 1){
  262. this.$msg('支付宝订单暂不支持退款,请线下退款')
  263. return false
  264. }
  265. this.$util.pageTo({url:'/pagesOrder/refund?id='+this.option.id})
  266. },
  267. navigateTo(latitude, longitude, address) {
  268. // #ifdef APP-PLUS
  269. let that = this
  270. if(that.loginInfo.hasHitNavigate != 1){
  271. that.$util.confirmModal({content:'打开后点右下角按钮可正常导航'},() => {
  272. hasHitNavigate().then(res=>{
  273. console.log(res.code)
  274. that.$store.commit("setHitNavigation")
  275. })
  276. that.openNavigateto(latitude, longitude, address)
  277. })
  278. }else{
  279. that.openNavigateto(latitude, longitude, address)
  280. }
  281. // #endif
  282. // #ifdef MP-WEIXIN
  283. this.openNavigateto(latitude, longitude, address)
  284. // #endif
  285. },
  286. openNavigateto(latitude, longitude, address){
  287. // 将经纬度转换成Number
  288. let latituded = Number(latitude);
  289. let longituded = Number(longitude);
  290. uni.openLocation({
  291. latitude: latituded,
  292. longitude: longituded,
  293. address: address,
  294. success: function() {
  295. console.log('success');
  296. }
  297. });
  298. },
  299. freeShipModalClick() {
  300. freeShipping({ id: this.detailInfo.id }).then(res => {
  301. this.init();
  302. this.$msg("操作成功!");
  303. })
  304. },
  305. modalCancel() {
  306. this.freeShipModal = false;
  307. },
  308. cancelOrderFn(info) {
  309. let that = this
  310. that.$util.confirmModal({content:'确认取消?'},() => {
  311. var params = {orderId:info.id}
  312. cancelOrder(params).then((res) => {
  313. if(res.code == 1){
  314. this.showCancelBtn = false
  315. this.detailInfo.status = 5
  316. this.$msg("取消成功")
  317. }
  318. }).catch((error) => {
  319. console.error(error);
  320. })
  321. })
  322. },
  323. showCancelOrder(cgInfo) {
  324. if (cgInfo == undefined) {
  325. return false
  326. }
  327. var status = cgInfo.status
  328. var deadline = cgInfo.deadline
  329. if (status != 1) {
  330. return false
  331. }
  332. if (deadline == "" || deadline == undefined) {
  333. return false
  334. }
  335. var orderTimestamp = this.formatDate(deadline)
  336. var currTimestam = new Date().getTime() / 1000
  337. var diff = orderTimestamp - currTimestam
  338. //console.log(orderTimestamp)
  339. //console.log(currTimestam)
  340. //console.log(diff)
  341. if (diff > 120) {
  342. return true
  343. }
  344. return false
  345. },
  346. formatDate(deadline) {
  347. var timeStr = String(deadline)
  348. const [dateComponents, timeComponents] = timeStr.split(' ');
  349. //console.log(dateComponents);
  350. //console.log(timeComponents);
  351. const [year, month, day] = dateComponents.split('-');
  352. const [hours, minutes, seconds] = timeComponents.split(':');
  353. const date = new Date(+year, month - 1, +day, +hours, +minutes, +seconds);
  354. //console.log(date);
  355. // Get Unix timestamp
  356. const unixTimestamp = Math.floor(date.getTime() / 1000);
  357. //console.log(unixTimestamp);
  358. return unixTimestamp;
  359. },
  360. clickBtn(s, item) {
  361. this.orderId = item.id;
  362. if (s.type === "selfGet") {
  363. // 自取
  364. let self = this;
  365. self.$util.confirmModal({content:'确认客户已自取'},() => {
  366. self.freeShipModalClick()
  367. })
  368. this.freeShipModal = true;
  369. }else if(s.type === 'arrival'){
  370. //到货
  371. this.pageTo({url: "/pagesOrder/arrival",query: {id: item.id}});
  372. } else if (s.type === "print") {
  373. if(item.hasCloudPrint == 1){
  374. //云打印
  375. uni.showLoading({title:"打印中..."})
  376. cloudPrintOrder({id:item.id}).then((res) => {
  377. item.printNum++
  378. uni.hideLoading()
  379. })
  380. }else{
  381. console.log('走蓝牙打印方式')
  382. let BleVal = JSON.parse(item.printData);
  383. switch(uni.getSystemInfoSync().platform){
  384. case 'android':
  385. this.destroyed(BleVal);
  386. break;
  387. case 'ios':
  388. this.autoLinkBle(BleVal);
  389. break;
  390. }
  391. }
  392. } else if (s.type === "send") {
  393. //发货
  394. this.pageTo({url: "/pagesOrder/ship",query: {id: item.id}});
  395. }else if (s.type === "debtPay") {
  396. let self = this;
  397. //延期收款
  398. self.$util.confirmModal({content:'确认要延期收款?'},() => {
  399. return debtPay({ id: self.option.id }).then(res => {
  400. console.log(res)
  401. uni.showToast({title:'操作成功!',icon:'none'})
  402. self.init();
  403. })
  404. })
  405. }else if (s.type === "hasPay") {
  406. let self = this;
  407. //已收款
  408. self.$util.confirmModal({content:'您确认已收款?'},() => {
  409. return hasPay({ id: self.option.id }).then(res => {
  410. uni.showToast({title:'操作成功!',icon:'none'})
  411. self.init();
  412. })
  413. })
  414. }else if (s.type === "modifyProduct") {
  415. //修改花材
  416. let self = this;
  417. let orderId = item.id
  418. let customName = item.customName
  419. let customId = item.customId
  420. let modifyProductKey = 'modifyProduct_orderId_'+orderId
  421. getOrderProduct({ id: orderId }).then(res => {
  422. let productList = res.data.productList
  423. uni.setStorageSync('selectList_'+modifyProductKey, productList)
  424. self.$util.pageTo({url: '/admin/billing/index',type:2,query: {customId: customId,customName:customName,orderId:orderId,modifyProductKey:modifyProductKey}})
  425. })
  426. }else if(s.type == 'confirm'){
  427. let self = this;
  428. uni.showActionSheet({
  429. itemList: ['结算方式:', '欠款', '已收款'],
  430. success: function (res) {
  431. if(res.tapIndex == 0){
  432. return false
  433. }
  434. let payWay = 0
  435. let title = res.tapIndex == 1 ? '确认客户欠款?' : '确认已收款?'
  436. //1欠款 2已收款
  437. let clearType = res.tapIndex == 1 ? 1 : 2;
  438. //选择的已收款,还需要选择收款方式
  439. if(clearType == 2){
  440. uni.showActionSheet({
  441. itemList: ['收款方式:', '微信', '支付宝','现金','银行卡'],
  442. success: function (respond) {
  443. let currentIndex = respond.tapIndex
  444. let inWay = [{name:"未选择",id:-1},{name:"微信",id:0},{name:"支付宝",id:1},{name:"现金",id:4},{name:"银行卡",id:5}]
  445. if(currentIndex == 0){
  446. return false
  447. }
  448. payWay = inWay[currentIndex].id
  449. let params = {id:item.id,clearType:clearType,payWay:payWay}
  450. self.toConfrim(params,title)
  451. }
  452. })
  453. }else{
  454. let params = {id:item.id,clearType:clearType,payWay:payWay}
  455. self.toConfrim(params,title)
  456. }
  457. }
  458. });
  459. }else if(s.type == 'cancel'){
  460. let self = this;
  461. self.$util.confirmModal({content:'确认取消订单?'},() => {
  462. cancel({id:item.id}).then((res) => {
  463. uni.showToast({title:res.msg,icon:'none'})
  464. self.init();
  465. })
  466. })
  467. }
  468. },
  469. toConfrim(params,title){
  470. let that = this
  471. that.$util.confirmModal({content:'订单完成'},() => {
  472. that.toConfirmRequest(params)
  473. })
  474. },
  475. toConfirmRequest(params){
  476. let self = this;
  477. confirmFinish(params).then((res) => {
  478. uni.showToast({title:res.msg,icon:'none'})
  479. self.init();
  480. })
  481. },
  482. copy(val) {
  483. const self = this;
  484. uni.setClipboardData({
  485. data: val,
  486. success: function() {
  487. self.$msg("复制成功");
  488. }
  489. });
  490. },
  491. callUp(mobile) {
  492. this.$util.callUp(mobile)
  493. },
  494. async init() {
  495. try {
  496. if (this.loading) {
  497. return new Promise.reject();
  498. }
  499. this.loading = true;
  500. const res = await getInfo({
  501. id: this.option.id
  502. });
  503. this.detailInfo = res.data;
  504. this.settlePrice = Number(this.detailInfo.bookPrice) - Number(this.detailInfo.orderPrice)
  505. this.settlePrice = parseFloat(this.settlePrice.toFixed(2))
  506. this.totalItemPrice = 0
  507. this.detailInfo.product.forEach(ele=>{
  508. this.totalItemPrice += Number(ele.xhPrice)
  509. })
  510. this.totalItemPrice = this.totalItemPrice.toFixed(2)
  511. this.totalItemPrice = parseFloat(this.totalItemPrice)
  512. const { product } = this.detailInfo;
  513. if (product) {
  514. this.setSelectInfo({
  515. selectJobType: this.selectJobType,
  516. info: product.map(ele => { return { ...ele, bigCount: Number(ele.bigNum), smallCount: Number(ele.smallNum) } }),
  517. selectJobId:this.selectJobId
  518. });
  519. }
  520. } catch {
  521. } finally {
  522. this.loading = false;
  523. }
  524. },
  525. gotoSelect() {
  526. uni.navigateTo({url: `/pagesOrder/select?id=${this.detailInfo.id}`});
  527. }
  528. }
  529. };
  530. </script>
  531. <style lang="scss" scoped>
  532. .info-content_box {
  533. padding: 0 20upx 100upx;
  534. & > .title {
  535. color: #666666;
  536. font-size: 28upx;
  537. font-weight: 600;
  538. padding: 30upx 3upx;
  539. }
  540. & .address-des_bx {
  541. display: flex;
  542. padding: 20upx 10upx 30upx 20upx;
  543. & > view:nth-child(1) {
  544. flex: 1;
  545. margin-top: 10upx;
  546. & > view:nth-child(1) {
  547. color: #333333;
  548. font-size: 32upx;
  549. font-weight: bold;
  550. }
  551. & > view:nth-child(2) {
  552. color: #666666;
  553. font-size: 28upx;
  554. font-weight: 400;
  555. margin-top: 20upx;
  556. }
  557. }
  558. & > view:nth-child(2) {
  559. display: flex;
  560. & .icondianhua1 {
  561. font-size: 50upx;
  562. color: #3385ff;
  563. margin-left: 0upx;
  564. }
  565. }
  566. }
  567. .bills-info_box {
  568. padding: 30upx 20upx 30upx;
  569. & > .order-info_box {
  570. display: flex;
  571. align-items: center;
  572. font-size: 26upx;
  573. font-weight: 400;
  574. margin-bottom: 5upx;
  575. & > view:nth-child(1) {
  576. color: #999999;
  577. width: 135upx;
  578. text-align: right;
  579. }
  580. & > view:nth-child(2) {
  581. color: #333333;
  582. }
  583. & > .price {
  584. flex: 1;
  585. font-size: 30upx;
  586. color: #333333;
  587. display: flex;
  588. align-items: center;
  589. justify-content: flex-end;
  590. & .iconxiangyou {
  591. color: #999999;
  592. font-size: 25upx;
  593. margin-left: 12upx;
  594. }
  595. }
  596. }
  597. }
  598. .content-box {
  599. background-color: #ffffff;
  600. border-radius: 10upx;
  601. }
  602. .commodity-view {
  603. display: flex;
  604. flex-direction: column;
  605. .commodity-list {
  606. padding: 20upx;
  607. .commodity-item {
  608. display: flex;
  609. margin-bottom: 20upx;
  610. .item-icon {
  611. flex-shrink: 0;
  612. width: 140upx;
  613. height: 140upx;
  614. }
  615. .item-info {
  616. display: flex;
  617. flex-direction: column;
  618. justify-content: center;
  619. flex: 1;
  620. margin-left: 20upx;
  621. .info-line {
  622. margin-bottom: 20upx;
  623. display: flex;
  624. justify-content: space-between;
  625. align-items: flex-end;
  626. .item-name {
  627. color: black;
  628. font-size: 30upx;
  629. font-weight: 700;
  630. overflow: hidden;
  631. white-space: nowrap;
  632. text-overflow: ellipsis;
  633. width:360upx;
  634. }
  635. .item-price {
  636. color: #333;
  637. font-size: 22upx;
  638. .price {
  639. font-size: 25upx;
  640. }
  641. }
  642. .item-type {
  643. color: #999;
  644. font-size: 24upx;
  645. }
  646. .item-count {
  647. color: #666;
  648. font-size: 24upx;
  649. }
  650. }
  651. }
  652. }
  653. }
  654. .summary-bar {
  655. padding: 0 20upx;
  656. height: 90upx;
  657. display: flex;
  658. align-items: center;
  659. justify-content: space-between;
  660. border-top: 1upx solid #eeeeee;
  661. .operate-view {
  662. display: flex;
  663. align-items: center;
  664. color: #3385ff;
  665. font-size: 26upx;
  666. .iconfont {
  667. margin-right: 20upx;
  668. font-size: 40upx;
  669. }
  670. }
  671. .describe-view {
  672. display: flex;
  673. align-items: center;
  674. color: #333;
  675. font-size: 24upx;
  676. .price {
  677. font-weight: bold;
  678. font-size: 28upx;
  679. }
  680. }
  681. }
  682. }
  683. .shipping-address {
  684. display: flex;
  685. align-items: center;
  686. margin-top: 20upx;
  687. & > view:nth-child(1) {
  688. color: #999999;
  689. font-size: 28upx;
  690. font-weight: 400;
  691. display: inline-block;
  692. padding: 30upx 0 30upx 20upx;
  693. flex: 1;
  694. & > text {
  695. color: #333333;
  696. font-weight: 600;
  697. }
  698. }
  699. & > view:nth-child(2) {
  700. font-size: 60upx;
  701. color: #d6e7ff;
  702. margin-right: 10upx;
  703. }
  704. }
  705. .price-detail {
  706. margin-top: 20upx;
  707. margin-bottom: 20upx;
  708. }
  709. .detail-price_box {
  710. color: #333333;
  711. font-size: 22upx;
  712. text-align: right;
  713. flex: 1;
  714. font-weight: 600;
  715. &.red {
  716. color: #ff2842;
  717. }
  718. }
  719. }
  720. .app-footer {
  721. display: flex;
  722. align-items: center;
  723. justify-content: flex-end;
  724. & .admin-button-com {
  725. padding: 0;
  726. margin-right:40upx;
  727. width: 180upx;
  728. height: 90upx;
  729. line-height: 90upx;
  730. font-size:30upx;
  731. text-align: center;
  732. color: #3385ff;
  733. border: 1upx solid #3385ff;
  734. &.active{
  735. color: #666666;
  736. border: 1upx solid #ccc;
  737. }
  738. }
  739. }
  740. </style>