Browse Source

更新新物料接口

wuhb 1 month ago
parent
commit
0ab16a2e9d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      api/apply/index.uts

+ 2 - 2
api/apply/index.uts

@@ -106,7 +106,7 @@ export const getPurchaseApplyById = (applyId: string): Promise<any> => {
  */
 export const addMaterial = (data: UTSJSONObject | null): Promise<any> => {
 	return request({
-		url: '/mes/md/mditem',
+		url: '/mes/md/mditem/addApply',
 		method: 'POST',
 		data: data
 	})
@@ -142,7 +142,7 @@ export const getMeasureList = (): Promise<any> => {
  */
 export const deleteMaterial = (itemId: string): Promise<any> => {
 	return request({
-		url: `/mes/md/mditem/${itemId}`,
+		url: `/mes/md/mditem/physical/${itemId}`,
 		method: 'DELETE'
 	})
 }