Commit b1822ae9 authored by chenzj's avatar chenzj

刀模版入库

parent 19092155
......@@ -9,6 +9,16 @@ export function listRecord(query) {
});
}
// 查询刀模版上下机记录列表
export function listRecords(query) {
return request({
url: "/tm/tmToolMachines/warehouse/lists",
method: "get",
params: query,
});
}
// 查询刀模版上下机记录详细
export function getRecord(toolMachinesRecordId) {
return request({
......
......@@ -61,7 +61,7 @@
</template>
<script>
import { listRecord } from "@/api/mes/tm/toolmachinesrecord";
import { listRecords } from "@/api/mes/tm/toolmachinesrecord";
import { genCode } from "@/api/system/autocode/rule";
import { getToken } from "@/utils/auth";
import { treeselect } from "@/api/mes/md/itemtype";
......@@ -136,7 +136,7 @@ export default {
const params = JSON.parse(JSON.stringify(this.queryParams))
if (!params.workunitName) delete params.workunitName
if (!params.toolCode) delete params.toolCode
listRecord(params).then((response) => {
listRecords(params).then((response) => {
this.itemList = response.rows;
this.total = response.total;
this.loading = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment