QuKatie 3 лет назад
Родитель
Сommit
ab994bd299

+ 2 - 1
src/router/views/index.js

@@ -8,7 +8,8 @@ export default [{
       path: 'index',
       name: '首页',
       meta: {
-        i18n: 'dashboard'
+        i18n: 'dashboard',
+        keepAlive: true,
       },
       component: () =>
         import( /* webpackChunkName: "views" */ '@/views/wel/index')

+ 5 - 7
src/views/exportTrade/customerInquiry/detailsPage.vue

@@ -1082,7 +1082,7 @@ export default {
           this.oldExchange = this.deepClone(data.receivableParities);
         })
         .finally(() => {
-          if (this.data.length > 0&&status=='currency') {
+          if (this.data.length > 0 && status == "currency") {
             this.data.forEach(e => {
               e.freight = transformCal(
                 e.freight,
@@ -1160,12 +1160,10 @@ export default {
       this.data[row.index].corpName = row.code;
     },
     priceTermsChange(row) {
-      if (!this.form.priceTermsDescription) {
-        if (row == "FOB" || row == "EXW") {
-          this.form.priceTermsDescription = this.form.portOfLoad;
-        } else {
-          this.form.priceTermsDescription = this.form.portOfDestination;
-        }
+      if (row == "FOB" || row == "EXW") {
+        this.form.priceTermsDescription = this.form.portOfLoad;
+      } else {
+        this.form.priceTermsDescription = this.form.portOfDestination;
       }
     },
     paymentTypeChange(row) {

+ 6 - 8
src/views/exportTrade/salesContract/detailsPage.vue

@@ -1239,12 +1239,10 @@ export default {
       this.data[row.index].corpName = row.code;
     },
     priceTermsChange(row) {
-      if (!this.form.priceTermsDescription) {
-        if (row == "FOB" || row == "EXW") {
-          this.form.priceTermsDescription = this.form.portOfLoad;
-        } else {
-          this.form.priceTermsDescription = this.form.portOfDestination;
-        }
+      if (row == "FOB" || row == "EXW") {
+        this.form.priceTermsDescription = this.form.portOfLoad;
+      } else {
+        this.form.priceTermsDescription = this.form.portOfDestination;
       }
     },
     corpAttnChange() {
@@ -1273,7 +1271,7 @@ export default {
           this.oldExchange = this.deepClone(data.receivableParities);
         })
         .finally(() => {
-          if (this.data.length > 0&&status=='currency') {
+          if (this.data.length > 0 && status == "currency") {
             this.data.forEach(e => {
               e.freight = transformCal(
                 e.freight,
@@ -1590,7 +1588,7 @@ export default {
     },
     currencyChange() {
       if (this.form.currency && this.form.businesDate) {
-        this.getParities('currency');
+        this.getParities("currency");
       }
     },
     exchangeRateChange(row) {

+ 2 - 0
src/views/statisticAnalysis/payment/index.vue

@@ -274,6 +274,8 @@ export default {
         this.tradeType = "GN";
       } else if (sysType == 1) {
         this.tradeType = "XX";
+      }else if(sysType == 999){
+        this.tradeType = "ADMIN";
       }
     },
     onLoad(page, params) {

+ 2 - 0
src/views/wel/components/audit-data.vue

@@ -87,6 +87,8 @@ export default {
         this.tradeType = "GN";
       } else if (sysType == 1) {
         this.tradeType = "XX";
+      }else if(sysType == 999){
+        this.tradeType = "ADMIN";
       }
     },
     getCheckDate() {

+ 2 - 0
src/views/wel/components/realtime-data.vue

@@ -193,6 +193,8 @@ export default {
         this.tradeType = "GN";
       } else if (sysType == 1) {
         this.tradeType = "XX";
+      }else if(sysType == 999){
+        this.tradeType = "ADMIN";
       }
     },
     getrealTimeData() {

+ 2 - 0
src/views/wel/components/sales-reached.vue

@@ -74,6 +74,8 @@ export default {
         this.tradeType = "GN";
       } else if (sysType == 1) {
         this.tradeType = "XX";
+      } else if (sysType == 999) {
+        this.tradeType = "ADMIN";
       }
     },
     getmonthSales() {

+ 4 - 2
src/views/wel/components/sales-trend.vue

@@ -99,11 +99,13 @@ export default {
         this.tradeType = "GN";
       } else if (sysType == 1) {
         this.tradeType = "XX";
+      } else if (sysType == 999) {
+        this.tradeType = "ADMIN";
       }
     },
     getsalesTrend() {
       this.loading = true;
-      this.moneyList=[]
+      this.moneyList = [];
       salesTrend({
         tradeType: this.tradeType,
         billType: "XS",
@@ -120,7 +122,7 @@ export default {
         });
     },
     refresh() {
-      this.init()
+      this.init();
     },
     polylineData() {
       let polylineData = this.$echarts.init(

+ 71 - 28
src/views/wel/home/tongjiSchool.vue

@@ -3,12 +3,36 @@
     <basic-container>
       <div class="container" style="height: 400px;">
         <div class="container-items">
-          <but-card iconName="el-icon-edit-outline" name="小学部工资" />
-          <but-card iconName="el-icon-edit-outline" name="初中部工资" />
-          <but-card iconName="el-icon-edit-outline" name="高中部工资" />
-          <but-card iconName="el-icon-edit-outline" name="后勤工资" />
-          <but-card iconName="el-icon-edit-outline" name="添加教师" />
-          <but-card iconName="el-icon-edit-outline" name="添加后勤" />
+          <but-card
+            iconName="el-icon-edit-outline"
+            name="小学部工资"
+            @click.native="inPage(1)"
+          />
+          <but-card
+            iconName="el-icon-edit-outline"
+            name="初中部工资"
+            @click.native="inPage(2)"
+          />
+          <but-card
+            iconName="el-icon-edit-outline"
+            name="高中部工资"
+            @click.native="inPage(3)"
+          />
+          <but-card
+            iconName="el-icon-edit-outline"
+            name="后勤部工资"
+            @click.native="inPage(4)"
+          />
+          <but-card
+            iconName="el-icon-edit-outline"
+            name="添加教师"
+            @click.native="inPage(5)"
+          />
+          <but-card
+            iconName="el-icon-edit-outline"
+            name="添加后勤"
+            @click.native="inPage(6)"
+          />
         </div>
         <index-card title="教师工资总体数据" iconName="el-icon-view">
           <div slot="select">
@@ -102,6 +126,22 @@
           <el-select
             slot="content"
             size="mini"
+            v-model="salaryType3"
+            placeholder="请选择"
+            style="margin-right:10px"
+            @change="getsalaryDataChain"
+          >
+            <el-option
+              v-for="item in options"
+              :key="item.value"
+              :label="item.label"
+              :value="item.value"
+            >
+            </el-option>
+          </el-select>
+          <el-select
+            slot="content"
+            size="mini"
             v-model="moon"
             placeholder="请选择月份"
             @change="moonChange"
@@ -132,21 +172,6 @@
             >
             </el-option>
           </el-select>
-           <el-select
-            slot="content"
-            size="mini"
-            v-model="salaryType3"
-            placeholder="请选择"
-            @change="getsalaryDataChain"
-          >
-            <el-option
-              v-for="item in options"
-              :key="item.value"
-              :label="item.label"
-              :value="item.value"
-            >
-            </el-option>
-          </el-select>
         </div>
 
         <div slot="content" style="height:450px" id="commoDity2"></div>
@@ -157,11 +182,7 @@
 </template>
 
 <script>
-import {
-  salaryStatistics,
-  salaryData,
-  salaryDataChain
-} from "@/api/wel";
+import { salaryStatistics, salaryData, salaryDataChain } from "@/api/wel";
 import { mapGetters } from "vuex";
 import indexCard from "../components/card.vue";
 import butCard from "../components/butCard.vue";
@@ -184,7 +205,7 @@ export default {
       annual3: "2022",
       salaryType: "",
       salaryType2: "",
-      salaryType3:"",
+      salaryType3: "",
       isHeight: {},
       options: [
         {
@@ -331,6 +352,28 @@ export default {
     ...mapGetters(["userInfo"])
   },
   methods: {
+    inPage(type) {
+      switch (type) {
+        case 1:
+          this.$router.push("/salaryManagement/primarySchool/index");
+          break;
+        case 2:
+          this.$router.push("/salaryManagement/juniorhighSchool/index");
+          break;
+        case 3:
+          this.$router.push("/salaryManagement/highSchool/index");
+          break;
+        case 4:
+          this.$router.push("/salaryManagement/logisticsDepartment/index");
+          break;
+        case 5:
+          this.$router.push("/basicData/facultyManagement/index");
+          break;
+        case 6:
+          this.$message.error("暂无此页面");
+          break;
+      }
+    },
     getsalaryStatistics() {
       this.fsalaryList = [];
       this.studentNumberList = [];
@@ -364,7 +407,7 @@ export default {
         annual: this.annual3,
         moon: this.moon,
         semester: this.semester,
-        salaryType:this.salaryType3
+        salaryType: this.salaryType3
       })
         .then(res => {
           let data = res.data.data;