From 69333a2dcc9c4db1bcdb95f78065d0a9c9da93a4 Mon Sep 17 00:00:00 2001 From: shijing Date: Wed, 4 Sep 2024 14:59:29 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E6=B7=BB=E5=8A=A0mtaskb=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E6=8E=A5=E5=8F=A3=E5=A3=B0=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/model/pm.js | 50 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/src/api/model/pm.js b/src/api/model/pm.js index 894aa937..42eddc6b 100644 --- a/src/api/model/pm.js +++ b/src/api/model/pm.js @@ -94,6 +94,56 @@ export default { } }, }, + mtaskb:{ + list: { + name: "生产任务列表", + req: async function(data){ + return await http.get( + `${config.API_URL}/pm/mtaskb/`, + data + ); + } + }, + create: { + name: "创建", + req: async function(data){ + return await http.post( + `${config.API_URL}/pm/mtaskb/`, + data); + } + }, + cquery: { + name: "复杂查询", + req: async function(data){ + return await http.post( + `${config.API_URL}/pm/mtaskb/cquery/`, + data); + } + }, + item: { + name: "获取详情", + req: async function(id){ + return await http.get( + `${config.API_URL}/pm/mtaskb/${id}/` + ); + } + }, + update: { + name: "更新", + req: async function(id, data){ + return await http.put( + `${config.API_URL}/pm/mtaskb/${id}/`, + data); + } + }, + delete: { + name: "删除", + req: async function(id){ + return await http.delete( + `${config.API_URL}/pm/mtaskb/${id}/`); + } + }, + }, // 生产大任务 utask: { list: {