From 544f30e28a3d8ea41e5ea8c0add2ce77c1b6fb1a Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期二, 07 五月 2024 17:48:31 +0800 Subject: [PATCH] 工种管理模块 编辑工种接口400的问题修改+增加如果启用不达标保底,则必须输入保底工资的逻辑 --- src/api/productManage/productRegisterForm.js | 83 ++++++++++++++++++----------------------- 1 files changed, 37 insertions(+), 46 deletions(-) diff --git a/src/api/productManage/productRegisterForm.js b/src/api/productManage/productRegisterForm.js index 95b4d92..2bf95cb 100644 --- a/src/api/productManage/productRegisterForm.js +++ b/src/api/productManage/productRegisterForm.js @@ -1,66 +1,57 @@ import request from "@/common/untils/request.js" -// 绾ゅ害鐧昏鍒楄〃 -export function getRegisterList(data) { +// 浜ч噺鐧昏鍒楄〃 +export function getYieldRegisterList(data) { return request({ - url: "/api-jl/v1/fineness/register?page="+ data.page+"&pageSize="+data.pageSize+"&keyword="+data.keyword, - method: "get", - data - }) -} - -//淇濆瓨绾ゅ害鐧昏 -export function saveRegister(data) { - return request({ - url: "/api-jl/v1/fineness/register", + url: "/api-jl/v1/fineness/getYieldRegisterList", method: "post", data }) } -// 绾ゅ害鐧昏琛ㄧ殑璇︽儏 -export function getRegisterDetails(data) { +//淇濆瓨浜ч噺鐧昏 +export function saveYieldRegister(data) { return request({ - url: "/api-jl/v1/fineness/register/"+data.id, - method: "get", + url: "/api-jl/v1/fineness/saveYieldRegister", + method: "post", data }) } -// 鍒犻櫎绾ゅ害鐧昏鍒楄〃 -export function getDeleteRegister(data) { +// 浜ч噺鐧昏琛ㄧ殑璇︽儏 +export function getYieldRegisterInfo(data) { return request({ - url: "/api-jl/v1/fineness/register/"+data.id, + url: "/api-jl/v1/fineness/getYieldRegisterInfo", + method: "post", + data + }) +} +// 鍒犻櫎浜ч噺鐧昏鍒楄〃 +export function deleteYieldRegister(data) { + return request({ + url: "/api-jl/v1/fineness/deleteYieldRegister/"+data.number, method: "delete", data }) } -// 绾ゅ害鐧昏 select鏁版嵁 -export function getDictList(data) { +// 鍒囨崲浜у搧鐧昏琛� +export function changeYieldRegister(data) { return request({ - url: "/api-jl/v1/system/dict?dictType="+data.dictType, + url: "/api-jl/v1/fineness/changeYieldRegister", + method: "post", + data + }) +} +// 鑾峰彇杞﹁締缂栧彿 鍜岀瓑绾� +export function getWorkshopManageCar(data) { + return request({ + url: "/api-jl/v1/system/getCarAndLevel", + method: "post", + data + }) +} +// 鑾峰彇杞﹁締缂栧彿 +export function getWorkshopManageGroup(data) { + return request({ + url: "/api-jl/v1/system/getWorkshopManageGroup/"+data.number, method: "get", data - }) -} -// 绾ゅ害鐧昏琛� 缁勫埆鐨勬暟鎹� -export function getWorkshopManageList(data) { - return request({ - url: "/api-jl/v1/system/getWorkshopManageList", - method: "get", - data - }) -} -// 鏇存柊璺熻繘璁板綍 -export function getUpdateFollowRecord(data) { - return request({ - url: "/api/followRecord/update", - method: "put", - data - }) -} - -// 鑱旂郴鏂瑰紡鍒楄〃 -export function getContactInfoList() { - return request({ - url: "/api/contactInformation/list", - method: "get" }) } -- Gitblit v1.8.0