contractdetail.vue 23 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010
  1. <template>
  2. <view>
  3. <view class="headboxcon">
  4. <view class="contractin">
  5. <text class="tis">合同基础信息</text>
  6. <view class="tip">
  7. <text class="yu">合同名称</text>
  8. <text class="yuna">{{msg.name}}</text>
  9. </view>
  10. <view class="tip">
  11. <text class="yu">合同编号</text>
  12. <text class="yuna">{{msg.contractNo}}</text>
  13. </view>
  14. <view class="tipup">
  15. <text class="yu">合同附件</text>
  16. <view class="upbox">
  17. <u-upload :fileList="fileList1" @afterRead="afterRead" @delete="deletePic" name="1" multiple
  18. :maxCount="fileList1.length" :deletable="false"></u-upload>
  19. </view>
  20. </view>
  21. <view class="tipup">
  22. <text class="yu">发票附件</text>
  23. <view class="upbox">
  24. <u-upload :fileList="fileList2" @afterRead="afterRead" @delete="deletePic" name="2" multiple
  25. :maxCount="fileList2.length" :deletable="false"></u-upload>
  26. </view>
  27. </view>
  28. <view class="tipup">
  29. <text class="yu">贸易合同</text>
  30. <view class="upbox">
  31. <u-upload :fileList="fileList3" @afterRead="afterRead" @delete="deletePic" name="3" multiple
  32. :maxCount="fileList3.length" :deletable="false"></u-upload>
  33. </view>
  34. </view>
  35. <view class="tip" style="border-top: 1rpx solid #E8E8E8;margin-top: 20rpx;padding-top: 30rpx;">
  36. <text class="yu">合同状态</text>
  37. <text v-if="msg.statusText=='待审核'" :style="{'color':'#D05C39;'}">{{msg.statusText}}</text>
  38. <text v-if="msg.statusText=='失败'" :style="{'color':'#1F242A'}">{{msg.statusText}}</text>
  39. <text v-if="msg.statusText=='已删除'" :style="{'color':'#1F242A'}">{{msg.statusText}}</text>
  40. <text v-if="msg.statusText=='成功'" :style="{'color':'#D8AB5A'}">{{msg.statusText}}</text>
  41. </view>
  42. <view class="">
  43. <view class="tipup " style="display: flex;flex-direction: column;">
  44. <text class="yu">审核反馈</text>
  45. <view>
  46. <textarea :placeholder="placehodertitle"
  47. style="background-color: #F6F6F6;width: 640rpx;height: 200rpx;border-radius: 20rpx;padding: 20rpx;box-sizing: border-box;margin:20rpx 0;margin-bottom: 30rpx;"
  48. v-model="feedback" :disabled="disabled"></textarea>
  49. </view>
  50. </view>
  51. <view class="tipup">
  52. <text class="yu">反馈截图</text>
  53. <view class="upbox" style="margin-bottom: 30rpx;" v-if="state==0">
  54. <u-upload :fileList="fileList4" @afterRead="afterRead" @delete="deletePic" name="4" multiple
  55. :maxCount="6" :disabled="disabled" :deletable="delablepic"></u-upload>
  56. </view>
  57. <view class="upbox" style="margin-bottom: 30rpx;" v-if="state==1">
  58. <u-upload :fileList="fileList4" @afterRead="afterRead" @delete="deletePic" name="4" multiple
  59. :maxCount="fileList4.length" :deletable="delablepic"></u-upload>
  60. </view>
  61. </view>
  62. </view>
  63. </view>
  64. </view>
  65. <view class="acpcardlist">
  66. <view class="lable " v-for="(item,index) in msg.contractDraft.result" :key="index">
  67. <view class="radiobox" v-if="editall">
  68. <radio :value="index" :checked="item.checked" color="#D8AB5A" @click="checkBox(item.id)" />
  69. </view>
  70. <view class="acpcard" @click="billDetail(item.id,index)">
  71. <view class="allmsg">
  72. <view class="acpcont">
  73. <view class="acpname">
  74. <view>
  75. <text style="flex: 1;">{{item.name}}</text>
  76. <text class="ardydele" v-if="item.draftStatus==1">已删除</text>
  77. </view>
  78. <view class="tag">{{item.statusText}}</view>
  79. </view>
  80. <view class="acpinfo ">
  81. <text class="pt">汇票号码:{{item.draftNo}}</text>
  82. <text class="pt">金额:¥ {{item.money}}</text>
  83. <text class="pt">服务费:¥ {{item.serviceMoney}}</text>
  84. <text class="pt">承兑人:{{item.acceptorName}}</text>
  85. </view>
  86. </view>
  87. </view>
  88. </view>
  89. </view>
  90. </view>
  91. <view class="totalmanage ">
  92. <text style="color:#68625B;font-size: 28rpx;">合计:{{msg.contractDraft.total?msg.contractDraft.total:''}}份</text>
  93. <view class=" maboxtitls" @click="editall=true" v-if="msg.statusText!='待审核'">
  94. <view class="managebox">
  95. <image src="/static/img/manage.png" mode="aspectFit"></image>
  96. </view>
  97. <text style="padding-left: 15rpx;">管理</text>
  98. </view>
  99. </view>
  100. <view style="padding-bottom:150rpx;"></view>
  101. <view class="safebt"></view>
  102. <!-- <view class="newbill flex1" v-if="state==1&&msg.statusText=='失败'" >
  103. <view class="newbillbtn" @click="addBill">
  104. <text>新增汇票</text>
  105. </view>
  106. </view> -->
  107. <view class="newbill flex1" v-if="state==1&&msg.statusText=='成功'">
  108. <view class="newbillbtn" @click="addBill">
  109. <text>新增汇票</text>
  110. </view>
  111. </view>
  112. <view class="newbill flex1" v-if="state==0">
  113. <view class="choosebtn">
  114. <view class="delbtn flex1" @click="examineFail()">审核失败</view>
  115. <view class="succbtn flex1" @click="examineSuccess()">审核成功</view>
  116. </view>
  117. </view>
  118. <!-- <view class="newbill flex1" >
  119. <view class="newbillbtn" @click="tryAgain">
  120. <text>重新提交</text>
  121. </view>
  122. </view> -->
  123. <view class="newbill flex1" v-if="msg.statusText=='失败'&&state==1">
  124. <view class="choosebtn">
  125. <view class="delbtn flex1" @click="tryAgain()">重新提交</view>
  126. <view class="succbtn flex1" @click="addBill()">新增汇票</view>
  127. </view>
  128. </view>
  129. <!-- 底部删除 -->
  130. <u-popup :show="editall&&state==1" @close="closeEidt" @open="openEidt" :overlay="false">
  131. <view class="editbox">
  132. <view class="chooseall flex6">
  133. <view class="leftchoose ">
  134. <radio :checked="quan" @click="makeSureAll" color="#D8AB5A"></radio>
  135. <text>全选</text>
  136. </view>
  137. <view class="surebtn" @click="selectDown">
  138. 完成
  139. </view>
  140. </view>
  141. <view class="choosebtn">
  142. <view class="delbtn flex1" @click="dele()">刪除</view>
  143. <view class="restorebtn flex1" @click="restore()">复原</view>
  144. </view>
  145. </view>
  146. </u-popup>
  147. <!-- 底部删除 -->
  148. <u-popup :show="editall&&state==0" @close="closeEidt" @open="openEidt" :overlay="false">
  149. <view class="editbox">
  150. <view class="chooseall flex6">
  151. <view class="leftchoose ">
  152. <radio :checked="quan" @click="makeSureAll" color="#D8AB5A"></radio>
  153. <text>全选</text>
  154. </view>
  155. <view class="anniu">
  156. <text class="usa" @click="dele()">删除</text>
  157. <text class="usa" @click="restore()">复原</text>
  158. <text @click="selectDown" class="usa">完成</text>
  159. </view>
  160. </view>
  161. <view class="choosebtn">
  162. <view class="delbtn flex1" @click="examineBillFail()">审核失败</view>
  163. <view class="restorebtn flex1" @click="examineBillSuccess()">审核成功</view>
  164. </view>
  165. </view>
  166. </u-popup>
  167. </view>
  168. </template>
  169. <script>
  170. let that
  171. import {
  172. mainUrl
  173. } from '@/http/baseUrl.js';
  174. export default {
  175. data() {
  176. return {
  177. editall: false,
  178. quan: false,
  179. state: 0,
  180. fileList1: [],
  181. fileList2: [],
  182. fileList3: [],
  183. fileList4: [],
  184. msg: '',
  185. id: '',
  186. fankui: '',
  187. feedback: '',
  188. disabled: false,
  189. delablepic: true,
  190. placehodertitle: '请输入审核反馈'
  191. }
  192. },
  193. onLoad(o) {
  194. that = this
  195. if (o.id) {
  196. this.id = o.id
  197. }
  198. this.state = this.$store.state.admin
  199. if (this.state == 1) {
  200. this.disabled = true
  201. this.delablepic = false
  202. }
  203. },
  204. onShow() {
  205. this.init()
  206. },
  207. methods: {
  208. init() {
  209. uni.showLoading()
  210. uni.$u.http.get(`/api/Contract/${this.id}`, {
  211. custom: {
  212. auth: true
  213. }
  214. }).then((res) => {
  215. uni.hideLoading()
  216. this.msg = res
  217. this.msg.contractDraft.result.forEach(item => {
  218. item.checked = false
  219. })
  220. const newData1 = res.picList.map((item) => {
  221. return {
  222. url: item,
  223. }
  224. })
  225. this.fileList1 = newData1
  226. const newData2 = res.invoicePicList.map((item) => {
  227. return {
  228. url: item,
  229. }
  230. })
  231. this.fileList2 = newData2
  232. const newData3 = res.tradePicList.map((item) => {
  233. return {
  234. url: item,
  235. }
  236. })
  237. this.fileList3 = newData3
  238. if (res.feedbackPics) {
  239. const newData4 = res.feedbackPics.map((item) => {
  240. return {
  241. url: item,
  242. }
  243. })
  244. this.fileList4 = newData4
  245. }
  246. if (this.state == 1) {
  247. if (res.feedback.length > 0) {
  248. this.feedback = res.feedback
  249. } else {
  250. this.feedback = "无"
  251. }
  252. } else {
  253. if (res.feedback.length > 0) {
  254. this.feedback = res.feedback
  255. } else {
  256. this.placehodertitle = "请输入审核反馈"
  257. }
  258. }
  259. }).catch((err) => {
  260. uni.hideLoading()
  261. console.log(err)
  262. })
  263. },
  264. openEidt() {
  265. this.editall = true
  266. },
  267. checkBox(id) {
  268. let list = this.msg.contractDraft.result
  269. list.forEach(item => {
  270. if (item.id == id) {
  271. item.checked = !item.checked
  272. }
  273. })
  274. this.msg.contractDraft.result = JSON.parse(JSON.stringify(list))
  275. },
  276. allSelect() {
  277. let list = this.msg.contractDraft.result
  278. if (this.quan) {
  279. list.forEach(item => {
  280. item.checked = true
  281. })
  282. } else {
  283. list.forEach(item => {
  284. item.checked = false
  285. })
  286. }
  287. this.msg.contractDraft.result = JSON.parse(JSON.stringify(list))
  288. },
  289. acpDetail() {
  290. uni.navigateTo({
  291. url: "/pages/alldeatil/acptdetail"
  292. })
  293. },
  294. addBill() {
  295. let obj = {
  296. contractId: this.id
  297. }
  298. uni.navigateTo({
  299. url: "/pages/alldeatil/addbill?obj=" + JSON.stringify(obj)
  300. })
  301. },
  302. billDetail(id, index) {
  303. // if(this.msg.statusText=="待审核"&&this.state==1){
  304. // return
  305. // }else{
  306. let obj = {
  307. id: id,
  308. index: index,
  309. contractId: this.id,
  310. statusText: this.msg.statusText
  311. }
  312. uni.navigateTo({
  313. url: "/pages/alldeatil/billdetail?obj=" + JSON.stringify(obj)
  314. })
  315. // }
  316. },
  317. makeSureAll() {
  318. this.quan = !this.quan
  319. this.allSelect()
  320. },
  321. selectDown() {
  322. this.editall = false
  323. this.quan = true
  324. let list = this.msg.contractDraft.result
  325. list.forEach(item => {
  326. item.checked = false
  327. })
  328. },
  329. tryAgain() {
  330. let obj = this.msg
  331. uni.navigateTo({
  332. url: "/pages/alldeatil/upcontract?obj=" + JSON.stringify(obj)
  333. })
  334. },
  335. examineSuccess() {
  336. // let ids = []
  337. // ids.push(this.id)
  338. uni.showModal({
  339. title: '提示',
  340. content: "是否审核成功?",
  341. success: function(res) {
  342. if (res.confirm) {
  343. let form = {
  344. id: Number(that.id),
  345. approveStatus: 1
  346. }
  347. if (that.fileList4.length > 0) {
  348. let feedbackPicList = []
  349. that.fileList4.forEach(item => {
  350. feedbackPicList.push(item.url)
  351. })
  352. form.feedbackPicList = feedbackPicList
  353. }
  354. let feedback = that.feedback
  355. if (feedback.length > 0) {
  356. form.feedback = feedback
  357. }
  358. // ={
  359. // feedback:feedback,
  360. // feedbackPicList:feedbackPicList
  361. // }
  362. uni.showLoading()
  363. uni.$u.http.post('api/Contract/approveContract', form, {
  364. custom: {
  365. auth: true
  366. }
  367. }).then((res) => {
  368. uni.hideLoading()
  369. that.editall = false
  370. that.quan = false
  371. that.$toast("操作成功")
  372. setTimeout(() => {
  373. that.init()
  374. }, 500)
  375. }).catch((err) => {
  376. uni.hideLoading()
  377. that.$toast(err.msg)
  378. })
  379. } else if (res.cancel) {
  380. }
  381. }
  382. })
  383. },
  384. examineFail() {
  385. uni.showModal({
  386. title: '提示',
  387. content: "是否审核失败?",
  388. success: function(res) {
  389. if (res.confirm) {
  390. let form = {
  391. id: Number(that.id),
  392. approveStatus: 2
  393. }
  394. if (that.fileList4.length > 0) {
  395. let feedbackPicList = []
  396. that.fileList4.forEach(item => {
  397. feedbackPicList.push(item.url)
  398. })
  399. form.feedbackPicList = feedbackPicList
  400. }
  401. let feedback = that.feedback
  402. if (feedback.length > 0) {
  403. form.feedback = feedback
  404. }
  405. // ={
  406. // feedback:feedback,
  407. // feedbackPicList:feedbackPicList
  408. // }
  409. uni.showLoading()
  410. uni.$u.http.post('api/Contract/approveContract', form, {
  411. custom: {
  412. auth: true
  413. }
  414. }).then((res) => {
  415. uni.hideLoading()
  416. that.editall = false
  417. that.quan = false
  418. that.$toast("操作成功")
  419. setTimeout(() => {
  420. that.init()
  421. }, 500)
  422. }).catch((err) => {
  423. uni.hideLoading()
  424. that.$toast(err.msg)
  425. })
  426. } else if (res.cancel) {
  427. }
  428. }
  429. })
  430. },
  431. examineBillSuccess() {
  432. let ids = []
  433. this.msg.contractDraft.result.forEach(item => {
  434. if (item.checked) {
  435. ids.push(item.id)
  436. }
  437. })
  438. if (ids.length == 0) {
  439. that.$toast("请选择汇票")
  440. return
  441. }
  442. uni.showModal({
  443. title: '提示',
  444. content: "是否批量审核成功?",
  445. success: function(res) {
  446. if (res.confirm) {
  447. uni.showLoading()
  448. uni.$u.http.post('/api/Contract/contractDraft/manager', {
  449. ids: ids,
  450. operateType: 3
  451. }, {
  452. custom: {
  453. auth: true
  454. }
  455. }).then((res) => {
  456. uni.hideLoading()
  457. that.editall = false
  458. that.quan = false
  459. that.$toast("操作成功")
  460. setTimeout(() => {
  461. that.init()
  462. }, 500)
  463. }).catch((err) => {
  464. uni.hideLoading()
  465. that.$toast(err.msg)
  466. })
  467. } else if (res.cancel) {
  468. }
  469. }
  470. })
  471. },
  472. examineBillFail() {
  473. let ids = []
  474. this.msg.contractDraft.result.forEach(item => {
  475. if (item.checked) {
  476. ids.push(item.id)
  477. }
  478. })
  479. if (ids.length == 0) {
  480. this.$toast("请选择汇票")
  481. return
  482. }
  483. uni.showModal({
  484. title: '提示',
  485. content: '是否审核失败?',
  486. success: function(res) {
  487. if (res.confirm) {
  488. uni.showLoading()
  489. uni.$u.http.post('/api/Contract/contractDraft/manager', {
  490. ids: ids,
  491. operateType: 4
  492. }, {
  493. custom: {
  494. auth: true
  495. }
  496. }).then((res) => {
  497. uni.hideLoading()
  498. that.editall = false
  499. that.quan = false
  500. that.$toast("操作成功")
  501. setTimeout(() => {
  502. that.init()
  503. }, 500)
  504. }).catch((err) => {
  505. uni.hideLoading()
  506. that.$toast(err.msg)
  507. })
  508. } else if (res.cancel) {
  509. console.log('用户点击取消');
  510. }
  511. }
  512. });
  513. },
  514. dele() {
  515. let ids = []
  516. this.msg.contractDraft.result.forEach(item => {
  517. if (item.checked) {
  518. ids.push(item.id)
  519. }
  520. })
  521. if (ids.length == 0) {
  522. that.$toast("请选择汇票")
  523. return
  524. }
  525. uni.showModal({
  526. title: '提示',
  527. content: "是否删除汇票?",
  528. success: function(res) {
  529. if (res.confirm) {
  530. uni.showLoading()
  531. uni.$u.http.post('/api/Contract/contractDraft/manager', {
  532. ids: ids,
  533. operateType: 1
  534. }, {
  535. custom: {
  536. auth: true
  537. }
  538. }).then((res) => {
  539. uni.hideLoading()
  540. that.editall = false
  541. that.quan = false
  542. that.$toast("操作成功")
  543. setTimeout(() => {
  544. that.init()
  545. }, 500)
  546. }).catch((err) => {
  547. uni.hideLoading()
  548. that.$toast(err.msg)
  549. })
  550. } else if (res.cancel) {
  551. }
  552. }
  553. })
  554. },
  555. restore() {
  556. let ids = []
  557. this.msg.contractDraft.result.forEach(item => {
  558. if (item.checked) {
  559. ids.push(item.id)
  560. }
  561. })
  562. if (ids.length == 0) {
  563. that.$toast("请选择汇票")
  564. return
  565. }
  566. uni.showModal({
  567. title: '提示',
  568. content: "是否复原汇票?",
  569. success: function(res) {
  570. if (res.confirm) {
  571. uni.showLoading()
  572. uni.$u.http.post('/api/Contract/contractDraft/manager', {
  573. ids: ids,
  574. operateType: 2
  575. }, {
  576. custom: {
  577. auth: true
  578. }
  579. }).then((res) => {
  580. uni.hideLoading()
  581. that.editall = false
  582. that.quan = false
  583. that.$toast("操作成功")
  584. setTimeout(() => {
  585. that.init()
  586. }, 500)
  587. }).catch((err) => {
  588. uni.hideLoading()
  589. that.$toast(err.msg)
  590. })
  591. } else if (res.cancel) {
  592. }
  593. }
  594. })
  595. },
  596. deleContract() {
  597. let ids = []
  598. this.msg.contractDraft.result.forEach(item => {
  599. if (item.checked) {
  600. ids.push(item.id)
  601. }
  602. })
  603. if (ids.length == 0) {
  604. that.$toast("请选择汇票")
  605. return
  606. }
  607. uni.showModal({
  608. title: '提示',
  609. content: "是否删除汇票?",
  610. success: function(res) {
  611. if (res.confirm) {
  612. uni.showLoading()
  613. uni.$u.http.post('/api/Contract/contractDraft/manager', {
  614. ids: ids,
  615. operateType: 1
  616. }, {
  617. custom: {
  618. auth: true
  619. }
  620. }).then((res) => {
  621. uni.hideLoading()
  622. that.editall = false
  623. that.quan = false
  624. that.$toast("操作成功")
  625. setTimeout(() => {
  626. that.init()
  627. }, 500)
  628. }).catch((err) => {
  629. uni.hideLoading()
  630. that.$toast(err.msg)
  631. })
  632. } else if (res.cancel) {
  633. }
  634. }
  635. })
  636. },
  637. restoreContract() {
  638. let ids = []
  639. this.msg.contractDraft.result.forEach(item => {
  640. if (item.checked) {
  641. ids.push(item.id)
  642. }
  643. })
  644. if (ids.length == 0) {
  645. that.$toast("请选择汇票")
  646. return
  647. }
  648. uni.showModal({
  649. title: '提示',
  650. content: "是否复原汇票?",
  651. success: function(res) {
  652. if (res.confirm) {
  653. uni.showLoading()
  654. uni.$u.http.post('/api/Contract/contractDraft/manager', {
  655. ids: ids,
  656. operateType: 2
  657. }, {
  658. custom: {
  659. auth: true
  660. }
  661. }).then((res) => {
  662. uni.hideLoading()
  663. that.editall = false
  664. that.quan = false
  665. that.$toast("操作成功")
  666. setTimeout(() => {
  667. that.init()
  668. }, 500)
  669. }).catch((err) => {
  670. uni.hideLoading()
  671. that.$toast(err.msg)
  672. })
  673. } else if (res.cancel) {
  674. }
  675. }
  676. })
  677. },
  678. // 删除图片
  679. deletePic(event) {
  680. this[`fileList${event.name}`].splice(event.index, 1)
  681. },
  682. // 新增图片
  683. async afterRead(event) {
  684. // 当设置 mutiple 为 true 时, file 为数组格式,否则为对象格式
  685. let lists = [].concat(event.file)
  686. let fileListLen = this[`fileList${event.name}`].length
  687. lists.map((item) => {
  688. this[`fileList${event.name}`].push({
  689. ...item,
  690. status: 'uploading',
  691. message: '上传中'
  692. })
  693. })
  694. for (let i = 0; i < lists.length; i++) {
  695. const result = await this.uploadFilePromise(lists[i].url)
  696. let item = this[`fileList${event.name}`][fileListLen]
  697. this[`fileList${event.name}`].splice(fileListLen, 1, Object.assign(item, {
  698. status: 'success',
  699. message: '',
  700. url: result
  701. }))
  702. fileListLen++
  703. }
  704. },
  705. uploadFilePromise(url) {
  706. return new Promise((resolve, reject) => {
  707. let a = uni.uploadFile({
  708. url: mainUrl + '/api/File', // 仅为示例,非真实的接口地址
  709. filePath: url,
  710. name: 'File',
  711. header: {
  712. "User-Agent": "apifox/1.0.0 (https://www.apifox.cn)"
  713. },
  714. formData: {
  715. File: JSON.stringify(url),
  716. },
  717. success: (res) => {
  718. let request = JSON.parse(res.data)
  719. setTimeout(() => {
  720. resolve(request.data.file)
  721. }, 1000)
  722. }
  723. });
  724. })
  725. },
  726. }
  727. }
  728. </script>
  729. <style lang="scss">
  730. page {
  731. background-color: #F6F6F6 !important;
  732. }
  733. .headboxcon {
  734. margin: 20rpx 30rpx;
  735. background-color: #fff;
  736. border-radius: 20rpx;
  737. padding: 0 30rpx;
  738. box-sizing: border-box;
  739. .tis {
  740. font-size: 36rpx;
  741. font-weight: 600;
  742. display: block;
  743. padding: 30rpx 0;
  744. // width: 120rpx;
  745. padding-top: 50rpx;
  746. }
  747. .tipup {
  748. display: flex;
  749. padding-bottom: 30rpx;
  750. }
  751. .upbox {
  752. margin-left: 30rpx;
  753. // width: 490rpx;
  754. }
  755. .yu {
  756. flex-shrink:0;
  757. // flex:/ 1;
  758. width: 130rpx;
  759. display: block;
  760. // width: 120rpx;
  761. color: #BEBDBB;
  762. }
  763. .tip {
  764. padding-bottom: 30rpx;
  765. font-size: 28rpx;
  766. display: flex;
  767. justify-content: space-between;
  768. .yuna {
  769. // flex-shrink:0;
  770. // width:400rpx;
  771. text-align:right;
  772. word-break: break-word;
  773. }
  774. }
  775. }
  776. .searchbox {
  777. padding-left: 30rpx;
  778. box-sizing: border-box;
  779. background-color: #ECECEC;
  780. border-radius: 38rpx;
  781. // width: 688rpx;
  782. flex: 1;
  783. height: 75rpx;
  784. margin: 0 auto;
  785. display: flex;
  786. align-items: center;
  787. justify-content: center;
  788. }
  789. .acpcardlist {
  790. // margin-top: 140rpx;
  791. .acpcard {
  792. flex: 1;
  793. // width: 690rpx;
  794. // height: 333rpx;
  795. margin: 0 30rpx;
  796. // margin-top: 20rpx;
  797. background-color: #fff;
  798. border-radius: 20rpx;
  799. box-shadow: 0px 8rpx 20rpx 1rpx rgba(31, 36, 42, 0.08);
  800. .allmsg {
  801. display: flex;
  802. padding: 40rpx 30rpx;
  803. box-sizing: border-box;
  804. width: 100%;
  805. .cicle {
  806. width: 28rpx;
  807. height: 28rpx;
  808. border-radius: 50%;
  809. background-color: #D8AB5A;
  810. margin-top: 8rpx;
  811. }
  812. .acpcont {
  813. margin-left: 20rpx;
  814. width: 100%;
  815. .acpname {
  816. box-sizing: border-box;
  817. display: flex;
  818. align-items: center;
  819. justify-content: space-between;
  820. padding-bottom: 30rpx;
  821. flex-grow: 1;
  822. width: 100%;
  823. // width: 572rpx;
  824. font-size: 36rpx;
  825. font-weight: 600;
  826. .ardydele {
  827. padding: 5rpx 8rpx;
  828. border-radius: 10rpx 0 10rpx 0;
  829. margin-left: 10rpx;
  830. box-sizing: border-box;
  831. background-color: rgb(219, 219, 219);
  832. font-size: 20rpx;
  833. color: #fff;
  834. }
  835. .tag {
  836. margin-left: 10rpx;
  837. font-weight: 500;
  838. border-radius: 10rpx;
  839. // font-size: 36rpx;
  840. color: #BEBDBB;
  841. text-align: center;
  842. }
  843. }
  844. }
  845. .acpinfo {
  846. border-top: 1rpx solid #E8E8E8;
  847. display: flex;
  848. flex: 1;
  849. flex-direction: column;
  850. font-size: 28rpx;
  851. color: #68625B;
  852. justify-content: space-between;
  853. box-sizing: border-box;
  854. .pt {
  855. padding-top: 20rpx;
  856. }
  857. }
  858. }
  859. }
  860. }
  861. .totalmanage {
  862. margin-top: 50rpx;
  863. margin-bottom: 100rpx;
  864. // position: fixed;
  865. bottom: 0;
  866. display: flex;
  867. justify-content: space-between;
  868. align-items: center;
  869. width: 100%;
  870. padding: 0 30rpx;
  871. box-sizing: border-box;
  872. .managebox {
  873. width: 23.8rpx;
  874. height: 29.7rpx;
  875. image {
  876. width: 100%;
  877. height: 100%;
  878. }
  879. }
  880. .maboxtitls {
  881. width: 160rpx;
  882. height: 60rpx;
  883. display: flex;
  884. align-items: center;
  885. justify-content: center;
  886. border-radius: 30rpx;
  887. background-color: #D9D9D9;
  888. // line-height: 60rpx;
  889. font-size: 28rpx;
  890. box-sizing: border-box;
  891. // align-items: center;
  892. }
  893. }
  894. .newbill {
  895. background-color: #fff;
  896. position: fixed;
  897. bottom: 0;
  898. padding-top: 10rpx;
  899. padding-bottom: 40rpx;
  900. width: 100%;
  901. z-index: 999;
  902. .newbillbtn {
  903. background: linear-gradient(to right, #FFE1AD, #D8AB5A);
  904. width: 474rpx;
  905. height: 88rpx;
  906. border-radius: 43rpx;
  907. box-shadow: 0 10rpx 20rpx 1rpx rgba(179, 116, 5, 0.2);
  908. line-height: 88rpx;
  909. color: #fff;
  910. text-align: center;
  911. }
  912. }
  913. </style>