代码更新:
1. 整理盒子界面增加大盒子列表
This commit is contained in:
parent
f2ad908e2a
commit
b700b59284
|
|
@ -121,6 +121,15 @@ const genClcKanbanRequirement = (params) => {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const getBigBoxList = (params) => {
|
||||||
|
return request({
|
||||||
|
url: '/kateWork/getBigBoxList',
|
||||||
|
method: 'post',
|
||||||
|
data: params,
|
||||||
|
timeout: 10000
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
export {
|
export {
|
||||||
getDbs,
|
getDbs,
|
||||||
deleteDbs,
|
deleteDbs,
|
||||||
|
|
@ -136,5 +145,6 @@ export {
|
||||||
updateWorkFlows,
|
updateWorkFlows,
|
||||||
getWorkSummary,
|
getWorkSummary,
|
||||||
getClcKanbanByPage,
|
getClcKanbanByPage,
|
||||||
genClcKanbanRequirement
|
genClcKanbanRequirement,
|
||||||
|
getBigBoxList
|
||||||
}
|
}
|
||||||
|
|
@ -320,7 +320,7 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
showStockDealDialog() {
|
showStockDealDialog() {
|
||||||
this.dialogVisible = true
|
// this.dialogVisible = true
|
||||||
},
|
},
|
||||||
exceptionHandle() {
|
exceptionHandle() {
|
||||||
if (this.exceptionHandleFormEntity.vehicleId == '' || this.exceptionHandleFormEntity.goodsId == '') {
|
if (this.exceptionHandleFormEntity.vehicleId == '' || this.exceptionHandleFormEntity.goodsId == '') {
|
||||||
|
|
|
||||||
|
|
@ -70,22 +70,17 @@
|
||||||
</div>
|
</div>
|
||||||
<el-dialog v-model="showBoxListDialogFlag" title="大盒子列表" width="40%" draggable :show-close="true">
|
<el-dialog v-model="showBoxListDialogFlag" title="大盒子列表" width="40%" draggable :show-close="true">
|
||||||
<el-table :data="bixBoxList" stripe border v-loading="loading" class="table-class"
|
<el-table :data="bixBoxList" stripe border v-loading="loading" class="table-class"
|
||||||
highlight-current-row max-height="650px" @row-click="getCurrentRow"
|
highlight-current-row max-height="350px" @row-click="getCurrentRow"
|
||||||
:header-cell-style="{ 'text-align': 'center' }" :cell-style="{ 'text-align': 'center' }">
|
:header-cell-style="{ 'text-align': 'center' }" :cell-style="{ 'text-align': 'center' }">
|
||||||
<el-table-column width="65px" fixed="left">
|
<el-table-column width="65px" fixed="left">
|
||||||
<template v-slot="scope">
|
<template v-slot="scope">
|
||||||
<el-radio :label="scope.row.bigBoxNo" v-model="bigBoxNo"> </el-radio>
|
<el-radio :label="scope.row.bigBoxNo" v-model="bigBoxNo"> </el-radio>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="bigBoxNo" label="大盒子号" fixed="left" min-width="120px" show-overflow-tooltip />
|
|
||||||
<el-table-column prop="standId" label="站台号" min-width="120px" show-overflow-tooltip />
|
<el-table-column prop="standId" label="站台号" min-width="120px" show-overflow-tooltip />
|
||||||
|
<el-table-column prop="bigBoxNo" label="大盒子号" min-width="120px" show-overflow-tooltip />
|
||||||
<el-table-column prop="boxQuantity" label="需要数量" min-width="120px" show-overflow-tooltip />
|
<el-table-column prop="boxQuantity" label="需要数量" min-width="120px" show-overflow-tooltip />
|
||||||
</el-table>
|
</el-table>
|
||||||
<br />
|
|
||||||
<el-pagination v-model:current-page="currentPage" v-model:page-size="pageSize" :page-sizes="[10, 25, 50]"
|
|
||||||
:small="false" :disabled="false" :background="false" :default-page-size="10"
|
|
||||||
layout="total, sizes, prev, pager, next, jumper" :total="total" @size-change="search"
|
|
||||||
@current-change="search" />
|
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</el-container>
|
</el-container>
|
||||||
</el-config-provider>
|
</el-config-provider>
|
||||||
|
|
@ -94,6 +89,7 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
import store from '@/store'
|
import store from '@/store'
|
||||||
import { requestSortBox, requestSumOfBox } from '@/api/task'
|
import { requestSortBox, requestSumOfBox } from '@/api/task'
|
||||||
|
import { getBigBoxList } from '@/api/kateWork'
|
||||||
import { reactive, ref } from 'vue'
|
import { reactive, ref } from 'vue'
|
||||||
import { errorBox } from '@/utils/myMessageBox.js'
|
import { errorBox } from '@/utils/myMessageBox.js'
|
||||||
import { ElMessage } from 'element-plus'
|
import { ElMessage } from 'element-plus'
|
||||||
|
|
@ -117,9 +113,6 @@ export default {
|
||||||
rules: reactive({}),
|
rules: reactive({}),
|
||||||
showBoxListDialogFlag: false,
|
showBoxListDialogFlag: false,
|
||||||
bixBoxList: [],
|
bixBoxList: [],
|
||||||
currentPage: 1,
|
|
||||||
pageSize: 10,
|
|
||||||
total: 0,
|
|
||||||
loading: true,
|
loading: true,
|
||||||
bigBoxNo: '',
|
bigBoxNo: '',
|
||||||
}
|
}
|
||||||
|
|
@ -191,33 +184,25 @@ export default {
|
||||||
this.bigBoxNo = row.bigBoxNo
|
this.bigBoxNo = row.bigBoxNo
|
||||||
},
|
},
|
||||||
showStockDealDialog() {
|
showStockDealDialog() {
|
||||||
this.dialogVisible = true
|
this.showBoxListDialogFlag = true
|
||||||
// this.search()
|
this.searchBigBox()
|
||||||
},
|
},
|
||||||
search() {
|
searchBigBox() {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
const request = {
|
const request = {
|
||||||
pageNo: this.currentPage,
|
standId: this.standId,
|
||||||
pageSize: this.pageSize,
|
|
||||||
standId: this.standIdQuery.trim(),
|
|
||||||
workOrder: this.workOrderQuery.trim(),
|
|
||||||
workCenter: this.workCenterQuery.trim(),
|
|
||||||
goodsId: this.goodsIdQuery.trim(),
|
|
||||||
lackStatus: this.lackStatusQuery == -99 ? null : this.lackStatusQuery,
|
|
||||||
workDate: timeFormatter(this.workDateQuery),
|
|
||||||
userName: store.getters.getUserName
|
userName: store.getters.getUserName
|
||||||
}
|
}
|
||||||
getWorkSummary(request).then(res => {
|
getBigBoxList(request).then(res => {
|
||||||
const tableResponse = res.data
|
const tableResponse = res.data
|
||||||
if (tableResponse.code == 0) {
|
if (tableResponse.code == 0) {
|
||||||
this.workSummaryList = tableResponse.returnData.lists
|
this.bixBoxList = tableResponse.returnData
|
||||||
this.total = tableResponse.returnData.total
|
|
||||||
} else {
|
} else {
|
||||||
errorBox(tableResponse.message)
|
errorBox(tableResponse.message)
|
||||||
}
|
}
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
console.log(err)
|
console.log(err)
|
||||||
errorBox('查询工作总结错误')
|
errorBox('查询大盒子列表错误')
|
||||||
})
|
})
|
||||||
this.loading = false
|
this.loading = false
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user