detail.vue 21 KB

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