定时任务同步供应商数据

This commit is contained in:
luojiaquan
2026-09-29 11:28:15 +08:00
parent ff57be1116
commit b9746e3801
15 changed files with 660 additions and 13 deletions
@@ -26,6 +26,39 @@
/>
</el-form-item>
<el-form-item label="供应商类型" prop="supplierType">
<el-select
v-model="queryParams.supplierType"
placeholder="请选择供应商类型"
clearable
@change="handleQuery"
>
<el-option v-for="item in supplierTypeOptions" :key="item.value" :label="item.label" :value="item.value" />
</el-select>
</el-form-item>
<el-form-item label="开票类型" prop="invoiceType">
<el-select
v-model="queryParams.invoiceType"
placeholder="请选择开票类型"
clearable
@change="handleQuery"
>
<el-option v-for="item in invoiceTypeOptions" :key="item.value" :label="item.label" :value="item.value" />
</el-select>
</el-form-item>
<el-form-item label="卡车行类型" prop="kacheType">
<el-select
v-model="queryParams.kacheType"
placeholder="请选择卡车行类型"
clearable
@change="handleQuery"
>
<el-option v-for="item in kacheTypeOptions" :key="item.value" :label="item.label" :value="item.value" />
</el-select>
</el-form-item>
<el-form-item label="启用状态" prop="isEnable">
<el-select
v-model="queryParams.isEnable"
@@ -108,6 +141,12 @@
<el-table-column v-if="isColVisible('supplierType')" label="供应商类型" align="center" prop="supplierType">
<template #default="scope">{{ formatOption(supplierTypeOptions, scope.row.supplierType) }}</template>
</el-table-column>
<el-table-column v-if="isColVisible('invoiceType')" label="开票类型" align="center" prop="invoiceType">
<template #default="scope">{{ formatOption(invoiceTypeOptions, scope.row.invoiceType) }}</template>
</el-table-column>
<el-table-column v-if="isColVisible('kacheType')" label="卡车行类型" align="center" prop="kacheType">
<template #default="scope">{{ formatOption(kacheTypeOptions, scope.row.kacheType) }}</template>
</el-table-column>
<el-table-column v-if="isColVisible('isEnable')" label="启用状态" align="center" prop="isEnable">
<template #default="scope">
<dict-tag :options="sys_normal_disable" :value="scope.row.isEnable" />
@@ -174,6 +213,8 @@ const columnDefs = [
{ key: 'supplierCodeDw', label: '对外代码' },
{ key: 'creditCode', label: '统一社会信用代码' },
{ key: 'supplierType', label: '供应商类型' },
{ key: 'invoiceType', label: '开票类型' },
{ key: 'kacheType', label: '卡车行类型' },
{ key: 'isEnable', label: '启用状态' },
{ key: 'purchaserUserId', label: '采购员' },
{ key: 'ed', label: '应付额度' },
@@ -205,11 +246,22 @@ const total = ref(0)
const { sys_normal_disable, settlement_type } = useDict("sys_normal_disable", "settlement_type")
const supplierTypeOptions = ref([
{ value: "0", label: "生产商" },
{ value: "1", label: "代理商" },
{ value: "2", label: "个人" },
{ value: "3", label: "物流商" },
{ value: "4", label: "其他" }
{ value: "1", label: "卡车行" },
{ value: "2", label: "航司代理" },
{ value: "3", label: "报关行" },
{ value: "4", label: "清关行" },
{ value: "5", label: "尾派服务商" },
{ value: "6", label: "报关代理" }
])
const invoiceTypeOptions = ref([
{ value: "1", label: "增值税普通发票" },
{ value: "2", label: "增值税专用发票" },
{ value: "3", label: "增值税电子普通发票" },
{ value: "4", label: "其他普通发票" }
])
const kacheTypeOptions = ref([
{ value: "0", label: "国内" },
{ value: "1", label: "国外" }
])
const cooperationStatusOptions = ref([
{ value: "0", label: "正常" },
@@ -238,6 +290,8 @@ const data = reactive({
supplierCodeDw: undefined,
creditCode: undefined,
supplierType: undefined,
invoiceType: undefined,
kacheType: undefined,
isEnable: undefined,
purchaserUserId: undefined,
purchaserUser: undefined,
@@ -55,6 +55,20 @@
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="开票类型" prop="invoiceType">
<el-select v-model="form.invoiceType" placeholder="请选择开票类型" clearable style="width: 100%;">
<el-option v-for="opt in invoiceTypeOptions" :key="opt.value" :label="opt.label" :value="opt.value" />
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="卡车行类型" prop="kacheType">
<el-select v-model="form.kacheType" placeholder="请选择卡车行类型" clearable style="width: 100%;">
<el-option v-for="opt in kacheTypeOptions" :key="opt.value" :label="opt.label" :value="opt.value" />
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="启用状态" prop="isEnable">
<el-select v-model="form.isEnable" placeholder="请选择启用状态" clearable style="width: 100%;">
@@ -595,11 +609,22 @@ const rules = {
}
const supplierTypeOptions = ref([
{ value: '0', label: '生产商' },
{ value: '1', label: '代理商' },
{ value: '2', label: '个人' },
{ value: '3', label: '物流商' },
{ value: '4', label: '其他' }
{ value: '1', label: '卡车行' },
{ value: '2', label: '航司代理' },
{ value: '3', label: '报关行' },
{ value: '4', label: '清关行' },
{ value: '5', label: '尾派服务商' },
{ value: '6', label: '报关代理' }
])
const invoiceTypeOptions = ref([
{ value: '1', label: '增值税普通发票' },
{ value: '2', label: '增值税专用发票' },
{ value: '3', label: '增值税电子普通发票' },
{ value: '4', label: '其他普通发票' }
])
const kacheTypeOptions = ref([
{ value: '0', label: '国内' },
{ value: '1', label: '国外' }
])
const cooperationStatusOptions = ref([
{ value: '0', label: '正常' },
@@ -616,6 +641,8 @@ function buildEmptyForm() {
supplierCodeDw: null,
creditCode: null,
supplierType: null,
invoiceType: null,
kacheType: null,
isEnable: null,
purchaserUserId: null,
purchaserUser: null,