新购增加阶段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

@ -4,9 +4,9 @@
<el-form-item prop="dateRange"> <el-form-item prop="dateRange">
<el-date-picker <el-date-picker
v-model="dateRange" v-model="dateRange"
type="datetimerange" type="datetimerange"
value-format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss"
range-separator="至" range-separator="至"
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期"> end-placeholder="结束日期">
</el-date-picker> </el-date-picker>
@ -18,7 +18,7 @@
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
maxlength="20" maxlength="20"
/> />
</el-form-item> </el-form-item>
<!-- <el-form-item prop="status"> <!-- <el-form-item prop="status">
<el-select <el-select
@ -49,7 +49,7 @@
size="mini" size="mini"
:disabled="multiple" :disabled="multiple"
@click="acceptancePurchase" @click="acceptancePurchase"
> >
验收合格 验收合格
</el-button> </el-button>
</el-col> </el-col>
@ -58,13 +58,13 @@
<el-button <el-button
type="warning" plain type="warning" plain
icon="el-icon-download" icon="el-icon-download"
size="mini" size="mini"
@click="handleExport" @click="handleExport"
>导出</el-button> >导出</el-button>
</el-col> </el-col>
</el-row> </el-row>
<el-table v-loading="loading" :data="tableList" ref="multipleTable" row-key="taskId" @selection-change="handleSelectionChange" border> <el-table v-loading="loading" :data="tableList" ref="multipleTable" row-key="taskId" @selection-change="handleSelectionChange" border>
<el-table-column type="selection" width="55" align="center" :reserve-selection="true" /> <el-table-column type="selection" width="55" align="center" :reserve-selection="true" />
<el-table-column label="序号" align="center" width="80" type="index"> <el-table-column label="序号" align="center" width="80" type="index">
@ -82,24 +82,24 @@
<el-table-column label="物资厂家" align="center" prop="supplier" :show-overflow-tooltip="true"/> <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="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="createTime" width="150" :show-overflow-tooltip="true"/>
<el-table-column label="状态" align="center" prop="taskStatus" :show-overflow-tooltip="true"> <el-table-column label="状态" align="center" prop="taskStatusName" :show-overflow-tooltip="true">
<template slot-scope="scope"> <!-- <template slot-scope="scope">-->
<dict-tag :options="dict.type.purchase_task_status" :value="scope.row.taskStatus"/> <!-- <dict-tag :options="dict.type.purchase_task_status" :value="scope.row.taskStatus"/>-->
</template> <!-- </template>-->
</el-table-column> </el-table-column>
<el-table-column label="备注" align="center" prop="remark" :show-overflow-tooltip="true"/> <el-table-column label="备注" align="center" prop="remark" :show-overflow-tooltip="true"/>
<el-table-column label="操作" align="center" width="250"> <el-table-column label="操作" align="center" width="250">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
size="mini" size="mini"
@click="handleView(scope.row)" @click="handleView(scope.row)"
> >
查看 查看
</el-button> </el-button>
<el-button <el-button
size="mini" size="mini"
type="primary" type="primary"
@click="handleUpdate(scope.row)" @click="handleUpdate(scope.row)"
> >
验收 验收
</el-button> </el-button>
@ -110,11 +110,11 @@
> >
验收单 验收单
</el-button> </el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<pagination <pagination
v-show="total>0" v-show="total>0"
:total="total" :total="total"
@ -289,9 +289,9 @@
</div> </div>
</template> </template>
<script> <script>
import { getPurchaseList,acceptOuterVerify,getPurchaseCheckFormByTaskId } from "@/api/purchase/goodsAccept"; import { getPurchaseList,acceptOuterVerify,getPurchaseCheckFormByTaskId } from "@/api/purchase/goodsAccept";
import { downloadFile } from '@/utils/download' import { downloadFile } from '@/utils/download'
import { getToken } from '@/utils/auth' import { getToken } from '@/utils/auth'
@ -301,21 +301,21 @@
data() { data() {
return { return {
// //
loading: false, loading: false,
// //
single: true, single: true,
// //
multiple: true, multiple: true,
// //
showSearch: true, showSearch: true,
showHouse: false, showHouse: false,
dateRange:[], dateRange:[],
taskStatusList:[{id:'1',name:'待验收'},{id:'2',name:'验收合格'},{id:'3',name:'验收未通过'}], taskStatusList:[{id:'1',name:'待验收'},{id:'2',name:'验收合格'},{id:'3',name:'验收未通过'}],
ids:[], ids:[],
// //
total: 0, total: 0,
// //
tableList: [], tableList: [],
// //
title: "", title: "",
// //
@ -332,7 +332,7 @@
printTableData: [], printTableData: [],
}; };
}, },
created() { created() {
this.getList(); this.getList();
}, },
methods: { methods: {
@ -346,7 +346,7 @@
this.queryParams.startTime=undefined this.queryParams.startTime=undefined
this.queryParams.endTime=undefined this.queryParams.endTime=undefined
} }
// this.queryParams.taskStatus="2" this.queryParams.taskStage= 2
this.queryParams.statusList=[2,12] this.queryParams.statusList=[2,12]
getPurchaseList(this.queryParams).then(response => { getPurchaseList(this.queryParams).then(response => {
this.tableList = response.data.rows; this.tableList = response.data.rows;
@ -388,7 +388,7 @@
path: '/purchase/goodsAcceptDetail', path: '/purchase/goodsAcceptDetail',
query, query,
}) })
}, },
// //
acceptancePurchase(){ acceptancePurchase(){
let param={ let param={
@ -437,11 +437,11 @@
handleExport() { handleExport() {
this.download( this.download(
"/material/purchase_check_info/export", "/material/purchase_check_info/export",
{ ...this.queryParams,statusList:[2,12] }, { ...this.queryParams,statusList:[2,12],taskStage: 2 },
`新购到货验收_${new Date().getTime()}.xlsx` `新购到货验收_${new Date().getTime()}.xlsx`
); );
}, },
} }
}; };
@ -468,4 +468,4 @@
display: none; display: none;
} }
} }
</style> </style>

View File

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

View File

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

View File

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