|
@@ -22,10 +22,22 @@
|
|
</view>
|
|
</view>
|
|
<!-- 检查结果 -->
|
|
<!-- 检查结果 -->
|
|
<uni-card padding="0" spacing="0" v-for="(item,index) in pageData.djList" class="djList">
|
|
<uni-card padding="0" spacing="0" v-for="(item,index) in pageData.djList" class="djList">
|
|
- <text class="djList_title">检查项目<text class="djList_text">{{item.item}}</text></text>
|
|
|
|
- <text class="djList_title">检查内容<text class="djList_text">{{item.content}}</text></text>
|
|
|
|
- <text class="djList_title">检查结果<text class="djList_text">{{item.result}}</text></text>
|
|
|
|
- <text class="djList_title" v-if="item.result=='不合格'">原因<text class="djList_text">{{item.reason}}</text></text>
|
|
|
|
|
|
+ <view class="djList_title">
|
|
|
|
+ <view class="djList_text">检查项目</view>
|
|
|
|
+ <view class="djList_righttext">{{item.item}}</view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="djList_title">
|
|
|
|
+ <view class="djList_text">检查内容</view>
|
|
|
|
+ <view class="djList_righttext">{{item.content}}</view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="djList_title">
|
|
|
|
+ <view class="djList_text">检查结果</view>
|
|
|
|
+ <view class="djList_righttext">{{item.result}}</view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="djList_title" v-if="item.result=='不合格'">
|
|
|
|
+ <view class="djList_text">原因</view>
|
|
|
|
+ <view class="djList_righttext">{{item.reason}}</view>
|
|
|
|
+ </view>
|
|
<view class="button_group">
|
|
<view class="button_group">
|
|
<view class="bhg_button" @click="bhgCheck()">不合格</view>
|
|
<view class="bhg_button" @click="bhgCheck()">不合格</view>
|
|
<view class="hg_button" @click="hgCheck()">合格</view>
|
|
<view class="hg_button" @click="hgCheck()">合格</view>
|
|
@@ -36,12 +48,12 @@
|
|
<uni-card>
|
|
<uni-card>
|
|
<uni-section title="图片上传" type="line"></uni-section>
|
|
<uni-section title="图片上传" type="line"></uni-section>
|
|
<view class="img_upload">
|
|
<view class="img_upload">
|
|
- <uni-file-picker limit="4" :v-model="pageData.imageList" @select="selectImg" @delete="deleteImg"></uni-file-picker>
|
|
|
|
|
|
+ <uni-file-picker :v-model="pageData.imageList" @select="selectImg" @delete="deleteImg"></uni-file-picker>
|
|
</view>
|
|
</view>
|
|
</uni-card>
|
|
</uni-card>
|
|
</view>
|
|
</view>
|
|
<!-- 按钮 -->
|
|
<!-- 按钮 -->
|
|
- <view class="operator_button">
|
|
|
|
|
|
+ <view class="operator_button" v-if="pageData.operatorStatus=='add'">
|
|
<button class="pass_button" @click="pass">一键通过</button>
|
|
<button class="pass_button" @click="pass">一键通过</button>
|
|
<!-- 如果还有数据按钮显示为“下一个”,数据全部加载完毕显示为“完成” -->
|
|
<!-- 如果还有数据按钮显示为“下一个”,数据全部加载完毕显示为“完成” -->
|
|
<view class="finish_button_grop">
|
|
<view class="finish_button_grop">
|
|
@@ -59,8 +71,11 @@
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
import { ref,reactive } from "vue";
|
|
import { ref,reactive } from "vue";
|
|
|
|
+import {onLoad,onShow,onUnload,onPullDownRefresh} from "@dcloudio/uni-app";
|
|
|
|
|
|
const pageData=reactive({
|
|
const pageData=reactive({
|
|
|
|
+ // 操作状态,是编辑/查看
|
|
|
|
+ operatorStatus:'',
|
|
djList:[
|
|
djList:[
|
|
{
|
|
{
|
|
item:'检查项目1',
|
|
item:'检查项目1',
|
|
@@ -139,6 +154,12 @@ const next=()=>{
|
|
const finish=()=>{
|
|
const finish=()=>{
|
|
console.log("完成")
|
|
console.log("完成")
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+onLoad((type)=>{
|
|
|
|
+ if(type.status!=null){
|
|
|
|
+ pageData.operatorStatus=type.status
|
|
|
|
+ }
|
|
|
|
+})
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|