|
@@ -512,6 +512,11 @@
|
|
|
<el-dialog v-model="onboardDialogVisible" title="提交进件资料" width="650px" destroy-on-close
|
|
<el-dialog v-model="onboardDialogVisible" title="提交进件资料" width="650px" destroy-on-close
|
|
|
:close-on-click-modal="false">
|
|
:close-on-click-modal="false">
|
|
|
<el-form ref="onboardFormRef" :model="onboardForm" :rules="onboardRules" label-width="120px">
|
|
<el-form ref="onboardFormRef" :model="onboardForm" :rules="onboardRules" label-width="120px">
|
|
|
|
|
+ <el-form-item label="场景码" prop="scene_code" required>
|
|
|
|
|
+ <el-select v-model="onboardForm.scene_code" placeholder="请选择转账场景">
|
|
|
|
|
+ <el-option v-for="s in ONBOARD_SCENE_OPTIONS" :key="s.value" :label="s.label" :value="s.value" />
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="场景说明" prop="scene_directions" required>
|
|
<el-form-item label="场景说明" prop="scene_directions" required>
|
|
|
<el-input v-model="onboardForm.scene_directions" type="textarea" :rows="3"
|
|
<el-input v-model="onboardForm.scene_directions" type="textarea" :rows="3"
|
|
|
placeholder="谁/通过什么媒介/主要为谁提供什么服务/用于在什么场景给什么人群转账" maxlength="1024" show-word-limit />
|
|
placeholder="谁/通过什么媒介/主要为谁提供什么服务/用于在什么场景给什么人群转账" maxlength="1024" show-word-limit />
|
|
@@ -839,7 +844,20 @@ const uploadRef = ref();
|
|
|
const onboardSiteTypes = ref<string[]>([]);
|
|
const onboardSiteTypes = ref<string[]>([]);
|
|
|
const onboardSites = reactive<Record<string, string>>({});
|
|
const onboardSites = reactive<Record<string, string>>({});
|
|
|
|
|
|
|
|
|
|
+const ONBOARD_SCENE_OPTIONS = [
|
|
|
|
|
+ { value: "XIANJIN_YINGXIAO", label: "现金营销" },
|
|
|
|
|
+ { value: "XINGZHENG_BUTIE", label: "行政补贴" },
|
|
|
|
|
+ { value: "BAOXIAN_LIPEI", label: "保险理赔" },
|
|
|
|
|
+ { value: "YONGJIN_BAOCHOU", label: "佣金报酬" },
|
|
|
|
|
+ { value: "QIYE_PEIFU", label: "企业赔付" },
|
|
|
|
|
+ { value: "CAIGOU_HUOKUAN", label: "采购货款" },
|
|
|
|
|
+ { value: "ERSHOU_HUISHOU", label: "二手回收" },
|
|
|
|
|
+ { value: "GONGYI_BUZHU", label: "公益补助" },
|
|
|
|
|
+ { value: "ZHUANZHANG_QITA", label: "其他场景" },
|
|
|
|
|
+];
|
|
|
|
|
+
|
|
|
const onboardForm = reactive({
|
|
const onboardForm = reactive({
|
|
|
|
|
+ scene_code: "ZHUANZHANG_QITA",
|
|
|
scene_directions: "",
|
|
scene_directions: "",
|
|
|
scene_image: "",
|
|
scene_image: "",
|
|
|
});
|
|
});
|
|
@@ -850,6 +868,7 @@ const validateSceneImage = (_rule: any, _value: any, callback: any) => {
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
const onboardRules: FormRules = {
|
|
const onboardRules: FormRules = {
|
|
|
|
|
+ scene_code: [{ required: true, message: "请选择场景码", trigger: "change" }],
|
|
|
scene_directions: [{ required: true, message: "请填写场景说明", trigger: "blur" }],
|
|
scene_directions: [{ required: true, message: "请填写场景说明", trigger: "blur" }],
|
|
|
scene_image: [{ validator: validateSceneImage, trigger: "change" }],
|
|
scene_image: [{ validator: validateSceneImage, trigger: "change" }],
|
|
|
};
|
|
};
|
|
@@ -918,6 +937,7 @@ async function handleOnboardSubmit() {
|
|
|
}
|
|
}
|
|
|
const res = await AccountAPI.createOnboard({
|
|
const res = await AccountAPI.createOnboard({
|
|
|
enterprise_id: currentEnterpriseId.value!,
|
|
enterprise_id: currentEnterpriseId.value!,
|
|
|
|
|
+ scene_code: onboardForm.scene_code,
|
|
|
scene_directions: onboardForm.scene_directions,
|
|
scene_directions: onboardForm.scene_directions,
|
|
|
scene_image: onboardImageIds.value.join(","),
|
|
scene_image: onboardImageIds.value.join(","),
|
|
|
sites,
|
|
sites,
|