detail.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768
  1. <template>
  2. <view class="detail-page white-wrap">
  3. <view>
  4. <!-- 基础信息 -->
  5. <view class="section white-wrap base-info-wrap" v-if="detail">
  6. <image :src="statusImg" mode="aspectFill" class="status-img"></image>
  7. <view class="title">
  8. <text>{{detail.CompanyName}}</text>
  9. <!-- van-tag
  10. color="#ECF5FF"
  11. text-color="#4A83F1"
  12. style="margin-bottom:0;margin-left: 10rpx;"
  13. >新签</van-tag> -->
  14. </view>
  15. <view class="base-info-list">
  16. <view>
  17. <text class="lable">合同编号:</text>
  18. <text >{{detail.ContractCode}}</text>
  19. <van-tag
  20. color="#ECF5FF"
  21. text-color="#4A83F1"
  22. style="margin-left:5px;margin-top:2px"
  23. >{{detail.ContractBusinessType==='代付合同'?'代付合同':detail.ContractType}}</van-tag>
  24. </view>
  25. <view style="margin-bottom:0">
  26. <text class="lable">合同期限:</text>
  27. <text>{{detail.StartDate|formatDate}}~{{detail.EndDate | formatDate}}</text>
  28. </view>
  29. <view style="padding-left:140rpx">({{detail.StartDate|formateYear(detail.EndDate)}})</view>
  30. <view>
  31. <text class="lable">{{detail.ContractBusinessType==='代付合同'?'代付金额':'合同金额'}}:</text>
  32. <text style="color:#FE6B7C">{{detail.Price}}元</text>
  33. </view>
  34. <view v-if="detail.ContractBusinessType==='代付合同'">
  35. <text class="lable">合同金额:</text>
  36. <text style="color:#FE6B7C">{{detail.RelationContractDetailList[0].Price}}元</text>
  37. </view>
  38. <view>
  39. <text class="lable">合同归属:</text>
  40. <text>{{detail.ProductId===1?'FICC':'权益'}}</text>
  41. </view>
  42. <view class="flex">
  43. <text style="flex-shrink: 0;">付款方式说明:</text>
  44. <text>{{detail.PayRemark}}</text>
  45. </view>
  46. <view v-if="detail.ContractBusinessType!=='代付合同'">付款方:{{detail.PayChannel}}</view>
  47. <view v-if="detail.SellerRemark" class="flex">
  48. <text style="flex-shrink: 0;">备注:</text>
  49. <text>{{detail.SellerRemark}}</text>
  50. </view>
  51. <view v-if="detail && detail.Status === '已驳回'" class="flex">
  52. <text class="lable" style="color:#FE6B7C;flex-shrink: 0">驳回理由:</text>
  53. <text style="color:#FE6B7C">{{ detail.ApprovalRemark }}</text>
  54. </view>
  55. </view>
  56. </view>
  57. <!-- 变更说明 -->
  58. <view class="section white-wrap change-info-wrap" v-if="changeDesc.length>0">
  59. <view class="title">变更说明</view>
  60. <view style="margin-bottom: 20rpx;" v-for="(item,index) in changeDesc" :key="index">{{index+1}}、{{item}}</view>
  61. </view>
  62. <!-- 服务内容 -->
  63. <view class="section white-wrap service-wrap">
  64. <view class="title">服务内容</view>
  65. <view style="margin-bottom: 30rpx;" >
  66. <view class="service-item flex" v-for="item in detail.Service" :key="item.Title">
  67. <text style="width:60%">{{item.Title}}</text>
  68. <text class="btn" @click="handlePreviewImg(item.Value)">查看服务单</text>
  69. </view>
  70. </view>
  71. <view v-if="detail.Remark" style="border-top: 1px dashed rgba(112, 112, 112, .21);padding-top:10px;margin-bottom: 30rpx;">补充内容:{{detail.Remark}}</view>
  72. <view style="border-top: 1px dashed rgba(112, 112, 112, .21);padding-top:10px" v-if="varietyList.length>0">
  73. <view style="margin-bottom:10rpx">小套餐包含品种</view>
  74. <view class="variety-list">
  75. <view class="variety-item flex" v-for="item in varietyList" :key="item.ClassifyName">
  76. <view class="lable">{{ item.ClassifyName }}:</view>
  77. <view class="content">
  78. <van-tag color="#ECF5FF" text-color="#4A83F1" v-for="tag in item.Items"
  79. :key="tag.ChartPermissionId" custom-class="tag">{{ tag.PermissionName }}</van-tag>
  80. </view>
  81. </view>
  82. </view>
  83. </view>
  84. </view>
  85. <!-- 回签附件 -->
  86. <view class="section white-wrap contract-wrap" v-if="detail.Status==='已签回'">
  87. <view class="title">回签附件</view>
  88. <view class="contract-list">
  89. <view class="contract-item" v-for="item in checkBackFiles" :key="item.url"
  90. @click="preViewContract(item)">
  91. <image class="contract-img" mode="aspectFill" :src="item.img"></image>
  92. </view>
  93. </view>
  94. </view>
  95. <!-- 解约附件 -->
  96. <view class="section white-wrap contract-wrap" v-if="detail.Status==='已解约'">
  97. <view class="title">解约附件</view>
  98. <view class="contract-list">
  99. <view class="contract-item" v-for="item in rescindFile" :key="item.url"
  100. @click="preViewContract(item)">
  101. <image class="contract-img" mode="aspectFill" :src="item.img"></image>
  102. </view>
  103. </view>
  104. </view>
  105. <!-- 合同模块 -->
  106. <view class="section white-wrap contract-wrap" v-if="constractFiles.length !== 0&&detail.Status!='已签回'&&detail.Status!='已解约'">
  107. <view class="title">合同预览</view>
  108. <view class="contract-list">
  109. <view class="contract-item" v-for="item in constractFiles" :key="item.url"
  110. @click="preViewContract(item)">
  111. <image class="contract-img" mode="aspectFill" :src="item.img"></image>
  112. </view>
  113. </view>
  114. </view>
  115. <!-- 客户信息模块 -->
  116. <view class="section white-wrap customer-wrap">
  117. <view class="title">客户信息</view>
  118. <view class="customer-main-info">
  119. <view class="customer-info-item">
  120. <text>客户名称:</text>
  121. <text>{{detail.CompanyName}}</text>
  122. </view>
  123. <view class="customer-info-item">
  124. <text>社会信用码:</text>
  125. <text>{{detail.CreditCode}}</text>
  126. </view>
  127. <view class="customer-info-item">
  128. <text>地址:</text>
  129. <text>{{detail.Province}}{{detail.City}}{{detail.Address}}</text>
  130. </view>
  131. <view class="customer-info-item">
  132. <text>申请人:</text>
  133. <text>{{detail.SellerName}}</text>
  134. </view>
  135. </view>
  136. </view>
  137. <!-- 流程模块 -->
  138. <view class="section white-wrap process-wrap" v-if="flowNodeList">
  139. <view class="title">审批流程</view>
  140. <steps :data="flowNodeList"></steps>
  141. </view>
  142. </view>
  143. <!-- 审批按钮 -->
  144. <view class="fix-bottom-wrap btns-wrap flex" v-if="opt.Approval">
  145. <button class="pass-btn" @click="handlePass">通过</button>
  146. <button class="refuse-btn" @click="handleRefuse">驳回</button>
  147. </view>
  148. <!-- 上传回签附件 -->
  149. <view class="fix-bottom-wrap btns-wrap flex" v-if="opt.UploadFile">
  150. <button class="pass-btn" style="width: 450rpx;" @click="handleUploadCheckFile">{{detail.Status==='已审批'?'上传回签附件':'更新回签附件'}}</button>
  151. </view>
  152. <!-- 作废合同 -->
  153. <!-- <view class="fix-bottom-wrap btns-wrap flex" v-if="opt.Invalid">
  154. <button class="refuse-btn" style="width: 450rpx;" >作废合同</button>
  155. </view> -->
  156. <!-- 上传回签附件弹窗确认弹窗 -->
  157. <van-popup :show="showUpload" @close="showUpload=false" position="bottom" round>
  158. <view class="uploadfile-wrap">
  159. <view style="text-align: center;font-size: 16px;font-weight: bold;">上传回签附件</view>
  160. <view class="contract-list" style="height: 30vh;">
  161. <view class="contract-item" v-for="item in files" :key="item.url"
  162. @click="preViewCheckFile(item)">
  163. <image class="contract-img" mode="aspectFill" :src="item.img"></image>
  164. </view>
  165. </view>
  166. <button style="width: 450rpx;" @click='handleConfirmCheckFile'>确定</button>
  167. </view>
  168. </van-popup>
  169. <van-dialog id="van-dialog" />
  170. </view>
  171. </template>
  172. <script>
  173. import {apiContractDetail,apiContractApproved,apiContractApprovalDetail,apiContractSignBackFiles} from '@/api/approve/contract.js'
  174. import steps from '../components/steps.vue'
  175. import {preViewFile} from '../utils/util.js'
  176. import {uploadImg,uploadFiles} from '@/utils/uploadFile.js'
  177. import {CalculationDate} from '@/utils/calculationDate.js'
  178. export default{
  179. components:{
  180. steps
  181. },
  182. filters:{
  183. formatDate(e){
  184. if(e==='0001-01-01T00:00:00Z'){
  185. return ''
  186. }else{
  187. return e.split('T')[0].replace(/-/g,'.')
  188. }
  189. },
  190. formatTime(e){
  191. if(e==='0001-01-01T00:00:00Z'){
  192. return ''
  193. }else{
  194. return e.replace(/T/g,' ').replace(/\+08:00/g,' ').replace(/-/g,'.')
  195. }
  196. },
  197. formateYear(s,e){
  198. return `有效期为 ${CalculationDate(s,e)}`;
  199. }
  200. },
  201. computed:{
  202. // 处理变更说明
  203. changeDesc(){
  204. return this.detail&&this.detail.ModifyContent&&this.detail.ModifyContent.split('<br/>').filter(item=> item)
  205. },
  206. //回签附件
  207. checkBackFiles(){
  208. const reg = /\.(pdf)$/;
  209. const reg2= /\.doc|\.docx$/
  210. return this.detail&&this.detail.CheckBackFileUrl&&this.detail.CheckBackFileUrl.split("#").map((item) => {
  211. if (reg.test(item)) {
  212. return {
  213. type: "pdf",
  214. url: item,
  215. img: require("@/pages-approve/static/pdf.png"),
  216. };
  217. } else if(reg2.test(item)){
  218. return {
  219. type: "word",
  220. url: item,
  221. img: require("@/pages-approve/static/word.png"),
  222. };
  223. }else {
  224. return {
  225. type: "img",
  226. url: item,
  227. img: item,
  228. };
  229. }
  230. });
  231. },
  232. //解约附件
  233. rescindFile(){
  234. const reg = /\.(pdf)|\.doc|\.docx$/;
  235. return this.detail&&this.detail.RescindFileUrl&&this.detail.RescindFileUrl.split("#").map((item) => {
  236. if (reg.test(item)) {
  237. return {
  238. type: "pdf",
  239. url: item,
  240. img: require("@/pages-approve/static/pdf.png"),
  241. };
  242. } else {
  243. return {
  244. type: "img",
  245. url: item,
  246. img: item,
  247. };
  248. }
  249. });
  250. },
  251. // 合同附件
  252. constractFiles(){
  253. const reg = /\.(pdf)|\.doc|\.docx$/;
  254. return this.detail&&this.detail.FileUrl&&this.detail.FileUrl.split("#").map((item) => {
  255. if (reg.test(item)) {
  256. return {
  257. type: "pdf",
  258. url: item,
  259. img: require("@/pages-approve/static/pdf.png"),
  260. };
  261. } else {
  262. return {
  263. type: "img",
  264. url: item,
  265. img: item,
  266. };
  267. }
  268. });
  269. },
  270. // 状态图标
  271. statusImg(){
  272. if(!this.detail) return
  273. if(this.detail.Status==='已审批'){
  274. return require('../static/pass-icon.png')
  275. }else if(this.detail.Status==='已签回'){
  276. return require('../static/draw-back-icon.png')
  277. }else if(this.detail.Status==='已驳回'){
  278. return require('../static/fail-icon.png')
  279. }else if(this.detail.Status==='已作废'){
  280. return require('../static/cancel-icon.png')
  281. }else if(this.detail.Status==='已撤回'){
  282. return require('../static/recall-icon.png')
  283. }else if(this.detail.Status==='处理中'){
  284. return require('../static/processing-icon.png')
  285. }else if(this.detail.Status==='已解约'){
  286. return require('../static/jieyue-icon.png')
  287. }
  288. }
  289. },
  290. data() {
  291. return {
  292. ContractApprovalId: null,//审批单id
  293. ContractApprovalRecordId:null,//审批流程单id
  294. ContractId:null,//合同id
  295. detail:null,
  296. flowNodeList:null,
  297. opt:{},
  298. showUpload:false,
  299. files:[],//签回附件
  300. varietyList:[],
  301. }
  302. },
  303. onLoad(options) {
  304. this.ContractApprovalId=options.ContractApprovalId||0
  305. this.ContractApprovalRecordId=options.ContractApprovalRecordId||0
  306. this.ContractId=options.ContractId||0
  307. },
  308. onShow() {
  309. // 当合同id 不存在时(或0) 使用审批详情
  310. if(this.ContractId!=0){
  311. this.getContractDetail()
  312. }else{
  313. this.getApprovalDetail()
  314. }
  315. },
  316. onPullDownRefresh() {
  317. if(this.ContractId!=0){
  318. this.getContractDetail()
  319. }else{
  320. this.getApprovalDetail()
  321. }
  322. setTimeout(()=>{
  323. uni.stopPullDownRefresh()
  324. },1000)
  325. },
  326. methods: {
  327. // 点击上传回签附件
  328. handleUploadCheckFile(){
  329. wx.chooseMessageFile({
  330. count:1,
  331. type:'file',
  332. success:(res)=>{
  333. const tempFile=res.tempFiles[0]
  334. const reg = /\.(pdf)$/;
  335. const reg2= /\.doc|\.docx$/
  336. if(!reg.test(tempFile.path)&&!reg2.test(tempFile.path)){
  337. uni.showToast({
  338. title:'请上传pdf/word格式文件',
  339. icon:"none"
  340. })
  341. return
  342. }
  343. // pdf
  344. if(reg.test(tempFile.path)){
  345. this.files=[{type:'pdf',url:tempFile.path,img: require("@/pages-approve/static/pdf.png")}]
  346. }
  347. if(reg2.test(tempFile.path)){
  348. this.files=[{type:'word',url:tempFile.path,img: require("@/pages-approve/static/word.png")}]
  349. }
  350. this.showUpload=true
  351. }
  352. })
  353. },
  354. //确认提交上传回签附件
  355. async handleConfirmCheckFile(){
  356. const temres=await apiContractSignBackFiles({
  357. tempPath:this.files[0].url,
  358. ContractId:Number(this.detail.ContractId),
  359. })
  360. const res=JSON.parse(temres.data)
  361. if(res.code===200){
  362. uni.showToast({
  363. title:'操作成功',
  364. icon:'none'
  365. })
  366. // 已审批上传签回附件更新列表
  367. if(this.detail.Status==='已审批'){
  368. uni.$emit('contractApproveListUpdate',{
  369. ContractApprovalId:this.ContractApprovalId,
  370. ContractApprovalRecordId:this.ContractApprovalRecordId,
  371. ContractId:this.ContractId
  372. })
  373. }
  374. setTimeout(()=>{
  375. this.showUpload=false
  376. this.files=[]
  377. if(this.ContractId!=0){
  378. this.getContractDetail()
  379. }else{
  380. this.getApprovalDetail()
  381. }
  382. },1000)
  383. }
  384. },
  385. // 预览签回附件
  386. preViewCheckFile(){
  387. uni.openDocument({
  388. filePath:this.files[0].url,
  389. showMenu:true,
  390. success() {
  391. console.log('打开成功');
  392. },
  393. fail(){
  394. setTimeout(() => {
  395. uni.showToast({
  396. title:'打开失败,请重试',
  397. icon:"none"
  398. })
  399. }, 0);
  400. }
  401. })
  402. },
  403. // 签回修改 只允许上传一个pdf/word
  404. // async handleConfirmSignBack(){
  405. // let FileUrlarr=this.files.map(item=>item.url)
  406. // const res=await apiContractSignBackFiles({
  407. // ContractId:Number(this.detail.ContractId),
  408. // FileUrl:FileUrlarr.join('#')
  409. // })
  410. // if(res.code===200){
  411. // uni.showToast({
  412. // title:'操作成功',
  413. // icon:'none'
  414. // })
  415. // // 已审批上传签回附件更新列表
  416. // if(this.detail.Status==='已审批'){
  417. // uni.$emit('contractApproveListUpdate',{
  418. // ContractApprovalId:this.ContractApprovalId,
  419. // ContractApprovalRecordId:this.ContractApprovalRecordId,
  420. // ContractId:this.ContractId
  421. // })
  422. // }
  423. // setTimeout(()=>{
  424. // this.showUpload=false
  425. // this.files=[]
  426. // if(this.ContractId!=0){
  427. // this.getContractDetail()
  428. // }else{
  429. // this.getApprovalDetail()
  430. // }
  431. // },1000)
  432. // }
  433. // },
  434. // // 上传回签附件文件
  435. // async handleUploadMethod(type){
  436. // let res=[]
  437. // if(type==='img'){
  438. // res=await uploadImg()
  439. // }else if(type==='file'){
  440. // res=await uploadFiles({type:'file'})
  441. // }
  442. // const reg = /\.(pdf)|\.doc|\.docx$/;
  443. // if(!reg.test(res[0])){
  444. // uni.showToast({
  445. // title:'请上传pdf/word格式文件',
  446. // icon:"none"
  447. // })
  448. // return
  449. // }
  450. // this.files=[{type:'pdf',url:res[0],img: require("@/pages-approve/static/pdf.png")}]
  451. // // this.files=res.map((item) => {
  452. // // if (reg.test(item)) {
  453. // // return {
  454. // // type: "pdf",
  455. // // url: item,
  456. // // img: require("@/pages-approve/static/pdf.png"),
  457. // // };
  458. // // } else {
  459. // // return {
  460. // // type: "img",
  461. // // url: item,
  462. // // img: item,
  463. // // };
  464. // // }
  465. // // });
  466. // this.showUpload=true
  467. // },
  468. // 审批单详情
  469. async getApprovalDetail() {
  470. const res=await apiContractApprovalDetail({
  471. ContractApprovalId:Number(this.ContractApprovalId),
  472. ContractApprovalRecordId:Number(this.ContractApprovalRecordId)
  473. })
  474. if(res.code===200){
  475. this.detail=res.data.ContractDetail
  476. this.opt=res.data.OpButton
  477. this.flowNodeList=res.data.FlowNodeList
  478. this.handleVariety(res.data.ContractDetail.Service||[])
  479. // 代付合同时
  480. if(res.data.ContractDetail.ContractBusinessType==='代付合同'){
  481. this.detail.Service=res.data.ContractDetail.RelationContractDetailList[0].Service
  482. }
  483. }
  484. },
  485. //合同详情
  486. async getContractDetail(){
  487. const res=await apiContractDetail({ContractId:Number(this.ContractId)})
  488. if(res.code===200){
  489. this.detail=res.data.ContractDetail
  490. this.opt=res.data.OpButton
  491. this.flowNodeList=res.data.FlowNodeList
  492. this.handleVariety(res.data.ContractDetail.PermissionLookList||[])
  493. // 代付合同时
  494. if(res.data.ContractDetail.ContractBusinessType==='代付合同'){
  495. this.detail.Service=res.data.ContractDetail.RelationContractDetailList[0].Service
  496. }
  497. }
  498. },
  499. // 处理小套餐选中的品种
  500. handleVariety(e){
  501. let arr=e.filter(item=>{
  502. return item.CheckList.length>0
  503. })
  504. arr.forEach(item=>{
  505. item.Items=item.Items.filter(_item=>{
  506. return item.CheckList.includes(_item.ChartPermissionId);
  507. })
  508. })
  509. this.varietyList=arr
  510. },
  511. handlePreviewImg(url){
  512. uni.previewImage({
  513. urls:[url]
  514. })
  515. },
  516. // 预览合同文件
  517. preViewContract(e) {
  518. if (e.type === "pdf"||e.type==='word') {
  519. preViewFile(e.url)
  520. } else {
  521. this.handlePreviewImg(e.url)
  522. }
  523. },
  524. //审批通过
  525. async handlePass(){
  526. const res=await apiContractApproved({ContractId:Number(this.detail.ContractId)})
  527. if(res.code===200){
  528. this.$dialog.alert({
  529. title: "处理成功",
  530. confirmButtonColor: "#5890FB",
  531. }).then(() => {
  532. // on close
  533. // 当合同id 不存在时(或0) 使用审批详情
  534. if(this.ContractId!=0){
  535. this.getContractDetail()
  536. }else{
  537. this.getApprovalDetail()
  538. }
  539. // 更新列表
  540. uni.$emit('contractApproveListUpdate',{
  541. ContractApprovalId:this.ContractApprovalId,
  542. ContractApprovalRecordId:this.ContractApprovalRecordId,
  543. ContractId:this.ContractId
  544. })
  545. });
  546. }
  547. },
  548. //审批驳回
  549. handleRefuse(){
  550. uni.$once('contractApproveReject',()=>{
  551. // 更新列表
  552. uni.$emit('contractApproveListUpdate',{
  553. ContractApprovalId:this.ContractApprovalId,
  554. ContractApprovalRecordId:this.ContractApprovalRecordId,
  555. ContractId:this.ContractId
  556. })
  557. })
  558. uni.navigateTo({
  559. url:"./reason?ContractId="+this.detail.ContractId
  560. })
  561. }
  562. },
  563. }
  564. </script>
  565. <style lang="scss">
  566. .detail-page {
  567. width: 100%;
  568. min-height: 100%;
  569. padding-bottom: calc(150rpx + constant(safe-area-inset-bottom));
  570. padding-bottom: calc(150rpx + env(safe-area-inset-bottom));
  571. }
  572. .section {
  573. padding: 30rpx 34rpx;
  574. border-bottom: 14rpx solid #f5f5f5;
  575. &:last-child {
  576. margin-bottom: 0;
  577. border: none;
  578. }
  579. .title {
  580. font-size: 16px;
  581. font-weight: bold;
  582. margin: 0 0 40rpx 0;
  583. color: #333;
  584. }
  585. .lable {
  586. color: #666;
  587. flex-shrink: 0;
  588. font-size: 14px;
  589. }
  590. }
  591. .section::last-child{
  592. border: none;
  593. }
  594. .base-info-wrap {
  595. position: relative;
  596. .status-img{
  597. position: absolute;
  598. width: 222rpx;
  599. height: 222rpx;
  600. right: 0;
  601. top: 150rpx;
  602. z-index: 10;
  603. }
  604. .title {
  605. margin: 0 0 40rpx 0;
  606. &::before {
  607. content: "";
  608. display: inline-block;
  609. width: 15px;
  610. height: 17px;
  611. background-image: url("@/static/man.png");
  612. background-size: cover;
  613. background-repeat: no-repeat;
  614. margin-right: 10rpx;
  615. position: relative;
  616. top: 4rpx;
  617. }
  618. }
  619. .base-info-list {
  620. font-size: 14px;
  621. color: #000;
  622. view {
  623. margin-bottom: 10px;
  624. display: flex;
  625. }
  626. }
  627. }
  628. .contract-list {
  629. display: flex;
  630. flex-wrap: wrap;
  631. .contract-img {
  632. width: 102rpx;
  633. height: 120rpx;
  634. margin-right: 20rpx;
  635. margin-bottom: 20rpx;
  636. }
  637. }
  638. .service-wrap{
  639. color: #666;
  640. .service-item{
  641. margin-bottom: 30rpx;
  642. position: relative;
  643. justify-content: space-between;
  644. .btn{
  645. color: #3385FF;
  646. }
  647. // &::after{
  648. // content: '查看服务单';
  649. // display: inline-block;
  650. // color: #3385FF;
  651. // position: absolute;
  652. // left: 35%;
  653. // }
  654. }
  655. }
  656. .customer-main-info {
  657. padding-bottom: 40rpx;
  658. }
  659. .customer-info-item {
  660. font-size: 14px;
  661. color: #999;
  662. margin-bottom: 20rpx;
  663. }
  664. .customer-info-list {
  665. flex-wrap: wrap;
  666. padding-top: 20rpx;
  667. }
  668. .variety-list{
  669. .variety-item {
  670. // padding-top: 24rpx;
  671. padding-bottom: 20rpx;
  672. // border-bottom: 1px dashed rgba(97, 97, 97, 0.2);
  673. }
  674. // .variety-item:first-child {
  675. // padding-top: 0;
  676. // }
  677. // .variety-item:last-child {
  678. // border-bottom: none;
  679. // }
  680. .tag {
  681. margin-right: 10rpx;
  682. margin-bottom: 10rpx;
  683. }
  684. }
  685. .btns-wrap {
  686. justify-content: center;
  687. button {
  688. width: 260rpx;
  689. height: 70rpx;
  690. border-radius: 28px;
  691. border: none;
  692. margin: 0 15px;
  693. font-size: 15px;
  694. color: #fff;
  695. line-height: 70rpx;
  696. }
  697. .pass-btn {
  698. background-color: #5890fb;
  699. }
  700. .refuse-btn {
  701. background-color: #f55768;
  702. }
  703. }
  704. .uploadfile-wrap{
  705. width: 100%;
  706. height: 50vh;
  707. background-color: #FFFFFF;
  708. padding: 32rpx;
  709. button {
  710. margin-left: auto;
  711. margin-right: auto;
  712. width: 260rpx;
  713. height: 70rpx;
  714. display: block;
  715. border-radius: 28px;
  716. border: none;
  717. font-size: 15px;
  718. color: #fff;
  719. line-height: 70rpx;
  720. background-color: #5890fb;
  721. }
  722. }
  723. </style>