Commit fba06273 authored by hubaoshan's avatar hubaoshan

wcp

parent 3a9231f1
......@@ -253,7 +253,7 @@
</el-table-column>
<el-table-column label="pallet" prop="pallet" :show-overflow-tooltip="true">
<template slot-scope="scope">
{{ scope.row.pallet || '-' }}
{{ buttonLable(scope.row.pallet) || '-' }}
</template>
</el-table-column>
<el-table-column label="payTerms" prop="payTerms" :show-overflow-tooltip="true">
......@@ -511,10 +511,12 @@ import commonField from '@/utils/commonField'
import { getToken } from '@/utils/auth'
import { getDownloadTemplate } from '@/api/outcomeWmsJbapplyTemp'
import { Loading } from 'element-ui'
import { getDicts } from '@/api/system/dict/data'
export default {
name: 'WcpOrder',
data() {
return {
palletList: [],
dateRange: [],
orderSn: '',
Value: [],
......@@ -642,9 +644,19 @@ export default {
this.queryParams = { ...param }
}
this.getList() // 列表查询
// this.handleDetail()
this.getPallet()
},
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列表 */
getList() {
this.loading = true
......@@ -996,10 +1008,10 @@ export default {
this.PdList = response.data
this.$message({ message: '开始盘点...', type: 'success' })
this.dispenseOpen = false
loadingInstance.close()
this.getList()
}
})
loadingInstance.close()
}).catch(() => {
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