[新增流程]

相关方培训资格证新增特人员种作业信息
hyx_2024-9-25_specialUser
huangyuxuan 2024-09-25 18:38:02 +08:00
parent 9c013342fd
commit 5db27a2d3e
1 changed files with 53 additions and 5 deletions

View File

@ -160,7 +160,7 @@
<div class="text textone">所在单位</div> <div class="text textone">所在单位</div>
</td> </td>
<td colspan="3"> <td colspan="3">
<div class="text">{{ message.BELONG_TO_CORP_NAME }}</div> <div class="text">{{ message.DEPARTMENT_NAME }}</div>
</td> </td>
<td rowspan="3"> <td rowspan="3">
<div class="qrcode"></div> <div class="qrcode"></div>
@ -303,8 +303,8 @@
<div class="training_records"> <div class="training_records">
<table> <table>
<tr> <tr>
<td>培训时间</td> <td>培训开始时间</td>
<td>有效期限</td> <td>培训结束时间</td>
<td>培训部门</td> <td>培训部门</td>
<td>培训结果</td> <td>培训结果</td>
</tr> </tr>
@ -345,9 +345,28 @@
</van-cell-group> </van-cell-group>
<van-image-preview v-model="show" :images="images" :start-position="startPosition"> <van-image-preview v-model="show" :images="images" :start-position="startPosition">
</van-image-preview> </van-image-preview>
<van-divider content-position="left">特种作业信息</van-divider>
<van-cell-group v-for="(item,index) in specialUserList" :key="index">
<van-cell title="图片">
<van-image
v-if="item.FILEPATH"
width="50px"
height="50px"
:src="item.FILEPATH"
@click="fnImagePreview(item.FILEPATH,0)"
></van-image>
</van-cell>
<van-cell title="证书名称" :value="item.CERTIFICATE"></van-cell>
<van-cell title="人员类型" :value="item.typeName"></van-cell>
<van-cell title="证书作业类别" :value="item.CERTIFICATE"></van-cell>
<van-cell title="操作项目" :value="item.operationName"></van-cell>
<van-cell title="证书编号" :value="item.CARD_ID"></van-cell>
</van-cell-group>
</div> </div>
</div> </div>
<script type="text/javascript" src="../../assets/js/jquery-3.7.1.min.js"></script> <script type="text/javascript" src="../../assets/js/jquery-1.7.2.js"></script>
<script type="text/javascript"> <script type="text/javascript">
var vm = new Vue({ var vm = new Vue({
el: '#app', el: '#app',
@ -367,7 +386,8 @@
socialPhotoFile: [], socialPhotoFile: [],
gongshangbaoxianFile: [], gongshangbaoxianFile: [],
insuranceFileList: [], insuranceFileList: [],
trainRecordList: [] trainRecordList: [],
specialUserList: []
}, },
methods: { methods: {
//初始执行 //初始执行
@ -405,6 +425,7 @@
_this.getInfoOne() _this.getInfoOne()
_this.getInfoTwo() _this.getInfoTwo()
_this.getInfo() _this.getInfo()
_this.getSpecialPersonInfo()
} }
}) })
}, },
@ -504,6 +525,33 @@
} }
}) })
}, },
getSpecialPersonInfo() {
var _this = this;
_this.loading = true;
$.ajax({
xhrFields: {
withCredentials: true
},
type: "POST",
url: config.httpurl + '/app/specialUser/getSpecialUserInfo',
dataType: 'json',
data: {
USER_ID: _this.USER_ID
},
success: function (data) {
vm.loading = false;
if ("success" == data.result) {
vm.specialUserList = data.specialUserList
for (var i =0; i<data.specialUserList.length;i++){
if (data.specialUserList[i].FILEPATH){
data.specialUserList[i].FILEPATH = config.fileUrl + data.specialUserList[i].FILEPATH
}
}
console.info(vm.specialUserList)
}
}
})
},
//根据url参数名称获取参数值 //根据url参数名称获取参数值
getUrlKey: function (name) { getUrlKey: function (name) {
return decodeURIComponent( return decodeURIComponent(