Commit 49924742 authored by wanglianghe's avatar wanglianghe

始发地为非全部时没有显示出来,导致禁用会弹出始发地不能为空的拦截bug修复

parent 56c10628
...@@ -194,10 +194,7 @@ export default { ...@@ -194,10 +194,7 @@ export default {
handleStatusChange(row){ handleStatusChange(row){
let text = row.status === CommonStatusEnum.ENABLE ? this.$t("启用") : this.$t("停用"); let text = row.status === CommonStatusEnum.ENABLE ? this.$t("启用") : this.$t("停用");
this.$modal.confirm('确认要' + text + '吗?').then(function() { this.$modal.confirm('确认要' + text + '吗?').then(function() {
return updateZhongPao({ return updateZhongPao(row)
id: row.id,
status: row.status
})
}).then(() => { }).then(() => {
this.$modal.msgSuccess(text + "成功"); this.$modal.msgSuccess(text + "成功");
}).catch(function() { }).catch(function() {
...@@ -207,7 +204,7 @@ export default { ...@@ -207,7 +204,7 @@ export default {
}, },
departureFormatter(row, column, cellValue) { departureFormatter(row, column, cellValue) {
if (cellValue === 0) return this.$t('全部') if (cellValue === 0) return this.$t('全部')
return this.warehouseList.find(e => e.id === cellValue)?.titleZh return this.tradeCityList.find(e => e.id === cellValue)?.titleZh
}, },
objectiveFormatter(row, column, cellValue) { objectiveFormatter(row, column, cellValue) {
if (!cellValue || cellValue.length === 0) return '' if (!cellValue || cellValue.length === 0) return ''
......
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