Prechádzať zdrojové kódy

修改接口方法,优化界面

阿伏兔 4 rokov pred
rodič
commit
7ab52788a4

+ 3 - 2
src/api/basicdata/corps.js

@@ -3,7 +3,8 @@ import request from '@/utils/request'
 // 查询客户详情列表
 export function listCorps(query) {
   return request({
-    url: '/basicdata/corps/selectCustomerDriverList',
+    // url: '/basicdata/corps/selectCustomerDriverList',
+    url: '/basicdata/corps/list',
     method: 'get',
     params: query
   })
@@ -70,4 +71,4 @@ export function selectCorpList(fId) {
     url: '/basicdata/corps/selectCorpList/'+ fId,
     method: 'get',
   })
-}
+}

+ 1 - 1
src/views/index.vue

@@ -320,7 +320,7 @@
                       margin: 2px 0 0 5px;
                     "
                   >
-                    新增柜数
+                    今日新增柜数
                   </div>
                 </div>
                 <div

+ 8 - 37
src/views/track/cabinet/index.vue

@@ -200,33 +200,11 @@
       </el-col> -->
       <el-col :span="1.5">
         <el-button
-          type="success"
-          icon="el-icon-edit"
-          size="mini"
-          :disabled="single"
-          @click="handleUpdate"
-          v-hasPermi="['fleet:plans:edit']"
-          >修改</el-button
-        >
-      </el-col>
-      <el-col :span="1.5">
-        <el-button
-          type="danger"
-          icon="el-icon-delete"
-          size="mini"
-          :disabled="multiple"
-          @click="handleDelete"
-          v-hasPermi="['fleet:plans:remove']"
-          >删除</el-button
-        >
-      </el-col>
-      <el-col :span="1.5">
-        <el-button
           type="warning"
           icon="el-icon-download"
           size="mini"
           @click="handleExport"
-          v-hasPermi="['fleet:plans:export']"
+          v-hasPermi="['fleet:ftmsorderbillscars:export']"
           >导出</el-button
         >
       </el-col>
@@ -247,7 +225,7 @@
           style="margin-right: 10px"
         >
           <el-button size="mini" @click="handleQuery('planDate')"
-            >派 车</el-button
+            >未接单</el-button
           >
         </el-badge></el-col
       >
@@ -258,7 +236,7 @@
           style="margin-right: 10px"
         >
           <el-button size="mini" @click="handleQuery('acceptDate')"
-            >接 单</el-button
+            >接单</el-button
           >
         </el-badge></el-col
       >
@@ -268,7 +246,7 @@
           type="warning"
           style="margin-right: 10px"
           ><el-button size="mini" @click="handleQuery('loadDate')"
-            >提 箱</el-button
+            >提箱</el-button
           ></el-badge
         ></el-col
       >
@@ -280,7 +258,7 @@
           style="margin-right: 10px"
         >
           <el-button size="mini" @click="handleQuery('mdLoadDate')"
-            >卸货</el-button
+            >卸货</el-button
           ></el-badge
         >
       </el-col>
@@ -297,7 +275,7 @@
       <el-col :span="1.5"
         ><el-badge :value="buttonValue.waybillDate" type="warning"
           ><el-button size="mini" @click="handleQuery('waybillDate')"
-            >回 单</el-button
+            >回单</el-button
           ></el-badge
         ></el-col
       >
@@ -451,14 +429,6 @@
             v-hasPermi="['fleet:plans:edit']"
             >修改</el-button
           > -->
-          <el-button
-            size="mini"
-            type="text"
-            icon="el-icon-delete"
-            @click="handleDelete(scope.row)"
-            v-hasPermi="['fleet:plans:remove']"
-            >删除</el-button
-          >
         </template>
       </el-table-column>
     </el-table>
@@ -494,6 +464,7 @@ import {
 } from "@/api/fleet/ftmsorderbills";
 import {
   listFtmsorderbillscars,
+  exportFtmsorderbillscars,
   selectDriverFtmsorderbillscars,
 } from "@/api/fleet/ftmsorderbillscars";
 import { listGoods } from "@/api/basicdata/goods";
@@ -1132,7 +1103,7 @@ export default {
         type: "warning",
       })
         .then(function () {
-          return exportFtmsorderbills(queryParams);
+          return exportFtmsorderbillscars(queryParams);
         })
         .then((response) => {
           this.download(response.msg);