diff --git a/src/api/system/cost.js b/src/api/system/cost.js new file mode 100644 index 0000000..fd802aa --- /dev/null +++ b/src/api/system/cost.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询零件成本列表 +export function listCost(query) { + return request({ + url: '/system/cost/list', + method: 'get', + params: query + }) +} + +// 查询零件成本详细 +export function getCost(id) { + return request({ + url: '/system/cost/' + id, + method: 'get' + }) +} + +// 新增零件成本 +export function addCost(data) { + return request({ + url: '/system/cost', + method: 'post', + data: data + }) +} + +// 修改零件成本 +export function updateCost(data) { + return request({ + url: '/system/cost', + method: 'put', + data: data + }) +} + +// 删除零件成本 +export function delCost(id) { + return request({ + url: '/system/cost/' + id, + method: 'delete' + }) +} diff --git a/src/views/system/cost/index.vue b/src/views/system/cost/index.vue new file mode 100644 index 0000000..0d93791 --- /dev/null +++ b/src/views/system/cost/index.vue @@ -0,0 +1,393 @@ + + + 零件成本查询 + + + + + + + + + + + + + + + + + + + + + + + + + 搜索 + 重置 + + + + + + + + 物料搜索 + + + 按编码 + 按名称 + + + + + + + + 系数 + + + + 生成售后报价单 + 总计:{{ formattedTotal }} + + + + {{ m.materialCode }} - {{ m.materialName }} + + + + + + 导出 + + + + + + + + + + {{ scope.row.costPrice }} + + + + + {{ parseTime(scope.row.createDate, '{y}-{m}-{d}') }} + + + + + + + + + + + + + + + + + + {{ scope.row.costPrice }} + + + + + {{ coefficient }} + + + + + {{ (toNumber(scope.row.costPrice) * toNumber(coefficient)).toString() }} + + + + + 合计: + {{ formattedTotal }} + + + 取消 + 导出CSV + + + + + + + +