|
@@ -32,11 +32,11 @@
|
|
row.createRealName
|
|
row.createRealName
|
|
}}</t-form-item>
|
|
}}</t-form-item>
|
|
</t-col>
|
|
</t-col>
|
|
- <t-col :span="3">
|
|
|
|
|
|
+ <!-- <t-col :span="3">
|
|
<t-form-item label="供应商">{{
|
|
<t-form-item label="供应商">{{
|
|
row.supplierName
|
|
row.supplierName
|
|
}}</t-form-item>
|
|
}}</t-form-item>
|
|
- </t-col>
|
|
|
|
|
|
+ </t-col> -->
|
|
<t-col :span="3">
|
|
<t-col :span="3">
|
|
<t-form-item label="客户名称">{{
|
|
<t-form-item label="客户名称">{{
|
|
row.customName
|
|
row.customName
|
|
@@ -54,7 +54,7 @@
|
|
</t-col>
|
|
</t-col>
|
|
<t-col :span="3">
|
|
<t-col :span="3">
|
|
<t-form-item label="异常日期">{{
|
|
<t-form-item label="异常日期">{{
|
|
- timestampFilter(row.exceptionTime)
|
|
|
|
|
|
+ row.exceptionTime
|
|
}}</t-form-item>
|
|
}}</t-form-item>
|
|
</t-col>
|
|
</t-col>
|
|
<t-col :span="3">
|
|
<t-col :span="3">
|
|
@@ -91,6 +91,11 @@
|
|
</t-col>
|
|
</t-col>
|
|
</t-row>
|
|
</t-row>
|
|
</t-form>
|
|
</t-form>
|
|
|
|
+ <t-space class="sop-step-footer" style="flex-direction: row">
|
|
|
|
+ <t-button theme="primary" @click="emit('update:visible', false)"
|
|
|
|
+ >返回</t-button
|
|
|
|
+ >
|
|
|
|
+ </t-space>
|
|
<!-- setup history -->
|
|
<!-- setup history -->
|
|
<div v-if="flowApproveHistoryList.length" class="sop-step-history">
|
|
<div v-if="flowApproveHistoryList.length" class="sop-step-history">
|
|
<div class="sop-step-history-label" @click="toViewHistory">
|
|
<div class="sop-step-history-label" @click="toViewHistory">
|
|
@@ -158,9 +163,12 @@
|
|
<script setup name="AbnormalDetailDialog">
|
|
<script setup name="AbnormalDetailDialog">
|
|
import { workHoursCheckDetailApi } from '@/api/work-hours';
|
|
import { workHoursCheckDetailApi } from '@/api/work-hours';
|
|
import { timeNumberToText } from '@/utils/tool';
|
|
import { timeNumberToText } from '@/utils/tool';
|
|
-import { timestampFilter } from '@/utils/filter';
|
|
|
|
-import { watch } from 'vue';
|
|
|
|
-
|
|
|
|
|
|
+import { timestampFilter, customerTypeFilter } from '@/utils/filter';
|
|
|
|
+import { ref, watch } from 'vue';
|
|
|
|
+import {
|
|
|
|
+ ChevronLeftDoubleIcon,
|
|
|
|
+ ChevronRightDoubleIcon,
|
|
|
|
+} from 'tdesign-icons-vue-next';
|
|
const emit = defineEmits(['update:visible', 'confirm']);
|
|
const emit = defineEmits(['update:visible', 'confirm']);
|
|
const props = defineProps({
|
|
const props = defineProps({
|
|
visible: Boolean,
|
|
visible: Boolean,
|
|
@@ -176,7 +184,7 @@ const stepHistoryShow = ref(false);
|
|
const flowApproveHistoryList = ref([]);
|
|
const flowApproveHistoryList = ref([]);
|
|
|
|
|
|
const getUrls = (type) => {
|
|
const getUrls = (type) => {
|
|
- const list = props.attachmentPaths.split(',');
|
|
|
|
|
|
+ const list = props.row.attachmentPaths.split(',');
|
|
const imgs = ['jpg', 'png', 'jpeg'];
|
|
const imgs = ['jpg', 'png', 'jpeg'];
|
|
if (type === 'image') {
|
|
if (type === 'image') {
|
|
return list.filter((item) => {
|
|
return list.filter((item) => {
|
|
@@ -200,7 +208,7 @@ function getFlowApproveHistoryList(data) {
|
|
nitem.duration =
|
|
nitem.duration =
|
|
index === 0 ? '-' : timeNumberToText(item.createTime - lastTime);
|
|
index === 0 ? '-' : timeNumberToText(item.createTime - lastTime);
|
|
lastTime = item.createTime;
|
|
lastTime = item.createTime;
|
|
- nitem.taskName = item.approveSetup;
|
|
|
|
|
|
+ nitem.taskName = item.approveSetup + '';
|
|
return nitem;
|
|
return nitem;
|
|
});
|
|
});
|
|
}
|
|
}
|