update.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652
  1. <template>
  2. <view>
  3. <!-- 顶部 -->
  4. <cu-custom bgColor="bg-blue" :isBack="true">
  5. <block slot="backText">编辑安全巡视</block>
  6. <block slot="content"></block>
  7. <block slot="right">
  8. <view class=" flex justify-center">
  9. <template v-if="dateList[0].taskStatus == '0' || dateList[0].taskStatus == '1'">
  10. <button @click="repeal()" class="margin-top-ssm cu-btn line-blue round text-white" style="width: 130rpx;height: 66rpx;padding: 0;">废除</button>
  11. </template>
  12. <template v-else>
  13. <button @click="save(2)" class="margin-top-ssm cu-btn line-blue round text-white" style="width: 130rpx;height: 66rpx;padding: 0;">上报</button>
  14. </template>
  15. <button class="margin-top-ssm cu-btn round line-blue text-white">
  16. <button class="cu-btn line-blue" style="padding:0 20rpx 0 10rpx" @click="save(1)">
  17. <text class="text-white">预览</text>
  18. </button>
  19. <template v-if="!(dateList[0].taskStatus == '0' || dateList[0].taskStatus == '1')">
  20. <text class="bg-white" style="width: 1rpx;height: 30rpx;"></text>
  21. <button class=" cu-btn line-blue" style="padding:0 10rpx 0 20rpx" @click="save()">
  22. <text class="text-white">保存</text>
  23. </button>
  24. </template>
  25. </button>
  26. </view>
  27. </block>
  28. </cu-custom>
  29. <view v-for="(data,index) in dateList" :key="index">
  30. <form>
  31. <view class="cu-form-group_1 flex justify-between">
  32. <view>
  33. <text class="title">日志{{index+1}}</text>
  34. <button class="cu-btn round sm margin-left-sm" v-if="!(data.taskStatus==0 || data.taskStatus==1)" @click="addNow(index)">复制当前</button>
  35. </view>
  36. <button class="cu-btn round sm" @click="delOne(index)" v-if="!(data.taskStatus==0 || data.taskStatus==1)&&(index != 0)">删除</button>
  37. </view>
  38. <template v-if="project && project.contract_type == 1">
  39. <checkbox-group @change="checkboxChange($event,index,1)" class="block" style="padding: 0 10px;background-color: #FFFFFF;">
  40. <view>单位</view>
  41. <template v-for="(item,index2) in constructi2onList">
  42. <view style="padding-top: 10px;">
  43. <checkbox v-if="item.contractorUnitName" :value='item.id' class='round' :class="item.checked?'checked':''" :checked="item.checked" :disabled="(data.taskStatus==0)||(data.taskStatus==1)" style="transform:scale(0.82)"></checkbox>
  44. <text style="margin-left: 20rpx;">{{item.contractorUnitName}}</text>
  45. </view>
  46. </template>
  47. </checkbox-group>
  48. <checkbox-group @change="checkboxChange($event,index,2)" class="block" style="padding: 0 10px;background-color: #FFFFFF;">
  49. <view>合同段</view>
  50. <template v-for="(item,index2) in contractIdDataList">
  51. <span style="padding-top: 10px;margin-right: 30rpx;">
  52. <checkbox v-if="item.contractNumber" :value='item.id' class='round' :class="item.checked?'checked':''" :checked="item.checked" :disabled="(data.taskStatus==0)||(data.taskStatus==1)" style="transform:scale(0.82)"></checkbox>
  53. <text style="margin-left: 10rpx;">{{item.contractNumber}}</text>
  54. </span>
  55. </template>
  56. </checkbox-group>
  57. </template>
  58. <template v-if="isZJ">
  59. <view class="cu-form-group_1">
  60. <view class="title">检查日期</view>
  61. <input placeholder-style="color:#AEAEAE" placeholder="请输入" disabled="" v-model="data.date" name="input"></input>
  62. </view>
  63. </template>
  64. <template v-else>
  65. <view class="cu-form-group_1">
  66. <view class="title">巡查日期</view>
  67. <input placeholder-style="color:#AEAEAE" placeholder="请输入" disabled="" v-model="data.date" name="input"></input>
  68. </view>
  69. <view class="cu-form-group_1">
  70. <view class="title">编号</view>
  71. <input placeholder-style="color:#AEAEAE" placeholder="请输入" v-model="data.serialNumber" :disabled="(data.taskStatus==0)||(data.taskStatus==1)" name="input"></input>
  72. </view>
  73. <view class="cu-form-group_1">
  74. <view class="title">复查日期</view>
  75. <picker mode="date" :value="data.fuchadate" @change="bindDateChange($event,index)" :disabled="(data.taskStatus==0)||(data.taskStatus==1)" style="width: 100%;padding-left: 36rpx;">
  76. <view style="color: rgb(138, 138, 138);">{{data.fuchadate}}</view>
  77. </picker>
  78. </view>
  79. <view class="cu-form-group_1">
  80. <view class="title">复查人</view>
  81. <input placeholder-style="color:#AEAEAE" placeholder="请输入" v-model="data.superreviewer" :disabled="(data.taskStatus==0)||(data.taskStatus==1)" name="input"></input>
  82. </view>
  83. </template>
  84. </form>
  85. <form>
  86. <template v-if="isZJ">
  87. <view class="cu-form-group_2">
  88. <view class="title">巡查位置、内容</view>
  89. <view>
  90. <textarea placeholder-style="color:#AEAEAE" maxlength="-1" v-model="data.jobContent" :disabled="(data.taskStatus==0)||(data.taskStatus==1)" placeholder="请输入"></textarea>
  91. </view>
  92. </view>
  93. <view class="cu-form-group_2">
  94. <view class="title">隐患或危险因素描述</view>
  95. <view>
  96. <textarea placeholder-style="color:#AEAEAE" maxlength="-1" v-model="data.problem" :disabled="(data.taskStatus==0)||(data.taskStatus==1)" placeholder="请输入"></textarea>
  97. </view>
  98. </view>
  99. <view class="cu-form-group_2">
  100. <view class="title">处理意见</view>
  101. <view>
  102. <textarea placeholder-style="color:#AEAEAE" maxlength="-1" v-model="data.processingOpinion" :disabled="(data.taskStatus==0)||(data.taskStatus==1)" placeholder="请输入"></textarea>
  103. </view>
  104. </view>
  105. <view class="cu-form-group_1">
  106. <view class="title">复查日期</view>
  107. <picker mode="date" :value="data.fuchadate" @change="bindDateChange($event,index)" :disabled="(data.taskStatus==0)||(data.taskStatus==1)" style="width: 100%;padding-left: 36rpx;">
  108. <view style="color: rgb(138, 138, 138);">{{data.fuchadate}}</view>
  109. </picker>
  110. </view>
  111. <view class="cu-form-group_1">
  112. <view class="title">施工责任人</view>
  113. <input placeholder-style="color:#AEAEAE" placeholder="请输入" v-model="data.superreviewer" :disabled="(data.taskStatus==0)||(data.taskStatus==1)" name="input"></input>
  114. </view>
  115. <view class="cu-form-group_2">
  116. <view class="title">整改落实情况</view>
  117. <view>
  118. <textarea placeholder-style="color:#AEAEAE" maxlength="-1" v-model="data.patrolContent" :disabled="(data.taskStatus==0)||(data.taskStatus==1)" placeholder="请输入"></textarea>
  119. </view>
  120. </view>
  121. <view class="cu-form-group_2">
  122. <view class="title">复查意见</view>
  123. <view>
  124. <textarea placeholder-style="color:#AEAEAE" maxlength="-1" v-model="data.reviewOpinions" :disabled="(data.taskStatus==0)||(data.taskStatus==1)" placeholder="请输入"></textarea>
  125. </view>
  126. </view>
  127. <view class="cu-form-group_2">
  128. <view class="title">备注</view>
  129. <view>
  130. <textarea placeholder-style="color:#AEAEAE" maxlength="-1" v-model="data.remark" :disabled="(data.taskStatus==0)||(data.taskStatus==1)" placeholder="请输入"></textarea>
  131. </view>
  132. </view>
  133. </template>
  134. <template v-else>
  135. <view class="cu-form-group_2">
  136. <view class="title">巡查位置、内容</view>
  137. <view>
  138. <textarea placeholder-style="color:#AEAEAE" maxlength="-1" v-model="data.jobContent" :disabled="(data.taskStatus==0)||(data.taskStatus==1)" placeholder="请输入"></textarea>
  139. </view>
  140. </view>
  141. <view class="cu-form-group_2">
  142. <view class="title">存在的安全隐患</view>
  143. <view>
  144. <textarea placeholder-style="color:#AEAEAE" maxlength="-1" v-model="data.patrolContent" :disabled="(data.taskStatus==0)||(data.taskStatus==1)" placeholder="请输入"></textarea>
  145. </view>
  146. </view>
  147. <view class="cu-form-group_2">
  148. <view class="title">隐患处理情况</view>
  149. <view>
  150. <textarea placeholder-style="color:#AEAEAE" maxlength="-1" v-model="data.acceptance" :disabled="(data.taskStatus==0)||(data.taskStatus==1)" placeholder="请输入"></textarea>
  151. </view>
  152. </view>
  153. <view class="cu-form-group_2">
  154. <view class="title">隐患整改复查情况</view>
  155. <view>
  156. <textarea placeholder-style="color:#AEAEAE" maxlength="-1" v-model="data.problem" :disabled="(data.taskStatus==0)||(data.taskStatus==1)" placeholder="请输入"></textarea>
  157. </view>
  158. </view>
  159. </template>
  160. </form>
  161. </view>
  162. <view class="cu-bar bg-white tabbar" style="border: none;"></view>
  163. <view class="cu-bar bg-white tabbar border shop" style="position: fixed;bottom: 0;left: 0;width: 100%;border-top: 1rpx solid #EAEAEA;">
  164. <view class="flex solid-bottom padding justify-between" style="width: 100%;">
  165. <text></text>
  166. <button class="cu-btn round" @click="addOne" v-if="!(dateList[0].taskStatus == '0' || dateList[0].taskStatus == '1')">新增</button>
  167. </view>
  168. </view>
  169. </view>
  170. </template>
  171. <script>
  172. export default {
  173. data() {
  174. return {
  175. dotStyle: {
  176. color: 'black'
  177. },
  178. time: "",
  179. constructionList: [],
  180. supervisionList: [],
  181. modalShow: false,
  182. // data: {
  183. // },
  184. dateList:[{
  185. pageNumber:1,
  186. recorderId:uni.getStorageSync("userInfo").id,
  187. contractId:uni.getStorageSync("porject"+"_"+uni.getStorageSync("userInfo").id).contractId,
  188. }],
  189. updateOrInsert: 0, //0为新增 , 1为编辑
  190. upId: null,
  191. isZJ:0,
  192. constructi2onList:[],
  193. contractIdDataList:[],
  194. contractId : uni.getStorageSync("porject"+"_"+uni.getStorageSync("userInfo").id).contractId,
  195. project:uni.getStorageSync("porject"+"_"+uni.getStorageSync("userInfo").id),
  196. recorderId:uni.getStorageSync("userInfo").id,
  197. }
  198. },
  199. async onLoad(e) {
  200. this.dateList[0].date = e.time;
  201. this.dateList[0].fuchadate = e.time;
  202. this.project = uni.getStorageSync("porject" + "_" + uni.getStorageSync("userInfo").id);
  203. this.updateOrInsert = e.type;
  204. this.upId = e.id;
  205. if(this.project.contract_type == 1){
  206. await this.getcontractInfoListByContract();
  207. }
  208. //console.log(this.constructi2onList)
  209. //debugger
  210. if (this.updateOrInsert == 1) { //获取日志信息进行绑定
  211. //this.findData(this.upId);
  212. this.getDataByDate(e.time);
  213. } else {
  214. //获取合同段的地址,根据地址获取温度和天气
  215. var that = this;
  216. var cityName = uni.getStorageSync("porject" + "_" + uni.getStorageSync("userInfo").id).project_place;
  217. that.http.request("/app/diary/getWeather", {
  218. projectId:that.project.id,
  219. contractId:that.contractId,
  220. date:e.time
  221. }).then((res) => {
  222. //that.$set(that.data,'averageTemperature',res.tempSection);
  223. that.$set(that.dateList[0], 'weather', res.weather);
  224. //that.data.averageTemperature =res.tempSection;
  225. //that.data.weather = res.weather
  226. })
  227. //获取上一个审核人
  228. this.getReviewer(e.time);
  229. }
  230. this.getIsZJ();
  231. uni.$on('report',this.reportSuccess)
  232. },
  233. onUnload(){
  234. uni.$off('report',this.reportSuccess)
  235. },
  236. methods: {
  237. showdialog() {
  238. this.modalShow = !this.modalShow;
  239. },
  240. datechange(e) {
  241. this.data.startTime = e.fullDate
  242. this.showdialog();
  243. },
  244. navTo(value) {
  245. uni.navigateTo({
  246. url: "/pages/constructionLog/personnel/personnel?type=" + value
  247. })
  248. },
  249. //获取该日志的数据,编辑
  250. findData(id) {
  251. var that = this;
  252. that.http.request('/app/superpatrol/getDataById', {
  253. id: id
  254. }).then((result) => {
  255. that.data = result.data;
  256. that.$delete(that.data, 'prefix');
  257. })
  258. },
  259. save(type) {
  260. if(!this.verification()){
  261. uni.showToast({
  262. title: '至少需要填写一项内容',
  263. icon:'none',
  264. duration: 2000
  265. });
  266. return;
  267. }
  268. // this.data.contractId = this.project.contractId;
  269. // this.data.recorderId = uni.getStorageSync("userInfo").id;
  270. for (let j = 0; j < this.dateList.length; j++) {
  271. if (this.constructi2onList && this.constructi2onList.length > 0) {
  272. var arr = [];
  273. for (var i = 0; i < this.constructi2onList.length; i++) {
  274. if(this.constructi2onList[i].checked){
  275. arr.push(this.constructi2onList[i].id)
  276. }
  277. }
  278. this.dateList[j].constructionUnits = arr.join(',');
  279. } else {
  280. this.dateList[j].constructionUnits = null;
  281. }
  282. if (this.contractIdDataList && this.contractIdDataList.length > 0) {
  283. var arr = [];
  284. for (var i = 0; i < this.contractIdDataList.length; i++) {
  285. if(this.contractIdDataList[i].checked){
  286. arr.push(this.contractIdDataList[i].id)
  287. }
  288. }
  289. this.dateList[j].contractIds = arr.join(',');
  290. } else {
  291. this.dateList[j].contractIds = null;
  292. }
  293. }
  294. //this.http.request('/app/superpatrol/addEntity.json', JSON.stringify(this.dateList), 1).then((res) => {
  295. this.http.request('/app/superpatrol/addEntity.json', {voStr:JSON.stringify(this.dateList),storeName:uni.getStorageSync("storeName")}).then((res) => {
  296. if (res.result == "1") {
  297. //this.data.id = res.data.id;
  298. let urlArr = [];
  299. let idArr = [];
  300. for (let i = 0; i < res.datas.length; i++) {
  301. this.dateList[i].id = res.datas[i].id;
  302. this.dateList[i].outUrl = res.datas[i].outUrl;
  303. urlArr.push(res.datas[i].outUrl);
  304. idArr.push(res.datas[i].id)
  305. }
  306. this.$prompt.none(res.msg);
  307. setTimeout(() =>{
  308. if (type == 1) {
  309. if(this.isZJ){
  310. //debugger
  311. this.http.request('/app/superpatrol/toPrint', {
  312. ids: idArr.join(','),
  313. projectId:this.project.id,
  314. contractId:this.contractId,
  315. userId:this.recorderId
  316. }).then((result) => {
  317. //跳去预览
  318. uni.navigateTo({
  319. url: "/pages/view/preview/preview?previews=" + result.data
  320. })
  321. })
  322. }else{
  323. //跳去预览
  324. uni.navigateTo({
  325. url: "/pages/view/preview/preview?previews=" + urlArr.join(',')
  326. })
  327. }
  328. }else if(type == 2){
  329. getApp().globalData.diary = res.datas[0];
  330. uni.navigateTo({
  331. url:"/pages/dataReport/dailyReport?urlName="+"superpatrol"+"&isZJ="+this.isZJ
  332. })
  333. }else {
  334. uni.navigateBack({
  335. delta: 1
  336. })
  337. }
  338. }, 500)
  339. } else {
  340. this.$prompt.Error("保存失败,"+res.msg);
  341. }
  342. })
  343. },
  344. radioChange(event,type){
  345. //console.log(event.target.value,type);
  346. this.data[type] = event.target.value;
  347. },
  348. verification(){
  349. let verify = true;
  350. if(this.isZJ){
  351. for (let i = 0; i < this.dateList.length; i++) {
  352. if(!this.dateList[i].jobContent && !this.dateList[i].processingOpinion &&
  353. !this.dateList[i].superreviewer && !this.dateList[i].problem && !this.dateList[i].patrolContent && !this.dateList[i].reviewOpinions && !this.dateList[i].remark
  354. ){
  355. verify = false;
  356. }else{
  357. verify = true;
  358. }
  359. }
  360. }else{
  361. for (let i = 0; i < this.dateList.length; i++) {
  362. if(!this.dateList[i].jobContent && !this.dateList[i].patrolContent &&
  363. !this.dateList[i].acceptance && !this.dateList[i].problem
  364. ){
  365. verify = false;
  366. }else{
  367. verify = true;
  368. }
  369. }
  370. }
  371. return verify;
  372. },
  373. addOne(){
  374. this.dateList.push({
  375. date:this.dateList[0].date,//日期
  376. weather:this.dateList[0].weather,//天气
  377. pageNumber:this.dateList[this.dateList.length-1].pageNumber+1,
  378. recorderId:this.dateList[0].recorderId,
  379. contractId:this.dateList[0].contractId,
  380. zj:this.isZJ,
  381. })
  382. },
  383. addNow(index){
  384. let addObj = Object.assign({},this.dateList[index]);
  385. addObj.pageNumber = addObj.pageNumber+1;
  386. addObj.id = '';
  387. for (let i = index+1; i < this.dateList.length; i++) {
  388. this.dateList[i].pageNumber += 1;
  389. }
  390. this.dateList.splice(index+1,0,addObj);
  391. //console.log(this.dateList)
  392. },
  393. delOne(index){
  394. uni.showModal({
  395. title: '删除',
  396. content: '是否删除 日志'+(index+1)+' ?'+'删除后无法还原',
  397. success:(res) => {
  398. if (res.confirm) {
  399. //console.log('用户点击确定');
  400. //没保存过直接删
  401. if(!this.dateList[index].id){
  402. this.dateList.splice(index,1);
  403. return;
  404. }
  405. //保存过的需要请求
  406. this.http.request('/app/superpatrol/del', {
  407. id: this.dateList[index].id,
  408. }).then((result) => {
  409. if(result.result ==1){
  410. this.dateList.splice(index,1);
  411. }else{
  412. this.$prompt.Error("删除失败");
  413. }
  414. })
  415. } else if (res.cancel) {
  416. //console.log('用户点击取消');
  417. }
  418. }
  419. });
  420. },
  421. getDataByDate(date){
  422. this.http.request('/app/superpatrol/getDataByDate', {
  423. date: date,
  424. recorderId:this.recorderId,
  425. contractId:this.contractId,
  426. }).then((result) => {
  427. if(result.result ==1){
  428. for (let i = 0; i < result.datas.length; i++) {
  429. result.datas[i].contractId = this.contractId;
  430. }
  431. this.dateList =result.datas;
  432. var items,values;
  433. if(this.dateList[0].constructionUnits){
  434. items= this.constructi2onList;
  435. values = this.dateList[0].constructionUnits.split(",");
  436. this.setChecked(items,values)
  437. }
  438. if(this.dateList[0].contractIds){
  439. values = this.dateList[0].contractIds.split(",");
  440. items= this.contractIdDataList;
  441. this.setChecked(items,values)
  442. }
  443. }else{
  444. }
  445. })
  446. },
  447. getPageNumber(){
  448. let max = 1;
  449. for (let i = 0; i < this.dateList.length; i++) {
  450. if(this.dateList[i].pageNumber > max){
  451. max = this.dateList[i].pageNumber;
  452. }
  453. }
  454. return max+1;
  455. },
  456. getReviewer(date){
  457. //获取上一个审核人
  458. this.http.request("/app/superpatrol/getReviewer", {
  459. projectId:this.project.id,
  460. contractId:this.contractId,
  461. date:date
  462. }).then((res) => {
  463. if(res.data && this.dateList[0]){
  464. this.$set(this.dateList[0], 'superreviewer', res.data);
  465. }
  466. })
  467. },
  468. bindDateChange(e,index){
  469. this.dateList[index].fuchadate = e.detail.value;
  470. },
  471. getIsZJ(){
  472. this.http.request('/app/working/checkProjectIsZj', {
  473. projectId:this.project.id
  474. }).then((result)=>{
  475. if(result.result == '1'){
  476. this.isZJ = 1;
  477. this.dateList[0].zj = 1;
  478. }else{
  479. this.isZJ = 0;
  480. this.dateList[0].zj = 0;
  481. }
  482. })
  483. },
  484. async getcontractInfoListByContract(){
  485. let result = await this.http.request('/app/parameterLog/getcontractInfoListByContract',{
  486. contractId:this.contractId,
  487. })
  488. if(result.result == '1'){
  489. this.constructi2onList = [];
  490. this.contractIdDataList = [];
  491. for (var i = 0; i < result.datas.length; i++) {
  492. this.constructi2onList.push({
  493. id:result.datas[i].id,
  494. contractorUnitName:result.datas[i].contractorUnitName,
  495. checked:false,
  496. })
  497. this.contractIdDataList.push({
  498. id:result.datas[i].id,
  499. contractNumber:result.datas[i].contractNumber,
  500. checked:false,
  501. })
  502. }
  503. }else{
  504. }
  505. },
  506. checkboxChange(e,index,type){
  507. //console.log(e.detail.value)
  508. let items = []
  509. if(type == 1){
  510. items = this.constructi2onList
  511. }else if(type == 2){
  512. items = this.contractIdDataList
  513. }
  514. let values = e.detail.value
  515. this.setChecked(items,values)
  516. },
  517. setChecked(items,values){
  518. for (let i = 0, lenI = items.length; i < lenI; ++i) {
  519. items[i].checked = false
  520. for (let j = 0, lenJ = values.length; j < lenJ; ++j) {
  521. if (items[i].id === values[j]) {
  522. //console.log(values[j])
  523. items[i].checked = true
  524. break
  525. }
  526. }
  527. }
  528. },
  529. repeal(){
  530. let { account } = uni.getStorageSync('userInfo')
  531. uni.showModal({
  532. title: '废除',
  533. content: '是否废除任务?',
  534. success:(res) => {
  535. if (res.confirm) {
  536. this.http.request('/app/task/repeal', {
  537. taskId: this.dateList[0].taskId,
  538. opUserName: account ? account : '',
  539. }).then((result) => {
  540. if(result.result ==1){
  541. this.$prompt.none("废除成功");
  542. this.getDataByDate(this.dateList[0].date);
  543. }else{
  544. this.$prompt.Error("废除失败");
  545. }
  546. })
  547. } else if (res.cancel) {
  548. //console.log('用户点击取消');
  549. }
  550. }
  551. });
  552. },
  553. reportSuccess(){
  554. //上报成功,刷新
  555. this.getDataByDate(this.dateList[0].date);
  556. }
  557. },
  558. onShow() {
  559. },
  560. }
  561. </script>
  562. <style>
  563. .solid-top-type {
  564. border-top: 0px solid #eee;
  565. }
  566. .cu-form-group_1 {
  567. display: flex;
  568. align-items: center;
  569. padding: 0 22rpx;
  570. background-color: #fff;
  571. border-bottom: 2rpx solid #EAEAEA;
  572. height: 88rpx;
  573. }
  574. .cu-form-group_1 .title {
  575. font-size: 30rpx;
  576. color: #101010;
  577. width: 154rpx;
  578. }
  579. .cu-form-group_1 input {
  580. font-size: 30rpx;
  581. color: #8a8a8a;
  582. }
  583. .cu-form-group_2 {
  584. padding: 22rpx;
  585. background-color: #fff;
  586. border-bottom: 2rpx solid #EAEAEA;
  587. }
  588. .cu-form-group_2 .title {
  589. font-size: 30rpx;
  590. color: #101010;
  591. padding-bottom: 18rpx;
  592. }
  593. .cu-form-group_2 textarea {
  594. font-size: 30rpx;
  595. color: #8a8a8a;
  596. width: 100%;
  597. }
  598. .cu-modal.show {
  599. overflow-y: auto;
  600. pointer-events: auto;
  601. }
  602. </style>