contract.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950
  1. <template>
  2. <view class="center">
  3. <view v-for="(item , index) in lists" :Key="index" class="region">
  4. <view>
  5. <view class="c-row ">
  6. <text class="tit" v-if="item.orderType == '采购'">{{item.orderType}}</text>
  7. <text class="tit2" v-if="item.orderType == '销售'">{{item.orderType}}</text>
  8. <view class="enterprise">
  9. 编号{{item.contractNo}}({{item.procurementPlanType}})
  10. </view>
  11. <!-- <text class="status status1" v-if="item.status == '已挂单'">{{item.status}}</text>
  12. <text class="status status2" v-if="item.status == '已成交'">{{item.status}}</text>
  13. <text class="status status3" v-if="item.status == '已完成'">{{item.status}}</text>
  14. <text class="status status1" v-if="item.status == '审核中'">{{item.status}}</text>
  15. <text class="status status1" v-if="item.status == '执行中'">{{item.status}}</text> -->
  16. <text class="status status1">{{item.status}}</text>
  17. </view>
  18. </view>
  19. <view>
  20. <view class="c-row ">
  21. <text class="tit1" v-if="item.orderType == '采购'">买方</text>
  22. <text class="tit1" v-if="item.orderType == '销售'">卖方</text>
  23. <view class="enterprise">
  24. {{item.contracter}}
  25. </view>
  26. </view>
  27. </view>
  28. <view class="forList flex">
  29. <view class="title">{{item.goodsName}}:<text>{{item.transactionsNumber}}</text></view>
  30. <view class="title">单价:¥<text>{{item.unitPrice}}</text></view>
  31. <view class="title">基差:¥<text>{{item.basis}}</text></view>
  32. </view>
  33. <view class="c-row flex annius">
  34. <text class="anniu" @click="commit(item)"> 附件</text>
  35. <text class="anniu" @click="someprice(item)"
  36. v-if="item.procurementPlanType == '期货' && (item.status == '已成交' || item.status == '已挂单')"> 点价</text>
  37. <text class="anniu1" @click="commit1(item)" v-if="item.orderType == '采购'"> 发货</text>
  38. <!-- <text class="anniu" @click="commit"> 附件</text>
  39. <text class="anniu" @click="someprice(item)" v-if="item.procurementPlanType == '期货' && (item.status == '已成交' || item.status == '已挂单')"> 点价</text>
  40. <text class="anniu1" @click="commit1(item)" v-if="item.orderType == '采购'&&item.status != '待审核'"> 发货</text> -->
  41. <text class="anniu1" @click="commit2(item)" v-if="item.orderType == '销售'"> 收货</text>
  42. </view>
  43. </view>
  44. <view v-if='pricestatus' class='shade'>
  45. <view class='shade-content'>
  46. <view class="titles1">点价</view>
  47. <view class='shade-content-item flex'>
  48. <input v-model='price' placeholder="请输入点价价格" type="number" class="pointprice">
  49. <text style="font-size: 16px; color: #AFB3BF;margin-top: -3px;">元/吨</text>
  50. </view>
  51. <view class="flex">
  52. <view class="btns btn1" @click='pricestatus=false'>取消</view>
  53. <view class="btns btn2" @click='amendprice'>确定</view>
  54. </view>
  55. </view>
  56. </view>
  57. <view v-if='shadestatus' class='shade'>
  58. <view class='shade-content'>
  59. <view class='shade-content-item'>
  60. <view class="titles">请于以下时间段进行点价操作:</view>
  61. <view class="timeslot">11:30 ~ 12:30</view>
  62. <view class="timeslot">15:30 ~ 20:00</view>
  63. <view class="timeslot">23:00 ~ 08:00</view>
  64. </view>
  65. <view class="cancel" @click='shadestatus=false'>知道了</view>
  66. </view>
  67. </view>
  68. <view class="padding flex flex-direction">
  69. <!-- <button class="cu-btn commit margin-tb-sm lg" @click="commit">提交</button> -->
  70. </view>
  71. <!-- </block> -->
  72. </view>
  73. </template>
  74. <script>
  75. import uploadImage from '@/components/ossutil/uploadFile.js';
  76. import {
  77. mapState
  78. } from 'vuex';
  79. export default {
  80. name: "trust",
  81. data() {
  82. return {
  83. lists: [],
  84. shadestatus: false,
  85. pricestatus: false,
  86. goods: {
  87. pageSize: 10,
  88. currentPage: 1,
  89. // pcFlag : 0,
  90. },
  91. procurementPlanInfo: {
  92. pageSize: 10,
  93. currentPage: 1
  94. },
  95. price: "",
  96. tran: {
  97. total: 0,
  98. price: 0,
  99. startPlace: undefined,
  100. endPlace: undefined,
  101. goodsName: undefined,
  102. sender: '',
  103. senderPhone: '',
  104. status: 0,
  105. receiver: '',
  106. receiverPhone: '',
  107. verifyCode: '',
  108. driver: '',
  109. driverPhone: '',
  110. carNo: '',
  111. personNoImg: '',
  112. personNoImg1: '',
  113. driverNoImg: '',
  114. driverNoImg1: '',
  115. carNoImg: '',
  116. carNoImg1: ''
  117. },
  118. id: 0,
  119. PageCur: "trust",
  120. TabCur: 0,
  121. priceTypeIndex: -1,
  122. priceType: ['库内价', '到库价', '到港价'],
  123. unitPrice: 0,
  124. seller: '',
  125. sellerPhone: '',
  126. minSale: '',
  127. exsitCount: 0,
  128. origin: '',
  129. stock: '',
  130. goodsName: '',
  131. verifyCode: '',
  132. sendText0: '获取验证码',
  133. sendText1: '获取验证码',
  134. sendText2: '获取验证码',
  135. sendText3: '获取验证码',
  136. sendDisabled0: false,
  137. sendDisabled1: false,
  138. sendDisabled2: false,
  139. sendDisabled3: false,
  140. buyer: '',
  141. buyerPhone: '',
  142. level: '',
  143. sender: '',
  144. senderPhone: '',
  145. receiver: '',
  146. receiverPhone: '',
  147. total: 0,
  148. startPlace: '',
  149. endPlace: '',
  150. driver: '',
  151. driverPhone: '',
  152. carNo: '',
  153. personNoImg: '',
  154. personNoImg1: '',
  155. driverNoImg: '',
  156. driverNoImg1: '',
  157. carNoImg: '',
  158. carNoImg1: '',
  159. showTran: true
  160. };
  161. },
  162. computed: {
  163. ...mapState(['hasLogin', 'userInfo'])
  164. },
  165. // onShow() {
  166. // this.loadData()
  167. // },
  168. onLoad() {
  169. this.getList()
  170. },
  171. methods: {
  172. amendprice() {
  173. this.$api.doRequest('post', '/purchaseOrder/api/pointPrice', {
  174. id: this.id,
  175. unitPrice: Number(this.price)
  176. }).then(res => {
  177. if (res.data.code == 200) {
  178. this.pricestatus = false
  179. } else {
  180. uni.showToast({
  181. title: res.data.message,
  182. icon: 'none',
  183. duration: 2000
  184. })
  185. }
  186. })
  187. .catch(res => {
  188. uni.showToast({
  189. title: res.errmsg,
  190. icon: 'none',
  191. duration: 2000
  192. })
  193. });
  194. },
  195. someprice(item) {
  196. var time = new Date().getTime()
  197. var time1 = new Date(new Date(new Date().toLocaleDateString()).getTime() - (1 * 60 * 60 * 1000))
  198. var time2 = new Date()
  199. time2.setHours(8);
  200. time2.setMinutes(0);
  201. time2.setSeconds(0);
  202. var time3 = new Date()
  203. time3.setHours(11);
  204. time3.setMinutes(30);
  205. time3.setSeconds(0);
  206. var time4 = new Date()
  207. time4.setHours(12);
  208. time4.setMinutes(30);
  209. time4.setSeconds(0);
  210. var time5 = new Date()
  211. time5.setHours(15);
  212. time5.setMinutes(30);
  213. time5.setSeconds(0);
  214. var time6 = new Date()
  215. time6.setHours(20);
  216. time6.setMinutes(0);
  217. time6.setSeconds(0);
  218. if (time < time2.getTime() && time > time1 || time < time4.getTime() && time > time3.getTime() || time <
  219. time6.getTime() && time > time5.getTime()) {
  220. this.id = item.id
  221. this.pricestatus = true
  222. } else {
  223. this.shadestatus = true
  224. }
  225. },
  226. commit(item) {
  227. console.log(item)
  228. var list = item.addressUrl.toString().split(',')
  229. if(list.length > 0){
  230. uni.downloadFile({
  231. url: list[0],
  232. success: function (res) {
  233. var filePath = res.tempFilePath;
  234. uni.openDocument({
  235. filePath: filePath,
  236. success: function (res) {
  237. uni.hideLoading()
  238. console.log('打开文档成功');
  239. }
  240. });
  241. },
  242. })
  243. }
  244. // uni.navigateTo({
  245. // url: `/pageB/contract/enclosures?addressUrl=${item.addressUrl}`
  246. // })
  247. },
  248. commit1(item) {
  249. uni.navigateTo({
  250. url: `/pageB/contract/look?id=${item.id}&contractNo=${item.contractNo}&contracter=${item.contracter}&goodsName=${item.goodsName}`
  251. })
  252. },
  253. commit2(item) {
  254. uni.navigateTo({
  255. url: `/pageB/contract/collectLook?id=${item.id}&contractNo=${item.contractNo}&customer=${item.customer}&goodsName=${item.goodsName}&contracter=${item.contracter}`
  256. })
  257. },
  258. getList() {
  259. this.goods.commonId = this.userInfo.id
  260. // this.goods.pcFlag = 0
  261. this.$api.doRequest('get', '/purchaseOrder/selectPurchaseOrderApp', this.goods).then(res => {
  262. if (res.data.code == 200) {
  263. this.lists = res.data.data.records
  264. } else {
  265. uni.showToast({
  266. title: res.data.message,
  267. icon: 'none',
  268. duration: 2000
  269. })
  270. }
  271. })
  272. .catch(res => {
  273. uni.showToast({
  274. title: res.errmsg,
  275. icon: 'none',
  276. duration: 2000
  277. })
  278. });
  279. },
  280. ChooseImageCar() {
  281. uni.chooseImage({
  282. count: 1, //默认9
  283. sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
  284. sourceType: ['album', 'camera'], //从相册选择
  285. success: (res) => {
  286. //上传图片
  287. //图片路径可自行修改
  288. uploadImage(res.tempFilePaths[0], 'carNoImg/',
  289. result => {
  290. if (this.carNoImg.length != 0) {
  291. this.carNoImg1 = result
  292. } else {
  293. this.carNoImg = result
  294. }
  295. uni.hideLoading();
  296. }
  297. )
  298. }
  299. });
  300. },
  301. ViewImage(e) {
  302. var img = [];
  303. img = e.currentTarget.dataset.url.split(' ')
  304. uni.previewImage({
  305. current: 0,
  306. urls: img
  307. });
  308. },
  309. // DelImg(e) {
  310. // uni.showModal({
  311. // title: '提示',
  312. // content: '确定要删除该照片吗?',
  313. // cancelText: '取消',
  314. // confirmText: '确定',
  315. // success: res => {
  316. // if (res.confirm) {
  317. // if (e.currentTarget.dataset.index == 0) {
  318. // this.personNoImg = "";
  319. // } else if (e.currentTarget.dataset.index == 1) {
  320. // this.personNoImg1 = "";
  321. // } else if (e.currentTarget.dataset.index == 2) {
  322. // this.driverNoImg = "";
  323. // } else if (e.currentTarget.dataset.index == 3) {
  324. // this.driverNoImg1 = "";
  325. // } else if (e.currentTarget.dataset.index == 4) {
  326. // this.carNoImg = "";
  327. // } else if (e.currentTarget.dataset.index == 5) {
  328. // this.carNoImg1 = "";
  329. // }
  330. // }
  331. // }
  332. // })
  333. // },
  334. commit11() {
  335. if (this.hasLogin) {
  336. uni.showModal({
  337. title: '登录提示',
  338. content: '您尚未登录,是否立即登录?',
  339. showCancel: true,
  340. confirmText: '登录',
  341. success: (e) => {
  342. if (e.confirm) {
  343. uni.navigateTo({
  344. url: '/pagesB/contract/look'
  345. })
  346. }
  347. },
  348. fail: () => {},
  349. complete: () => {}
  350. })
  351. } else {
  352. const that = this
  353. if (this.TabCur == 0) {
  354. // if (!that.seller) {
  355. // this.$api.msg('请填写卖方');
  356. // return;
  357. // }
  358. // if (!that.sellerPhone) {
  359. // this.$api.msg('请填写手机号码');
  360. // return;
  361. // }
  362. // if (!that.exsitCount) {
  363. // this.$api.msg('请填写库存量');
  364. // return;
  365. // }
  366. // if (!that.minSale) {
  367. // this.$api.msg('请填写最小成交量');
  368. // return;
  369. // }
  370. // if (!that.goodsName) {
  371. // this.$api.msg('请填写货名');
  372. // return;
  373. // }
  374. // if (!that.verifyCode) {
  375. // this.$api.msg('请填写验证码');
  376. // return;
  377. // }
  378. // if (!that.price) {
  379. // that.$api.msg('请选择价格类型')
  380. // return
  381. // }
  382. // if (!that.unitPrice) {
  383. // that.$api.msg('请填写协议价格(元/吨)');
  384. // return
  385. // }
  386. // if (!that.origin) {
  387. // this.$api.msg('请填写产地');
  388. // return;
  389. // }
  390. // if (!that.stock) {
  391. // this.$api.msg('请填写库存地');
  392. // return;
  393. // }
  394. // if (!that.level) {
  395. // this.$api.msg('请填写国标等级');
  396. // return;
  397. // }
  398. // that.saleInfo.seller = that.seller
  399. // that.saleInfo.sellerPhone = that.sellerPhone
  400. // that.saleInfo.priceType = that.price
  401. // that.saleInfo.unitPrice = that.unitPrice
  402. // that.saleInfo.minSale = that.minSale
  403. // that.saleInfo.exsitCount = that.exsitCount
  404. // that.saleInfo.origin = that.origin
  405. // that.saleInfo.stock = that.stock
  406. // that.saleInfo.verifyCode = that.verifyCode
  407. // that.saleInfo.goodsName = that.goodsName
  408. // that.saleInfo.buyer = that.buyer
  409. // that.saleInfo.buyerPhone = that.buyerPhone
  410. // that.saleInfo.level = that.level
  411. } else if (this.TabCur == 1) {
  412. if (!that.buyer) {
  413. this.$api.msg('请填写买方');
  414. return;
  415. }
  416. if (!that.buyerPhone) {
  417. this.$api.msg('请填写手机号码');
  418. return;
  419. }
  420. if (!that.goodsName) {
  421. this.$api.msg('请填写货名');
  422. return;
  423. }
  424. if (!that.verifyCode) {
  425. this.$api.msg('请填写验证码');
  426. return;
  427. }
  428. if (!that.price) {
  429. that.$api.msg('请选择价格类型')
  430. return
  431. }
  432. if (!that.unitPrice) {
  433. that.$api.msg('请填写协议价格(元/吨)');
  434. return
  435. }
  436. if (!that.origin) {
  437. this.$api.msg('请填写产地');
  438. return;
  439. }
  440. if (!that.stock) {
  441. this.$api.msg('请填写库存地');
  442. return;
  443. }
  444. if (!that.level) {
  445. this.$api.msg('请填写国标等级');
  446. return;
  447. }
  448. that.saleInfo.seller = that.seller
  449. that.saleInfo.sellerPhone = that.sellerPhone
  450. that.saleInfo.priceType = that.price
  451. that.saleInfo.unitPrice = that.unitPrice
  452. that.saleInfo.minSale = that.minSale
  453. that.saleInfo.exsitCount = that.exsitCount
  454. that.saleInfo.origin = that.origin
  455. that.saleInfo.stock = that.stock
  456. that.saleInfo.verifyCode = that.verifyCode
  457. that.saleInfo.goodsName = that.goodsName
  458. that.saleInfo.buyer = that.buyer
  459. that.saleInfo.buyerPhone = that.buyerPhone
  460. that.saleInfo.level = that.level
  461. } else if (this.TabCur == 2) {
  462. if (!that.sender) {
  463. this.$api.msg('请填写发货方');
  464. return;
  465. }
  466. if (!that.senderPhone) {
  467. this.$api.msg('请填写发货方手机号码');
  468. return;
  469. }
  470. if (!that.receiver) {
  471. this.$api.msg('请填写收货方');
  472. return;
  473. }
  474. if (!that.receiverPhone) {
  475. this.$api.msg('请填写收货方手机号码');
  476. return;
  477. }
  478. if (!that.goodsName) {
  479. this.$api.msg('请填写货名');
  480. return;
  481. }
  482. if (!that.verifyCode) {
  483. this.$api.msg('请填写验证码');
  484. return;
  485. }
  486. that.tran.sender = that.sender
  487. that.tran.senderPhone = that.senderPhone
  488. that.tran.receiver = that.receiver
  489. that.tran.receiverPhone = that.receiverPhone
  490. that.tran.verifyCode = that.verifyCode
  491. that.tran.goodsName = that.goodsName
  492. that.tran.total = that.total
  493. that.tran.price = that.price
  494. that.tran.startPlace = that.startPlace
  495. that.tran.endPlace = that.endPlace
  496. } else if (this.TabCur == 3) {
  497. if (!that.startPlace) {
  498. this.$api.msg('请填写起始地');
  499. return;
  500. }
  501. if (!that.endPlace) {
  502. this.$api.msg('请填写目的地');
  503. return;
  504. }
  505. if (!that.driver) {
  506. this.$api.msg('请填写承运人');
  507. return;
  508. }
  509. if (!that.driverPhone) {
  510. this.$api.msg('请填写承运人手机号码');
  511. return;
  512. }
  513. if (!/(^1[3|4|5|7|8][0-9]{9}$)/.test(that.driverPhone)) {
  514. that.$api.msg('请输入正确的承运人手机号码');
  515. return
  516. }
  517. if (!that.carNo) {
  518. this.$api.msg('请填写车牌号');
  519. return;
  520. }
  521. if (!that.verifyCode) {
  522. this.$api.msg('请填写验证码');
  523. return;
  524. }
  525. if (!that.personNoImg || !that.personNoImg1) {
  526. that.$api.msg('请上传身份证正、反面照片');
  527. return
  528. }
  529. if (!that.driverNoImg || !that.driverNoImg1) {
  530. that.$api.msg('请上传驾驶证主、副页照片');
  531. return
  532. }
  533. if (!that.carNoImg || !that.carNoImg1) {
  534. that.$api.msg('请上传行车证主、副页照片');
  535. return
  536. }
  537. that.tran.driver = that.driver
  538. that.tran.driverPhone = that.driverPhone
  539. that.tran.verifyCode = that.verifyCode
  540. that.tran.price = that.price
  541. that.tran.startPlace = that.startPlace
  542. that.tran.endPlace = that.endPlace
  543. that.tran.carNo = that.carNo
  544. that.tran.personNoImg = that.personNoImg
  545. that.tran.personNoImg1 = that.personNoImg1
  546. that.tran.driverNoImg = that.driverNoImg
  547. that.tran.driverNoImg1 = that.driverNoImg1
  548. that.tran.carNoImg = that.carNoImg
  549. that.tran.carNoImg1 = that.carNoImg1
  550. }
  551. // 获取用户的当前设置,判断是否点击了“总是保持以上,不在询问”
  552. wx.getSetting({
  553. // withSubscriptions: true,//是否获取用户订阅消息的订阅状态,默认false不返回
  554. success(res) {
  555. if (res.authSetting['scope.subscribeMessage']) {
  556. uni.openSetting({ // 打开设置页
  557. success(res) {
  558. console.log(res.authSetting)
  559. }
  560. });
  561. } else { // 用户没有点击“总是保持以上,不再询问”则每次都会调起订阅消息
  562. uni.requestSubscribeMessage({
  563. tmplIds: ['8cVkckXi_8zfHeScXRHhjN6cgZFYYCWIMPDTiPWagXY'], //
  564. success(res) {
  565. if (res['8cVkckXi_8zfHeScXRHhjN6cgZFYYCWIMPDTiPWagXY'] ==
  566. "accept") { // 字段就是tmplIds模板id
  567. uni.showLoading({
  568. title: '正在提交',
  569. mask: true
  570. })
  571. if (that.TabCur == 0) {
  572. that.$api.request('sale', 'addSale', that.saleInfo,
  573. failres => {
  574. uni.hideLoading()
  575. that.$api.msg(failres.errmsg);
  576. }).then(res => {
  577. uni.hideLoading()
  578. uni.showModal({
  579. title: '提示',
  580. content: "发布提交成功,工作人员会尽快联系该号码:" +
  581. that.sellerPhone,
  582. showCancel: false,
  583. confirmText: '确定',
  584. success: () => {
  585. uni.navigateBack()
  586. }
  587. })
  588. // that.$api.prePage().refreshList(data, that.manageType);
  589. })
  590. } else if (that.TabCur == 1) {
  591. that.$api.request('sale', 'addBuy', that.saleInfo,
  592. failres => {
  593. uni.hideLoading()
  594. that.$api.msg(failres.errmsg);
  595. }).then(res => {
  596. uni.hideLoading()
  597. uni.showModal({
  598. title: '提示',
  599. showCancel: false,
  600. content: "发布提交成功,工作人员会尽快联系该号码:" +
  601. that.buyerPhone,
  602. confirmText: '确定',
  603. success: () => {
  604. uni.navigateBack()
  605. }
  606. })
  607. // that.$api.prePage().refreshList(data, that.manageType);
  608. })
  609. } else if (that.TabCur == 2) {
  610. that.$api.request('tran', 'addTran', that.tran,
  611. failres => {
  612. uni.hideLoading()
  613. that.$api.msg(failres.errmsg);
  614. }).then(res => {
  615. uni.hideLoading()
  616. uni.showModal({
  617. title: '提示',
  618. showCancel: false,
  619. content: "发布提交成功,工作人员会尽快联系该号码:" +
  620. that.senderPhone,
  621. confirmText: '确定',
  622. success: () => {
  623. uni.navigateBack()
  624. }
  625. })
  626. // that.$api.prePage().refreshList(data, that.manageType);
  627. })
  628. } else if (that.TabCur == 3) {
  629. that.$api.request('tran', 'addCarDriver', that.tran,
  630. failres => {
  631. uni.hideLoading()
  632. that.$api.msg(failres.errmsg);
  633. }).then(res => {
  634. uni.hideLoading()
  635. uni.showModal({
  636. title: '提示',
  637. showCancel: false,
  638. content: "发布提交成功,工作人员会尽快联系该号码:" +
  639. that.driverPhone,
  640. confirmText: '确定',
  641. success: () => {
  642. uni.navigateBack()
  643. }
  644. })
  645. // that.$api.prePage().refreshList(data, that.manageType);
  646. })
  647. }
  648. }
  649. }
  650. })
  651. }
  652. }
  653. })
  654. }
  655. }
  656. },
  657. }
  658. </script>
  659. <style scoped>
  660. .center {
  661. padding: 10px 20px;
  662. background-color: #F5F6FA;
  663. }
  664. .region {
  665. background-color: #FFFFFF;
  666. border-radius: 20px;
  667. margin-top: 10px;
  668. }
  669. .zan-dialog__mask {
  670. position: fixed;
  671. top: 0;
  672. left: 0;
  673. right: 0;
  674. bottom: 0;
  675. z-index: 10;
  676. background: rgba(0, 0, 0, 0);
  677. /*设置阴影半透明背景如: background: rgba(0, 0, 0, 0.4);*/
  678. display: none;
  679. }
  680. .zan-dialog__container {
  681. position: fixed;
  682. bottom: 400rpx;
  683. width: 650rpx;
  684. /*弹窗布局宽*/
  685. height: 350rpx;
  686. /*弹窗布局高,与下面弹出距离transform有关*/
  687. margin-left: 50rpx;
  688. background: #f8f8f8;
  689. transform: translateY(300%);
  690. /*弹框弹出距离,与弹框布局高度有关,如300%表示弹起距离为3倍弹窗高度 */
  691. transition: all 0.4s ease;
  692. z-index: 12;
  693. border-radius: 20rpx;
  694. box-shadow: 0px 3px 3px 2px gainsboro;
  695. /*弹框的悬浮阴影效果,如不需要可注释该行*/
  696. }
  697. .zan-dialog--show .zan-dialog__container {
  698. transform: translateY(0);
  699. }
  700. .zan-dialog--show .zan-dialog__mask {
  701. display: block;
  702. }
  703. .container {
  704. padding-bottom: 160rpx;
  705. }
  706. .cu-form-group input {
  707. text-align: right;
  708. }
  709. .text-white text {
  710. background: linear-gradient(45deg, #3DC146, #B2D612);
  711. padding: 5px 10px;
  712. border-radius: 38rpx;
  713. }
  714. .cu-form-group textarea {
  715. text-align: right;
  716. }
  717. .commit {
  718. background: linear-gradient(45deg, #DF331C, #DA611A);
  719. color: #fff;
  720. }
  721. .shade {
  722. position: fixed;
  723. top: 0;
  724. left: 0;
  725. width: 100%;
  726. background: rgba(0, 0, 0, 0.5);
  727. height: 100%;
  728. z-index: 999999;
  729. }
  730. .shade-content {
  731. background: #fff;
  732. position: absolute;
  733. top: 50%;
  734. left: 50%;
  735. border-radius: 20px;
  736. transform: translateX(-50%) translateY(-50%);
  737. z-index: 999999;
  738. text-align: center;
  739. }
  740. .shade-content-item {
  741. width: 277px;
  742. text-align: center;
  743. height: 121px;
  744. padding: 35px 10px;
  745. }
  746. .c-row {
  747. display: -webkit-box;
  748. display: -webkit-flex;
  749. display: flex;
  750. -webkit-box-align: center;
  751. -webkit-align-items: center;
  752. align-items: center;
  753. padding: 20rpx 30rpx;
  754. position: relative;
  755. }
  756. .con-list {
  757. -webkit-box-flex: 1;
  758. -webkit-flex: 1;
  759. flex: 1;
  760. display: -webkit-box;
  761. display: -webkit-flex;
  762. display: flex;
  763. -webkit-box-orient: vertical;
  764. -webkit-box-direction: normal;
  765. -webkit-flex-direction: column;
  766. flex-direction: column;
  767. color: #303133;
  768. line-height: 40rpx;
  769. text-align: right;
  770. padding-right: 20rpx;
  771. font-size: 14px;
  772. }
  773. .forList {
  774. width: 90%;
  775. height: 30px;
  776. margin: 0 auto;
  777. background-color: #F9F9FA;
  778. border-radius: 10px;
  779. }
  780. .forList .title {
  781. line-height: 30px;
  782. margin-left: 25px;
  783. color: #9698A2;
  784. }
  785. .tit {
  786. width: 34px;
  787. height: 24px;
  788. background-color: #E9F8F0;
  789. color: #22C572;
  790. padding: 2px 3px;
  791. border-radius: 5px;
  792. }
  793. .tit1 {
  794. width: 34px;
  795. height: 24px;
  796. background-color: #FEECE6;
  797. color: #FE6430;
  798. padding: 2px 3px;
  799. border-radius: 5px;
  800. }
  801. .tit2 {
  802. width: 34px;
  803. height: 24px;
  804. background-color: #EBEEFA;
  805. color: #5C76DF;
  806. padding: 2px 3px;
  807. border-radius: 5px;
  808. }
  809. .enterprise {
  810. font-size: 16px;
  811. font-weight: 600;
  812. margin-left: 20px;
  813. }
  814. .annius {
  815. width: 70%;
  816. margin-left: 110px;
  817. justify-content: flex-end;
  818. }
  819. .anniu {
  820. width: 50px;
  821. font-size: 16px;
  822. border: 1px solid #CDCDCD;
  823. border-radius: 12px;
  824. position: relative;
  825. margin-right: 10px;
  826. text-align: center;
  827. line-height: 30px;
  828. }
  829. .anniu1 {
  830. width: 50px;
  831. font-size: 16px;
  832. border: 1px solid #22C572;
  833. border-radius: 15px;
  834. color: #22C572;
  835. position: relative;
  836. margin-right: 10px;
  837. text-align: center;
  838. line-height: 30px;
  839. }
  840. .titles {
  841. color: #333333;
  842. font-size: 16px;
  843. font-weight: 600;
  844. margin-top: -16px;
  845. margin-bottom: 10px;
  846. }
  847. .timeslot {
  848. font-size: 14px;
  849. color: #333333;
  850. height: 20px;
  851. }
  852. .cancel {
  853. text-align: center;
  854. width: 100%;
  855. color: #22C572;
  856. border-top: 1px solid #EEEEEE;
  857. margin-bottom: 6px;
  858. font-size: 18px;
  859. line-height: 40px;
  860. display: inline-block;
  861. }
  862. .pointprice {
  863. border-bottom: 1px solid #EEEEEE;
  864. text-align: left;
  865. padding-left: 10px;
  866. width: 70%;
  867. margin: 0 auto;
  868. }
  869. .titles1 {
  870. color: #333333;
  871. font-size: 16px;
  872. font-weight: 600;
  873. margin-top: 10px;
  874. }
  875. .btns {
  876. width: 50%;
  877. line-height: 50px;
  878. font-size: 18px;
  879. border-top: 1px solid #EEEEEE;
  880. margin-top: -20px;
  881. }
  882. .btn1 {
  883. color: #AFB3BF;
  884. border-right: 1px solid #EEEEEE;
  885. }
  886. .btn2 {
  887. color: #22C572;
  888. }
  889. .status {
  890. right: 20px;
  891. position: absolute;
  892. }
  893. .status1 {
  894. color: #FE6430;
  895. }
  896. .status2 {
  897. color: #22C572;
  898. }
  899. .status3 {
  900. color: #AFB3BF;
  901. }
  902. </style>