|
@@ -4,10 +4,10 @@
|
|
|
<view class="tag-circle" v-for="(item, index) in initRecords" :key="index" @click="tabsClick(item.senum)"
|
|
|
:class="{'checked-tag' : item.senum == current}">
|
|
|
<text class="circle" :class="{
|
|
|
- 'bg-green': item.status == '已执行',
|
|
|
- 'bg-yellow': item.status == '执行中',
|
|
|
- 'bg-red': item.status == '异常',
|
|
|
- 'bg-black': item.status == '未执行'
|
|
|
+ 'bg-green': item.status == 3,
|
|
|
+ 'bg-yellow': item.status == 2,
|
|
|
+ 'bg-red': item.status == 4,
|
|
|
+ 'bg-black': item.status == 1
|
|
|
}">{{item.senum}}</text>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -21,7 +21,7 @@
|
|
|
<view class="header-row">
|
|
|
<text class="label">序号:</text>
|
|
|
<text class="value">{{ item.senum }}</text>
|
|
|
- <text class="status" :class="{'status-cancelled': item.status === '已取消', 'bg-red': item.status == '异常'}">{{ item.status }}</text>
|
|
|
+ <text class="status" :class="{'status-cancelled': item.status === 5, 'bg-red': item.status == 4}">{{ recordStatusDict[item.status.toString()] }}</text>
|
|
|
</view>
|
|
|
|
|
|
<view class="info-row">
|
|
@@ -54,7 +54,7 @@
|
|
|
<text class="value">{{ item.num }}</text>
|
|
|
</view>
|
|
|
|
|
|
- <button class="cancel-btn" v-if="item.status == '未执行'" @click="cancel(item.sxid, item.num)">
|
|
|
+ <button class="cancel-btn" v-if="item.status == 1" @click="cancel(item.sxid, item.num)">
|
|
|
拍照
|
|
|
</button>
|
|
|
|
|
@@ -98,7 +98,7 @@
|
|
|
import {
|
|
|
ref
|
|
|
} from 'vue'
|
|
|
- import { getList, Record, getListFor2Params } from '@/api/work';
|
|
|
+ import { getList, Record, recordStatusDict } from '@/api/work';
|
|
|
|
|
|
//检查项目最大数量
|
|
|
var maxcount = 5
|
|
@@ -113,7 +113,7 @@
|
|
|
const pid = options?.pid ?? "1"
|
|
|
maxcount = parseInt(num)
|
|
|
// #ifdef APP-ANDROID
|
|
|
- getListFor2Params('app_media_record', 'photoitem', photoitem, 'pid', pid, null).then((res : UTSJSONObject) => {
|
|
|
+ getList('app_media_record', 'photoitem', photoitem, 'pid', pid, null).then((res : UTSJSONObject) => {
|
|
|
let dataList = res?.['data'] as UTSJSONObject[] ?? Array<UTSJSONObject>()
|
|
|
if (dataList != null && dataList.length > 0) {
|
|
|
dataList.forEach(item => {
|