Commit 49924742 authored by wanglianghe's avatar wanglianghe

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

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