Commit fba06273 authored by hubaoshan's avatar hubaoshan

wcp

parent 3a9231f1
...@@ -253,7 +253,7 @@ ...@@ -253,7 +253,7 @@
</el-table-column> </el-table-column>
<el-table-column label="pallet" prop="pallet" :show-overflow-tooltip="true"> <el-table-column label="pallet" prop="pallet" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.pallet || '-' }} {{ buttonLable(scope.row.pallet) || '-' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="payTerms" prop="payTerms" :show-overflow-tooltip="true"> <el-table-column label="payTerms" prop="payTerms" :show-overflow-tooltip="true">
...@@ -511,10 +511,12 @@ import commonField from '@/utils/commonField' ...@@ -511,10 +511,12 @@ import commonField from '@/utils/commonField'
import { getToken } from '@/utils/auth' import { getToken } from '@/utils/auth'
import { getDownloadTemplate } from '@/api/outcomeWmsJbapplyTemp' import { getDownloadTemplate } from '@/api/outcomeWmsJbapplyTemp'
import { Loading } from 'element-ui' import { Loading } from 'element-ui'
import { getDicts } from '@/api/system/dict/data'
export default { export default {
name: 'WcpOrder', name: 'WcpOrder',
data() { data() {
return { return {
palletList: [],
dateRange: [], dateRange: [],
orderSn: '', orderSn: '',
Value: [], Value: [],
...@@ -642,9 +644,19 @@ export default { ...@@ -642,9 +644,19 @@ export default {
this.queryParams = { ...param } this.queryParams = { ...param }
} }
this.getList() // 列表查询 this.getList() // 列表查询
// this.handleDetail() this.getPallet()
}, },
methods: { methods: {
getPallet() {
getDicts('WCP_ORDER_PALLET').then(res => {
console.log('dict', res)
this.palletList = res.data
})
},
buttonLable(data) {
const lable = this.palletList.find(item => item.dictValue === data)
return lable ? lable.dictLabel : ''
},
/** 查询order列表 */ /** 查询order列表 */
getList() { getList() {
this.loading = true this.loading = true
...@@ -996,10 +1008,10 @@ export default { ...@@ -996,10 +1008,10 @@ export default {
this.PdList = response.data this.PdList = response.data
this.$message({ message: '开始盘点...', type: 'success' }) this.$message({ message: '开始盘点...', type: 'success' })
this.dispenseOpen = false this.dispenseOpen = false
loadingInstance.close()
this.getList() this.getList()
} }
}) })
loadingInstance.close()
}).catch(() => { }).catch(() => {
this.$message({ message: '取消开始盘点', type: 'info' }) this.$message({ message: '取消开始盘点', type: 'info' })
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment