ソースを参照

物料分工列表接口,地址更改为预发

黄梓星 2 年 前
コミット
f02dd827e8

+ 10 - 0
src/api/purchase/basic.js

@@ -0,0 +1,10 @@
+import request from '@/utils/request'
+
+// 获取物料分工列表
+export function getDivisionList(data) {
+  return request({
+    url: `/material/division/list`,
+    method: 'post',
+    data: data
+  })
+}

+ 12 - 0
src/views/purchase/MaterialClassDivision/index.vue

@@ -252,6 +252,7 @@
 
 <script>
 import Add from './add.vue'
+import {getDivisionList} from '@/api/purchase/basic.js'
 export default {
   name: 'MaterialClassDivision',
   components: {
@@ -285,7 +286,18 @@ export default {
       tableList: []
     }
   },
+  created() {
+    this.getList()
+  },
   methods: {
+    getList(){
+      getDivisionList().then(res => {
+        if (res.code === 200) {
+          this.tableList = res.rows
+        }
+      })
+    }
+    ,
     handleSelectionChange() {},
     handleCommand(command) {
       alert(command)

+ 1 - 1
vue.config.js

@@ -36,7 +36,7 @@ module.exports = {
     proxy: {
       // detail: https://cli.vuejs.org/config/#devserver-proxy
       [process.env.VUE_APP_BASE_API]: {
-        target: `http://test-sy.derom.com/drp-admin`, //测试
+        target: `http://release-sy.derom.com/drp-admin`, //测试
         // target: `http://sy.derom.com/drp-admin`, //生产
         // target: `http://172.16.63.202:8000/drp-admin`, // D本地
         // target: `http://172.16.62.241:8000/drp-admin`, //笑寒本地