confirmLoading.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683
  1. <!-- 确认装车 -->
  2. <template>
  3. <view class="content">
  4. <div class='content1'>
  5. <view class="level2-title">承运合同</view>
  6. <view class='row-between'>
  7. <view class="">合同编号</view>
  8. <view class="" @click="toSignContract">{{detailData.contractNo?detailData.contractNo:'去签订合同'}}</view>
  9. </view>
  10. </div>
  11. <view class="content2">
  12. <view class="level2-title">基本信息</view>
  13. <view class='row-between'>
  14. <view class="">订单编号</view>
  15. <view class="">{{detailData.orderNo}}</view>
  16. </view>
  17. <view class='row-between'>
  18. <view class="">货主</view>
  19. <view class="">{{detailData.cargoOwner}}</view>
  20. </view>
  21. <view class='row-between'>
  22. <view class="">货主单位</view>
  23. <view class="">{{detailData.compName?detailData.compName:'个人货主'}}</view>
  24. </view>
  25. <view class='row-between'>
  26. <view class="">发货地</view>
  27. <view class=" place">
  28. {{detailData.sendPrivate}}{{detailData.sendCity}}{{detailData.sendArea}}{{detailData.sendDetailedAddress}}
  29. </view>
  30. </view>
  31. <view class='row-between'>
  32. <view class="">卸货地</view>
  33. <view class=" place">
  34. {{detailData.unloadPrivate}}{{detailData.unloadCity}}{{detailData.unloadArea}}{{detailData.unloadDetailedAddress}}
  35. </view>
  36. </view>
  37. <view class='row-between'>
  38. <view class="">货名</view>
  39. <view class="">{{detailData.goodsName}}</view>
  40. </view>
  41. <!-- <view class='row-between'>
  42. <view class="">运费</view>
  43. <view class="">{{detailData.freight}}{{detailData.illingMethod==0?'元/吨':'元/车'}}</view>
  44. </view>-->
  45. </view>
  46. <view class="content2">
  47. <view class="level2-title">装车信息</view>
  48. <view class='row-between'>
  49. <view class="">车牌号</view>
  50. {{detailData.carNo?detailData.carNo:"来自合同"}}
  51. <!-- <input class="car-uumber input" v-model='detailData.carrierInfo.carNo'
  52. :disabled="true" placeholder="输入车牌号" name="input" disabled="true"></input> -->
  53. </view>
  54. <view class='row-between'>
  55. <view class="">装车日期</view>
  56. <view class="date-style">
  57. {{detailData.loadingDate1?detailData.loadingDate1:'来自合同'}}
  58. </view>
  59. </view>
  60. <view class='row-between'>
  61. <view class="">装车净重(吨)</view>
  62. {{detailData.weight ? detailData.weight:"来自合同"}}
  63. </view>
  64. <view class='row-between'>
  65. <view class="">预计运费(元)</view>
  66. <view class="">{{detailData.driverContract == 1 ? detailData.freight:"来自合同"}}</view>
  67. <!-- {{detailData.freight ? detailData.freight:"来自合同"}} -->
  68. <!-- <view class=""><input class="input" type="text" value="" v-model="detailData.carrierInfo.freight"
  69. placeholder="请输入运费"></view> -->
  70. </view>
  71. <view class='row-between'>
  72. <view class="">预付款(元)</view>
  73. {{detailData.advanceCharge ? detailData.advanceCharge:"来自合同"}}
  74. <!-- <view class=""><input class="input" type="text" value="" v-model="detailData.carrierInfo.freight"
  75. placeholder="请输入运费"></view> -->
  76. </view>
  77. <view class='row-between'>
  78. <view class="">定位</view>
  79. <view class="flex align-center">{{localtion.city}}
  80. {{localtion.sendArea}}
  81. <view class="sx-style" @click.stop="getLngLat()">刷新</view>
  82. </view>
  83. </view>
  84. <view class='s-flex'>
  85. <view class="" style="margin:20rpx 0;">上传装车照片</view>
  86. <u-upload class="uview-upload" :fileList="fileList1" @afterRead="afterRead($event)" @delete="deletePic"
  87. name="1" multiple='true' :maxCount="3"></u-upload>
  88. </view>
  89. <!-- <view class='s-flex'>
  90. <view class="">上传装车磅单</view>
  91. <upload class="upload" ref="upload" :action="action" :max-size="maxSize" :max-count="1"
  92. :size-type="['compressed']" @on-success="getImgUrl" @on-error="onError" @on-remove="onRemove"
  93. @on-uploaded="isAdd = true" :before-upload="filterFileType" @on-progress="onProgress"></upload>
  94. </view> -->
  95. </view>
  96. <view class="bottom-btn">
  97. <view class="store" @click="$u.throttle(submit(1), 5000)">暂存</view>
  98. <view class="submit" @click="$u.throttle(submit(3), 5000)">提交</view>
  99. </view>
  100. <u-modal :show="isShowAlert" :title="alertTitle" :content='alertContent' :closeOnClickOverlay='true'
  101. :showCancelButton='true' confirmColor='#2772FB' @confirm="confirmClick" @close="cancelClick"
  102. @cancel="cancelClick"></u-modal>
  103. <master-keyboard ref="keyboard" keyboardtype="car" :show="keyShow" :randomNumber="true" :newCar="false"
  104. :defaultValue="carNumber" @keyboardClick="handleClick"></master-keyboard>
  105. <u-toast ref="uToast"></u-toast>
  106. <u-calendar :show="showDate" :mode="mode" @confirm="confirmDate" @close="showDate= false"></u-calendar>
  107. </view>
  108. </template>
  109. <script>
  110. let that;
  111. import uploadImage from '@/components/ossutil/uploadFile.js';
  112. export default {
  113. data() {
  114. return {
  115. cyId: '',
  116. localtion: {
  117. city: '',
  118. sendArea: ''
  119. },
  120. imgList: [],
  121. fileList1: [],
  122. showDate: false,
  123. mode: 'single',
  124. id: '',
  125. sourceType: ['camera'],
  126. detailData: {
  127. hyCarrierInfo: {},
  128. loadingDate: {}
  129. },
  130. action: this.$helper.ossUploadUrl,
  131. maxSize: 50 * 1024 * 1024, //限制文件大小 50M
  132. isAdd: true,
  133. isShowAlert: false,
  134. alertContent: '',
  135. alertTitle: '',
  136. keyShow: false,
  137. carNumber: '',
  138. gjList: [],
  139. }
  140. },
  141. onLoad(options) {
  142. this.id = JSON.parse(decodeURIComponent(options.obj)).id
  143. this.detailData.hyCarrierInfo.id = JSON.parse(decodeURIComponent(options.obj)).carrierId
  144. this.cyId = JSON.parse(decodeURIComponent(options.obj)).carrierId
  145. this.getInfo()
  146. console.log(options)
  147. // this.detailData = JSON.parse(options.obj) ;
  148. // console.log(this.detailData)
  149. // CYHT20220317000001
  150. },
  151. methods: {
  152. //确认装车提交成功后,开启实时定位,
  153. // 调接口5分钟一次发送轨迹,[
  154. // {latitude: 39.997761, longitude: 116.478935},
  155. // {latitude: 39.997825, longitude: 116.478939},
  156. // {latitude: 39.998549, longitude: 116.478912},
  157. // {latitude: 39.998555, longitude: 116.478998},
  158. // {latitude: 39.998566, longitude: 116.479282},
  159. // {latitude: 39.998528, longitude: 116.479658},
  160. // {latitude: 39.998453, longitude: 116.480151},
  161. // {latitude: 39.998302, longitude: 116.480784},
  162. // {latitude: 39.998184, longitude: 116.481149},
  163. // {latitude: 39.997997, longitude: 116.481573},
  164. // {latitude: 39.997846, longitude: 116.481863},
  165. // {latitude: 39.997718, longitude: 116.482072},
  166. // {latitude: 39.997718, longitude: 116.482362},
  167. // {latitude: 39.998935, longitude: 116.483633},
  168. // {latitude: 39.998968, longitude: 116.48367},
  169. // {latitude: 39.999861, longitude: 116.484648}
  170. // ]
  171. // a(){},
  172. toSignContract() {
  173. console.log(this.detailData)
  174. this.$request.baseRequest('get', '/orderInfo/getOrderInfo', {
  175. id: this.id,
  176. }).then(res => {
  177. uni.$u.route('/pages/order/signContract', {
  178. obj: JSON.stringify(res.data),
  179. });
  180. });
  181. },
  182. selectDate() {
  183. this.showDate = true
  184. },
  185. confirmDate(e) {
  186. this.detailData.hyCarrierInfo.loadingDate = e[0]
  187. this.showDate = false
  188. },
  189. getInfo() {
  190. this.$request.baseRequest('get', '/orderInfo/getOrderInfo', {
  191. id: this.id,
  192. }).then(res => {
  193. if (res.code == 200) {
  194. this.detailData = res.data
  195. // #ifdef APP-PLUS
  196. this.getLngLat();
  197. // #endif
  198. this.$request.baseRequest('get', '/carrierInfo/getHyCarrierInfo', {
  199. orderId: this.detailData.id,
  200. }).then(res => {
  201. if (res.data) {
  202. if(res.data.loadingImg){
  203. var data=res.data.loadingImg.split(',')
  204. this.imgList=res.data.loadingImg.split(',')
  205. for (var i = 0; i < data.length; i++) {
  206. if(data[i]!=''){
  207. this.fileList1.push({url:data[i]})
  208. }
  209. }
  210. }
  211. console.log(this.fileList1)
  212. this.detailData.carNo = res.data.carNo
  213. this.detailData.loadingDate = res.data.loadingDate
  214. this.detailData.loadingDate1=res.data.loadingDate.split(' ')[0]
  215. this.detailData.weight = res.data.loadingWeight
  216. this.detailData.freight = res.data.estimatedFreight
  217. }
  218. })
  219. // this.detailData.contractNo = ''
  220. // this.detailData.id = this.detailData.carrierId
  221. // this.detailData.carrierInfo.loadingDate = ''
  222. // this.detailData.carrierInfo.carNo = ''
  223. // this.detailData.carrierInfo.loadingAreaLongitude = ''
  224. // this.detailData.carrierInfo.loadingAreaLatitude = ''
  225. // this.detailData.carrierInfo.sendCity = '营口'
  226. // this.detailData.carrierInfo.sendArea = '鲅鱼圈'
  227. // this.detailData.carrierInfo.loadingImg = ''
  228. // this.carrierInfo = res.data.carrierInfo
  229. // this.freightInfo = res.data.freightInfo
  230. // this.zcPhoneList = this.carrierInfo.loadingImg.split(',')
  231. // if(res.data.orderStatus!="待货主确认"&&res.data.orderStatus!="未装车"&&res.data.orderStatus!="已终止"){
  232. // this.status1 = true
  233. // }
  234. // if(res.data.orderStatus!="已终止"&&res.data.orderStatus!="平台驳回装车信息"&&res.data.orderStatus!="待平台确认装车"&&res.data.orderStatus!="待货主确认"&&res.data.orderStatus!="未装车"&&res.data.orderStatus!="待货主确认装车"&&res.data.orderStatus!="货主驳回装车信息"){
  235. // this.status2 = true
  236. // }
  237. }
  238. })
  239. },
  240. //车牌号弹出键盘
  241. handleShowKeyboard() {
  242. if (this.detailData.hyCarrierInfo.carNo == '') {
  243. this.carNumber = ''
  244. } else {
  245. this.carNumber = this.detailData.hyCarrierInfo.carNo
  246. }
  247. if (this.$refs.keyboard.open) {
  248. this.$refs.keyboard.open(false) //true 键盘显示 false 键盘隐藏
  249. } else {
  250. this.$refs.keyboard[0].open(false)
  251. }
  252. if (this.$refs.keyboard.open) {
  253. this.$refs.keyboard.open(true) //true 键盘显示 false 键盘隐藏
  254. } else {
  255. this.$refs.keyboard[0].open(true)
  256. }
  257. },
  258. //车牌号弹出键盘
  259. handleClick(e) {
  260. this.carNumber = e.value
  261. this.detailData.hyCarrierInfo.carNo = e.value //键盘输入值
  262. },
  263. getLngLat() {
  264. var that=this
  265. uni.showLoading({
  266. title: '获取定位中',
  267. mask: true
  268. })
  269. // this.$helper.fUN_AmapLocation.start({
  270. // intervalTime: 1000 * 3,
  271. // isReport: false,
  272. // },
  273. // res => {
  274. // //见下方定位返回示例
  275. // console.log('====fUN_AmapLocation定位====', JSON.stringify(res));
  276. // if (res.latitude) {
  277. // this.detailData.carrierInfo.loadingAreaLongitude = res.longitude;
  278. // this.detailData.carrierInfo.loadingAreaLatitude = res.latitude;
  279. // this.detailData.carrierInfo.sendCity = this.$helper.filterUrban(res.city)
  280. // this.detailData.carrierInfo.sendArea = this.$helper.filterArea(res.district);
  281. // console.log(this.detailData.carrierInfo.sendCity)
  282. // console.log(this.detailData.carrierInfo.sendArea)
  283. // this.$forceUpdate()
  284. // }
  285. // this.$helper.fUN_AmapLocation.stop({}, result => {
  286. // uni.hideLoading()
  287. // console.log('====fUN_AmapLocation定位stop====', JSON.stringify(result));
  288. // });
  289. // }
  290. // );
  291. console.log(111111)
  292. // console.log(that.detailData,111111)
  293. uni.getLocation({
  294. type: 'gcj02',
  295. geocode: true,
  296. success: res => {
  297. if (res.latitude) {
  298. that.detailData.hyCarrierInfo.longitudeLatitude=res.longitude+','+res.latitude
  299. that.detailData.hyCarrierInfo.loadingAreaLongitude = res.longitude;
  300. that.detailData.hyCarrierInfo.loadingAreaLatitude = res.latitude;
  301. that.detailData.hyCarrierInfo.sendCity = that.$helper.filterUrban(res.address.city)
  302. that.localtion.city = that.$helper.filterUrban(res.address.city)
  303. that.$set(that.detailData,'loadingArea',that.$helper.filterUrban(res.address.district))
  304. that.$set(that.detailData,'loadingCity',that.$helper.filterUrban(res.address.city))
  305. that.localtion.sendArea = that.$helper.filterUrban(res.address.district)
  306. // .loadingCity = that.$helper.filterUrban(res.address.city)
  307. that.detailData.loadingLongitude = res.longitude;
  308. that.detailData.loadingLatitude = res.latitude;
  309. console.log(res,that.detailData,22222)
  310. that.$forceUpdate()
  311. uni.hideLoading()
  312. } else {
  313. if (uni.getSystemInfoSync().platform == 'android') {
  314. var context = plus.android.importClass("android.content.Context");
  315. var locationManager = plus.android.importClass(
  316. "android.location.LocationManager");
  317. var main = plus.android.runtimeMainActivity();
  318. var mainSvr = main.getSystemService(context.LOCATION_SERVICE);
  319. that.bool = mainSvr.isProviderEnabled(locationManager.GPS_PROVIDER)
  320. }
  321. if (that.bool === false) {
  322. uni.showModal({
  323. title: '提示',
  324. content: '请打开定位服务',
  325. success: ({
  326. confirm,
  327. cancel
  328. }) => {
  329. if (confirm) {
  330. if (uni.getSystemInfoSync().platform == 'android') {
  331. var Intent = plus.android.importClass(
  332. 'android.content.Intent');
  333. var Settings = plus.android.importClass(
  334. 'android.provider.Settings');
  335. var intent = new Intent(Settings
  336. .ACTION_LOCATION_SOURCE_SETTINGS);
  337. var main = plus.android.runtimeMainActivity();
  338. main.startActivity(intent); // 打开系统设置GPS服务页面
  339. }
  340. }
  341. }
  342. });
  343. uni.hideLoading()
  344. }
  345. }
  346. },
  347. fail: res => {
  348. console.log('定位失败')
  349. console.log(res)
  350. uni.hideLoading()
  351. }
  352. });
  353. },
  354. alertBtn() {
  355. // uni.navigateTo({
  356. // url: '/pages/public/login'
  357. // })
  358. },
  359. cancelClick() {
  360. this.isShowAlert = false
  361. },
  362. // 删除图片
  363. deletePic(event) {
  364. this[`fileList${event.name}`].splice(event.index, 1)
  365. },
  366. // 新增图片
  367. async afterRead(event) {
  368. // 当设置 mutiple 为 true 时, file 为数组格式,否则为对象格式
  369. let lists = [].concat(event.file)
  370. let fileListLen = this[`fileList${event.name}`].length
  371. lists.map((item) => {
  372. this[`fileList${event.name}`].push({
  373. ...item,
  374. status: 'uploading',
  375. message: '上传中'
  376. })
  377. })
  378. for (let i = 0; i < lists.length; i++) {
  379. const result = await this.uploadFilePromise(lists[i].url)
  380. let item = this[`fileList${event.name}`][fileListLen]
  381. this[`fileList${event.name}`].splice(fileListLen, 1, Object.assign(item, {
  382. status: 'success',
  383. message: '',
  384. url: result
  385. }))
  386. fileListLen++
  387. }
  388. },
  389. uploadFilePromise(url) {
  390. uploadImage('image', url, 'appData/',
  391. result => {
  392. // 上传成功回调函数
  393. console.log('图片地址', result)
  394. this.imgList.push(result)
  395. }
  396. )
  397. },
  398. onProgress(e) {
  399. console.log(e)
  400. },
  401. submit(type) {
  402. if (type == 1) {
  403. if (this.detailData.driverContract != 1) { //合同签订标识
  404. this.$refs.uToast.show({
  405. type: 'error',
  406. message: "合同未签订不能暂存!"
  407. })
  408. return
  409. }
  410. this.alertTitle = '确定暂存装车信息?'
  411. } else {
  412. if (this.detailData.driverContract != 1) {
  413. this.$refs.uToast.show({
  414. type: 'error',
  415. message: "合同未签订不能提交!"
  416. })
  417. return
  418. }
  419. this.alertTitle = '确定提交装车信息?'
  420. }
  421. if (this.validate()) return
  422. this.isShowAlert = true
  423. this.detailData.statusFlag = type
  424. // this.$refs.uToast.show({
  425. // ...params,
  426. // complete() {
  427. // params.url && uni.navigateTo({
  428. // url: params.url
  429. // })
  430. // }
  431. // })
  432. },
  433. validate() {
  434. // uni.$u.test.isEmpty(this.detailData.carrierInfo.carNo
  435. if (uni.$u.test.isEmpty(this.detailData.carNo)) {
  436. this.$refs.uToast.show({
  437. type: 'error',
  438. message: "车牌号不能为空!",
  439. })
  440. return true
  441. }
  442. if (uni.$u.test.isEmpty(this.detailData.loadingDate)) {
  443. this.$refs.uToast.show({
  444. type: 'error',
  445. message: "装车日期不能为空!",
  446. })
  447. return true
  448. }
  449. if (uni.$u.test.isEmpty(this.detailData.freight)) {
  450. this.$refs.uToast.show({
  451. type: 'error',
  452. message: "预计运费不能为空!",
  453. })
  454. return true
  455. }
  456. // if (uni.$u.test.isEmpty(this.detailData.carrierInfo.sendCity)) {
  457. // this.$refs.uToast.show({
  458. // type: 'error',
  459. // message: "定位不能为空!",
  460. // })
  461. // return true
  462. // }
  463. // if (uni.$u.test.isEmpty(this.detailData.carrierInfo.sendArea)) {
  464. // this.$refs.uToast.show({
  465. // type: 'error',
  466. // message: "定位不能为空!",
  467. // })
  468. // return true
  469. // }
  470. if(this.imgList.length == 0){
  471. this.$refs.uToast.show({
  472. type: 'error',
  473. message: "装车照片不能为空!",
  474. })
  475. return true
  476. }
  477. },
  478. confirmClick() {
  479. var that=this
  480. this.isShowAlert = false
  481. //1暂存
  482. if (this.detailData.statusFlag == 1) {
  483. delete this.detailData.hyCarrierInfo.loadingAreaLongitude;
  484. delete this.detailData.hyCarrierInfo.loadingAreaLatitude;
  485. delete this.detailData.hyCarrierInfo.sendCity;
  486. delete this.detailData.hyCarrierInfo.sendArea;
  487. }
  488. uni.showLoading({
  489. title: '加载中'
  490. })
  491. let time = new Date() //装车时间 去当前时间的时分秒
  492. let h = time.getHours();
  493. if (h < 10) {
  494. h = "0" + h
  495. }
  496. let f = time.getMinutes();
  497. if (f < 10) {
  498. f = "0" + f
  499. }
  500. let m = time.getSeconds();
  501. if (m < 10) {
  502. m = "0" + m
  503. }
  504. var data={
  505. loadingImg:this.imgList.toString(),
  506. statusFlag:this.detailData.statusFlag,
  507. loadingDate:this.detailData.hyCarrierInfo.loadingDate.split(" ")[0] + " " + h + ":" + f + ":" + m,
  508. loadingArea:this.detailData.loadingArea,
  509. loadingCity:this.detailData.loadingCity,
  510. loadingLongitude:this.detailData.loadingLongitude,
  511. loadingLatitude:this.detailData.loadingLatitude,
  512. id:this.detailData.hyCarrierInfo.id
  513. }
  514. console.log("查看id--------",this.detailData.hyCarrierInfo.id)
  515. this.$request.baseRequest('post', '/carrierInfo/loadingAdd', data).then(res => {
  516. if (res.code == 200) {
  517. uni.hideLoading()
  518. let _title = ''
  519. if (this.detailData.statusFlag == 1) {
  520. _title = '暂存成功!'
  521. } else {
  522. _title = '提交成功!'
  523. }
  524. that.$helper.fUN_AmapLocation.start({
  525. // intervalTime: 1000 * 60,
  526. intervalTime: 5000,
  527. // locationCacheEnable:true,
  528. isReport: false
  529. // url: 'http://192.168.0.66/fun/open/test_json.do',
  530. // params: {
  531. // a: 1,
  532. // B: '测试',
  533. // c: true
  534. // },
  535. // headers: {
  536. // a: '123',
  537. // B: 'abcd'
  538. // }
  539. },
  540. res => {
  541. console.log('====确认装车开启连续定位====');
  542. console.log(res)
  543. let _data = {
  544. orderId: that.id,
  545. longitude: res.longitude,
  546. latitude: res.latitude,
  547. province: res.province,
  548. city: res.city,
  549. area: res.district
  550. }
  551. this.$helper.gjList.push(_data)
  552. uni.setStorageSync('mapGJ', this.$helper.gjList);
  553. console.log('this.$helper.gjList')
  554. console.log(this.$helper.gjList)
  555. console.log("条数", uni.getStorageSync('mapGJ').length)
  556. if (uni.getStorageSync('mapGJ').length > 100) {
  557. console.log(JSON.stringify(uni.getStorageSync('mapGJ')) )
  558. this.$request.baseRequest('post', '/hyOrderTravelPath/api/addInfo', {
  559. orderId:that.id,
  560. longitudeLatitude:JSON.stringify(uni.getStorageSync('mapGJ'))
  561. }).then(res => {
  562. uni.removeStorageSync('mapGJ');
  563. this.$helper.gjList = []
  564. })
  565. .catch(res => {
  566. uni.$u.toast(res.message);
  567. });
  568. }
  569. //判断缓存数据条数,超过reportInterval时清空缓存,重新存入缓存
  570. }
  571. );
  572. this.$refs.uToast.show({
  573. type: 'success',
  574. message: _title,
  575. complete() {
  576. uni.switchTab({
  577. url: '/pages/order/index'
  578. })
  579. }
  580. })
  581. }
  582. })
  583. .catch(res => {
  584. uni.$u.toast(res.message);
  585. });
  586. }
  587. },
  588. }
  589. </script>
  590. <style scoped lang="scss">
  591. .content {
  592. // . {
  593. // color: #333333;
  594. // }
  595. }
  596. .level2-title {
  597. margin: 0 0 20rpx 0;
  598. }
  599. .content1,
  600. .content2 {
  601. background: white;
  602. margin: 20rpx;
  603. border-radius: 20rpx;
  604. padding: 20rpx;
  605. .place {
  606. width: 80%;
  607. text-align: right;
  608. }
  609. }
  610. .upload {}
  611. .bottom-btn {
  612. display: flex;
  613. justify-content: space-around;
  614. margin-bottom: 50rpx;
  615. background: #FFFFFF;
  616. padding: 40rpx 0;
  617. }
  618. .store {
  619. padding: 20rpx 30rpx;
  620. color: #2772FB;
  621. width: 40%;
  622. background: #EEF4FF;
  623. border-radius: 40rpx;
  624. font-size: 36rpx;
  625. text-align: center;
  626. }
  627. .submit {
  628. font-size: 36rpx;
  629. padding: 20rpx 30rpx;
  630. color: white;
  631. width: 40%;
  632. background: #2772FB;
  633. border-radius: 40rpx;
  634. text-align: center;
  635. }
  636. .row-between {
  637. margin: 20rpx 0;
  638. }
  639. .sx-style {
  640. background: #2772FB;
  641. color: white;
  642. padding: 2rpx 16rpx;
  643. box-sizing: border-box;
  644. border-radius: 10rpx;
  645. margin-left: 20rpx;
  646. }
  647. .input {
  648. text-align: right;
  649. }
  650. .date-style {}
  651. </style>