Browse Source

技术人员花名册和技术人员月平均工资参数调整

ljb 11 months ago
parent
commit
48405a0895

+ 2 - 4
src/api/technicianRoster.js

@@ -30,13 +30,11 @@ export const update = (row) => {
 }
 }
 
 
 
 
-export const remove = (ids) => {
+export const remove = (data) => {
   return request({
   return request({
     url: '/api/kd-scientific/technician/remove',
     url: '/api/kd-scientific/technician/remove',
     method: 'post',
     method: 'post',
-    params: {
-      ids,
-    }
+    data
   })
   })
 }
 }
 
 

+ 3 - 4
src/views/technician-month-avg-sales/index.vue

@@ -143,21 +143,20 @@ export default window.$crudCommon({
         }
         }
       });
       });
       this.updatedFormData = {
       this.updatedFormData = {
-        number: this.form.number,
-        identityCard: this.form.identityCard,
+        technicianId: this.form.technicianId,
         yearAndMonth: this.params.yearAndMonth,
         yearAndMonth: this.params.yearAndMonth,
         ...updatedData
         ...updatedData
       };
       };
       callback && callback();
       callback && callback();
     },
     },
     getDelParams(row) {
     getDelParams(row) {
-      return [{ yearAndMonth: this.params.yearAndMonth, number: row.number, identityCard: row.identityCard }]
+      return [{ yearAndMonth: this.params.yearAndMonth, technicianId: row.technicianId }]
     },
     },
     getBatchDelParams() {
     getBatchDelParams() {
       let delArr = [];
       let delArr = [];
       this.data.forEach(item => {
       this.data.forEach(item => {
         if (this.ids.indexOf(item.id) > -1) {
         if (this.ids.indexOf(item.id) > -1) {
-          delArr.push({ yearAndMonth: this.params.yearAndMonth, number: item.number, identityCard: item.identityCard });
+          delArr.push({ yearAndMonth: this.params.yearAndMonth, technicianId: row.technicianId });
         }
         }
       });
       });
       return delArr;
       return delArr;

+ 12 - 0
src/views/technician-roster/index.vue

@@ -124,6 +124,18 @@ export default window.$crudCommon({
       }
       }
       callback && callback();
       callback && callback();
     },
     },
+    getDelParams(row) {
+      return [{ id: row.id, yearAndMonth: this.params.yearAndMonth }];
+    },
+    getBatchDelParams() {
+      let delArr = [];
+      this.data.forEach(item => {
+        if (this.ids.indexOf(item.id) > -1) {
+          delArr.push({ yearAndMonth: this.params.yearAndMonth, id: item.id });
+        }
+      });
+      return delArr;
+    },
     handleImport() {
     handleImport() {
       let excelParams = { yearAndMonth: this.params.yearAndMonth };
       let excelParams = { yearAndMonth: this.params.yearAndMonth };
       this.$refs.uploadExcelDialog.open('/api/kd-scientific/technician/import', excelParams);
       this.$refs.uploadExcelDialog.open('/api/kd-scientific/technician/import', excelParams);