|
@@ -135,11 +135,15 @@ const props = defineProps({
|
|
visible: Boolean,
|
|
visible: Boolean,
|
|
curRow: Object,
|
|
curRow: Object,
|
|
fromSop: Boolean,
|
|
fromSop: Boolean,
|
|
|
|
+ isCloud: {
|
|
|
|
+ type: Boolean,
|
|
|
|
+ default: false,
|
|
|
|
+ },
|
|
});
|
|
});
|
|
const requestInfo = ref({});
|
|
const requestInfo = ref({});
|
|
const formRef = ref(null);
|
|
const formRef = ref(null);
|
|
const IS_CLOUD = computed(() => {
|
|
const IS_CLOUD = computed(() => {
|
|
- return props.curRow?.type === 'CLOUD_MARK_SOP_FLOW';
|
|
|
|
|
|
+ return props.isCloud || props.curRow?.type === 'CLOUD_MARK_SOP_FLOW';
|
|
});
|
|
});
|
|
const init = () => {
|
|
const init = () => {
|
|
return [
|
|
return [
|
|
@@ -181,9 +185,15 @@ const getOptions = () => {
|
|
crmDetailId: props.fromSop ? props.curRow?.crmDetailId : props.curRow?.id,
|
|
crmDetailId: props.fromSop ? props.curRow?.crmDetailId : props.curRow?.id,
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
requestInfo.value = res;
|
|
requestInfo.value = res;
|
|
- tableData.value[0].history = res.regionCoordinatorInfo.historicalList;
|
|
|
|
- tableData.value[1].history = res.projectManagerInfo.historicalList;
|
|
|
|
- tableData.value[2].history = res.engineerInfo.historicalList;
|
|
|
|
|
|
+ if (IS_CLOUD.value) {
|
|
|
|
+ tableData.value[0].history = res.regionCoordinatorInfo.historicalList;
|
|
|
|
+ tableData.value[1].history = res.projectManagerInfo.historicalList;
|
|
|
|
+ tableData.value[2].history = res.engineerInfo.historicalList;
|
|
|
|
+ } else {
|
|
|
|
+ tableData.value[0].history = res.projectManagerInfo.historicalList;
|
|
|
|
+ tableData.value[1].history = res.engineerInfo.historicalList;
|
|
|
|
+ }
|
|
|
|
+
|
|
options1.value = [...(res.regionCoordinatorInfo.canChooseList || [])].map(
|
|
options1.value = [...(res.regionCoordinatorInfo.canChooseList || [])].map(
|
|
(item) => {
|
|
(item) => {
|
|
item.str = `${item.supplierName}_${item.name}_${item.mobileNumber}`;
|
|
item.str = `${item.supplierName}_${item.name}_${item.mobileNumber}`;
|
|
@@ -212,23 +222,36 @@ const getOptions = () => {
|
|
});
|
|
});
|
|
};
|
|
};
|
|
|
|
|
|
-const tableData = ref([
|
|
|
|
- {
|
|
|
|
- roleName: '区域协调人',
|
|
|
|
- history: [],
|
|
|
|
- key: 'REGION_COORDINATOR',
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- roleName: '项目经理',
|
|
|
|
- history: [],
|
|
|
|
- key: 'PROJECT_MANAGER',
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- roleName: '工程师',
|
|
|
|
- history: [],
|
|
|
|
- key: 'ENGINEER',
|
|
|
|
- },
|
|
|
|
-]);
|
|
|
|
|
|
+const tableData = IS_CLOUD.value
|
|
|
|
+ ? ref([
|
|
|
|
+ {
|
|
|
|
+ roleName: '区域协调人',
|
|
|
|
+ history: [],
|
|
|
|
+ key: 'REGION_COORDINATOR',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ roleName: '项目经理',
|
|
|
|
+ history: [],
|
|
|
|
+ key: 'PROJECT_MANAGER',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ roleName: '工程师',
|
|
|
|
+ history: [],
|
|
|
|
+ key: 'ENGINEER',
|
|
|
|
+ },
|
|
|
|
+ ])
|
|
|
|
+ : ref([
|
|
|
|
+ {
|
|
|
|
+ roleName: '项目经理',
|
|
|
|
+ history: [],
|
|
|
|
+ key: 'PROJECT_MANAGER',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ roleName: '工程师',
|
|
|
|
+ history: [],
|
|
|
|
+ key: 'ENGINEER',
|
|
|
|
+ },
|
|
|
|
+ ]);
|
|
const roleColumns = [
|
|
const roleColumns = [
|
|
{ colKey: 'roleName', title: '角色', width: 120, cel: 'roleName' },
|
|
{ colKey: 'roleName', title: '角色', width: 120, cel: 'roleName' },
|
|
{ colKey: 'key', title: '人员', cell: 'key' },
|
|
{ colKey: 'key', title: '人员', cell: 'key' },
|