|
@@ -3,11 +3,11 @@
|
|
<div>
|
|
<div>
|
|
<BaseHeaderLayout :leftSpan="12">
|
|
<BaseHeaderLayout :leftSpan="12">
|
|
<template slot="left">
|
|
<template slot="left">
|
|
- <ws-button class="but" type="primary" @click="handleAdd()">
|
|
|
|
|
|
+ <ws-button class="but" type="primary" @click="statusquery(1)">
|
|
执行中</ws-button
|
|
执行中</ws-button
|
|
>
|
|
>
|
|
- <ws-button class="but" @click="handleLook()">已完成</ws-button>
|
|
|
|
- <ws-button class="but" @click="handleEdit()">全部任务</ws-button>
|
|
|
|
|
|
+ <ws-button class="but" @click="statusquery(2)">已完成</ws-button>
|
|
|
|
+ <ws-button class="but" @click="statusquery()">全部任务</ws-button>
|
|
</template>
|
|
</template>
|
|
<!-- 接单开始 -->
|
|
<!-- 接单开始 -->
|
|
<template slot="left">
|
|
<template slot="left">
|
|
@@ -193,11 +193,11 @@ export default {
|
|
year: '',
|
|
year: '',
|
|
currentPage: 1,
|
|
currentPage: 1,
|
|
pageSize: 10,
|
|
pageSize: 10,
|
|
- searchType: 1,
|
|
|
|
searchTypeText: '未完成',
|
|
searchTypeText: '未完成',
|
|
searchKeyWord: '',
|
|
searchKeyWord: '',
|
|
contractType: 2,
|
|
contractType: 2,
|
|
tranTypeKey: 2,
|
|
tranTypeKey: 2,
|
|
|
|
+ searchType: 1,
|
|
// 提交类型
|
|
// 提交类型
|
|
submitType: true,
|
|
submitType: true,
|
|
size: 10,
|
|
size: 10,
|
|
@@ -290,14 +290,10 @@ export default {
|
|
},
|
|
},
|
|
})
|
|
})
|
|
},
|
|
},
|
|
-
|
|
|
|
- //已完成
|
|
|
|
- handleLook() {},
|
|
|
|
- //待完成
|
|
|
|
- handleAdd() {},
|
|
|
|
- //全部任务
|
|
|
|
- handleEdit() {},
|
|
|
|
-
|
|
|
|
|
|
+ statusquery(status){
|
|
|
|
+ this.searchType = status
|
|
|
|
+ this.getList()
|
|
|
|
+ },
|
|
dateFormat(fmt, date) {
|
|
dateFormat(fmt, date) {
|
|
let ret
|
|
let ret
|
|
const opt = {
|
|
const opt = {
|
|
@@ -337,6 +333,7 @@ export default {
|
|
automobileList({
|
|
automobileList({
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
contractType: this.contractType,
|
|
contractType: this.contractType,
|
|
|
|
+ searchType: this.searchType,
|
|
currentPage: this.currentPage,
|
|
currentPage: this.currentPage,
|
|
pageSize: this.pageSize,
|
|
pageSize: this.pageSize,
|
|
})
|
|
})
|
|
@@ -346,14 +343,14 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
editClick(row) {
|
|
editClick(row) {
|
|
- var status = ''
|
|
|
|
- if (row.status == '待执行' || row.status == '已完成') {
|
|
|
|
- status = '执行中'
|
|
|
|
- } else if (row.status == '执行中') {
|
|
|
|
- status = '已完成'
|
|
|
|
|
|
+ var feedbackStatus = ''
|
|
|
|
+ if (row.feedbackStatus == '待执行' || row.feedbackStatus == '已完成') {
|
|
|
|
+ feedbackStatus = '执行中'
|
|
|
|
+ } else if (row.feedbackStatus == '执行中') {
|
|
|
|
+ feedbackStatus = '已完成'
|
|
}
|
|
}
|
|
//cancelButtonClass: "btn-custom-cancel"
|
|
//cancelButtonClass: "btn-custom-cancel"
|
|
- this.$confirm(`是否将状态改为${status}`, {
|
|
|
|
|
|
+ this.$confirm(`是否将状态改为${feedbackStatus}`, {
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
@@ -389,6 +386,29 @@ export default {
|
|
this.currentPage = 1
|
|
this.currentPage = 1
|
|
this.getList()
|
|
this.getList()
|
|
},
|
|
},
|
|
|
|
+ async exportlist() {
|
|
|
|
+ const { data } = await export1(
|
|
|
|
+ {
|
|
|
|
+ compId: sessionStorage.getItem('ws-pf_compId'),
|
|
|
|
+ contractType: this.contractType,
|
|
|
|
+ currentPage: this.currentPage,
|
|
|
|
+ pageSize: this.pageSize,
|
|
|
|
+ searchType: this.searchType,
|
|
|
|
+ searchKeyWord: this.searchKeyWord,
|
|
|
|
+ startDate: this.startDate,
|
|
|
|
+ endDate: this.endDate,
|
|
|
|
+ },
|
|
|
|
+ {},
|
|
|
|
+ { responseType: 'blob' }
|
|
|
|
+ ).toPromise()
|
|
|
|
+ downloadFile({
|
|
|
|
+ res: data,
|
|
|
|
+ fileName: `${
|
|
|
|
+ this.date.year + (this.date.month ? `-${this.date.month}` : '')
|
|
|
|
+ }_采购合同`,
|
|
|
|
+ type: 'xls',
|
|
|
|
+ })
|
|
|
|
+ },
|
|
},
|
|
},
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|