|
@@ -43,18 +43,6 @@
|
|
|
<year-month-select v-model="params.yearAndMonth" :showAllYear="false"></year-month-select>
|
|
<year-month-select v-model="params.yearAndMonth" :showAllYear="false"></year-month-select>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
-
|
|
|
|
|
- <!-- <template slot="technicianId" slot-scope="{ row }">
|
|
|
|
|
- <span>{{ row.name }}</span>
|
|
|
|
|
- </template>
|
|
|
|
|
-
|
|
|
|
|
- <template slot="gsTotalSearch">
|
|
|
|
|
- <div style="display: flex; align-items: center;">
|
|
|
|
|
- <avue-input-number v-model="params.gsTotalStart" :min="0"></avue-input-number>
|
|
|
|
|
- <span style="width: 70px; text-align: center;">至</span>
|
|
|
|
|
- <avue-input-number v-model="params.gsTotalEnd" :min="0"></avue-input-number>
|
|
|
|
|
- </div>
|
|
|
|
|
- </template> -->
|
|
|
|
|
|
|
|
|
|
</avue-crud>
|
|
</avue-crud>
|
|
|
|
|
|
|
@@ -113,15 +101,6 @@ export default window.$crudCommon({
|
|
|
this.option.column = deepClone(this.defaultColumns);
|
|
this.option.column = deepClone(this.defaultColumns);
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
- // handleBeforeOpen(done, type) {
|
|
|
|
|
- // this.option.column.forEach(item => {
|
|
|
|
|
- // if (item.prop == "technicianId") {
|
|
|
|
|
- // item.dicUrl = '/api/kd-scientific/technician/page';
|
|
|
|
|
- // item.dicQuery.yearAndMonth = this.params.yearAndMonth;
|
|
|
|
|
- // }
|
|
|
|
|
- // });
|
|
|
|
|
- // done();
|
|
|
|
|
- // },
|
|
|
|
|
refreshTableCol(yearAndMonth) {
|
|
refreshTableCol(yearAndMonth) {
|
|
|
let yearMonth = moment(yearAndMonth).format("YYYY-MM").split("-");
|
|
let yearMonth = moment(yearAndMonth).format("YYYY-MM").split("-");
|
|
|
const monthDays = getMonthDatesWithMarkers(Number(yearMonth[0]), Number(yearMonth[1]));
|
|
const monthDays = getMonthDatesWithMarkers(Number(yearMonth[0]), Number(yearMonth[1]));
|
|
@@ -225,7 +204,7 @@ export default window.$crudCommon({
|
|
|
res: ({ data }) => {
|
|
res: ({ data }) => {
|
|
|
let newList = [];
|
|
let newList = [];
|
|
|
data.records.forEach((item) => {
|
|
data.records.forEach((item) => {
|
|
|
- let objData = { ...item, id: item.technicianId };
|
|
|
|
|
|
|
+ let objData = { ...item, unicode: item.technicianId };
|
|
|
item.dailyAttendances.forEach(hourItem => {
|
|
item.dailyAttendances.forEach(hourItem => {
|
|
|
objData[hourItem.workDate] = (hourItem.workHours || 0).toFixed(1);
|
|
objData[hourItem.workDate] = (hourItem.workHours || 0).toFixed(1);
|
|
|
});
|
|
});
|