|
@@ -115,11 +115,6 @@
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
<el-form ref="onboardFormRef" :model="onboardForm" :rules="onboardRules" label-width="140px">
|
|
<el-form ref="onboardFormRef" :model="onboardForm" :rules="onboardRules" label-width="140px">
|
|
|
- <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="谁/通过什么媒介(APP/web/小程序)/主要为谁提供什么服务/用于在什么场景给什么人群转账" maxlength="1024" show-word-limit />
|
|
placeholder="谁/通过什么媒介(APP/web/小程序)/主要为谁提供什么服务/用于在什么场景给什么人群转账" maxlength="1024" show-word-limit />
|
|
@@ -834,19 +829,6 @@ const createForm = reactive({
|
|
|
remark: "",
|
|
remark: "",
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
-// 进件场景码
|
|
|
|
|
-const ONBOARD_SCENE_OPTIONS = [
|
|
|
|
|
- { value: "YONGJIN_BAOCHOU", label: "佣金报酬" },
|
|
|
|
|
- { value: "XIANJIN_YINGXIAO", label: "现金营销" },
|
|
|
|
|
- { value: "XINGZHENG_BUTIE", label: "行政补贴" },
|
|
|
|
|
- { value: "BAOXIAN_LIPEI", label: "保险理赔" },
|
|
|
|
|
- { value: "CAIGOU_HUOKUAN", label: "采购货款" },
|
|
|
|
|
- { value: "QIYE_PEIFU", label: "企业赔付" },
|
|
|
|
|
- { value: "ERSHOU_HUISHOU", label: "二手回收" },
|
|
|
|
|
- { value: "GONGYI_BUZHU", label: "公益补助" },
|
|
|
|
|
- { value: "ZHUANZHANG_QITA", label: "其他场景" },
|
|
|
|
|
-];
|
|
|
|
|
-
|
|
|
|
|
const SITE_TYPE_OPTIONS = [
|
|
const SITE_TYPE_OPTIONS = [
|
|
|
{ value: "WEBSITE", label: "网站" },
|
|
{ value: "WEBSITE", label: "网站" },
|
|
|
{ value: "APP", label: "APP" },
|
|
{ value: "APP", label: "APP" },
|
|
@@ -865,7 +847,6 @@ const onboardSiteTypes = ref<string[]>([]);
|
|
|
const onboardSites = reactive<Record<string, string>>({});
|
|
const onboardSites = reactive<Record<string, string>>({});
|
|
|
|
|
|
|
|
const onboardForm = reactive({
|
|
const onboardForm = reactive({
|
|
|
- scene_code: "YONGJIN_BAOCHOU",
|
|
|
|
|
scene_directions: "",
|
|
scene_directions: "",
|
|
|
scene_image: "",
|
|
scene_image: "",
|
|
|
});
|
|
});
|
|
@@ -876,7 +857,6 @@ 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" }],
|
|
|
};
|
|
};
|
|
@@ -945,7 +925,6 @@ 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,
|