Commit 62f54dd1 authored by zhoutong's avatar zhoutong
parents d84824db d603250d
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<dict-selector :type="DICT_TYPE.ECW_HARVEST_METHOD" v-model="form.pickType" form-type="radio" formatter="number"></dict-selector> <dict-selector :type="DICT_TYPE.ECW_HARVEST_METHOD" v-model="form.pickType" form-type="radio" formatter="number"></dict-selector>
</el-form-item> </el-form-item>
<el-form-item :label="$t('提货时间')" v-if="form.pickType == 1"> <el-form-item :label="$t('提货时间')" v-if="form.pickType == 1">
<el-date-picker v-model="form.pickTime" placeholder="" value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker> <el-date-picker v-model="form.pickTime" placeholder="" type="datetime" value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker>
</el-form-item> </el-form-item>
<template v-if="form.pickType == 2"> <template v-if="form.pickType == 2">
......
...@@ -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