QuKatie 3 anni fa
parent
commit
922d913344

+ 4 - 4
src/components/fee-info/main.vue

@@ -132,7 +132,7 @@
             oninput='this.value=this.value.replace(/[^(\d.)]/g,"").replace(/^(\d+)\.(\d\d\d\d\d\d).*$/, "$1.$2")'
             @input="countChange(row)"
           ></el-input>
-          <span v-else>{{ row.quantity | IntegerFormat }}</span>
+          <span v-else>{{ row.quantity | decimalFormat }}</span>
         </template>
         <template slot="amount" slot-scope="{ row }">
           <span>{{ row.amount | micrometerFormat }}</span>
@@ -379,11 +379,11 @@ export default {
       return micrometerFormat(val);
     },
     decimalFormat(num) {
-      return num ? Number(num).toFixed(2) : "0.00";
+      return num ? Number(num).toFixed(6) : "0.00";
     },
     IntegerFormat(num) {
       return IntegerFormat(num);
-    }
+    },
   },
   async created() {
     this.feeOption = await this.getColumnData(
@@ -791,7 +791,7 @@ export default {
             });
             //数量总计
             if (item.property == "quantity") {
-              sums[index] = qtySum ? qtySum.toFixed(2) : "0.00";
+              sums[index] = qtySum ? qtySum.toFixed(6) : "0.00";
             }
             //金额总计
             if (item.property == "amount") {

+ 14 - 0
src/router/views/index.js

@@ -387,6 +387,20 @@ export default [{
       component: () => import( /* webpackChunkName: "views" */ '@/views/basicData/portinformation/index')
     }]
   },
+  //汇率管理
+  {
+    path: '/basicData/rateManagement/index',
+    component: Layout,
+    hidden: true,
+    children: [{
+      path: '/basicData/rateManagement/index',
+      name: '汇率管理',
+      meta: {
+        keepAlive: true,
+      },
+      component: () => import( /* webpackChunkName: "views" */ '@/views/basicData/rateManagement/index')
+    }]
+  },
   //产品价格
   {
     path: '/maintenance/priceLibrary/index',

+ 4 - 0
src/util/validate.js

@@ -1,3 +1,7 @@
+//保留两位小数
+export function decimalFormat(num){
+  return num ? Number(num).toFixed(2) : "0.00";
+}
 //数字取整
 export function IntegerFormat(num){
   num=Number(num?num:0)

+ 8 - 1
src/views/basicData/commodityType/detailsPageEdit.vue

@@ -59,7 +59,7 @@
                   placeholder=" "
                   type="tree"
                   size="small"
-                  dataType='string'
+                  dataType="string"
                   :dic="dicData"
                 />
                 <el-input
@@ -318,6 +318,7 @@ import {
 } from "@/api/basicData/customerInformation";
 import userOption from "../customerInformation/configuration/mainList.json";
 import sftOption from "./configuration/specification.json";
+import { mapGetters } from "vuex";
 export default {
   name: "detailsPage",
   data() {
@@ -756,6 +757,9 @@ export default {
           : [];
       });
     }
+    if (!this.permission.goods_gys) {
+      this.basicData.column.splice(this.basicData.column.findIndex(item => item.prop =='corpId'), 1)
+    }
   },
   methods: {
     copyDoc() {
@@ -1011,6 +1015,9 @@ export default {
     backToList() {
       this.$emit("goBack");
     }
+  },
+  computed: {
+    ...mapGetters(["permission"])
   }
 };
 </script>

+ 13 - 0
src/views/basicData/facultyManagement/detailsPage.vue

@@ -343,6 +343,19 @@ export default {
               label: "dictValue",
               value: "dictValue"
             },
+            span: 6
+          },
+          {
+            label: "在职状态",
+            prop: "status",
+            type: "select",
+            dataType: "number",
+            dicUrl:
+              "/api/blade-system/dict-biz/dictionary?code=in_service_status",
+            props: {
+              label: "dictValue",
+              value: "dictKey"
+            },
             row: true,
             span: 6
           },

+ 16 - 1
src/views/basicData/facultyManagement/index.vue

@@ -165,7 +165,7 @@ export default {
       },
       option: {
         searchShow: true,
-        searchMenuSpan: 24,
+        searchMenuSpan: 16,
         align: "center",
         searchSpan: 8,
         border: true,
@@ -287,6 +287,21 @@ export default {
             span: 8
           },
           {
+            label: "在职状态",
+            prop: "status",
+            type: "select",
+            dataType: "number",
+            dicUrl:
+              "/api/blade-system/dict-biz/dictionary?code=in_service_status",
+            props: {
+              label: "dictValue",
+              value: "dictKey"
+            },
+            search: true,
+            width: "100",
+            overHidden: true
+          },
+          {
             label: "联系电话",
             prop: "phone",
             width: "100",

+ 83 - 8
src/views/basicData/salaryConfiguration/index.vue

@@ -21,12 +21,21 @@
       >
         <template slot-scope="{ row }" slot="expand">
           <avue-crud
+            v-show="row.normType == '工资拨付标准'"
             :data="row.itemData"
             :option="itemOption"
             :table-loading="row.itemLoading"
             :cell-style="cellStyle"
             class="itemTable"
           ></avue-crud>
+          <avue-crud
+            v-show="row.normType != '工资拨付标准'"
+            :data="row.itemData"
+            :option="itemOption2"
+            :table-loading="row.itemLoading"
+            :cell-style="cellStyle"
+            class="itemTable"
+          ></avue-crud>
         </template>
         <template slot="menuLeft">
           <el-button
@@ -129,11 +138,10 @@ export default {
             span: 8
           },
           {
-            label: "教师类别",
-            prop: "salaryWithdrawalStandardName",
+            label: "标准类别",
+            prop: "normType",
             type: "select",
-            dicUrl:
-              "/api/blade-system/dict-biz/dictionary?code=Salary_allocation_standard",
+            dicUrl: "/api/blade-system/dict-biz/dictionary?code=norm_type",
             props: {
               label: "dictValue",
               value: "dictValue"
@@ -145,10 +153,11 @@ export default {
             span: 8
           },
           {
-            label: "标准类别",
-            prop: "normType",
+            label: "教师类别",
+            prop: "salaryWithdrawalStandardName",
             type: "select",
-            dicUrl: "/api/blade-system/dict-biz/dictionary?code=norm_type",
+            dicUrl:
+              "/api/blade-system/dict-biz/dictionary?code=Salary_allocation_standard",
             props: {
               label: "dictValue",
               value: "dictValue"
@@ -229,6 +238,72 @@ export default {
           {
             label: "分类明细",
             prop: "parameter",
+            overHidden: true,
+            width: 80
+          },
+          {
+            label: "工资标准",
+            prop: "salary",
+            overHidden: true,
+            width: 80
+          },
+           {
+            label: "工作量工资标准",
+            prop: "workloadSalaryName",
+            overHidden: true,
+            width: 120
+          },
+          {
+            label: "虚拟工作量工资标准",
+            prop: "virtualWorkloadSalary",
+            overHidden: true,
+            width: 130
+          },
+          {
+            label: "双休日工作量工资标准",
+            prop: "doubleCease",
+            overHidden: true,
+            width: 150
+          },
+          {
+            label: "日常考核工资标准",
+            prop: "dailyAssessmentCriteriaName",
+            overHidden: true,
+            width: 120
+          },
+          {
+            label: "虚拟双休日工作量工资标准",
+            prop: "virtualDoubleCease",
+            overHidden: true,
+            width: 170
+          },
+          {
+            label: "虚拟日常考核标准",
+            prop: "virtualDailyAssessmentCriteria",
+            overHidden: true,
+            width: 120
+          },
+          {
+            label: "学期绩效工资标准",
+            prop: "termPerformanceSalaryName",
+            overHidden: true,
+            width: 120
+          },
+          {
+            label: "备注",
+            prop: "remarks",
+            overHidden: true
+          }
+        ]
+      },
+      itemOption2: {
+        align: "center",
+        header: false,
+        menu: false,
+        column: [
+          {
+            label: "分类明细",
+            prop: "parameter",
             overHidden: true
           },
           {
@@ -377,7 +452,7 @@ export default {
   height: 94.2vh;
 }
 ::v-deep .el-table__expanded-cell[class*="cell"] {
-  padding: 0px;
+  padding:0px 0px 0px 136px !important;
 }
 .itemTable ::v-deep .el-table {
   width: 738px;

+ 0 - 3
src/views/exportTrade/customerInquiry/detailsPage.vue

@@ -1049,9 +1049,6 @@ export default {
     }
   },
   methods: {
-    text() {
-      console.log("111");
-    },
     cellStyle() {
       return "padding:0;height:40px;";
     },

+ 1 - 1
src/views/salaryManagement/highSchool/detailsPage.vue

@@ -112,7 +112,7 @@
               size="small"
               @click.stop="calculate2()"
               :disabled="detailData.status == 1"
-              >导入工资标准
+              >导入职工信息
             </el-button>
             <el-button
               type="info"

+ 1 - 1
src/views/salaryManagement/juniorhighSchool/detailsPage.vue

@@ -112,7 +112,7 @@
               size="small"
               @click.stop="calculate2()"
               :disabled="detailData.status == 1"
-              >导入工资标准
+              >导入职工信息
             </el-button>
             <el-button
               type="info"

+ 1 - 1
src/views/salaryManagement/logisticsDepartment/detailsPage.vue

@@ -112,7 +112,7 @@
               size="small"
               @click.stop="calculate2()"
               :disabled="detailData.status == 1"
-              >导入工资标准
+              >导入职工信息
             </el-button>
             <el-button
               type="info"

+ 1 - 1
src/views/salaryManagement/primarySchool/detailsPage.vue

@@ -112,7 +112,7 @@
               size="small"
               @click.stop="calculate2()"
               :disabled="detailData.status == 1"
-              >导入工资标准
+              >导入职工信息
             </el-button>
             <el-button
               type="info"