|
|
|
|
@ -31,7 +31,7 @@ |
|
|
|
|
|
|
|
|
|
<!-- 物资申领记录列表 --> |
|
|
|
|
<el-dialog title="物资申领记录" :visible.sync="applyVisible" :append-to-body="true" width="70%" |
|
|
|
|
:close-on-click-modal="false"> |
|
|
|
|
:close-on-click-modal="false" @on-load="applyOnLoad"> |
|
|
|
|
<avue-crud :option="applyoption" :table-loading="loading" :data="applyData" :page.sync="applyPage" ref="crud" |
|
|
|
|
v-model="applyForm"> |
|
|
|
|
|
|
|
|
|
@ -91,7 +91,7 @@ |
|
|
|
|
<script> |
|
|
|
|
import SelectTree from '../../components/selectTree/tree.vue' |
|
|
|
|
import { mapGetters } from "vuex"; |
|
|
|
|
import { getDetail, getMyList, getMyPersonDetail, getGoodsList } from '@/api/goodsManagement/goods' |
|
|
|
|
import { getDetail, getMyList, getMyPersonDetail, getGoodsList,getDetailApplyLog } from '@/api/goodsManagement/goods' |
|
|
|
|
import 'nprogress/nprogress.css'; |
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
|
@ -292,7 +292,8 @@ export default { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
] |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
productData:{},//存每一行的数据 |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
computed: { |
|
|
|
|
@ -305,6 +306,7 @@ export default { |
|
|
|
|
// 查看物料的核销记录 |
|
|
|
|
handleApplyLog(row) { |
|
|
|
|
this.applyVisible = true |
|
|
|
|
this.productData = row |
|
|
|
|
let query = { |
|
|
|
|
productCode: row.productCode, |
|
|
|
|
current: this.applyPage.currentPage, |
|
|
|
|
@ -350,65 +352,20 @@ export default { |
|
|
|
|
this.selectedList = list |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
// 归还 |
|
|
|
|
// loadmore() { |
|
|
|
|
// if (this.goodsCurrent * this.goodsSize >= this.goodsTotal) return |
|
|
|
|
// this.goodsCurrent++ |
|
|
|
|
// this.getGoodsLists('more') |
|
|
|
|
// }, |
|
|
|
|
// getGoodsLists() { |
|
|
|
|
// getGoodsList({ current: this.goodsCurrent, size: this.goodsSize }).then(res => { |
|
|
|
|
// if (this.goodsCurrent == 1) { |
|
|
|
|
// this.goodsList = res.data.data.records |
|
|
|
|
// } else { |
|
|
|
|
// this.goodsList = this.goodsList.concat(res.data.data.records) |
|
|
|
|
// } |
|
|
|
|
// this.goodsTotal = res.data.data.total |
|
|
|
|
// }) |
|
|
|
|
// }, |
|
|
|
|
// changeGood(val) { |
|
|
|
|
// let tmp = this.goodsList.find(item => item.id == val) |
|
|
|
|
// this.addForm = tmp |
|
|
|
|
// this.addForm.returnNum = 0 |
|
|
|
|
|
|
|
|
|
// }, |
|
|
|
|
// handleAddGoods() { |
|
|
|
|
// this.dialogAdd = true |
|
|
|
|
// this.dialogTitle = '物品归还' |
|
|
|
|
// this.viewType = 'returnGoods' |
|
|
|
|
// this.getGoodsLists() |
|
|
|
|
// }, |
|
|
|
|
// // 点击取消按钮 |
|
|
|
|
// handleCancel() { |
|
|
|
|
// this.dialogVisible = false |
|
|
|
|
// this.addForm = {} |
|
|
|
|
// }, |
|
|
|
|
// // 归还提交 |
|
|
|
|
// handleSave() { |
|
|
|
|
// if (this.addForm.returnNum == 0) { |
|
|
|
|
// this.$message.error('归还数量不可为0') |
|
|
|
|
// } else { |
|
|
|
|
// let data = [] |
|
|
|
|
// data.push({ |
|
|
|
|
// id: this.addForm.id, |
|
|
|
|
// returnNum: this.addForm.returnNum, |
|
|
|
|
// productId: this.addForm.productId, |
|
|
|
|
// }) |
|
|
|
|
// let query = { |
|
|
|
|
// details: data, |
|
|
|
|
// id: this.receiveForm.id, |
|
|
|
|
// code: this.receiveForm.code |
|
|
|
|
// } |
|
|
|
|
// returnGoods(query).then(res => { |
|
|
|
|
// if (res.data.code == 200) { |
|
|
|
|
// this.$message.success('归还成功') |
|
|
|
|
// this.onLoad() |
|
|
|
|
// this.dialogReceive = false |
|
|
|
|
// } |
|
|
|
|
// }) |
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
// }, |
|
|
|
|
applyOnLoad(page, params = {}){ |
|
|
|
|
console.log(9999999,page,params) |
|
|
|
|
let query = { |
|
|
|
|
productCode: this.productData.inventoryId, |
|
|
|
|
current: page.currentPage, |
|
|
|
|
size: page.pageSize, |
|
|
|
|
} |
|
|
|
|
getDetailApplyLog(query).then(res => { |
|
|
|
|
if (res.data.code == 200) { |
|
|
|
|
this.applyData = res.data.data.records |
|
|
|
|
this.applyPage.total = res.data.data.total |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
onLoad(page, params = {}) { |
|
|
|
|
this.loading = true |
|
|
|
|
|