Scommit.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777
  1. <template>
  2. <div class="SignAcontract">
  3. <div class="SignAcontract-content">
  4. <div class="SignAcontract-content-right">
  5. <div class="button-background" @click="control(0)"><el-button :disabled='PlacementMode==1'>上一步</el-button></div>
  6. <el-steps :active="index" align-center style="width: calc(100% - 212px);">
  7. <el-step title="打印付款单" ></el-step>
  8. <el-step title="上传付款单" ></el-step>
  9. <el-step title="完成" ></el-step>
  10. </el-steps>
  11. <div class="button-background" @click="control(1)"><el-button>下一步</el-button></div>
  12. </div>
  13. <div class="SignAcontract-content-lent">
  14. <div class="SignAcontract-content-lent-data" v-if="index==1">
  15. <div class="button-background">
  16. <el-button @click="RoomC()">打印</el-button>
  17. </div>
  18. <div class="contractA" id="RoomC">
  19. <div class="contractA-title" style="color: #000;">
  20. 房屋征收补偿款领款单
  21. </div>
  22. <div class="contractA-name">
  23. <div>
  24. 兹有<span>{{strpdetails.bussiness.projectName}}</span>被征收人<span>{{datahousehold.householderName}}</span>,按<span>{{datahousehold.moveBackCode}}住宅产权调换协议</span>(协议编号:<span>{{datahousehold.moveBackCode}}</span>)领取房屋征收补偿资金
  25. <span style="color: red;border-bottom: 1px solid red;"
  26. contenteditable v-html="datahousehold.thisPayAmount" @blur="changesont($event.target.innerText);$event.target.innerText=datahousehold.thisPayAmount"></span>
  27. 元,大写 <span>{{transformation(datahousehold.thisPayAmount)}}</span>
  28. </div>
  29. <div>
  30. 领款人承诺:今后如其他当事人持异议时由本人负责。
  31. </div>
  32. <div>
  33. 领款人(签字):
  34. </div>
  35. <div>
  36. 领款人身份证号:
  37. </div>
  38. <div>
  39. 备注:<span></span>
  40. </div>
  41. </div>
  42. <div class="contractA-bottom" style="margin: 4rem 0;">
  43. <div style="text-indent: 2em;">
  44. 征收实施单位(盖章):<span>慈溪市房屋征收所</span>
  45. </div>
  46. <div style="display: flex;justify-content: space-around;margin-bottom: 3rem;line-height: 2em;">
  47. <div>经办人:<span>{{username}}</span></div>
  48. <div style="display: flex;">日期<p style="letter-spacing: 2rem;margin: 0;">:年月日</p></div>
  49. </div>
  50. <div class="contractA-bottom-b" style="text-align: inherit;text-indent: 2em;">
  51. 注:领款人领款时应随带补偿协议、身份证。
  52. </div>
  53. </div>
  54. </div>
  55. </div>
  56. <div class="Upload" v-if="index==2">
  57. <div class="Upload-butom">
  58. <div class="Upload-butom-tow">
  59. <h3>补偿款领款日期:</h3>
  60. <el-date-picker value-format="yyyy-MM-dd" type="date" placeholder="选择日期"
  61. v-model="payDate" style="width: 250px;"></el-date-picker>
  62. </div>
  63. <div class="Upload-butom-ont" v-for="(item,index) in fileListindex" :key="index">
  64. <div class="tc-middle-add">
  65. <h3>打款凭证:</h3>
  66. </div>
  67. <div class="tc-middle-name">
  68. <ul>
  69. <li v-for="itemid in item.tree" @click="nodeClic(itemid)">
  70. <i class="el-icon-error" @click.stop="deleteFile(itemid)"></i>
  71. <img v-if="itemid.name.split('.').pop().toLowerCase()=='pdf'" src="../../../../assets/file-pdf.png" alt="">
  72. <img v-else-if="itemid.name.split('.').pop().toLowerCase()=='png'||itemid.name.split('.').pop().toLowerCase()=='jpg'"
  73. src="../../../../assets/file-img.png" alt="">
  74. <img v-else-if="itemid.name.split('.').pop().toLowerCase()=='text'" src="../../../../assets/file-excel.png" alt="">
  75. <img v-else src="../../../../assets/file-other.png">
  76. <div><Tooltip :text="itemid.name"></Tooltip></div>
  77. </li>
  78. <el-upload action='' :auto-upload="false" :headers="tokenData" :on-change="handleChang" :show-file-list="false">
  79. <li @click="selectFile()">
  80. <div class="add">
  81. <div class="add-top">
  82. <span class="el-icon-plus"></span>
  83. </div>
  84. <div class="add-buttom">
  85. 添加文件
  86. </div>
  87. </div>
  88. </li>
  89. </el-upload>
  90. </ul>
  91. </div>
  92. </div>
  93. <div class="Upload-butom-ont">
  94. <div class="tc-middle-add">
  95. <h4>情况说明:</h4>
  96. </div>
  97. <div class="tc-middle-name">
  98. <div class="form" style="padding: 0;">
  99. <el-form>
  100. <el-form-item label="情况说明" label-width="130px" style="width: 100%;">
  101. <el-input v-model='Reremar' type="textarea" :rows="4" placeholder="请输入情况说明"
  102. style="width: 100%;"></el-input>
  103. </el-form-item>
  104. </el-form>
  105. </div>
  106. </div>
  107. </div>
  108. </div>
  109. </div>
  110. </div>
  111. </div>
  112. </div>
  113. </template>
  114. <script>
  115. import Tooltip from '../../../assembly/tooltip.vue'
  116. export default {
  117. name: "survey",
  118. props: ['strpdetails','datahouseholdmax'],
  119. components:{
  120. Tooltip
  121. },
  122. data() {
  123. return {
  124. index:1,
  125. PlacementMode:0,
  126. username:'',
  127. uuid:'',
  128. payDate:'',
  129. fileListindex:[],
  130. defaultOpen: require("../../../../assets/file-plus.png"),
  131. defaultClose: require("../../../../assets/file-reduce.png"),
  132. Reremar:'',
  133. tokenData: {
  134. token: window.sessionStorage.getItem('token')
  135. },
  136. datahousehold:{}
  137. }
  138. },
  139. computed: {},
  140. mounted() {
  141. console.log(this.datahouseholdmax.accountsPayable)
  142. this.datahousehold=this.datahouseholdmax
  143. this.getName()
  144. if(!this.datahousehold.thisPayAmount){
  145. this.index=1
  146. }else{
  147. this.index=2
  148. this.getUid()
  149. this.getgetexaminefile()
  150. }
  151. },
  152. methods: {
  153. // 货币安置和房票安置部分
  154. changesont(value){
  155. if(Number(value) >this.datahouseholdmax.accountsPayable) {
  156. this.datahousehold.thisPayAmount = this.datahouseholdmax.accountsPayable;
  157. }else{
  158. this.datahousehold.thisPayAmount=Number(value)
  159. }
  160. },
  161. control(row){
  162. var Positive =0
  163. if(row){
  164. this.index++
  165. Positive =0
  166. }else{
  167. this.index--
  168. Positive =1
  169. }
  170. if(this.index<=1){
  171. this.index=1
  172. }else if(this.index==2){
  173. this.addagreement(0)
  174. this.getUid()
  175. this.getgetexaminefile()
  176. }else if(this.index>=3){
  177. this.payrecord()
  178. this.index=2
  179. }
  180. },
  181. payrecord(){
  182. var data={
  183. id:this.uuid,
  184. householdId:this.datahousehold.id,
  185. payDate:this.payDate,
  186. payAmount:this.datahousehold.thisPayAmount,
  187. remarks:this.Reremar
  188. }
  189. this.$http.post('api/auth/payrecord/pay', data).then((res) => {
  190. if (res.status == 200 && res.data.code == 0) {
  191. // this.username = res.data.user.name
  192. this.$message.success('付款成功!');
  193. this.datahousehold.thisPayAmount=''
  194. this.$emit('getlist',3)
  195. // this.addagreement(1)
  196. } else {
  197. this.$message.error('失败!');
  198. }
  199. })
  200. },
  201. // 获取姓名
  202. getName() {
  203. this.$http.get('api/v1/pri/userInfo', null).then((res) => {
  204. if (res.status == 200 && res.data.code == 0) {
  205. this.username = res.data.user.name
  206. } else {
  207. this.$message.error('失败!');
  208. }
  209. })
  210. },
  211. addagreement(row){
  212. this.$http.post('api/auth/householdcx/update',this.datahousehold).then((res) => {
  213. if (res.status == 200 && res.data.code == 0) {
  214. // this.agreementControl = false
  215. this.datahousehold=res.data.data
  216. } else {
  217. this.$message.error("失败!");
  218. }
  219. })
  220. },
  221. // 数字转大写(不带单位)
  222. transformation(n){
  223. if (!/^(0|[1-9]\d*)(\.\d+)?$/.test(n)){
  224. return ""; //判断数据是否大于0
  225. }
  226. var unit = "千百拾亿千百拾万千百拾元角分", str = "";
  227. n += "00";
  228. var indexpoint = n.indexOf('.'); // 如果是小数,截取小数点前面的位数
  229. if (indexpoint >= 0){
  230. n = n.substring(0, indexpoint) + n.substr(indexpoint+1, 2); // 若为小数,截取需要使用的unit单位
  231. }
  232. unit = unit.substr(unit.length - n.length); // 若为整数,截取需要使用的unit单位
  233. for (var i=0; i < n.length; i++){
  234. str += "零壹贰叁肆伍陆柒捌玖".charAt(n.charAt(i)) + unit.charAt(i); //遍历转化为大写的数字
  235. }
  236. return str.replace(/零(千|百|拾|角)/g, "零").replace(/(零)+/g, "零").replace(/零(万|亿|元)/g, "$1").replace(/(亿)万|壹(拾)/g, "$1$2").replace(/^元零?|零分/g, "").replace(/元$/g, "元整"); // 替换掉数字里面的零字符,得到结果
  237. },
  238. // 获取uuid
  239. getUid(){
  240. var s = [];
  241. var hexDigits = "0123456789abcdef";
  242. for (var i = 0; i < 30; i++) {
  243. s[i] = hexDigits.substr(Math.floor(Math.random() * 0x10), 1);
  244. }
  245. s[14] = "4";
  246. s[19] = hexDigits.substr((s[19] & 0x3) | 0x8, 1);
  247. var uuid = s.join("");
  248. this.uuid = uuid;
  249. return uuid;
  250. },
  251. // 上传文件按钮
  252. selectFile() {
  253. this.selectFileName = '3、审批后资料/5、打款凭证'+'/'+this.uuid;
  254. },
  255. // 上传文件
  256. handleChang(file) {
  257. let that = this;
  258. let formData = new FormData();
  259. formData.append('file', file.raw);
  260. formData.append('type', 2);
  261. formData.append('id', this.datahousehold.id);
  262. formData.append('destfolder', this.selectFileName);
  263. that.$http.post('api/auth/file/upload', formData).then((res) => {
  264. if (res.status == 200 && res.data.code == 0) {
  265. that.$message.success("上传文件成功!");
  266. this.getgetexaminefile();
  267. } else {
  268. that.$message.error("上传文件失败!");
  269. }
  270. });
  271. },
  272. //获取文件
  273. getgetexaminefile(){
  274. this.$http.get('api/auth/file/fileList?type=' + 2 + '&id=' + this.datahousehold.id, null).then((res) => {
  275. if (res.status == 200 && res.data.code == 0) {
  276. this.fileListindex = res.data.list
  277. var data=[
  278. {name:'5、打款凭证',empty:false,type: "folder",url:'5、打款凭证',tree:[]},
  279. ]
  280. if(this.fileListindex){
  281. this.fileListindex.forEach((item,index)=>{
  282. if(item.empty==false){
  283. if(item.name=='3、审批后资料'){
  284. item.tree.forEach((nale,ixde)=>{
  285. if(nale.name=='5、打款凭证'){
  286. if(nale.tree!=null&&nale.tree.length!=0){
  287. nale.tree.forEach((nana,ixde)=>{
  288. if(nana.name==this.uuid){
  289. data[0]=nana
  290. }
  291. })
  292. }
  293. }
  294. })
  295. }
  296. }
  297. })
  298. }
  299. this.fileListindex=data
  300. } else {
  301. this.$message.error("查找文件列表失败!");
  302. }
  303. });
  304. },
  305. //删除文件
  306. deleteFile(item) {
  307. var data = new FormData;
  308. data.append("delFileUri", item.url);
  309. data.append("id", this.datahousehold.id);
  310. data.append("type", 2);
  311. this.$confirm('确定要删除该文件吗?').then(_ => {
  312. this.$http.post('api/auth/file/removeFile', data).then((res) => {
  313. if (res.status == 200 && res.data.code == 0) {
  314. this.$message.success('删除该文件成功!');
  315. this.getgetexaminefile();
  316. } else {
  317. this.$message.error('删除该文件失败!');
  318. }
  319. })
  320. })
  321. },
  322. nodeClic(val) {
  323. this.dataurl=''
  324. var data = new FormData;
  325. data.append("downloadFileUri", val.url);
  326. data.append("id",this.datahousehold.id);
  327. data.append("type",2);
  328. this.$http.post('api/auth/file/download', data, {responseType: 'blob'}).then((res) => {
  329. if (res.headers['content-type'] == "application/octet-stream;charset=utf-8"||res.headers['content-type'] == "application/octet-stream;charset=UTF-8") {
  330. //此处有个坑。这里用content保存文件流,最初是content=res,
  331. //检查了下才发现,后端对文件流做了一层封装,所以将content指向res.data即可
  332. //另外,流的转储属于浅拷贝,所以此处的content转储仅仅是便于理解,并没有实际作用=_=
  333. const content = res.data
  334. const type = {
  335. xml: 'text/xml',
  336. zip: 'application/zip',
  337. doc: 'application/msword',
  338. bin: 'application/octet-stream',
  339. exe: 'application/octet-stream',
  340. so: 'application/octet-stream',
  341. dll: 'application/octet-stream',
  342. pdf: 'application/pdf',
  343. ai: 'application/postscript',
  344. xls: 'application/vnd.ms-excel',
  345. ppt: 'application/vnd.ms-powerpoint',
  346. dir: 'application/x-director',
  347. js: 'application/x-javascript',
  348. swf: 'application/x-shockwave-flash',
  349. xhtml: 'application/xhtml+xml',
  350. xht: 'application/xhtml+xml',
  351. mid: 'audio/midi',
  352. midi: 'audio/midi',
  353. mp3: 'audio/mpeg',
  354. rm: 'audio/x-pn-realaudio',
  355. rpm: 'audio/x-pn-realaudio-plugin',
  356. wav: 'audio/x-wav',
  357. bmp: 'image/bmp',
  358. gif: 'image/gif',
  359. jpeg: 'image/jpeg',
  360. jpg: 'image/jpeg',
  361. png: 'image/png',
  362. css: 'text/css',
  363. html: 'text/html',
  364. htm: 'text/html',
  365. txt: 'text/plain',
  366. xsl: 'text/xml',
  367. mpeg: 'video/mpeg',
  368. mpg: 'video/mpeg',
  369. avi: 'video/x-msvideo',
  370. movie: 'video/x-sgi-movie',
  371. xlsx: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
  372. }
  373. const blob = new Blob([content], { // 关键代码
  374. type: type[val.url.split('.').pop().toLowerCase()]
  375. }) //构造一个blob对象来处理数据
  376. this.dataurl = window.URL.createObjectURL(blob)
  377. this.Examine=true
  378. }
  379. });
  380. },
  381. RoomC(){
  382. this.$nextTick(function() {
  383. //判断iframe是否存在,不存在则创建iframe
  384. var iframe = document.getElementById("print-iframe");
  385. var el = document.getElementById("RoomC");
  386. iframe = document.createElement('IFRAME');
  387. var doc = null;
  388. iframe.setAttribute("id", "print-iframe");
  389. iframe.setAttribute('style', 'position:absolute;width:0px;height:0px;left:-500px;top:-500px;');
  390. document.body.appendChild(iframe);
  391. doc = iframe.contentWindow.document;
  392. //这里可以自定义样式
  393. doc.write(
  394. '<style media="print">@page {size: auto;margin: 30mm;}.contractA{width: 100%;height: 100%;color: #000000;}span {word-break: break-all;border-bottom: 1px solid #000;min-width: 50px;display: inline-block;line-height: 3rem;text-align: center;text-indent: 0em;margin:0;line-height: 1.5rem}.contractA-title{width: 100%;text-align: center;font-size: 20px;font-weight: bolder;margin-bottom: 5mm;}.contractA-name{text-indent: 2em;line-height: 2rem;font-size: 18px;}.contractA-bottom{font-size: 18px;margin-top: 7mm;}.contractA-bottom-a{display: flex;}.contractA-bottom-a div{width: 50%;text-align: center;}.contractA-bottom-b{text-align: center;margin-bottom: 7mm;}.contractA-bottom-c{text-align: right;letter-spacing: 3rem;}</style>'
  395. ); //解决出现页眉页脚和路径的问题
  396. doc.write('<div>' + el.innerHTML + '</div>');
  397. doc.close();
  398. iframe.contentWindow.focus();
  399. setTimeout(function() {
  400. iframe.contentWindow.print();
  401. }, 50) //解决第一次样式不生效的问题
  402. if (navigator.userAgent.indexOf("MSIE") > 0) {
  403. document.body.removeChild(iframe);
  404. }
  405. })
  406. },
  407. }
  408. }
  409. </script>
  410. <style scoped lang="less">
  411. .button-background .el-button{
  412. border-radius: 5px;
  413. }
  414. .SignAcontract{
  415. position: absolute;
  416. top: 0;
  417. right: 0;
  418. width: 100%;
  419. height: 100%;
  420. .indexbutton{
  421. position: absolute;
  422. top: 0;
  423. right: 0;
  424. width: 100%;
  425. height: 100%;
  426. background-color: #00000050;
  427. ul{
  428. position: fixed;
  429. z-index: 11;
  430. top: 40%;
  431. left: 25%;
  432. width: 50%;
  433. display: flex;
  434. justify-content: space-evenly;
  435. li{
  436. width: 100px;
  437. height: 150px;
  438. // background-image: linear-gradient(-225deg, #7DE2FC 0%, #B9B6E5 100%);
  439. background-image: linear-gradient(15deg, #13547a 0%, #80d0c7 100%);
  440. border-radius: 20px;
  441. line-height: 150px;
  442. color: #fff;
  443. font-size: 18px;
  444. text-align: center;
  445. cursor: pointer;
  446. &:nth-child(2){
  447. // background-image: linear-gradient(-225deg, #CBBACC 0%, #2580B3 100%);
  448. background-image: linear-gradient(to left, #BDBBBE 0%, #9D9EA3 100%), radial-gradient(88% 271%, rgba(255, 255, 255, 0.25) 0%, rgba(254, 254, 254, 0.25) 1%, rgba(0, 0, 0, 0.25) 100%), radial-gradient(50% 100%, rgba(255, 255, 255, 0.30) 0%, rgba(0, 0, 0, 0.30) 100%); background-blend-mode: normal, lighten, soft-light;
  449. }
  450. &:nth-child(3){
  451. // background-image: linear-gradient(-225deg, #B7F8DB 0%, #50A7C2 100%);
  452. background-image: linear-gradient(to top, #505285 0%, #585e92 12%, #65689f 25%, #7474b0 37%, #7e7ebb 50%, #8389c7 62%, #9795d4 75%, #a2a1dc 87%, #b5aee4 100%);
  453. }
  454. }
  455. }
  456. }
  457. .SignAcontract-content{
  458. position: fixed;
  459. top: 20%;
  460. right: 25%;
  461. z-index: 11;
  462. display: flex;
  463. justify-content: space-between;
  464. flex-wrap: wrap;
  465. width: 50%;
  466. height: 60%;
  467. .SignAcontract-content-right{
  468. border-radius: 5px;
  469. width: 100%;
  470. height: 100px;
  471. background-color: #fff;
  472. display: flex;
  473. justify-content: space-between;
  474. padding: 20px;
  475. box-sizing: border-box;
  476. /deep/.is-finish{
  477. color: #439dc1;
  478. border-color: #439dc1;
  479. }
  480. /deep/.is-process{
  481. color: #c0c4cc;
  482. border-color: #c0c4cc;
  483. }
  484. /deep/.el-step{
  485. // &:nth-child(1){
  486. // flex-basis: 25% !important;
  487. // .el-step__line{
  488. // right: -100%;
  489. // }
  490. // }
  491. // &:nth-child(2){
  492. // flex-basis: 50% !important;
  493. // .el-step__line{
  494. // right: -25%;
  495. // }
  496. // }
  497. // &:nth-child(3){
  498. // flex-basis: 25% !important;
  499. // }
  500. }
  501. }
  502. .SignAcontract-content-lent{
  503. width: 100%;
  504. height: calc(100% - 125px);
  505. background-color: #fff;
  506. border-radius: 5px;
  507. padding: 20px;
  508. box-sizing: border-box;
  509. overflow: auto;
  510. & {
  511. scrollbar-width: thin;
  512. scrollbar-color: #c1c1c1 #eee;
  513. }
  514. &::-webkit-scrollbar {
  515. width: 6px;
  516. background-color: #eee;
  517. }
  518. &::-webkit-scrollbar-thumb {
  519. background-color: #c1c1c1;
  520. &:hover {
  521. background-color: #a8a8a8;
  522. }
  523. &:active {
  524. background-color: #787878;
  525. }
  526. }
  527. .Upload{
  528. width: 100%;
  529. height: 100%;
  530. .Upload-top{
  531. height: 38px;
  532. display: flex;
  533. justify-content: space-between;
  534. .button-background {
  535. margin-right: 10px;
  536. }
  537. }
  538. .Upload-butom{
  539. width: 100%;
  540. height: 100%;
  541. // height: calc(100% - 38px);
  542. .Upload-butom-tow{
  543. width: 100%;
  544. height: 40px;
  545. display: flex;
  546. h3{
  547. font-size: 18px;
  548. color: #439dc1;
  549. line-height: 40px;
  550. &::before{
  551. content: "*";
  552. color: #f56c6c;
  553. margin-right: 5px;
  554. }
  555. }
  556. }
  557. .Upload-butom-ont{
  558. width: 100%;
  559. height: calc(50% -20px);
  560. .tc-middle-add {
  561. display: flex;
  562. h3{
  563. font-size: 18px;
  564. color: #439dc1;
  565. margin: 15px 0;
  566. &::before{
  567. content: "*";
  568. color: #f56c6c;
  569. margin-right: 5px;
  570. }
  571. }
  572. h4{
  573. font-size: 18px;
  574. color: #439dc1;
  575. margin: 15px 0;
  576. }
  577. }
  578. .tc-middle-empty{
  579. width: 100%;
  580. img{
  581. margin: 0 auto;
  582. display: block;
  583. }
  584. }
  585. .tc-middle-name{
  586. width: 100%;
  587. ul{
  588. width: 100%;
  589. display: flex;
  590. li{
  591. width: 100px;
  592. height: 110px;
  593. cursor: pointer;
  594. margin: 0 10px;
  595. position: relative;
  596. border: 1px solid #dedede;
  597. border-radius: 10px;
  598. padding: 10px;
  599. box-sizing: border-box;
  600. &:hover{
  601. i{
  602. display: block;
  603. }
  604. }
  605. i{
  606. position: absolute;
  607. top: -9px;
  608. right: -9px;
  609. color: #FF4500;
  610. font-size: 25px;
  611. display: none;
  612. }
  613. img{
  614. width: 55px;
  615. margin: 0 auto;
  616. display: block;
  617. }
  618. div{
  619. width: 100%;
  620. display: block;
  621. text-align: center;
  622. color: #5e5e5e;
  623. margin: 2px;
  624. margin-top: 8px;
  625. overflow: hidden;
  626. text-overflow: ellipsis;
  627. word-break: break-all;
  628. font-size: 14px;
  629. display: inline-block;
  630. display: -webkit-box !important;
  631. -webkit-line-clamp: 1;
  632. -webkit-box-orient: vertical;
  633. span {
  634. display: initial;
  635. white-space: break-spaces;
  636. }
  637. }
  638. .add{
  639. width: 100%;
  640. height: 100%;
  641. .add-top{
  642. margin: 0 auto;
  643. width: 80%;
  644. height: 60%;
  645. border: 2px dotted #c6c6c6;
  646. border-radius: 5px;
  647. position: relative;
  648. span{
  649. display: inline;
  650. position: absolute;
  651. top: calc(50% - 15px);
  652. left: calc(50% - 15px);
  653. font-size: 30px;
  654. color: #bbb;
  655. }
  656. }
  657. .add-buttom{
  658. color: #5e5e5e;
  659. }
  660. }
  661. }
  662. }
  663. }
  664. }
  665. }
  666. }
  667. .SignAcontract-content-lent-data{
  668. width: 100%;
  669. height: 1000px;
  670. span {
  671. word-break: break-all;
  672. border-bottom: 1px solid #000;
  673. min-width: 50px;
  674. display: inline-block;
  675. line-height: 18px;
  676. text-align: center;
  677. text-indent: 0em;
  678. }
  679. td{
  680. border-bottom: 1px solid #000;
  681. border-right: 1px solid #000;
  682. }
  683. .contractA {
  684. width: 100%;
  685. height: calc(100% - 40px);
  686. padding: 3%;
  687. font-size: 15px;
  688. box-sizing: border-box;
  689. .contractA-title {
  690. width: 100%;
  691. text-align: center;
  692. font-size: 20px;
  693. font-weight: bolder;
  694. margin-bottom: 1%;
  695. }
  696. .contractA-name {
  697. text-indent: 2em;
  698. line-height: 2em;
  699. font-size: 18px;
  700. }
  701. .contractA-bottom {
  702. margin-top: 2rem;
  703. font-size: 18px;
  704. .contractA-bottom-a {
  705. display: flex;
  706. line-height: 2rem;
  707. div {
  708. width: 50%;
  709. text-align: center;
  710. }
  711. }
  712. .contractA-bottom-b {
  713. text-align: center;
  714. line-height: 2rem;
  715. margin-bottom: 2rem;
  716. }
  717. .contractA-bottom-c {
  718. text-align: right;
  719. letter-spacing: 2rem;
  720. }
  721. }
  722. }
  723. }
  724. .toexamine{
  725. height: 500px;
  726. }
  727. }
  728. }
  729. }
  730. .FarmerPreferenceCss{
  731. width: 100%;
  732. p{
  733. font-size: 16px;
  734. color: #439dc1;
  735. }
  736. .FarmerPreferenceCss-top{
  737. width: 100%;
  738. }
  739. .FarmerPreferenceCss-buttom{
  740. ul{
  741. li{
  742. display: flex;
  743. margin: 5px 0;
  744. span{
  745. padding: 5px;
  746. }
  747. .name{
  748. padding: 5px;
  749. border-radius: 5px;
  750. background-color: #e6a23c;
  751. color: #fff;
  752. }
  753. .ont{
  754. color: #f56c6c;
  755. }
  756. .tow{
  757. color: #78c951;
  758. }
  759. }
  760. }
  761. }
  762. }
  763. </style>