新购增加阶段stage

This commit is contained in:
syruan 2024-12-23 16:23:55 +08:00 committed by syruan
parent 916932f5fa
commit c398a0de6b
4 changed files with 53 additions and 50 deletions

View File

@ -82,10 +82,10 @@
<el-table-column label="物资厂家" align="center" prop="supplier" :show-overflow-tooltip="true"/>
<el-table-column label="操作人" align="center" prop="createBy" :show-overflow-tooltip="true"/>
<el-table-column label="操作时间" align="center" prop="createTime" width="150" :show-overflow-tooltip="true"/>
<el-table-column label="状态" align="center" prop="taskStatus" :show-overflow-tooltip="true">
<template slot-scope="scope">
<dict-tag :options="dict.type.purchase_task_status" :value="scope.row.taskStatus"/>
</template>
<el-table-column label="状态" align="center" prop="taskStatusName" :show-overflow-tooltip="true">
<!-- <template slot-scope="scope">-->
<!-- <dict-tag :options="dict.type.purchase_task_status" :value="scope.row.taskStatus"/>-->
<!-- </template>-->
</el-table-column>
<el-table-column label="备注" align="center" prop="remark" :show-overflow-tooltip="true"/>
<el-table-column label="操作" align="center" width="250">
@ -346,7 +346,7 @@
this.queryParams.startTime=undefined
this.queryParams.endTime=undefined
}
// this.queryParams.taskStatus="2"
this.queryParams.taskStage= 2
this.queryParams.statusList=[2,12]
getPurchaseList(this.queryParams).then(response => {
this.tableList = response.data.rows;
@ -437,7 +437,7 @@
handleExport() {
this.download(
"/material/purchase_check_info/export",
{ ...this.queryParams,statusList:[2,12] },
{ ...this.queryParams,statusList:[2,12],taskStage: 2 },
`新购到货验收_${new Date().getTime()}.xlsx`
);
},

View File

@ -164,15 +164,15 @@
<el-table-column
label="状态"
align="center"
prop="taskStatus"
prop="taskStatusName"
:show-overflow-tooltip="true"
>
<template slot-scope="scope">
<dict-tag
:options="dict.type.purchase_task_status"
:value="scope.row.taskStatus"
/>
</template>
<!-- <template slot-scope="scope">-->
<!-- <dict-tag-->
<!-- :options="dict.type.purchase_task_status"-->
<!-- :value="scope.row.taskStatus"-->
<!-- />-->
<!-- </template>-->
<!-- <template slot-scope="scope">
<span v-if="scope.row.taskStatus==0">待提交</span>
<span v-if="scope.row.taskStatus==1">待通知</span>
@ -651,6 +651,7 @@ export default {
pageSize: this.queryParams.pageSize,
pageNum: this.queryParams.pageNum,
statusList: [1],
taskStage: 1,
};
getListNewBuy(this.addDateRange(params)).then((response) => {
this.typeList = response.data.rows;
@ -889,7 +890,7 @@ export default {
handleExport() {
this.download(
"/material/purchase_check_info/export",
{ ...this.queryParams,statusList: [1] },
{ ...this.queryParams,statusList: [1],taskStage: 1 },
`新购到货_${new Date().getTime()}.xlsx`
);
},

View File

@ -128,13 +128,13 @@
prop="createTime" width="150"
show-overflow-tooltip
/>
<el-table-column label="状态" align="center" show-overflow-tooltip>
<template slot-scope="{ row }">
<dict-tag
:value="row.taskStatus"
:options="dict.type.purchase_task_status"
/>
</template>
<el-table-column label="状态" align="center" prop="taskStatusName" show-overflow-tooltip>
<!-- <template slot-scope="{ row }">-->
<!-- <dict-tag-->
<!-- :value="row.taskStatus"-->
<!-- :options="dict.type.purchase_task_status"-->
<!-- />-->
<!-- </template>-->
</el-table-column>
<el-table-column
@ -230,6 +230,7 @@ export default {
async getList() {
this.loading = true
this.queryParams.statusList=[3,13]
this.queryParams.taskStage = 3
const res = await getNewBuyBindListApi(this.queryParams)
this.bindList = res.data.rows
this.total = res.data.total
@ -277,7 +278,7 @@ export default {
console.log('数据导出')
this.download(
"/material/purchase_check_info/export",
{ ...this.queryParams,statusList:[3,13] },
{ ...this.queryParams,statusList:[3,13],taskStage:3 },
`新购到货入库_${new Date().getTime()}.xlsx`
);
},

View File

@ -177,12 +177,12 @@
<el-table-column
label="状态"
align="center"
prop="taskStatus"
prop="taskStatusName"
:show-overflow-tooltip="true"
>
<template slot-scope="scope">
<dict-tag :options="dict.type.purchase_task_status" :value="scope.row.taskStatus"/>
</template>
<!-- <template slot-scope="scope">-->
<!-- <dict-tag :options="dict.type.purchase_task_status" :value="scope.row.taskStatus"/>-->
<!-- </template>-->
</el-table-column>
<el-table-column label="备注" align="center" prop="remark" />
<el-table-column label="操作" align="center" width="250">
@ -390,6 +390,7 @@ export default {
this.queryParams.endTime = undefined
}
this.queryParams.statusList=[3,13,4,14,19]
this.queryParams.taskStage = 4
// this.queryParams.modelName=""
getPurchaseList(this.queryParams).then((response) => {
this.tableList = response.data.rows
@ -473,7 +474,7 @@ export default {
handleExport() {
this.download(
"/material/purchase_check_info/export",
{ ...this.queryParams,statusList:[3,13,4,14,19] },
{ ...this.queryParams,statusList:[3,13,4,14,19],taskStage: 4 },
`新购到货验收_${new Date().getTime()}.xlsx`
);
},