移动端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

439 lines
14 KiB

  1. <template>
  2. <div class="home_wrapper">
  3. <div class="header_main" >
  4. {{this.$route.query.shStatus?'承包方审核':'承包方授权'}}
  5. <div class="return_btn" @click="onClickLeft"></div>
  6. </div>
  7. <div class="list_main">
  8. <div class="titBox">
  9. <img src="../../assets/images/sunVillage_info/list_employer_process_icon_02.png" style="width:22PX;height:22PX;margin-right: 10px;"/>
  10. <p class="tit">承包方授权</p>
  11. </div>
  12. <van-field readonly v-model="cbfTypeName" label="承包方类型" placeholder="承包方类型" input-align="right" :border="false" />
  13. <van-field readonly v-model="form.cbfbm" label="承包方代码" placeholder="承包方代码" input-align="right" :border="false" />
  14. <van-cell title="承包方名称" style="color: #646566;">
  15. <div style="color:#000000; ">{{form.cbfmc}}</div>
  16. </van-cell>
  17. <van-field readonly v-model="zjlxName" label="承包方证件类型" placeholder="承包方证件类型" input-align="right" :border="false" />
  18. <van-field readonly v-model="form.cbfzjhm" label="承包方证件号码" placeholder="承包方证件号码" input-align="right" :border="false" />
  19. <van-field readonly v-model="form.lxdh" label="联系电话" placeholder="联系电话" input-align="right" :border="false" />
  20. <van-field readonly v-model="form.cbfcysl" label="承包方成员数量" placeholder="承包方成员数量" input-align="right" :border="false" />
  21. <van-field readonly v-model="form.cbfdcy" label="承包方调查员" placeholder="承包方调查员" input-align="right" :border="false" />
  22. <van-field readonly v-model="form.cbfdcrq" label="承包方调查日期" placeholder="承包方调查日期" input-align="right" :border="false" />
  23. <van-cell title="承包方调查记事" style="color: #646566;">
  24. <div style="color:#000000; ">{{form.cbfdcjs}}</div>
  25. </van-cell>
  26. <van-cell title="承包方调查签字" style="color: #646566;">
  27. <van-field style="padding: 0 0;" readonly input-align="right" :border="false" >
  28. <template #label>
  29. <img :src="'/api'+form.cbfdcqz" width="10%" alt="" v-if="form.cbfdcqz" >
  30. </template>
  31. </van-field>
  32. </van-cell>
  33. <van-cell title="公示记事" style="color: #646566;">
  34. <div style="color:#000000; ">{{form.gsjs}}</div>
  35. </van-cell>
  36. <van-field readonly v-model="form.gsjsr" label="公示记事人" placeholder="公示记事人" input-align="right" :border="false" />
  37. <van-cell title="公示记事人签字" style="color: #646566;">
  38. <van-field style="padding: 0 0;" readonly input-align="right" :border="false" >
  39. <template #label>
  40. <img :src="'/api'+form.gsjsrqz" width="10%" alt="" v-if="form.gsjsrqz" >
  41. </template>
  42. </van-field>
  43. </van-cell>
  44. <van-field readonly v-model="form.gsjsrq" label="公示记事日期" placeholder="公示记事日期" input-align="right" :border="false" />
  45. <van-cell title="公示结果意见" style="color: #646566;">
  46. <div style="color:#000000; ">{{form.gsjgyj}}</div>
  47. </van-cell>
  48. <van-cell title="公示结果签字" style="color: #646566;">
  49. <van-field style="padding: 0 0;" readonly input-align="right" :border="false" >
  50. <template #label>
  51. <img :src="'/api'+form.gsjgqz" width="10%" alt="" v-if="form.gsjgqz" >
  52. </template>
  53. </van-field>
  54. </van-cell>
  55. <van-field readonly v-model="form.gsjgqzrq" label="公示结果签字日期" placeholder="公示结果签字日期" input-align="right" :border="false" />
  56. <van-field readonly v-model="form.gsshr" label="公示审核人" placeholder="公示审核人" input-align="right" :border="false" />
  57. <van-field readonly v-model="form.gsshrq" label="公示审核日期" placeholder="公示审核日期" input-align="right" :border="false" />
  58. <van-cell title="公示审核意见" style="color: #646566;">
  59. <div style="color:#000000; ">{{form.gsshyj}}</div>
  60. </van-cell>
  61. <van-cell title="公示审核签字" style="color: #646566;">
  62. <van-field style="padding: 0 0;" readonly input-align="right" :border="false" >
  63. <template #label>
  64. <img :src="'/api'+form.gsshqz" width="10%" alt="" v-if="form.gsshqz" >
  65. </template>
  66. </van-field>
  67. </van-cell>
  68. <van-field readonly v-model="form.yzbm" label="邮政编码" placeholder=" 邮政编码" input-align="right" :border="false" />
  69. <!-- <van-field readonly v-model="form.fbfdcy" label="发包方调查员" placeholder="发包方调查员" input-align="right" :border="false" />-->
  70. <!-- <van-field readonly v-model="form.fbfdcrq" label="发包方调查日期" placeholder="发包方调查日期" input-align="right" :border="false" />-->
  71. <!-- <van-cell title="发包方调查记事" style="color: #646566;">-->
  72. <!-- <div style="color:#000000; ">{{form.fbfdcjs}}</div>-->
  73. <!-- </van-cell>-->
  74. <!-- <van-cell title="发包方调查签字" style="color: #646566;">-->
  75. <!-- <van-field style="padding: 0 0;" readonly input-align="right" :border="false" >-->
  76. <!-- <template #label>-->
  77. <!-- <img :src="'/api'+form.fbfdcqz" width="10%" alt="" v-if="form.fbfdcqz" >-->
  78. <!-- </template>-->
  79. <!-- </van-field>-->
  80. <!-- </van-cell>-->
  81. <!-- <van-field readonly v-model="form.shyj" label="审核意见" placeholder="审核意见" input-align="right" :border="false" />-->
  82. <!-- <van-field readonly v-model="form.shrq" label="审核日期" placeholder="审核日期" input-align="right" :border="false" />-->
  83. <!-- <van-cell title="审核人签字" style="color: #646566;">-->
  84. <!-- <van-field style="padding: 0 0;" readonly input-align="right" :border="false" >-->
  85. <!-- <template #label>-->
  86. <!-- <img :src="'/api'+form.shrqz" width="10%" alt="" v-if="form.shrqz" >-->
  87. <!-- </template>-->
  88. <!-- </van-field>-->
  89. <!-- </van-cell>-->
  90. <img class="bottomImg" v-if="sqbutShow && cbfsqShow" src="../../assets/images/sunVillage_info/cbfwsq.png" alt="" />
  91. <img class="bottomImg" v-if="sqbutShow && cbfshShow" src="../../assets/images/sunVillage_info/cbfwsh.png" alt="" />
  92. <!-- <van-button round block type="primary" v-if="!sqbutShow" >
  93. 授权完成
  94. </van-button> -->
  95. </div>
  96. <img class="bottomImg" src="../../assets/images/sunVillage_info/contractor_authorized.png" alt="" v-if="!sqbutShow" />
  97. </div>
  98. </template>
  99. <script>
  100. import { getCbfList,getCbfById,eqbEmpower} from "@/api/sunVillage_info/sysCbf";
  101. import FieldSelect from "@/components/form/FieldSelect";
  102. import Cookies from "js-cookie";
  103. import $ from "jquery";
  104. export default {
  105. name: "certificateList",
  106. components: {FieldSelect},
  107. data() {
  108. return {
  109. form:{},
  110. showForm2:false,
  111. showesign:false,
  112. sqbutShow:true,
  113. cbfsqShow:false,
  114. cbfshShow:false,
  115. sysFarmer:null,
  116. zjlxName:"",
  117. cbfTypeName:"",
  118. surveyStatusName:"",
  119. isDepositName:"",
  120. height:0,
  121. options: {
  122. cert_type: [],
  123. },
  124. //电子签名
  125. signature: {
  126. lineWidth: 6, // 画笔的线条粗细
  127. lineColor: "#000000", // 画笔的颜色
  128. bgColor: "", // 画布的背景颜色
  129. resultImg: "", // 最终画布生成的base64图片
  130. isCrop: false, // 是否裁剪,在画布设定尺寸基础上裁掉四周空白部分
  131. },
  132. };
  133. },
  134. created() {
  135. if(this.$route.query.sqStatus){
  136. getCbfById(this.$route.query.id).then(response => {
  137. this.form = response.data;
  138. if(this.form.accountId != null && this.form.accountId !== ""){
  139. this.sqbutShow = false;
  140. }else{
  141. this.cbfsqShow = true;
  142. this.sqbutShow = true;
  143. }
  144. this.getDictValue();
  145. });
  146. }else if(this.$route.query.shStatus){
  147. getCbfById(this.$route.query.id).then(response => {
  148. this.form = response.data;
  149. if(this.form.gsshqz != null && this.form.gsshqz !== ""){
  150. this.sqbutShow = false;
  151. }else{
  152. this.cbfshShow = true;
  153. this.sqbutShow = true;
  154. }
  155. this.getDictValue();
  156. });
  157. }else{
  158. this.sysFarmer = JSON.parse(Cookies.get('user'));
  159. this.getSysCfb();
  160. }
  161. },
  162. methods: {
  163. InitOptions() {
  164. for(let k in this.options)
  165. {
  166. this.getDicts(k).then((resp) => this.options[k] = resp.data);
  167. }
  168. },
  169. /*承包方授权*/
  170. cbfsq(){
  171. eqbEmpower(this.form).then(response => {
  172. if(response.code === 200 ){
  173. this.sqbutShow = false;
  174. }
  175. });
  176. },
  177. getSysCfb(){
  178. getCbfList({deptId:this.sysFarmer.deptId,cbfzjhm:this.sysFarmer.idcard}).then(response => {
  179. this.sqbutShow = true;
  180. if(response.rows.length > 0){
  181. this.form = response.rows[0];
  182. if(this.form.accountId != null && this.form.accountId !== ""){
  183. this.sqbutShow = false;
  184. }else{
  185. this.sqbutShow = true;
  186. }
  187. this.getDictValue();
  188. }
  189. });
  190. },
  191. getDictValue(){
  192. let _this = this;
  193. this.getDicts("cert_type").then(response => {
  194. response.data.forEach(function (item) {
  195. if (item.dictValue === _this.form.cbfzjlx) {
  196. _this.zjlxName = item.dictLabel;
  197. }
  198. })
  199. });
  200. this.getDicts("cbf_type").then(response => {
  201. response.data.forEach(function (item) {
  202. if (item.dictValue === _this.form.cbflx) {
  203. _this.cbfTypeName = item.dictLabel;
  204. }
  205. })
  206. });
  207. this.getDicts("confirmed_survey_status").then(response => {
  208. response.data.forEach(function (item) {
  209. if (item.dictValue === _this.form.surveyStatus) {
  210. _this.surveyStatusName = item.dictLabel;
  211. }
  212. })
  213. });
  214. this.getDicts("sys_yes_no").then(response => {
  215. response.data.forEach(function (item) {
  216. if (item.dictValue === _this.form.isDeposit) {
  217. _this.isDepositName = item.dictLabel;
  218. }
  219. })
  220. });
  221. }
  222. },
  223. }
  224. </script>
  225. <style scoped lang="scss">
  226. /deep/ .van-button--primary{
  227. background: url("../../assets/images/sunVillage_info/btn_bg.png") no-repeat;
  228. background-size: 100% 100%;
  229. border: none;
  230. }
  231. .van-cell::after {
  232. position: absolute;
  233. box-sizing: border-box;
  234. content: ' ';
  235. pointer-events: none;
  236. right: 0.426667rem;
  237. bottom: 0;
  238. left: 0.426667rem;
  239. border:none;
  240. -webkit-transform: scaleY(.5);
  241. transform: scaleY(.5);
  242. }
  243. .signature-footer {
  244. transform: rotate(90deg);
  245. width: auto;
  246. position: absolute;
  247. top: 50%;
  248. left: 0px;
  249. }
  250. .home_wrapper{
  251. background: #e9e9e9;
  252. min-height: 100vh;
  253. width: 100vw;
  254. .header_main {
  255. height: 116px;
  256. background: url('../../assets/images/sunVillage_info/list_head.png') no-repeat;
  257. background-size: 100% 100%;
  258. position: fixed;
  259. top: 0;
  260. left: 0;
  261. width: 100%;
  262. font-size: 36px;
  263. line-height: 116px;
  264. text-align: center;
  265. color: #fff;
  266. position: relative;
  267. .return_btn {
  268. width: 24px;
  269. height: 43.2px;
  270. background: url('../../assets/images/sunVillage_info/list_icon_5.png') center center no-repeat;
  271. background-size: 20px 36px;
  272. position: absolute;
  273. left: 38px;
  274. top: 36px;
  275. }
  276. }
  277. .release_head{
  278. height: 90px;
  279. padding:0 23px;
  280. display: flex;
  281. align-items: center;
  282. font-size: 26px;
  283. color: #929292;
  284. .people{
  285. flex: 1;
  286. display: flex;
  287. align-items: center;
  288. .icon{
  289. width: 24px;
  290. height: 21px;
  291. background: url('../../assets/images/sunVillage_info/details_icon_1.png') no-repeat;
  292. background-size: 100% 100%;
  293. display: block;
  294. margin-right: 8px;
  295. }
  296. }
  297. .time{
  298. flex: 1;
  299. display: flex;
  300. align-items: center;
  301. justify-content:flex-end;
  302. .icon{
  303. width: 25px;
  304. height: 25px;
  305. background: url('../../assets/images/sunVillage_info/details_icon_2.png') no-repeat;
  306. background-size: 100% 100%;
  307. display: block;
  308. margin-right: 8px;
  309. }
  310. }
  311. }
  312. .release_conetnt{
  313. padding:0 22px;
  314. font-size: 32px;
  315. color: #252525;
  316. line-height: 44px;
  317. img{
  318. max-width: 100%;
  319. margin-bottom: 16px;
  320. }
  321. p{
  322. margin-bottom: 16px;
  323. }
  324. }
  325. .list_main{
  326. padding:25px;
  327. background: #ffffff;
  328. width: 94%;
  329. margin: 25px auto 0;
  330. border-radius: 15PX;
  331. box-shadow: 4px 6px 5px rgba(63, 68, 75, 0.1);
  332. }
  333. .subForm{
  334. padding:25px;
  335. background-image: linear-gradient(#2884ec,#68b2ee);
  336. width: 94%;
  337. margin: 50PX auto 0;
  338. border-radius: 15PX;
  339. box-shadow: 4px 6px 5px rgba(63, 68, 75, 0.1);
  340. position: relative;
  341. padding-top: 10vw;
  342. img{
  343. position: absolute;
  344. left: 50%;
  345. width: 15vw;
  346. transform: translate(-50%,calc(-50% - 10vw));
  347. border: 5PX solid #e9e9e9;
  348. border-radius: 100%;
  349. }
  350. /deep/ .van-field__label{
  351. /*padding-left: 10PX;*/
  352. width: auto;
  353. display: flex;
  354. align-items: start;
  355. color: #ffffff;
  356. margin-right: 6vw;
  357. }
  358. /deep/ .van-cell{
  359. background-color: transparent;
  360. }
  361. .textarea{
  362. /deep/ .van-field__value{
  363. background-color: #ffffff;
  364. border-radius: 10PX;
  365. }
  366. /deep/ .van-field__control{
  367. padding: 12PX;
  368. color: #666666;
  369. }
  370. }
  371. /deep/ .van-field__value{
  372. background-color: transparent;
  373. border-radius: 10PX;
  374. }
  375. /deep/ .van-field__control{
  376. padding: 0PX;
  377. color: #ffffff;
  378. }
  379. /deep/ .van-cell--required::before{
  380. left: 60PX;
  381. }
  382. }
  383. .subForm2{
  384. padding:25px;
  385. background:#ffffff;
  386. width: 94%;
  387. margin: 50PX auto 0;
  388. border-radius: 15PX;
  389. box-shadow: 4px 6px 5px rgba(63, 68, 75, 0.1);
  390. position: relative;
  391. padding-top: 10vw;
  392. .topImg{
  393. position: absolute;
  394. left: 50%;
  395. width: 15vw;
  396. transform: translate(-50%,calc(-50% - 10vw));
  397. border: 5PX solid #e9e9e9;
  398. border-radius: 100%;
  399. }
  400. }
  401. .titBox{
  402. display: flex;
  403. align-items: center;
  404. }
  405. .tit{
  406. font-size: 36px;
  407. font-weight: bold;
  408. }
  409. /deep/ .van-cell{
  410. padding-left: 0!important;
  411. padding-right: 0!important;
  412. padding-bottom: 0!important;
  413. }
  414. /deep/ .van-field__label{
  415. /*padding-left: 10PX;*/
  416. width: auto;
  417. display: flex;
  418. align-items: center;
  419. }
  420. /deep/ .van-cell--required::before{
  421. left: 85PX;
  422. }
  423. }
  424. .bottomImg{
  425. position: absolute;
  426. left: 50%;
  427. top: 50%;
  428. width: 50vw;
  429. transform: translate(-50%,10%);
  430. }
  431. </style>