|
@@ -68,7 +68,7 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
-import { getLastMonthData } from "@/api/technicianRoster";
|
|
|
|
|
|
|
+import { getLastMonthData } from "@/api/technicianMonthAvgSales";
|
|
|
import {exportBloByPost} from "@/api/common";
|
|
import {exportBloByPost} from "@/api/common";
|
|
|
import YearMonthSelect from "@/components/year-month-select";
|
|
import YearMonthSelect from "@/components/year-month-select";
|
|
|
import moment from "moment";
|
|
import moment from "moment";
|
|
@@ -227,9 +227,6 @@ export default window.$crudCommon({
|
|
|
},
|
|
},
|
|
|
handleTemplate() {
|
|
handleTemplate() {
|
|
|
this.$message.warning("暂未配置模板");
|
|
this.$message.warning("暂未配置模板");
|
|
|
- // exportBlob(`/api/kd-system/region/export-template?${this.website.tokenHeader}=${getToken()}`).then(res => {
|
|
|
|
|
- // downloadXls(res.data, "技术人员花名册.xlsx");
|
|
|
|
|
- // });
|
|
|
|
|
},
|
|
},
|
|
|
handleReadyLastMonData() {
|
|
handleReadyLastMonData() {
|
|
|
this.$confirm("确认读取上年度工资明细吗?", "提示", {
|
|
this.$confirm("确认读取上年度工资明细吗?", "提示", {
|
|
@@ -237,7 +234,6 @@ export default window.$crudCommon({
|
|
|
cancelButtonText: "取消",
|
|
cancelButtonText: "取消",
|
|
|
type: "warning"
|
|
type: "warning"
|
|
|
}).then(() => {
|
|
}).then(() => {
|
|
|
- // let lastMonth = moment(this.params.yearAndMonth).subtract(1, 'months').format("YYYY-MM");
|
|
|
|
|
getLastMonthData({ yearAndMonth: this.params.yearAndMonth}).then(res => {
|
|
getLastMonthData({ yearAndMonth: this.params.yearAndMonth}).then(res => {
|
|
|
let data = res.data;
|
|
let data = res.data;
|
|
|
if (data.success) {
|
|
if (data.success) {
|