新增安全例会签字不好使

pull/5/head
dearlin 2024-02-20 16:10:38 +08:00
parent e67e07c510
commit 3b0b016db1
2 changed files with 43 additions and 24 deletions

View File

@ -24,7 +24,6 @@
<view class="title"> <view class="title">
<text>附件</text> <text>附件</text>
</view> </view>
<view>
<view class="cu-form-p"> <view class="cu-form-p">
<scroll-view scroll-x class="bg-white nav" scroll-with-animation> <scroll-view scroll-x class="bg-white nav" scroll-with-animation>
<view class="cu-item" v-for="(item,index) in files" v-bind:key="index"> <view class="cu-item" v-for="(item,index) in files" v-bind:key="index">
@ -37,12 +36,12 @@
</view> </view>
</view> </view>
</view> </view>
</view>
<view class="wui-form-list"> <view class="wui-form-list">
<view class="cu-form-textarea" v-if="!forbidEdit" > <view class="cu-form-textarea" >
<view class="cu-form-title text-hui">核实意见</view> <view class="cu-form-title text-hui">核实意见</view>
<textarea maxlength="-1" v-model="FEED_BACK" placeholder="(必填)"></textarea> <textarea :disabled="forbidEdit" maxlength="-1" v-model="FEED_BACK" placeholder="(必填)"></textarea>
</view> </view>
<view v-if="!forbidEdit">
<view class="cu-form-group" style="border: none;" v-if="!forbidEdit"> <view class="cu-form-group" style="border: none;" v-if="!forbidEdit">
<view class="title">签字</view> <view class="title">签字</view>
<button class="cu-btn bg-green shadow" @tap="modalShow = true" data-target="Modal">手写签字</button> <button class="cu-btn bg-green shadow" @tap="modalShow = true" data-target="Modal">手写签字</button>
@ -56,7 +55,7 @@
<view class="grid col-4 grid-square flex-sub"> <view class="grid col-4 grid-square flex-sub">
<view style="width: 60%;" class="bg-img" v-for="(item,index) in signImgList" :key="index" @tap="ViewImage" data-type="0" :data-url="signImgList[index].filePath"> <view style="width: 60%;" class="bg-img" v-for="(item,index) in signImgList" :key="index" @tap="ViewImage" data-type="0" :data-url="signImgList[index].filePath">
<image :src="signImgList[index].filePath" mode="aspectFill"></image> <image :src="signImgList[index].filePath" mode="aspectFill"></image>
<view class="cu-tag bg-red" @tap.stop="delImg" data-type="0" :data-index="index"> <view v-if="!forbidEdit" class="cu-tag bg-red" @tap.stop="delImg" data-type="0" :data-index="index">
<text class='cuIcon-close'></text> <text class='cuIcon-close'></text>
</view> </view>
</view> </view>
@ -66,6 +65,24 @@
<sign @confirm="subCanvas" @cancel="modalShow = false"></sign> <sign @confirm="subCanvas" @cancel="modalShow = false"></sign>
</view> </view>
</view> </view>
<view v-else>
<view class="cu-form-textarea">
<view class="title">
<text>签字信息</text>
</view>
<view class="cu-form-p">
<scroll-view scroll-x class="bg-white nav" scroll-with-animation>
<view class="cu-item" v-for="(item,index) in filesSing" v-bind:key="index">
<view class="imgs">
<image :src="baseImgPath+item.FILEPATH" :data-index="index" @click="ViewShowImage(baseImgPath+item.FILEPATH)"
mode=""></image>
</view>
</view>
</scroll-view>
</view>
</view>
</view>
</view>
<view class="cu-bar btn-group" style="margin-top: 30upx;"> <view class="cu-bar btn-group" style="margin-top: 30upx;">
<button v-if="!forbidEdit" class="cu-btn bg-blue margin-tb-sm lg" @click="$noMultipleClicks(goSubmit)"></button> <button v-if="!forbidEdit" class="cu-btn bg-blue margin-tb-sm lg" @click="$noMultipleClicks(goSubmit)"></button>
</view> </view>
@ -80,7 +97,7 @@
corpinfoId, corpinfoId,
loginUser loginUser
} from '@/common/tool.js'; } from '@/common/tool.js';
import sign from '@/components/sign/sign.vue'; import sign from '@/components/writing-board/writing-board.vue';
export default { export default {
components: { components: {
@ -94,6 +111,7 @@
files: [], files: [],
FEED_BACK: '', FEED_BACK: '',
signImgList: [], signImgList: [],
filesSing: [],
forbidEdit: false, forbidEdit: false,
modalShow: false, modalShow: false,
basePath: basePath, basePath: basePath,
@ -259,8 +277,9 @@
if ("success" == res.data.result) { if ("success" == res.data.result) {
uni.hideLoading(); uni.hideLoading();
_this.pd = res.data.pd; //map _this.pd = res.data.pd; //map
_this.FEED_BACK = res.data.pd.FEED_BACK;
_this.files = res.data.imgs; _this.files = res.data.imgs;
_this.signImgList = res.data.singImgs; _this.filesSing = res.data.singImgs;
} else if ("exception" == data.result) { } else if ("exception" == data.result) {
uni.showToast({ uni.showToast({
title: '错误', title: '错误',

View File

@ -188,7 +188,7 @@
<text>设备巡检</text> <text>设备巡检</text>
</view> </view>
</navigator> </navigator>
<navigator class="home-apps-item" hover-class="none" url="/pages/application/speEquip/index"> <navigator class="home-apps-item" hover-class="none" url="/pages/application/safetymeeting/index">
<view class="home-apps-item-img"> <view class="home-apps-item-img">
<image src="../../static/icon-apps/safetymeeting.png" mode=""></image> <image src="../../static/icon-apps/safetymeeting.png" mode=""></image>
</view> </view>