diff --git a/src/api/dryMatterCorrection/dryMatterCorrection.js b/src/api/dryMatterCorrection/dryMatterCorrection.js index 9018311..77f69e3 100644 --- a/src/api/dryMatterCorrection/dryMatterCorrection.js +++ b/src/api/dryMatterCorrection/dryMatterCorrection.js @@ -5,9 +5,7 @@ export function listDryMatterCorrection(query) { return request({ url: '/dryMatterCorrection/dryMatterCorrection/list', method: 'get', - params: { - datetime: query.datetime // 只传递年月参数 - } + params: query }) } @@ -43,4 +41,4 @@ export function delDryMatterCorrection(id) { url: '/dryMatterCorrection/dryMatterCorrection/' + id, method: 'delete' }) -} \ No newline at end of file +} diff --git a/src/api/parityCorrection/parityCorrection.js b/src/api/parityCorrection/parityCorrection.js new file mode 100644 index 0000000..788539b --- /dev/null +++ b/src/api/parityCorrection/parityCorrection.js @@ -0,0 +1,46 @@ +// import request from '@/utils/request' + +// // 查询胎次校正列表 +// export function listParityCorrection(query) { +// return request({ +// url: '/parityCorrection/parityCorrection/list', +// method: 'get', +// params: query +// }) +// } + +// // 查询胎次校正详细 +// export function getParityCorrection(id) { +// return request({ +// url: '/parityCorrection/parityCorrection/' + id, +// method: 'get' +// }) +// } + +// // 新增胎次校正 +// export function addParityCorrection(data) { +// return request({ +// url: '/parityCorrection/parityCorrection', +// method: 'post', +// data: data +// }) +// } + +// // 修改胎次校正 +// export function updateParityCorrection(data) { +// return request({ +// url: '/parityCorrection/parityCorrection', +// method: 'put', +// data: data +// }) +// } + +// // 删除胎次校正 +// export function delParityCorrection(id) { +// return request({ +// url: '/parityCorrection/parityCorrection/' + id, +// method: 'delete' +// }) +// } +// 可以保留空文件或删除此文件 +// 因为前端不再需要调用后端API \ No newline at end of file diff --git a/src/api/weightCorrection/weightCorrection.js b/src/api/weightCorrection/weightCorrection.js new file mode 100644 index 0000000..c804f8f --- /dev/null +++ b/src/api/weightCorrection/weightCorrection.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询称重校正列表 +export function listWeightCorrection(query) { + return request({ + url: '/weightCorrection/weightCorrection/list', + method: 'get', + params: query + }) +} + +// 查询称重校正详细 +export function getWeightCorrection(id) { + return request({ + url: '/weightCorrection/weightCorrection/' + id, + method: 'get' + }) +} + +// 新增称重校正 +export function addWeightCorrection(data) { + return request({ + url: '/weightCorrection/weightCorrection', + method: 'post', + data: data + }) +} + +// 修改称重校正 +export function updateWeightCorrection(data) { + return request({ + url: '/weightCorrection/weightCorrection', + method: 'put', + data: data + }) +} + +// 删除称重校正 +export function delWeightCorrection(id) { + return request({ + url: '/weightCorrection/weightCorrection/' + id, + method: 'delete' + }) +} diff --git a/src/views/dryMatterCorrection/dryMatterCorrection/index.vue b/src/views/dryMatterCorrection/dryMatterCorrection/index.vue index fedf5dc..b0eaa63 100644 --- a/src/views/dryMatterCorrection/dryMatterCorrection/index.vue +++ b/src/views/dryMatterCorrection/dryMatterCorrection/index.vue @@ -4,11 +4,21 @@ + + + + + 搜索 重置 @@ -57,23 +67,31 @@ - - - + + + + + + + - - - + - +