Browse Source

change: 创建po模块. 模糊搜索接口, 请求数据格式调整为表单

peter 1 year ago
parent
commit
3d9cd976d0
1 changed files with 7 additions and 3 deletions
  1. 7 3
      src/pages/purchase-order/edit.vue

+ 7 - 3
src/pages/purchase-order/edit.vue

@@ -1655,9 +1655,13 @@ const getSupplierLists = utils.debounce(function (string: string) {
 getSupplierLists('')
 
 const getSearchData = async function (p: any) {
-  return await axios.post('/api/common/getPublicLists', p).then((response) => {
-    return response
-  })
+  return await axios
+    .post('/api/common/getPublicLists', p, {
+      headers: { 'Content-Type': 'multipart/form-data' },
+    })
+    .then((response) => {
+      return response
+    })
 }
 
 const getPath = function (path: string) {