ysy 2 ani în urmă
părinte
comite
6b3d6649f0

+ 2 - 1
src/components/SelectDialog/productDialog.vue

@@ -110,7 +110,8 @@
     modelType: null,
     name: null,
     code: null,
-    categoryLevelId: '9'
+    categoryLevelId: '9',
+    isProduct: true,
   };
   export default {
     components: { categorySelect },

+ 4 - 0
src/utils/request.js

@@ -46,6 +46,10 @@ service.interceptors.request.use(
  * 添加响应拦截器
  */
 service.interceptors.response.use(
+
+
+
+  
   (res) => {
     // token 自动续期
     if (res.data.code == '-1' && res.config?.showErrorToast !== false) {

+ 11 - 7
src/views/material/materialBOM/index.vue

@@ -11,7 +11,7 @@
       >
         <!-- 表头工具栏 -->
         <template v-slot:toolbar>
-          <!-- <el-button type="primary" @click="handelEdit('新建')">新建</el-button> -->
+          <el-button type="primary" @click="handelEdit('新建')">新建</el-button>
           <el-button
             size="small"
             type="primary"
@@ -22,22 +22,24 @@
           >刷新</el-button>
         </template>
         <template v-slot:action="{ row }">
-          <el-link type="primary" @click="handelEdit(row)">详情</el-link>
+          <el-link type="primary" @click="handelDetail(row)">详情</el-link>
         </template>
       </ele-pro-table>
     </el-card>
-    <ViewDialog ref="editDialogRef" :statusOpt="statusOpt" />
+    <ViewDialog ref="detailDialogRef" :statusOpt="statusOpt" />
+    <EditDialog ref="editDialogRef" :statusOpt="statusOpt"></EditDialog>
   </div>
 </template>
 
 <script>
   import BOMSearch from './components/BOM-search.vue';
   import ViewDialog from './components/view-dialog.vue';
+  import EditDialog from './components/edit-dialog.vue'
   import { getPage , syncBom } from '@/api/material/BOM';
 
   export default {
     name: 'SystemDictionary',
-    components: { BOMSearch, ViewDialog },
+    components: { BOMSearch, ViewDialog, EditDialog },
     data () {
       return {
         // 表格列配置
@@ -115,15 +117,17 @@
           size: limit
         });
       },
-      handelEdit (row) {
-        this.$refs.editDialogRef.open(row);
+      handelDetail (row) {
+        this.$refs.detailDialogRef.open(row);
       },
       /* 刷新表格 */
       reload (where) {
         this.$refs.table.reload({ where });
       },
       /* 显示编辑 */
-      openEdit (row) {},
+      handelEdit (row) {
+        this.$refs.editDialogRef.open(row);
+      },
       /* 删除 */
       remove () {
         this.$confirm('确定要删除选中的字典吗?', '提示', {

+ 1 - 4
vue.config.js

@@ -31,10 +31,7 @@ module.exports = {
     proxy: {
       // 当我们的本地的请求 有/api的时候,就会代理我们的请求地址向另外一个服务器发出请求
       '/api': {
-        // target: 'http://192.168.3.51:18086', // 测试
-        target: 'http://192.168.3.35:8080', // kang杨威
-        // target: 'http://192.168.3.33:8080', // 谢一平
-        // target: 'http://192.168.3.38:8080', // 陈潇
+        target: 'http://124.71.68.31:50001',
         changeOrigin: true, // 只有这个值为true的情况下 才表示开启跨域
         pathRewrite: {
           '^/api': ''