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">
...@@ -49,14 +49,14 @@ ...@@ -49,14 +49,14 @@
<el-form-item :label="$t('附件')"> <el-form-item :label="$t('附件')">
<image-upload v-model="form.attachment" /> <image-upload v-model="form.attachment" />
</el-form-item> </el-form-item>
<el-form-item :label="$t('备注')"> <el-form-item :label="$t('备注')">
<el-input v-model="form.remark" type="textarea" placeholder=""></el-input> <el-input v-model="form.remark" type="textarea" placeholder=""></el-input>
</el-form-item> </el-form-item>
<el-form-item label=""> <el-form-item label="">
<el-button type="primary" @click="submit">{{$t('确认放货')}}</el-button> <el-button type="primary" @click="submit">{{$t('确认放货')}}</el-button>
<el-button type="default" @click="$router.back()">{{$t('取消')}}</el-button> <el-button type="default" @click="$router.back()">{{$t('取消')}}</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
</template> </template>
...@@ -98,4 +98,4 @@ export default { ...@@ -98,4 +98,4 @@ export default {
} }
} }
} }
</script> </script>
\ No newline at end of file
...@@ -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