Administrator 2 tahun lalu
induk
melakukan
496ff6885f
2 mengubah file dengan 32 tambahan dan 16 penghapusan
  1. 16 2
      pages/xqzggzs2/xqzggzs2.js
  2. 16 14
      pages/xqzggzs2/xqzggzs2.wxml

+ 16 - 2
pages/xqzggzs2/xqzggzs2.js

@@ -1,18 +1,32 @@
-// pages/xqzggzs2/xqzggzs2.js
+import http from '../../base/httputil'
 Page({
 
   /**
    * 页面的初始数据
    */
   data: {
+    logId : null,
+    pageData : null,
+  },
 
+  getXqzggzs2(){
+    var obj = new Object()
+    obj.logId = this.data.logId
+    http.post('/system/AppXunjianController/getXqzggzs2',obj,this.getXqzggzs2Success);
+  },
+  getXqzggzs2Success(e){
+    console.log(e)
+    this.setData({
+      pageData : e.data
+    })
   },
 
   /**
    * 生命周期函数--监听页面加载
    */
   onLoad(options) {
-    console.log(options.logId)
+    this.data.logId = options.logId
+    this.getXqzggzs2()
   },
 
   /**

+ 16 - 14
pages/xqzggzs2/xqzggzs2.wxml

@@ -1,21 +1,23 @@
 <!--pages/xqzggzs2/xqzggzs2.wxml-->
 <view class="container">
-  <view class="zg_bh"><text>编号:</text><input type="number" style="width: 400rpx;"/></view>
+  <view class="zg_bh"><text>编号:</text><input type="number" style="width: 400rpx;" /></view>
   <text class="con_tit mar_top">隐患限期整改告知书</text>
   <view class="flex_row text_ind mar_top2">经查,你单位存在下列问题: </view>
-    <textarea >
-    1、
-    </textarea>
-    <view class="flex_row text_ind">现告知你单位对上述问题于 <input type="text" style="width: 100rpx;" />前整改完毕,达到有关法律法规规章和标准规定的要求。由此造成事故的,依法追究有关人员的责任。整改期间,你单位应当采取措施,确保安全生产。</view>
-    <view class="flex_row text_ind">逾期未整改或在整改过程中存在安全生产违法行为的,我单位将提报相关执法部门进行依法查处。</view>
-<view class="flex_row text_ind">如果对本告知内容有异议,可向<input type="text" style="width: 150rpx;"/>咨询或说明情况,也可通过12350安全生产举报电话进行反映。在没有新书面告知前,本告知要求不停止执行,法律另有规定的除外。</view>
+ 
+<view wx:for="{{pageData.riskInspections}}" wx:key="index">
+{{index+1}}、{{item.busItemsName}}
+</view>
 
+  <view class="flex_row text_ind">现告知你单位对上述问题于 {{pageData.latTime}},前整改完毕,达到有关法律法规规章和标准规定的要求。由此造成事故的,依法追究有关人员的责任。整改期间,你单位应当采取措施,确保安全生产。</view>
+  <view class="flex_row text_ind">逾期未整改或在整改过程中存在安全生产违法行为的,我单位将提报相关执法部门进行依法查处。</view>
+  <view class="flex_row text_ind">如果对本告知内容有异议,可向<input type="text" style="width: 150rpx;" />咨询或说明情况,也可通过12350安全生产举报电话进行反映。在没有新书面告知前,本告知要求不停止执行,法律另有规定的除外。</view>
 
-<view class="flex_row mar_top">检查人员:<input type="text" style="width: 190rpx;"/><text>编号:</text><input type="text" style="width: 190rpx;"/></view>
-<view class="flex_row mar_top2"><text style="opacity: 0;">检查人员:</text><input type="text" style="width: 190rpx;"/>编号:<input type="text" style="width: 190rpx;"/></view>
-<view class="flex_row mar_top2" bindtap="bindQianming">被复查单位负责人(签名):<input type="text" style="width: 220rpx;"/></view>
-<view class="flex_row mar_top2" style="text-align: right;"><input type="text" style="width: 370rpx;"/>部门(印章)</view>
-<view class="flex_row mar_top2" style="text-align: right;"><input type="number" style="width: 100rpx;"/>年<input type="number" style="width: 100rpx;"/>月<input type="number" style="width: 100rpx;"/>日</view>
 
-<button type="primary" bindtap="bindQianming">提交</button>
-</view>
+  <view class="flex_row mar_top">检查人员:{{pageData.nickName}}<text>编号:</text><input type="text" style="width: 190rpx;" /></view>
+  <view class="flex_row mar_top2"><text style="opacity: 0;">检查人员:</text><input type="text" style="width: 190rpx;" />编号:<input type="text" style="width: 190rpx;" /></view>
+  <view class="flex_row mar_top2" bindtap="bindQianming">被复查单位负责人(签名):<input type="text" style="width: 220rpx;" /></view>
+  <view class="flex_row mar_top2" style="text-align: right;"><input type="text" style="width: 370rpx;" />部门:{{pageData.deptName}}(印章)</view>
+  <view class="flex_row mar_top2" style="text-align: right;"><input type="number" style="width: 100rpx;" />年<input type="number" style="width: 100rpx;" />月<input type="number" style="width: 100rpx;" />日</view>
+
+  <button type="primary">提交</button>
+</view>