Browse Source

工厂端客户管理bug优化

liyuan 2 weeks ago
parent
commit
b7a6ca835f

+ 9 - 0
src/api/fc/customerInformation.js

@@ -60,6 +60,15 @@ export const remove = (data) => {
     })
 }
 
+export const delCustomer = (data) => {
+    return request({
+        url: '/api/gubersail-admin/fc/customer/delCustomer',
+        method: 'POST',
+        data: data
+    })
+}
+
+
 export function customerList(data) {
     return request({
         url: '/api/gubersail-admin/corpstype/page',

+ 4 - 4
src/views/fc/customer/index.vue

@@ -28,7 +28,7 @@
             @search-criteria-switch="searchCriteriaSwitch"
           >
             <template slot="menuLeft">
-              <el-button type="primary" size="mini" @click.stop="newAdd()">新建客户 </el-button>
+              <el-button type="primary" size="mini" icon="el-icon-plus" @click.stop="newAdd()">新建客户 </el-button>
               <!-- <el-button type="primary" size="mini" icon="el-icon-bottom" @click="excelBox = true">导入 </el-button>
               <el-button type="primary" size="mini" icon="el-icon-top" @click="outExport">导出 </el-button>
               <el-button type="primary" size="mini" icon="el-icon-download" @click="brandBox = true">
@@ -70,7 +70,7 @@
                 @click.stop="passThrough(row, '驳回')"
                 >驳回
               </el-button> -->
-              <el-button :size="size" :type="type" :disabled="row.enableOrNot || !roleName.includes('基础资料')" @click.stop="rowDel(row)"
+              <el-button :size="size" :type="type" :disabled="row.enableOrNot && row.enableOrNot == 1" @click.stop="rowDel(row)"
                 >删除
               </el-button>
             </template>
@@ -122,7 +122,7 @@
 
 <script>
 import detailsPage from "./detailsPage.vue";
-import { getList, getCorpType, remove, customerList, submit } from "@/api/fc/customerInformation";
+import {getList, getCorpType, remove, customerList, submit, delCustomer} from "@/api/fc/customerInformation";
 import corpType from "./components/index.vue";
 import { getToken } from "@/util/auth";
 
@@ -715,7 +715,7 @@ export default {
         cancelButtonText: "取消",
         type: "warning"
       }).then(() => {
-        remove({ id: row.id, corpType: "KH" }).then(res => {
+          delCustomer([row.id]).then(res => {
           if (res.data.code == 200) {
             this.$message({
               type: "success",

+ 3 - 3
src/views/goodsManage/index.vue

@@ -28,7 +28,7 @@
             @on-load="onLoad"
           >
             <template slot="menuLeft">
-              <el-button type="primary" size="small" icon="el-icon-plus" @click="addButton">创建单据 </el-button>
+              <el-button type="primary" size="small" icon="el-icon-plus" @click="addButton">新建商品</el-button>
               <el-button type="warning" icon="el-icon-download" size="small" @click="outExport">导出</el-button>
             </template>
             <template slot="menu" slot-scope="{ row, index }">
@@ -142,7 +142,7 @@ export default {
           },
           {
             label: "规格型号",
-            prop: "typeno",
+            prop: "typeNo",
             span: 6,
             overHidden: true
           },
@@ -249,7 +249,7 @@ export default {
         }
       }
       const routeData = this.$router.resolve({
-        path: "/api/blade-sales-part/stockDesc/stockExport", //跳转目标下载地址
+        path: "/api/gubersail-admin/stockDesc/stockExport", //跳转目标下载地址
         query: {
           ...config.params
         }