新增供应商类型配置
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function listSupplierType(query) {
|
||||
return request({
|
||||
url: '/data/supplierType/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
export function getSupplierType(typeId) {
|
||||
return request({
|
||||
url: '/data/supplierType/' + typeId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export function addSupplierType(data) {
|
||||
return request({
|
||||
url: '/data/supplierType',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function updateSupplierType(data) {
|
||||
return request({
|
||||
url: '/data/supplierType',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function changeSupplierTypeStatus(data) {
|
||||
return request({
|
||||
url: '/data/supplierType/changeStatus',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function delSupplierType(typeIds) {
|
||||
return request({
|
||||
url: '/data/supplierType/' + typeIds,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
@@ -254,16 +254,7 @@ const single = ref(true)
|
||||
const multiple = ref(true)
|
||||
const total = ref(0)
|
||||
|
||||
const { sys_normal_disable, settlement_type } = useDict("sys_normal_disable", "settlement_type")
|
||||
|
||||
const supplierTypeOptions = ref([
|
||||
{ value: "1", label: "卡车行" },
|
||||
{ value: "2", label: "航司代理" },
|
||||
{ value: "3", label: "报关行" },
|
||||
{ value: "4", label: "清关行" },
|
||||
{ value: "5", label: "尾派服务商" },
|
||||
{ value: "6", label: "报关代理" }
|
||||
])
|
||||
const { sys_normal_disable, settlement_type, bms_supplier_type: supplierTypeOptions } = useDict("sys_normal_disable", "settlement_type", "bms_supplier_type")
|
||||
const invoiceTypeOptions = ref([
|
||||
{ value: "1", label: "增值税普通发票" },
|
||||
{ value: "2", label: "增值税专用发票" },
|
||||
|
||||
@@ -640,14 +640,7 @@ const rules = {
|
||||
supplierName: [{ required: true, message: '供应商名称不能为空', trigger: 'blur' }]
|
||||
}
|
||||
|
||||
const supplierTypeOptions = ref([
|
||||
{ value: '1', label: '卡车行' },
|
||||
{ value: '2', label: '航司代理' },
|
||||
{ value: '3', label: '报关行' },
|
||||
{ value: '4', label: '清关行' },
|
||||
{ value: '5', label: '尾派服务商' },
|
||||
{ value: '6', label: '报关代理' }
|
||||
])
|
||||
const { bms_supplier_type: supplierTypeOptions } = useDict('bms_supplier_type')
|
||||
const invoiceTypeOptions = ref([
|
||||
{ value: '1', label: '增值税普通发票' },
|
||||
{ value: '2', label: '增值税专用发票' },
|
||||
|
||||
Reference in New Issue
Block a user