测试问题修改

master
zhangdi 9 months ago
parent 9bc987dd23
commit a6e0d88280
  1. 4
      src/views/components/workOrderDetail.vue
  2. 40
      src/views/goodsManagement/goodsList.vue
  3. 81
      src/views/goodsManagement/myGoodsList.vue

@ -671,7 +671,7 @@ export default {
if (res.data.data.status == 106) { if (res.data.data.status == 106) {
data_.id = item.id data_.id = item.id
} }
if (res.data.data.status == 407||res.data.data.status == 302) { if (res.data.data.status == 407||res.data.data.status == 302||res.data.data.status == 501||res.data.data.status == 104||res.data.data.status == 203||res.data.data.status == 204) {
data_.useCount = item.useCount data_.useCount = item.useCount
} }
this.tableData.push(data_) this.tableData.push(data_)
@ -721,7 +721,7 @@ export default {
}) })
} }
console.log('approveRemark', this.evaluateForm) console.log('approveRemark', this.repairForm)
}) })
}, },
// //

@ -250,7 +250,7 @@
<el-dialog title="物资入库记录" :visible.sync="logVisible" :append-to-body="true" width="70%" <el-dialog title="物资入库记录" :visible.sync="logVisible" :append-to-body="true" width="70%"
:close-on-click-modal="false"> :close-on-click-modal="false">
<avue-crud :option="logoption" :table-loading="loading" :data="logData" :page.sync="logPage" ref="crud" <avue-crud :option="logoption" :table-loading="loading" :data="logData" :page.sync="logPage" ref="crud"
v-model="logForm"> v-model="logForm" @on-load="logOnLoad">
</avue-crud> </avue-crud>
</el-dialog> </el-dialog>
@ -258,7 +258,7 @@
<el-dialog title="物资申领记录" :visible.sync="applyVisible" :append-to-body="true" width="70%" <el-dialog title="物资申领记录" :visible.sync="applyVisible" :append-to-body="true" width="70%"
:close-on-click-modal="false"> :close-on-click-modal="false">
<avue-crud :option="applyoption" :table-loading="loading" :data="applyData" :page.sync="applyPage" ref="crud" <avue-crud :option="applyoption" :table-loading="loading" :data="applyData" :page.sync="applyPage" ref="crud"
v-model="applyForm"> v-model="applyForm" @selection-change="applySelectionChange" @current-change="applyCurrentChange" @size-change="applySizeChange" @on-load="applyOnLoad">
<template slot-scope="{ row }" slot="status"> <template slot-scope="{ row }" slot="status">
<el-tag <el-tag
:type="row.status == 0 ? '' : row.status == 1 ? 'success' : row.status == 2 ? 'info' : row.status == -1 ? 'danger' : 'warning'"> :type="row.status == 0 ? '' : row.status == 1 ? 'success' : row.status == 2 ? 'info' : row.status == -1 ? 'danger' : 'warning'">
@ -664,7 +664,9 @@ export default {
slot: true slot: true
}, },
] ]
} },
productData:{},//
logData:{},//
} }
}, },
computed: { computed: {
@ -692,6 +694,7 @@ export default {
// //
handleLog(row) { handleLog(row) {
this.logVisible = true this.logVisible = true
this.logData = row
let query = { let query = {
inventoryId: row.inventoryId, inventoryId: row.inventoryId,
current: this.logPage.currentPage, current: this.logPage.currentPage,
@ -707,6 +710,7 @@ export default {
// //
handleApplyLog(row) { handleApplyLog(row) {
this.applyVisible = true this.applyVisible = true
this.productData = row
let query = { let query = {
productCode: row.inventoryId, productCode: row.inventoryId,
current: this.applyPage.currentPage, current: this.applyPage.currentPage,
@ -719,6 +723,7 @@ export default {
} }
}) })
}, },
changeWare(val) { changeWare(val) {
this.addForm.warehouseName = this.warehouseList.find(item => item.id == val).name this.addForm.warehouseName = this.warehouseList.find(item => item.id == val).name
}, },
@ -809,8 +814,33 @@ export default {
refreshChange() { refreshChange() {
this.onLoad(this.page, this.query); this.onLoad(this.page, this.query);
}, },
selectionChange(list) {
this.selectedList = list 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
}
})
},
logOnLoad(page, params = {}){
let query = {
productCode: this.logData.inventoryId,
current: page.currentPage,
size: page.pageSize,
}
getDetailLog(query).then(res => {
if (res.data.code == 200) {
this.logData = res.data.data.records
this.logPage.total = res.data.data.total
}
})
}, },
// //
handleAdd() { handleAdd() {

@ -31,7 +31,7 @@
<!-- 物资申领记录列表 --> <!-- 物资申领记录列表 -->
<el-dialog title="物资申领记录" :visible.sync="applyVisible" :append-to-body="true" width="70%" <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" <avue-crud :option="applyoption" :table-loading="loading" :data="applyData" :page.sync="applyPage" ref="crud"
v-model="applyForm"> v-model="applyForm">
@ -91,7 +91,7 @@
<script> <script>
import SelectTree from '../../components/selectTree/tree.vue' import SelectTree from '../../components/selectTree/tree.vue'
import { mapGetters } from "vuex"; 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'; import 'nprogress/nprogress.css';
export default { export default {
@ -292,7 +292,8 @@ export default {
] ]
} },
productData:{},//
} }
}, },
computed: { computed: {
@ -305,6 +306,7 @@ export default {
// //
handleApplyLog(row) { handleApplyLog(row) {
this.applyVisible = true this.applyVisible = true
this.productData = row
let query = { let query = {
productCode: row.productCode, productCode: row.productCode,
current: this.applyPage.currentPage, current: this.applyPage.currentPage,
@ -350,65 +352,20 @@ export default {
this.selectedList = list this.selectedList = list
}, },
// applyOnLoad(page, params = {}){
// loadmore() { console.log(9999999,page,params)
// if (this.goodsCurrent * this.goodsSize >= this.goodsTotal) return let query = {
// this.goodsCurrent++ productCode: this.productData.inventoryId,
// this.getGoodsLists('more') current: page.currentPage,
// }, size: page.pageSize,
// getGoodsLists() { }
// getGoodsList({ current: this.goodsCurrent, size: this.goodsSize }).then(res => { getDetailApplyLog(query).then(res => {
// if (this.goodsCurrent == 1) { if (res.data.code == 200) {
// this.goodsList = res.data.data.records this.applyData = res.data.data.records
// } else { this.applyPage.total = res.data.data.total
// 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
// }
// })
// }
// },
onLoad(page, params = {}) { onLoad(page, params = {}) {
this.loading = true this.loading = true

Loading…
Cancel
Save