驳回提交2

This commit is contained in:
zzyuan 2024-12-24 16:38:12 +08:00
parent a646db1a5c
commit ca722cad9e
4 changed files with 35 additions and 62 deletions

View File

@ -31,7 +31,6 @@ export function getMaCodeInfo(query) {
}) })
} }
//任务 详情
export function bindAllData(data) { export function bindAllData(data) {
return request({ return request({
url: '/material/purchase/bind/bind', url: '/material/purchase/bind/bind',
@ -39,6 +38,14 @@ export function bindAllData(data) {
data: data, data: data,
}) })
} }
//绑定驳回
export function rejectBind(data) {
return request({
url: '/material/purchase/bind/reject',
method: 'post',
data: data,
})
}
//二级页面 详情 //二级页面 详情
export function getListDetailById(query) { export function getListDetailById(query) {
@ -58,46 +65,5 @@ export function exportNewBuy(purchaseId) {
responseType: 'blob', responseType: 'blob',
}) })
} }
//人员 详情
export function getNoticePeople(query) {
return request({
url: '/material/purchase_notice_person/list',
method: 'get',
params: query,
})
}
// 人员--删除
export function delPeople(ids) {
return request({
url: '/material/purchase_notice_person/' + ids,
method: 'post',
})
}
// 人员管理--新增
export function addNoticeUser(data) {
return request({
url: '/material/purchase_notice_person/batchAddNoticePerson',
method: 'post',
data: data,
})
}
// 仓库管理--修改
export function bmNoticeInfo(data) {
return request({
url: '/material/purchase_notice_person/batchSendSms',
method: 'put',
data: data,
})
}
//机具类型管理列表信息
export function getUserAll() {
return request({
url: '/system/user/list',
method: 'get',
})
}

View File

@ -209,10 +209,10 @@
/> />
<el-table-column label="操作" align="center" width="180" v-if="!isView"> <el-table-column label="操作" align="center" width="180" v-if="!isView">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button size="mini" type="success" @click="pass(scope.row)" v-if="scope.row.status==2"> <el-button size="mini" type="success" @click="pass(scope.row)" v-if="scope.row.status==2||scope.row.status==13||scope.row.status==14">
合格 合格
</el-button> </el-button>
<el-button size="mini" type="danger" @click="reject(scope.row)" v-if="scope.row.status==2"> <el-button size="mini" type="danger" @click="reject(scope.row)" v-if="scope.row.status==2||scope.row.status==13||scope.row.status==14">
不合格 不合格
</el-button> </el-button>
</template> </template>
@ -413,7 +413,7 @@ export default {
// //
selectable(row) { selectable(row) {
console.log(row) console.log(row)
if (row.status == 2) { if (row.status == 2||row.status == 13 ||row.status == 14) {
return true return true
} else { } else {
return false return false

View File

@ -402,6 +402,7 @@ import {
getNewBuyBindListDetailsApi, getNewBuyBindListDetailsApi,
getMaCodeInfo, getMaCodeInfo,
exportNewBuy, exportNewBuy,
rejectBind
} from "@/api/purchase/goodsBind"; } from "@/api/purchase/goodsBind";
import { downloadFile } from '@/utils/download' import { downloadFile } from '@/utils/download'
import { getToken } from "@/utils/auth"; import { getToken } from "@/utils/auth";
@ -601,12 +602,15 @@ export default {
}, },
// //
handleReject(row) { handleReject(row) {
this.$confirm("是否确定驳回", "提示", { this.$modal
confirmButtonText: "确定", .confirm("是否确定驳回?")
cancelButtonText: "取消", .then(function () {
type: "warning", return rejectBind({"purchaseId":row.id})
}) })
.then(() => {}) .then(() => {
this.getCodeList();
this.$modal.msgSuccess("驳回成功");
})
.catch(() => {}); .catch(() => {});
}, },

View File

@ -184,7 +184,7 @@
size="mini" size="mini"
type="danger" v-if="row.taskStatusName=='未完成'" type="danger" v-if="row.taskStatusName=='未完成'"
icon="el-icon-close" icon="el-icon-close"
@click="handleNotice(row)" @click="handleReject(row)"
>驳回</el-button >驳回</el-button
> >
</template> </template>
@ -202,7 +202,7 @@
</template> </template>
<script> <script>
import { getNewBuyBindListApi } from '@/api/purchase/goodsBind' import { getNewBuyBindListApi,rejectBind } from '@/api/purchase/goodsBind'
export default { export default {
name: 'Home', name: 'Home',
@ -277,14 +277,17 @@ export default {
this.$emit('openBindTools', row.taskId, row.id, 2) this.$emit('openBindTools', row.taskId, row.id, 2)
}, },
// //
handleNotice(row) { handleReject(row) {
this.$confirm('是否确定驳回', '提示', { this.$modal
confirmButtonText: '确定', .confirm("是否确定驳回?")
cancelButtonText: '取消', .then(function () {
type: 'warning', return rejectBind({"taskId":row.taskId})
}) })
.then(() => {}) .then(() => {
.catch(() => {}) this.getList();
this.$modal.msgSuccess("驳回成功");
})
.catch(() => {});
}, },
// //
onDownloadQr() { onDownloadQr() {