|
|
|
|
@ -34,6 +34,7 @@ |
|
|
|
|
<el-button @click="handleApply(row)" v-show="permission.goodsReceive">申领</el-button> |
|
|
|
|
<el-button @click="handleWarning(row)" v-show="permission.goodsAlarm">预警设置</el-button> |
|
|
|
|
<el-button @click="handleLog(row)" v-show="permission.goodsLog">入库记录</el-button> |
|
|
|
|
<el-button @click="handleApplyLog(row)" >申领记录</el-button> |
|
|
|
|
<!-- --> |
|
|
|
|
</template> |
|
|
|
|
</avue-crud> |
|
|
|
|
@ -253,6 +254,19 @@ |
|
|
|
|
|
|
|
|
|
</avue-crud> |
|
|
|
|
</el-dialog> |
|
|
|
|
<!-- 物资申领记录列表 --> |
|
|
|
|
<el-dialog title="物资申领记录" :visible.sync="applyVisible" :append-to-body="true" width="70%" |
|
|
|
|
:close-on-click-modal="false"> |
|
|
|
|
<avue-crud :option="applyoption" :table-loading="loading" :data="applyData" :page.sync="applyPage" ref="crud" |
|
|
|
|
v-model="applyForm"> |
|
|
|
|
<template slot-scope="{ row }" slot="status"> |
|
|
|
|
<el-tag :type="row.status == 0 ? '' : row.status == 1 ? 'success' : row.status == 2 ? 'info' : row.status == -1 ? 'danger' : 'warning'"> |
|
|
|
|
{{ row.status == 0 ? '待审批' : row.status == 1 ? '待领取' : row.status == 2 ? '已完成' : row.status == 3 ? '待归还' : row.status == -1 ? '已驳回' : '' |
|
|
|
|
}} |
|
|
|
|
</el-tag> |
|
|
|
|
</template> |
|
|
|
|
</avue-crud> |
|
|
|
|
</el-dialog> |
|
|
|
|
</el-col> |
|
|
|
|
</el-row> |
|
|
|
|
</template> |
|
|
|
|
@ -260,7 +274,7 @@ |
|
|
|
|
<script> |
|
|
|
|
import SelectTree from '../../components/selectTree/tree.vue' |
|
|
|
|
import { mapGetters } from "vuex"; |
|
|
|
|
import { getGoodsList, saveGoods, batchStore, getDetail, editGoods, applyGoods, inOrder, getDetailLog } from '@/api/goodsManagement/goods' |
|
|
|
|
import { getGoodsList, saveGoods, batchStore, getDetail, editGoods, applyGoods, inOrder, getDetailLog,getDetailApplyLog } from '@/api/goodsManagement/goods' |
|
|
|
|
import { getChildList } from '@/api/system/dictbiz' |
|
|
|
|
import { addPurchase } from '@/api/purchaseManagement/purchase' |
|
|
|
|
import { nextTick } from 'vue'; |
|
|
|
|
@ -364,34 +378,14 @@ export default { |
|
|
|
|
search: true, |
|
|
|
|
overHidden: true, |
|
|
|
|
}, |
|
|
|
|
// { |
|
|
|
|
// label: "物品大类", |
|
|
|
|
// labelWidth: 120, |
|
|
|
|
// prop: "goodsType", |
|
|
|
|
// hide: true, |
|
|
|
|
// type: "select", |
|
|
|
|
// props: { |
|
|
|
|
// label: "dictLabel", |
|
|
|
|
// value: "dictValue", |
|
|
|
|
// }, |
|
|
|
|
// search:true, |
|
|
|
|
// dicData:[ |
|
|
|
|
// {dictValue:'001',dictLabel:'耗材'}, |
|
|
|
|
// {dictValue:'002',dictLabel:'工具'}, |
|
|
|
|
// ] |
|
|
|
|
// }, |
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
label: "物品大类", |
|
|
|
|
labelWidth: 120, |
|
|
|
|
prop: "bigClassName", |
|
|
|
|
overHidden: true, |
|
|
|
|
}, |
|
|
|
|
// { |
|
|
|
|
// label: "专业分类", |
|
|
|
|
// labelWidth: 120, |
|
|
|
|
// prop: "typeName", |
|
|
|
|
// overHidden:true, |
|
|
|
|
// }, |
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
label: "品牌", |
|
|
|
|
labelWidth: 120, |
|
|
|
|
@ -428,6 +422,7 @@ export default { |
|
|
|
|
labelWidth: 120, |
|
|
|
|
overHidden: true, |
|
|
|
|
slot: true, |
|
|
|
|
search: true, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: "单位", |
|
|
|
|
@ -583,6 +578,85 @@ export default { |
|
|
|
|
prop: 'enterNum' |
|
|
|
|
}, |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
applyVisible: false,//申领记录列表 |
|
|
|
|
applyData: [], |
|
|
|
|
applyForm: {}, |
|
|
|
|
applyPage: { |
|
|
|
|
pageSize: 10, |
|
|
|
|
currentPage: 1, |
|
|
|
|
total: 0, |
|
|
|
|
}, |
|
|
|
|
applyoption: { |
|
|
|
|
height: "auto", |
|
|
|
|
calcHeight: 30, |
|
|
|
|
tip: false, |
|
|
|
|
searchShow: false, |
|
|
|
|
searchMenuSpan: 6, |
|
|
|
|
border: true, |
|
|
|
|
index: true, |
|
|
|
|
dialogType: "dialog", |
|
|
|
|
dialogClickModal: false, |
|
|
|
|
addBtn: false, |
|
|
|
|
viewBtn: false, |
|
|
|
|
editBtn: false, |
|
|
|
|
delBtn: false, |
|
|
|
|
searchShowBtn: false, |
|
|
|
|
refreshBtn: false, |
|
|
|
|
columnBtn: false, |
|
|
|
|
selection: true, |
|
|
|
|
printBtn: true, |
|
|
|
|
menuWidth: 350, |
|
|
|
|
menu:false, |
|
|
|
|
column: [ |
|
|
|
|
{ |
|
|
|
|
label: '库存id', |
|
|
|
|
prop: 'productCode' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: '物料名称', |
|
|
|
|
prop: 'productName' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: '申领单号', |
|
|
|
|
prop: 'applyCode' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: "申领人", |
|
|
|
|
labelWidth: 120, |
|
|
|
|
prop: "applyUser", |
|
|
|
|
search: true, |
|
|
|
|
overHidden: true, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: "需求单号", |
|
|
|
|
labelWidth: 120, |
|
|
|
|
prop: "requirementCode", |
|
|
|
|
// search: true, |
|
|
|
|
overHidden: true, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: "申领时间", |
|
|
|
|
labelWidth: 120, |
|
|
|
|
prop: "applyTime", |
|
|
|
|
overHidden: true, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: '申领数量', |
|
|
|
|
prop: 'applyNum' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: '实际出库数量', |
|
|
|
|
prop: 'outNum' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: '状态', |
|
|
|
|
labelWidth: 120, |
|
|
|
|
overHidden: true, |
|
|
|
|
prop: 'status', |
|
|
|
|
slot: true |
|
|
|
|
}, |
|
|
|
|
] |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
@ -618,11 +692,25 @@ export default { |
|
|
|
|
getDetailLog(query).then(res => { |
|
|
|
|
if (res.data.code == 200) { |
|
|
|
|
this.logData = res.data.data.records |
|
|
|
|
console.log(111111,res.data.data.records) |
|
|
|
|
this.logPage.total = res.data.data.total |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
// 查看物料的申领记录 |
|
|
|
|
handleApplyLog(row){ |
|
|
|
|
this.applyVisible = true |
|
|
|
|
let query = { |
|
|
|
|
productCode: row.inventoryId, |
|
|
|
|
current:this.applyPage.currentPage, |
|
|
|
|
size:this.applyPage.pageSize, |
|
|
|
|
} |
|
|
|
|
getDetailApplyLog(query).then(res => { |
|
|
|
|
if (res.data.code == 200) { |
|
|
|
|
this.applyData = res.data.data.records |
|
|
|
|
this.applyPage.total = res.data.data.total |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
changeWare(val) { |
|
|
|
|
this.addForm.warehouseName = this.warehouseList.find(item => item.id == val).name |
|
|
|
|
}, |
|
|
|
|
@ -744,7 +832,8 @@ export default { |
|
|
|
|
parameter: item.rule, //参数 |
|
|
|
|
count: 0, //申领数量 |
|
|
|
|
goodsNumber: item.num, //库存数量 |
|
|
|
|
returnTime: '' |
|
|
|
|
returnTime: '', |
|
|
|
|
productCode:item.inventoryId |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
this.receiveForm.applyUser = this.userInfo.user_name |
|
|
|
|
@ -940,7 +1029,8 @@ export default { |
|
|
|
|
parameter: row.rule, //参数 |
|
|
|
|
count: 0, //申领数量 |
|
|
|
|
goodsNumber: row.num, //库存数量 |
|
|
|
|
returnTime: '' //返还时间 |
|
|
|
|
returnTime: '', |
|
|
|
|
productCode:row.inventoryId //返还时间 |
|
|
|
|
}) |
|
|
|
|
this.receiveForm.applyUser = this.userInfo.user_name |
|
|
|
|
this.dialogReceive = true |
|
|
|
|
@ -1064,7 +1154,8 @@ export default { |
|
|
|
|
xh: item.model, //型号 |
|
|
|
|
rule: item.parameter, //参数 |
|
|
|
|
applyNum: item.count, //领用数量 |
|
|
|
|
returnTime: item.returnTime !== '' ? item.returnTime + ' 23:59:59' : '' |
|
|
|
|
returnTime: item.returnTime !== '' ? item.returnTime + ' 23:59:59' : '', |
|
|
|
|
productCode:item.productCode |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
let query = { |
|
|
|
|
@ -1100,6 +1191,8 @@ export default { |
|
|
|
|
bigClassId: this.searchForm.bigClassId ? this.searchForm.bigClassId : null, |
|
|
|
|
current: this.page.currentPage, //页数 |
|
|
|
|
size: this.page.pageSize, |
|
|
|
|
warehouseName:params.warehouseName |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
getGoodsList(query).then(res => { |
|
|
|
|
this.data = res.data.data.records |
|
|
|
|
|