|
@@ -78,6 +78,7 @@
|
|
class="sop-step-body"
|
|
class="sop-step-body"
|
|
>
|
|
>
|
|
<t-row :gutter="[0, 30]">
|
|
<t-row :gutter="[0, 30]">
|
|
|
|
+ <template v-if="!IS_VIEW_MODE">
|
|
<t-col :span="12">
|
|
<t-col :span="12">
|
|
<div class="form-group-title"> 新增跟进 </div>
|
|
<div class="form-group-title"> 新增跟进 </div>
|
|
</t-col>
|
|
</t-col>
|
|
@@ -100,8 +101,9 @@
|
|
<my-upload @change="fileChange"></my-upload>
|
|
<my-upload @change="fileChange"></my-upload>
|
|
</t-form-item>
|
|
</t-form-item>
|
|
</t-col>
|
|
</t-col>
|
|
|
|
+ </template>
|
|
<t-col :span="12">
|
|
<t-col :span="12">
|
|
- <div class="m-b-10px">
|
|
|
|
|
|
+ <div class="m-b-10px" v-if="!IS_VIEW_MODE">
|
|
历史明细查阅
|
|
历史明细查阅
|
|
<t-link
|
|
<t-link
|
|
theme="primary"
|
|
theme="primary"
|
|
@@ -111,7 +113,7 @@
|
|
<ChevronDownIcon v-else /></t-link
|
|
<ChevronDownIcon v-else /></t-link
|
|
></div>
|
|
></div>
|
|
<t-table
|
|
<t-table
|
|
- v-if="showHistory"
|
|
|
|
|
|
+ v-if="showHistory || IS_VIEW_MODE"
|
|
size="small"
|
|
size="small"
|
|
row-key="id"
|
|
row-key="id"
|
|
:columns="columns"
|
|
:columns="columns"
|
|
@@ -131,7 +133,7 @@
|
|
</t-col>
|
|
</t-col>
|
|
</t-row>
|
|
</t-row>
|
|
</t-form>
|
|
</t-form>
|
|
- <t-space class="sop-step-footer">
|
|
|
|
|
|
+ <t-space v-if="!IS_VIEW_MODE" class="sop-step-footer">
|
|
<t-button theme="primary" @click="save">保存</t-button>
|
|
<t-button theme="primary" @click="save">保存</t-button>
|
|
<t-button theme="default" @click="emit('update:visible', false)"
|
|
<t-button theme="default" @click="emit('update:visible', false)"
|
|
>取消</t-button
|
|
>取消</t-button
|
|
@@ -161,13 +163,20 @@ const props = defineProps({
|
|
return {};
|
|
return {};
|
|
},
|
|
},
|
|
},
|
|
},
|
|
|
|
+ type: {
|
|
|
|
+ type: String,
|
|
|
|
+ default: 'new',
|
|
|
|
+ },
|
|
|
|
+
|
|
});
|
|
});
|
|
const emit = defineEmits(['update:visible', 'success']);
|
|
const emit = defineEmits(['update:visible', 'success']);
|
|
|
|
|
|
const formRef = ref(null);
|
|
const formRef = ref(null);
|
|
const tableData = ref([]);
|
|
const tableData = ref([]);
|
|
const showHistory = ref(false);
|
|
const showHistory = ref(false);
|
|
-
|
|
|
|
|
|
+const IS_VIEW_MODE = computed(() => {
|
|
|
|
+ return props.type === 'view';
|
|
|
|
+});
|
|
const title = computed(() => {
|
|
const title = computed(() => {
|
|
return `违规信息(违规流水号:${props.curRow.code})`;
|
|
return `违规信息(违规流水号:${props.curRow.code})`;
|
|
});
|
|
});
|