Bläddra i källkod

修改接口方法,优化界面

阿伏兔 4 år sedan
förälder
incheckning
ec9499afb3

+ 3 - 5
src/views/basicdata/corps/index.vue

@@ -944,11 +944,8 @@ export default {
         updateTime: null,
         remark: null,
       };
-      this.resetForm("form");
-    },
-    // 从表重置
-    contList() {
       this.contactList = [];
+      this.resetForm("form");
     },
     // 状态修改
     handleStatusChange(row) {
@@ -976,6 +973,7 @@ export default {
     /** 重置按钮操作 */
     resetQuery() {
       this.resetForm("queryForm");
+      this.contactList = [];
       this.handleQuery();
     },
     // 多选框选中数据
@@ -988,7 +986,7 @@ export default {
     handleAdd() {
       this.reset();
       this.query();
-      this.contList();
+      this.contactList = [];
       if (Cookies.get("sysType") == 2) {
         this.form.fTypeid = [this.fTypeidOptions[0].dictValue];
         this.disCorps = true;

+ 2 - 2
src/views/login.vue

@@ -70,8 +70,8 @@ export default {
       company_name:'建桥物流',
       cookiePassword: "",
       loginForm: {
-        username: "admin",
-        password: "admin123",
+        username: "",
+        password: "",
         rememberMe: false,
         code: "",
         uuid: ""

+ 2 - 1
src/views/system/user/index.vue

@@ -220,7 +220,8 @@
             </el-form-item>
           </el-col>
           <el-col :span="12">
-            <el-form-item label="邮箱" prop="email">
+<!--            <el-form-item label="邮箱" prop="email">-->
+            <el-form-item label="邮箱">
               <el-input v-model="form.email" placeholder="请输入邮箱" maxlength="50" />
             </el-form-item>
           </el-col>

+ 23 - 23
src/views/track/cabinet/AddOrUpdate.vue

@@ -1058,26 +1058,26 @@
       </el-collapse>
     </span>
     <span slot="footer" class="dialog-footer">
-      <el-button type="primary" @click="submitForm('acceptDate')"
+      <el-button type="primary" @click="submitForm('acceptDate')" v-hasPermi="['fleet:vehicleStatus:edit']"
         >接 单</el-button
       >
-      <el-button type="primary" @click="submitForm('loadDate')"
+      <el-button type="primary" @click="submitForm('loadDate')" v-hasPermi="['fleet:vehicleStatus:edit']"
         >提 箱</el-button
       >
-      <el-button type="primary" @click="submitForm('mdLoadDate')"
+      <el-button type="primary" @click="submitForm('mdLoadDate')" v-hasPermi="['fleet:vehicleStatus:edit']"
         >装卸货</el-button
       >
-      <el-button type="primary" @click="submitForm('unLoadDate')"
+      <el-button type="primary" @click="submitForm('unLoadDate')" v-hasPermi="['fleet:vehicleStatus:edit']"
         >还卸柜</el-button
       >
-      <el-button type="primary" @click="submitForm('waybillDate')"
+      <el-button type="primary" @click="submitForm('waybillDate')" v-hasPermi="['fleet:vehicleStatus:edit']"
         >回 单</el-button
       >
-      <el-button type="primary" @click="driversubmitForm"
+      <el-button type="primary" @click="driversubmitForm" v-hasPermi="['fleet:vehicleStatus:edit']"
         >提 交</el-button
       >
-      <el-button type="success" @click="submitAllowChanges">修 改</el-button>
-      <el-button type="info" @click="submitSave">保 存</el-button>
+      <el-button type="success" @click="submitAllowChanges" v-hasPermi="['fleet:vehicleStatus:edit']">修 改</el-button>
+      <el-button type="info" @click="submitSave" v-hasPermi="['fleet:vehicleStatus:edit']">保 存</el-button>
       <!-- <el-button type="warning" @click="submitRetreat">撤 回</el-button> -->
       <el-button @click="showDialog = false">取 消</el-button>
     </span>
@@ -1330,7 +1330,7 @@ export default {
           fTaxrate: 3,
           fAmount: this.form.oilAmt,
           fExrate: 1,
-          remarks: this.form.costRemarks,
+          remarks: null,
         });
       }
       if (this.form.driverbonus > 0) {
@@ -1346,7 +1346,7 @@ export default {
           fTaxrate: 3,
           fAmount: this.form.driverbonus,
           fExrate: 1,
-          remarks: this.form.costRemarks,
+          remarks: null,
         });
       }
       if (this.form.costOth > 0) {
@@ -1362,7 +1362,7 @@ export default {
           fTaxrate: 3,
           fAmount: this.form.costOth,
           fExrate: 1,
-          remarks: this.form.costRemarks,
+          remarks: null,
         });
       }
       if (this.form.costomAmt03 > 0) {
@@ -1379,7 +1379,7 @@ export default {
             fTaxrate: 3,
             fAmount: this.form.costomAmt03,
             fExrate: 1,
-            remarks: this.form.costomStr02,
+            remarks: null,
           },
           {
             actId: "1080",
@@ -1393,7 +1393,7 @@ export default {
             fTaxrate: 3,
             fAmount: this.form.costomAmt03,
             fExrate: 1,
-            remarks: this.form.costomStr02,
+            remarks: null,
           }
         );
       }
@@ -1411,7 +1411,7 @@ export default {
             fTaxrate: 3,
             fAmount: this.form.costomAmt04,
             fExrate: 1,
-            remarks: this.form.costomStr02,
+            remarks: null,
           },
           {
             actId: "1080",
@@ -1425,7 +1425,7 @@ export default {
             fTaxrate: 3,
             fAmount: this.form.costomAmt04,
             fExrate: 1,
-            remarks: this.form.costomStr02,
+            remarks: null,
           }
         );
       }
@@ -1443,7 +1443,7 @@ export default {
             fTaxrate: 3,
             fAmount: this.form.costomAmt02,
             fExrate: 1,
-            remarks: this.form.costomStr02,
+            remarks: null,
           },
           {
             actId: "1080",
@@ -1457,7 +1457,7 @@ export default {
             fTaxrate: 3,
             fAmount: this.form.costomAmt02,
             fExrate: 1,
-            remarks: this.form.costomStr02,
+            remarks: null,
           }
         );
       }
@@ -1475,7 +1475,7 @@ export default {
             fTaxrate: 3,
             fAmount: this.form.costomAmt05,
             fExrate: 1,
-            remarks: this.form.costomStr01,
+            remarks: null,
           },
           {
             actId: "1080",
@@ -1489,7 +1489,7 @@ export default {
             fTaxrate: 3,
             fAmount: this.form.costomAmt05,
             fExrate: 1,
-            remarks: this.form.costomStr01,
+            remarks: null,
           }
         );
       }
@@ -1507,7 +1507,7 @@ export default {
             fTaxrate: 3,
             fAmount: this.form.costomAmt06,
             fExrate: 1,
-            remarks: this.form.costomStr01,
+            remarks: null,
           },
           {
             actId: "1080",
@@ -1521,7 +1521,7 @@ export default {
             fTaxrate: 3,
             fAmount: this.form.costomAmt06,
             fExrate: 1,
-            remarks: this.form.costomStr01,
+            remarks: null,
           }
         );
       }
@@ -1539,7 +1539,7 @@ export default {
             fTaxrate: 3,
             fAmount: this.form.costomAmt01,
             fExrate: 1,
-            remarks: this.form.costomStr01,
+            remarks: null,
           },
           {
             actId: "1080",
@@ -1553,7 +1553,7 @@ export default {
             fTaxrate: 3,
             fAmount: this.form.costomAmt01,
             fExrate: 1,
-            remarks: this.form.costomStr01,
+            remarks: null,
           }
         );
       }

+ 4 - 41
src/views/track/cabinet/index.vue

@@ -188,26 +188,6 @@
       </el-collapse-transition>
     </el-form>
     <el-row :gutter="10" class="mb8">
-      <!-- <el-col :span="1.5">
-        <el-button
-          type="primary"
-          icon="el-icon-plus"
-          size="mini"
-          @click="handleAdd"
-          v-hasPermi="['fleet:plans:add']"
-          >新增</el-button
-        >
-      </el-col> -->
-      <el-col :span="1.5">
-        <el-button
-          type="warning"
-          icon="el-icon-download"
-          size="mini"
-          @click="handleExport"
-          v-hasPermi="['fleet:ftmsorderbillscars:export']"
-          >导出</el-button
-        >
-      </el-col>
       <el-col :span="1.5">
         <!--        <el-button size="mini" @click="handleQuery(null)">全 部</el-button>-->
         <el-badge
@@ -236,7 +216,7 @@
           style="margin-right: 10px"
         >
           <el-button size="mini" @click="handleQuery('acceptDate')"
-            >已接单</el-button
+            >未提箱</el-button
           >
         </el-badge></el-col
       >
@@ -246,7 +226,7 @@
           type="warning"
           style="margin-right: 10px"
           ><el-button size="mini" @click="handleQuery('loadDate')"
-            >已提箱</el-button
+            >未装卸货</el-button
           ></el-badge
         ></el-col
       >
@@ -258,24 +238,16 @@
           style="margin-right: 10px"
         >
           <el-button size="mini" @click="handleQuery('mdLoadDate')"
-            >装卸货</el-button
+            >未还卸柜</el-button
           ></el-badge
         >
       </el-col>
       <el-col :span="1.5"
         ><el-badge
-          :value="buttonValue.unLoadDate"
           type="warning"
           style="margin-right: 10px"
           ><el-button size="mini" @click="handleQuery('unLoadDate')"
-            >还卸柜</el-button
-          ></el-badge
-        ></el-col
-      >
-      <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
       >
@@ -420,15 +392,6 @@
             @click="handleUpdate(scope.row)"
             >查看</el-button
           >
-          <!-- <el-button
-            v-if="scope.row.billStatus != 6"
-            size="mini"
-            type="text"
-            icon="el-icon-edit"
-            @click="handleUpdate(scope.row)"
-            v-hasPermi="['fleet:plans:edit']"
-            >修改</el-button
-          > -->
         </template>
       </el-table-column>
     </el-table>