info.vue 23 KB

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