diff --git a/src/api/repair/supplier/index.js b/src/api/repair/supplier/index.js new file mode 100644 index 0000000..d2f00ef --- /dev/null +++ b/src/api/repair/supplier/index.js @@ -0,0 +1,53 @@ +import request from '@/utils/request' + +// 创建供应商 +export function createBaseSupplier(data) { + return request({ + url: '/supplier/baseSupplier/create', + method: 'post', + data: data + }) +} + +// 更新供应商 +export function updateBaseSupplier(data) { + return request({ + url: '/supplier/baseSupplier/update', + method: 'put', + data: data + }) +} + +// 删除供应商 +export function deleteBaseSupplier(id) { + return request({ + url: '/supplier/baseSupplier/delete?id=' + id, + method: 'delete' + }) +} + +// 获得供应商 +export function getBaseSupplier(id) { + return request({ + url: '/supplier/baseSupplier/get?id=' + id, + method: 'get' + }) +} + +// 获得供应商分页 +export function getBaseSupplierPage(params) { + return request({ + url: '/supplier/baseSupplier/page', + method: 'get', + params + }) +} +// 导出供应商 Excel +export function exportBaseSupplierExcel(params) { + return request({ + url: '/supplier/baseSupplier/export-excel', + method: 'get', + params, + responseType: 'blob' + }) +} diff --git a/src/utils/dict.js b/src/utils/dict.js index 2d865f2..4b93d58 100644 --- a/src/utils/dict.js +++ b/src/utils/dict.js @@ -59,6 +59,7 @@ export const DICT_TYPE = { PAY_REFUND_STATUS: 'pay_refund_status', // 退款订单状态 PAY_NOTIFY_STATUS: 'pay_notify_status', // 商户支付回调状态 PAY_NOTIFY_TYPE: 'pay_notify_type', // 商户支付回调状态 + PAY_TYPE: 'pay_type', // 商户支付回调状态 // ========== MP 模块 ========== MP_AUTO_REPLY_REQUEST_MATCH: 'mp_auto_reply_request_match', // 自动回复请求匹配类型 diff --git a/src/views/conf/warehouse/index.vue b/src/views/conf/warehouse/index.vue index 284e64c..eb8fc35 100644 --- a/src/views/conf/warehouse/index.vue +++ b/src/views/conf/warehouse/index.vue @@ -40,7 +40,7 @@ diff --git a/src/views/repair/supplier/BaseSupplierForm.vue b/src/views/repair/supplier/BaseSupplierForm.vue new file mode 100644 index 0000000..75d950d --- /dev/null +++ b/src/views/repair/supplier/BaseSupplierForm.vue @@ -0,0 +1,266 @@ + + + diff --git a/src/views/repair/supplier/index.vue b/src/views/repair/supplier/index.vue new file mode 100644 index 0000000..ae1d65f --- /dev/null +++ b/src/views/repair/supplier/index.vue @@ -0,0 +1,150 @@ + + +