新购到货验收-增加验收人
This commit is contained in:
parent
78087fcf71
commit
bedb962335
|
|
@ -68,9 +68,14 @@ export function getPurchaseCheckFormByTaskId(taskId) {
|
|||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// 验收人查询
|
||||
export function getCheckUserList(query) {
|
||||
return request({
|
||||
url: '/material/purchase_check_info/getCheckUserList',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@
|
|||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-row :gutter="10" class="mb8" style="display: flex;align-items: center">
|
||||
<el-col :span="1.5">
|
||||
<el-button type="primary" size="mini" icon="el-icon-back"
|
||||
@click="jumpList">新购到货验收</el-button>
|
||||
|
|
@ -57,6 +57,9 @@
|
|||
<el-button type="danger" icon="el-icon-close" size="mini"
|
||||
@click="batchReject" v-show="!isView" :disabled="multiple">不合格</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<span>验收人:{{ checkUser }}</span>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="tableList" ref="multipleTable" row-key="typeId" @selection-change="handleSelectionChange">
|
||||
|
|
@ -170,6 +173,7 @@ import {
|
|||
acceptInnerVerifyer,
|
||||
getPurchaseFileList,
|
||||
uploadPurchaseFile,
|
||||
getCheckUserList,
|
||||
} from "@/api/purchase/goodsAccept";
|
||||
import { downloadFile } from "@/utils/download";
|
||||
import { getToken } from "@/utils/auth";
|
||||
|
|
@ -235,6 +239,8 @@ export default {
|
|||
// 上传的地址
|
||||
url: process.env.VUE_APP_BASE_API + "/file/upload",
|
||||
},
|
||||
checkUserList: [], // 验收人列表
|
||||
checkUser: '', // 验收人
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
|
|
@ -252,8 +258,28 @@ export default {
|
|||
// this.getSupplierList()
|
||||
console.log(this.isView);
|
||||
this.getList();
|
||||
this.getCheckUser()
|
||||
},
|
||||
methods: {
|
||||
// 获取验收人
|
||||
async getCheckUser() {
|
||||
try {
|
||||
const res = await getCheckUserList({taskId: this.taskId})
|
||||
console.log('🚀 ~ getCheckUser ~ res:', res)
|
||||
if (res.data) {
|
||||
res.data.forEach(item => {
|
||||
if (item.checkUser) {
|
||||
this.checkUserList.push(item.checkUser)
|
||||
}
|
||||
})
|
||||
}
|
||||
this.$nextTick(() => {
|
||||
this.checkUser = this.checkUserList.join(', ')
|
||||
})
|
||||
} catch (error) {
|
||||
console.log('🚀 ~ getCheckUser ~ error:', error)
|
||||
}
|
||||
},
|
||||
//是否可用勾选框
|
||||
selectable(row) {
|
||||
console.log(row)
|
||||
|
|
|
|||
Loading…
Reference in New Issue