|
@@ -67,6 +67,7 @@ const taskRuleForm = reactive({
|
|
|
platform: '',
|
|
|
companyEnglishName: '',
|
|
|
juridicalPerson: '',
|
|
|
+ department: '',
|
|
|
});
|
|
|
|
|
|
const resetForm = (formEl: FormInstance | undefined) => {
|
|
@@ -86,6 +87,7 @@ const rules = reactive<FormRules>({
|
|
|
ipaddress: [{ required: true, message: '请输入IP地址', trigger: 'blur' }],
|
|
|
company: [{ required: true, message: '请输入注册公司', trigger: 'blur' }],
|
|
|
platform: [{ required: true, message: '请输入平台', trigger: 'blur' }],
|
|
|
+ department: [{ required: true, message: '请输入部门', trigger: 'blur' }],
|
|
|
});
|
|
|
|
|
|
// 修改填写人弹窗
|
|
@@ -112,6 +114,7 @@ interface RowVO {
|
|
|
ipaddress: string;
|
|
|
company: string;
|
|
|
platform: string;
|
|
|
+ department: string;
|
|
|
}
|
|
|
|
|
|
const xGrid = ref<VxeGridInstance<RowVO>>();
|
|
@@ -527,6 +530,7 @@ async function updateRow(row) {
|
|
|
companyEnglishName: row.companyEnglishName,
|
|
|
// address: row.address,
|
|
|
juridicalPerson: row.juridicalPerson,
|
|
|
+ department: row.department,
|
|
|
// juridicalPersonCreditCard: row.juridicalPersonCreditCard,
|
|
|
// juridicalPersonCreditCardAddress: row.juridicalPersonCreditCardAddress,
|
|
|
// receivablesAccount: row.receivablesAccount,
|
|
@@ -608,6 +612,7 @@ async function createTask() {
|
|
|
companyEnglishName: taskRuleForm.companyEnglishName,
|
|
|
// address: taskRuleForm.address,
|
|
|
juridicalPerson: taskRuleForm.juridicalPerson,
|
|
|
+ department: taskRuleForm.department,
|
|
|
// juridicalPersonCreditCard: taskRuleForm.juridicalPersonCreditCard,
|
|
|
// juridicalPersonCreditCardAddress: taskRuleForm.juridicalPersonCreditCardAddress,
|
|
|
// receivablesAccount: taskRuleForm.receivablesAccount,
|
|
@@ -621,6 +626,7 @@ async function createTask() {
|
|
|
const resp = await postCreateTask(body);
|
|
|
if (resp.code === 2000) {
|
|
|
dialogFormVisible.value = false;
|
|
|
+ taskRuleFormRef.value.resetFields();
|
|
|
await getTaskList(); // 重新获取任务列表
|
|
|
ElMessage({ message: '创建成功', type: 'success', });
|
|
|
}
|
|
@@ -650,9 +656,7 @@ const submitForm = async (formEl) => {
|
|
|
await ElMessage({ message: '回款/余额币种无效,请重新选择', type: 'warning' });
|
|
|
return;
|
|
|
}
|
|
|
-
|
|
|
await createTask();
|
|
|
- taskRuleFormRef.value.resetFields();
|
|
|
}
|
|
|
});
|
|
|
};
|
|
@@ -677,6 +681,7 @@ async function sendMessage(selectedValue: string) {
|
|
|
ElMessage.error('发送失败');
|
|
|
}
|
|
|
} catch (error) {
|
|
|
+ console.log('error:', error);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -758,6 +763,7 @@ const formItems = ref([
|
|
|
collapseTagsTooltip: true,
|
|
|
options: operationList
|
|
|
},
|
|
|
+ { label: '部门', prop: 'department', type: 'input', placeholder: '请输入部门' },
|
|
|
{ label: '运营', prop: 'operater', type: 'input', placeholder: '请输入运营' },
|
|
|
{
|
|
|
label: '平台币种',
|
|
@@ -788,6 +794,7 @@ const formItems = ref([
|
|
|
{ label: '公司英文名称', prop: 'companyEnglishName', type: 'input', placeholder: '请输入公司英文名称' },
|
|
|
// { label: '公司地址', prop: 'address', type: 'input', placeholder: '请输入公司地址' },
|
|
|
{ label: '公司法人', prop: 'juridicalPerson', type: 'input', placeholder: '请输入公司法人' },
|
|
|
+
|
|
|
// { label: '法人信用卡', prop: 'juridicalPersonCreditCard', type: 'input', placeholder: '请输入法人信用卡' },
|
|
|
// { label: '信用卡地址', prop: 'juridicalPersonCreditCardAddress', type: 'input', placeholder: '请输入信用卡地址' },
|
|
|
// { label: '收款账号', prop: 'receivablesAccount', type: 'input', placeholder: '请输入收款账号' },
|
|
@@ -850,10 +857,7 @@ onMounted(() => {
|
|
|
<vxe-button circle icon="vxe-icon-bell"></vxe-button>
|
|
|
<template #dropdown>
|
|
|
<el-dropdown-menu>
|
|
|
- <el-dropdown-item v-for="info of dateType" @click="sendMessage(info.value)">{{
|
|
|
- info.label
|
|
|
- }}
|
|
|
- </el-dropdown-item>
|
|
|
+ <el-dropdown-item v-for="info of dateType" @click="sendMessage(info.value)">{{info.label}}</el-dropdown-item>
|
|
|
</el-dropdown-menu>
|
|
|
</template>
|
|
|
</el-dropdown>
|
|
@@ -886,6 +890,9 @@ onMounted(() => {
|
|
|
<template #brand_edit="{ row }">
|
|
|
<vxe-input v-model="row.brandName"></vxe-input>
|
|
|
</template>
|
|
|
+ <template #department_edit="{ row }">
|
|
|
+ <vxe-input v-model="row.department"></vxe-input>
|
|
|
+ </template>
|
|
|
<template #line_edit="{ row }">
|
|
|
<vxe-input v-model="row.line"></vxe-input>
|
|
|
</template>
|
|
@@ -1031,7 +1038,7 @@ onMounted(() => {
|
|
|
<template #footer>
|
|
|
<div class="dialog-footer">
|
|
|
<el-button @click="dialogFormVisible = false ;resetForm(taskRuleFormRef)">取消</el-button>
|
|
|
- <el-button type="primary" @click="submitForm(taskRuleFormRef)"> 确认</el-button>
|
|
|
+ <el-button type="primary" @click="submitForm(taskRuleFormRef)">确认</el-button>
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-dialog>
|