Browse Source

用友接口

hfxc226 2 years ago
parent
commit
d5217ecd8e
1 changed files with 46 additions and 0 deletions
  1. 46 0
      src/api/yongyou/yongyou.js

+ 46 - 0
src/api/yongyou/yongyou.js

@@ -0,0 +1,46 @@
+import { axios } from '@/utils/request'
+import { stringify } from 'qs'
+
+/**
+ * page func
+ * parameter: { }
+ * @param parameter
+ * @returns {*}
+ */
+export function getSparePageYY (parameter) {
+  return axios({
+    url: '/yongyou/page?' + stringify(parameter),
+    method: 'get',
+    headers: {
+      'Content-Type': 'application/json;charset=UTF-8'
+    }
+  })
+}
+
+/**
+ * update func
+ * parameter: { }
+ * @param parameter
+ * @returns {*}
+ */
+export function addSparePickFormYY (parameter) {
+  return axios({
+    url: '/yongyou/spare/pick/form/' + parameter.id,
+    method: 'PUT',
+    data: parameter
+  })
+}
+
+/**
+ * update func
+ * parameter: { }
+ * @param parameter
+ * @returns {*}
+ */
+export function addSpareRestoreFormYY (parameter) {
+  return axios({
+    url: '/yongyou/spare/restore/form/' + parameter.id,
+    method: 'PUT',
+    data: parameter
+  })
+}