Browse Source

[CODE]: 仓库管理

maxianghua 4 năm trước cách đây
mục cha
commit
4743326008
2 tập tin đã thay đổi với 6 bổ sung6 xóa
  1. 5 5
      src/api/basicdata/dept.js
  2. 1 1
      src/views/basicdata/dept/index.vue

+ 5 - 5
src/api/basicdata/dept.js

@@ -12,7 +12,7 @@ export function listDept(query) {
 // 查询部门列表(排除节点)
 export function listDeptExcludeChild(deptId) {
   return request({
-    url: '/system/dept/list/exclude/' + deptId,
+    url: '/basicdata/warehouse/list/exclude/' + deptId,
     method: 'get'
   })
 }
@@ -20,7 +20,7 @@ export function listDeptExcludeChild(deptId) {
 // 查询部门详细
 export function getDept(deptId) {
   return request({
-    url: '/system/dept/' + deptId,
+    url: '/basicdata/warehouse/' + deptId,
     method: 'get'
   })
 }
@@ -28,7 +28,7 @@ export function getDept(deptId) {
 // 查询部门下拉树结构
 export function treeselect() {
   return request({
-    url: '/system/dept/treeselect',
+    url: '/basicdata/warehouse/treeselect',
     method: 'get'
   })
 }
@@ -53,7 +53,7 @@ export function addDept(data) {
 // 修改部门
 export function updateDept(data) {
   return request({
-    url: '/system/dept',
+    url: '/basicdata/warehouse',
     method: 'put',
     data: data
   })
@@ -62,7 +62,7 @@ export function updateDept(data) {
 // 删除部门
 export function delDept(deptId) {
   return request({
-    url: '/system/dept/' + deptId,
+    url: '/basicdata/warehouse/' + deptId,
     method: 'delete'
   })
 }

+ 1 - 1
src/views/basicdata/dept/index.vue

@@ -271,7 +271,7 @@ export default {
     },
     // 字典状态字典翻译
     statusFormat(row, column) {
-      return this.selectDictLabel(this.statusOptions, row.status);
+      return this.selectDictLabel(this.statusOptions, row.fStatus);
     },
     // 取消按钮
     cancel() {