|
|
@ -1,16 +1,27 @@ |
|
|
|
|
|
|
|
<!-- 供应商送货策略弹出层 --> |
|
|
|
<!-- 采购计划策略弹出层 --> |
|
|
|
<template> |
|
|
|
<Dialog :title="dialogTitle" v-model="dialogVisible" style="width: 800px;"> |
|
|
|
<div class="p-20px m--10px" style="max-height: 50vh;overflow-y: auto;"> |
|
|
|
<el-form ref="formRef" :model="formData" :rules="rules" label-width="120px" label-position="left"> |
|
|
|
<Dialog :title="dialogTitle" v-model="dialogVisible" style="width: 800px"> |
|
|
|
<div class="p-20px m--10px" style="max-height: 50vh; overflow-y: auto"> |
|
|
|
<el-form |
|
|
|
ref="formRef" |
|
|
|
:model="formData" |
|
|
|
:rules="rules" |
|
|
|
label-width="120px" |
|
|
|
label-position="left" |
|
|
|
> |
|
|
|
<!-- 规则 --> |
|
|
|
<div class="item"> |
|
|
|
<div class="title">规则</div> |
|
|
|
<el-row> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item label="代码" prop="strategyCode"> |
|
|
|
<el-input v-model="formData.strategyCode" placeholder="请输入代码" clearable disabled /> |
|
|
|
<el-input |
|
|
|
v-model="formData.strategyCode" |
|
|
|
placeholder="请输入代码" |
|
|
|
clearable |
|
|
|
disabled |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="24"> |
|
|
@ -41,36 +52,95 @@ |
|
|
|
<el-row> |
|
|
|
<el-col :span="24" v-for="(item, index) in formData.condition" :key="index"> |
|
|
|
<!-- 供应商类型 --> |
|
|
|
<el-form-item v-if="item.ParamCode == 'SupplierType'" label="供应商类型" class="flex-top err-120"> |
|
|
|
<el-select v-model="item.Operator" placeholder="请选择范围" style="width: 110px;;margin-right: 10px;"> |
|
|
|
<el-option :label="cur.label" :value="cur.value" v-for="cur in options.supplierTypeRangeOptions" |
|
|
|
:key="cur.value" /> |
|
|
|
<el-form-item |
|
|
|
v-if="item.ParamCode == 'SupplierType'" |
|
|
|
label="供应商类型" |
|
|
|
class="flex-top err-120" |
|
|
|
> |
|
|
|
<el-select |
|
|
|
v-model="item.Operator" |
|
|
|
placeholder="请选择范围" |
|
|
|
style="width: 110px; margin-right: 10px" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
:label="cur.label" |
|
|
|
:value="cur.value" |
|
|
|
v-for="cur in options.supplierTypeRangeOptions" |
|
|
|
:key="cur.value" |
|
|
|
/> |
|
|
|
</el-select> |
|
|
|
<el-select v-model="item.Value" placeholder="请选择供应商类型" style="flex: 1;" clearable |
|
|
|
@change="changeSupplierType"> |
|
|
|
<el-option v-for="dict in getStrDictOptions(DICT_TYPE.SUPPLIER_TYPE)" :key="dict.value" |
|
|
|
:label="dict.label" :value="dict.value" /> |
|
|
|
<el-select |
|
|
|
v-model="item.Value" |
|
|
|
placeholder="请选择供应商类型" |
|
|
|
style="flex: 1" |
|
|
|
clearable |
|
|
|
@change="changeSupplierType" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="dict in getStrDictOptions(DICT_TYPE.SUPPLIER_TYPE)" |
|
|
|
:key="dict.value" |
|
|
|
:label="dict.label" |
|
|
|
:value="dict.value" |
|
|
|
/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<!-- 供应商 --> |
|
|
|
<el-form-item v-else-if="item.ParamCode == 'SupplierCode'" label="供应商" class="err-120"> |
|
|
|
<el-select v-model="item.Operator" placeholder="请选择范围" style="width: 110px;margin-right: 10px;"> |
|
|
|
<el-option :label="cur.label" :value="cur.value" v-for="cur in options.supplierRangeOptions" |
|
|
|
:key="cur.value" /> |
|
|
|
<el-form-item |
|
|
|
v-else-if="item.ParamCode == 'SupplierCode'" |
|
|
|
label="供应商" |
|
|
|
class="err-120" |
|
|
|
> |
|
|
|
<el-select |
|
|
|
v-model="item.Operator" |
|
|
|
placeholder="请选择范围" |
|
|
|
style="width: 110px; margin-right: 10px" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
:label="cur.label" |
|
|
|
:value="cur.value" |
|
|
|
v-for="cur in options.supplierRangeOptions" |
|
|
|
:key="cur.value" |
|
|
|
/> |
|
|
|
</el-select> |
|
|
|
<el-select v-model="item.Value" placeholder="请选择供应商" style="flex: 1;" clearable> |
|
|
|
<el-option v-for="cur in options.supplierList" :key="cur.id" :label="cur.name" :value="cur.id" /> |
|
|
|
<el-select |
|
|
|
v-model="item.Value" |
|
|
|
placeholder="请选择供应商" |
|
|
|
style="flex: 1" |
|
|
|
clearable |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="cur in options.supplierList" |
|
|
|
:key="cur.id" |
|
|
|
:label="cur.name" |
|
|
|
:value="cur.id" |
|
|
|
/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<!-- 星期几 --> |
|
|
|
<el-form-item v-else-if="item.ParamCode == 'Weekday'" label="星期几" class="flex-top err-120"> |
|
|
|
<el-select v-model="item.Operator" placeholder="请选择范围" style="width: 110px;;margin-right: 10px;"> |
|
|
|
<el-option :label="cur.label" :value="cur.value" v-for="cur in options.weekRangeOptions" |
|
|
|
:key="cur.value" /> |
|
|
|
<el-form-item |
|
|
|
v-else-if="item.ParamCode == 'Weekday'" |
|
|
|
label="星期几" |
|
|
|
class="flex-top err-120" |
|
|
|
> |
|
|
|
<el-select |
|
|
|
v-model="item.Operator" |
|
|
|
placeholder="请选择范围" |
|
|
|
style="width: 110px; margin-right: 10px" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
:label="cur.label" |
|
|
|
:value="cur.value" |
|
|
|
v-for="cur in options.weekRangeOptions" |
|
|
|
:key="cur.value" |
|
|
|
/> |
|
|
|
</el-select> |
|
|
|
<div class="checkbox"> |
|
|
|
<el-checkbox-group v-model="item.Value"> |
|
|
|
<el-checkbox :label="cur.label" v-for="cur in options.weekOptions" :key="cur.value" /> |
|
|
|
<el-checkbox |
|
|
|
:label="cur.label" |
|
|
|
v-for="cur in options.weekOptions" |
|
|
|
:key="cur.value" |
|
|
|
/> |
|
|
|
</el-checkbox-group> |
|
|
|
</div> |
|
|
|
</el-form-item> |
|
|
@ -84,33 +154,80 @@ |
|
|
|
<!-- 开始时间 --> |
|
|
|
<el-col :span="24"> |
|
|
|
<!-- 开始时间 --> |
|
|
|
<el-form-item label="开始时间" prop="BeginTime"> |
|
|
|
<el-time-select v-model="formData.configuration.BeginTime" start="00:00" end="23:59" step="00:15" placeholder="请选择开始时间" |
|
|
|
style="width: 100%;" /> |
|
|
|
<el-form-item label="开始时间" prop="BeginTime"> |
|
|
|
<el-time-select |
|
|
|
v-model="formData.configuration.BeginTime" |
|
|
|
start="00:00" |
|
|
|
end="23:59" |
|
|
|
step="00:15" |
|
|
|
placeholder="请选择开始时间" |
|
|
|
style="width: 100%" |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
<!-- 结束时间 --> |
|
|
|
<el-form-item label="结束时间" prop="EndTime"> |
|
|
|
<el-time-select v-model="formData.configuration.EndTime" start="00:00" end="23:59" step="00:15" placeholder="请选择结束时间" |
|
|
|
style="width: 100%;" /> |
|
|
|
<el-form-item label="结束时间" prop="EndTime"> |
|
|
|
<el-time-select |
|
|
|
v-model="formData.configuration.EndTime" |
|
|
|
start="00:00" |
|
|
|
end="23:59" |
|
|
|
step="00:15" |
|
|
|
placeholder="请选择结束时间" |
|
|
|
style="width: 100%" |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
<!-- 仓库 --> |
|
|
|
<el-form-item label="仓库" prop="WarehouseCode"> |
|
|
|
<el-select v-model="formData.configuration.WarehouseCode" |
|
|
|
:placeholder="`请选择${formData.configuration.WarehouseCode == 'WarehouseCode' ? '仓库' : formData.configuration.WarehouseCode== 'AreaCode' ? '库区' : formData.configuration.WarehouseCode == 'LocationGroupCode' ? '库位组' : formData.configuration.WarehouseCode == 'LocationCode' ? '库位' : ''}`" |
|
|
|
clearable> |
|
|
|
<el-option v-for="cur in options.warehouseList" :key="cur.code" :label="cur.name" :value="cur.code" /> |
|
|
|
<el-select |
|
|
|
v-model="formData.configuration.WarehouseCode" |
|
|
|
:placeholder="`请选择${ |
|
|
|
formData.configuration.WarehouseCode == 'WarehouseCode' |
|
|
|
? '仓库' |
|
|
|
: formData.configuration.WarehouseCode == 'AreaCode' |
|
|
|
? '库区' |
|
|
|
: formData.configuration.WarehouseCode == 'LocationGroupCode' |
|
|
|
? '库位组' |
|
|
|
: formData.configuration.WarehouseCode == 'LocationCode' |
|
|
|
? '库位' |
|
|
|
: '' |
|
|
|
}`" |
|
|
|
clearable |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="cur in options.warehouseList" |
|
|
|
:key="cur.code" |
|
|
|
:label="cur.name" |
|
|
|
:value="cur.code" |
|
|
|
/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<!-- 月台 --> |
|
|
|
<el-form-item label="月台" prop="DockCode" > |
|
|
|
<el-select v-model="formData.configuration.DockCode" placeholder="请选择月台" clearable> |
|
|
|
<el-option v-for="cur in options.dockList" :key="cur.code" :label="cur.name" :value="cur.code" /> |
|
|
|
<el-form-item label="月台" prop="DockCode"> |
|
|
|
<el-select |
|
|
|
v-model="formData.configuration.DockCode" |
|
|
|
placeholder="请选择月台" |
|
|
|
clearable |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="cur in options.dockList" |
|
|
|
:key="cur.code" |
|
|
|
:label="cur.name" |
|
|
|
:value="cur.code" |
|
|
|
/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<!-- 在途库位 --> |
|
|
|
<el-form-item label="在途库位" prop="OnTheWayLocationCode" > |
|
|
|
<el-select v-model="formData.configuration.OnTheWayLocationCode" placeholder="请选择在途库位" clearable> |
|
|
|
<el-option v-for="cur in options.locationList" :key="cur.code" :label="cur.name" :value="cur.code" /> |
|
|
|
<el-form-item label="在途库位" prop="OnTheWayLocationCode"> |
|
|
|
<el-select |
|
|
|
v-model="formData.configuration.OnTheWayLocationCode" |
|
|
|
placeholder="请选择在途库位" |
|
|
|
clearable |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="cur in options.locationList" |
|
|
|
:key="cur.code" |
|
|
|
:label="cur.name" |
|
|
|
:value="cur.code" |
|
|
|
/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
@ -134,8 +251,6 @@ import { getDockList } from '@/api/wms/dock' |
|
|
|
import { getLocationList } from '@/api/wms/location' |
|
|
|
import * as RuleApi from '@/api/wms/rule' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const { t } = useI18n() // 国际化 |
|
|
|
const message = useMessage() // 消息弹窗 |
|
|
|
|
|
|
@ -149,31 +264,31 @@ const formStrategyCode = ref('') |
|
|
|
// form表单数据 |
|
|
|
const formData = ref({ |
|
|
|
id: '', |
|
|
|
strategyCode: formStrategyCode.value,//策略代码id |
|
|
|
name: '',//名称 |
|
|
|
description: '',//描述 |
|
|
|
priority: '',//优先级 |
|
|
|
status: true,//状态 |
|
|
|
strategyCode: formStrategyCode.value, //策略代码id |
|
|
|
name: '', //名称 |
|
|
|
description: '', //描述 |
|
|
|
priority: '', //优先级 |
|
|
|
status: true, //状态 |
|
|
|
//规则条件集合 |
|
|
|
condition: [ |
|
|
|
// 供应商类型 |
|
|
|
{ ParamCode: 'SupplierType', Operator: "==", Value: "" }, |
|
|
|
{ ParamCode: 'SupplierType', Operator: '==', Value: '' }, |
|
|
|
// 供应商 |
|
|
|
{ ParamCode: 'SupplierCode', Operator: "IN", Value: "" }, |
|
|
|
{ ParamCode: 'SupplierCode', Operator: 'IN', Value: '' }, |
|
|
|
// 星期几 |
|
|
|
{ ParamCode: 'Weekday', Operator: "IN", Value: [] } |
|
|
|
{ ParamCode: 'Weekday', Operator: 'IN', Value: [] } |
|
|
|
], |
|
|
|
configuration: { |
|
|
|
// 开始时间 |
|
|
|
BeginTime:"", |
|
|
|
BeginTime: '', |
|
|
|
// 结束时间 |
|
|
|
EndTime:"", |
|
|
|
EndTime: '', |
|
|
|
// 仓库代码 |
|
|
|
WarehouseCode:"", |
|
|
|
WarehouseCode: '', |
|
|
|
// 月台代码 |
|
|
|
DockCode:"", |
|
|
|
DockCode: '', |
|
|
|
// 在途库位代码 |
|
|
|
OnTheWayLocationCode:"", |
|
|
|
OnTheWayLocationCode: '' |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
@ -182,7 +297,7 @@ const rules = ref({ |
|
|
|
strategyCode: [{ required: true, message: '请输入代码', trigger: 'blur' }], |
|
|
|
name: [{ required: true, message: '请输入名字', trigger: 'blur' }], |
|
|
|
description: [{ required: true, message: '请输入描述', trigger: 'blur' }], |
|
|
|
priority: [{ required: true, message: '请输入优先级', trigger: 'blur' }], |
|
|
|
priority: [{ required: true, message: '请输入优先级', trigger: 'blur' }] |
|
|
|
}) |
|
|
|
|
|
|
|
// 所有的范围类型 |
|
|
@ -196,11 +311,11 @@ const rangeOptions = [ |
|
|
|
{ value: 'IN', label: '包含' }, |
|
|
|
{ value: 'NOT IN', label: '不包含' }, |
|
|
|
{ value: 'NULL', label: '为空' }, |
|
|
|
{ value: 'NOT NULL', label: '不为空' }, |
|
|
|
{ value: 'NOT NULL', label: '不为空' } |
|
|
|
] |
|
|
|
const formatRangeOptions = (...rest) => { |
|
|
|
// 交集 |
|
|
|
let result = rangeOptions.filter(aItem => rest.some(bItem => aItem.value === bItem)); |
|
|
|
let result = rangeOptions.filter((aItem) => rest.some((bItem) => aItem.value === bItem)) |
|
|
|
return result |
|
|
|
} |
|
|
|
// 下拉框列表集合 |
|
|
@ -216,21 +331,47 @@ const options = reactive({ |
|
|
|
// 星期几范围下拉框列表 |
|
|
|
weekRangeOptions: formatRangeOptions('IN', 'NOT IN'), |
|
|
|
//星期几列表 |
|
|
|
weekOptions: [{ value: 1, label: '星期一' }, { value: 2, label: '星期二' }, { value: 3, label: '星期三' }, { value: 4, label: '星期四' }, { value: 5, label: '星期五' }, { value: 6, label: '星期六' }, { value: 7, label: '星期日' }], |
|
|
|
weekOptions: [ |
|
|
|
{ value: 1, label: '星期一' }, |
|
|
|
{ value: 2, label: '星期二' }, |
|
|
|
{ value: 3, label: '星期三' }, |
|
|
|
{ value: 4, label: '星期四' }, |
|
|
|
{ value: 5, label: '星期五' }, |
|
|
|
{ value: 6, label: '星期六' }, |
|
|
|
{ value: 7, label: '星期日' } |
|
|
|
], |
|
|
|
//仓库列表 |
|
|
|
warehouseList: [], |
|
|
|
//月台列表 |
|
|
|
dockList: [], |
|
|
|
//在途库位列表 |
|
|
|
locationList: [], |
|
|
|
locationList: [] |
|
|
|
}) |
|
|
|
// 弹窗按钮 |
|
|
|
const Butttondata = ref([ |
|
|
|
defaultButtons.formSaveBtn(null), // 保存 |
|
|
|
defaultButtons.formCloseBtn(null) // 关闭 |
|
|
|
]) |
|
|
|
// 按钮事件 |
|
|
|
const buttonBaseClick = (val, item) => { |
|
|
|
// 保存 |
|
|
|
if (val == 'save') { |
|
|
|
submitForm() |
|
|
|
} |
|
|
|
// 关闭 |
|
|
|
else if (val == 'close') { |
|
|
|
dialogVisible.value = false |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 获取供应商列表的参数 |
|
|
|
const querySupplierParams = ref({ |
|
|
|
type: '' |
|
|
|
}) |
|
|
|
|
|
|
|
// 获取供应商列表 |
|
|
|
const getFormSupplierList = async () => { |
|
|
|
options.supplierList = await getSupplierList(querySupplierParams.value); |
|
|
|
options.supplierList = await getSupplierList(querySupplierParams.value) |
|
|
|
} |
|
|
|
|
|
|
|
// 选择供应商类型 |
|
|
@ -242,16 +383,15 @@ const changeSupplierType = (e) => { |
|
|
|
|
|
|
|
// 获取仓库列表 |
|
|
|
const getFormWarehouseList = async () => { |
|
|
|
options.warehouseList = await getWarehouseList(); |
|
|
|
options.warehouseList = await getWarehouseList() |
|
|
|
} |
|
|
|
// 获取月台列表 |
|
|
|
const getFormDockList = async () => { |
|
|
|
options.dockList = await getDockList(); |
|
|
|
|
|
|
|
options.dockList = await getDockList() |
|
|
|
} |
|
|
|
// 获取库位列表 |
|
|
|
const getFormLocationList = async () => { |
|
|
|
options.locationList = await getLocationList({ type: 'TRANSPORT' }); |
|
|
|
options.locationList = await getLocationList({ type: 'TRANSPORT' }) |
|
|
|
} |
|
|
|
|
|
|
|
getFormSupplierList() |
|
|
@ -269,6 +409,7 @@ const open = async (type: string, strategyCode: string, id?: number) => { |
|
|
|
// 修改时,设置数据 |
|
|
|
if (id) { |
|
|
|
formLoading.value = true |
|
|
|
|
|
|
|
try { |
|
|
|
let data = await RuleApi.getRule(id) |
|
|
|
formData.value.id = data.id |
|
|
@ -277,19 +418,32 @@ const open = async (type: string, strategyCode: string, id?: number) => { |
|
|
|
formData.value.description = data.description |
|
|
|
formData.value.priority = data.priority |
|
|
|
formData.value.status = data.status == 0 ? true : false |
|
|
|
if (formData.value.priority == 0) { |
|
|
|
Butttondata.value = [ |
|
|
|
defaultButtons.formCloseBtn(null) // 关闭 |
|
|
|
] |
|
|
|
} else { |
|
|
|
Butttondata.value = [ |
|
|
|
defaultButtons.formSaveBtn(null), // 保存 |
|
|
|
defaultButtons.formCloseBtn(null) // 关闭 |
|
|
|
] |
|
|
|
} |
|
|
|
if (data.condition) { |
|
|
|
formData.value.condition = JSON.parse(data.condition) |
|
|
|
} |
|
|
|
if (data.configuration) { |
|
|
|
formData.value.configuration = JSON.parse(data.configuration) |
|
|
|
formData.value.configuration = JSON.parse(data.configuration) |
|
|
|
} |
|
|
|
|
|
|
|
querySupplierParams.value.type = formData.value?.condition[0]?.Value || '' |
|
|
|
getFormSupplierList() |
|
|
|
|
|
|
|
} finally { |
|
|
|
formLoading.value = false |
|
|
|
} |
|
|
|
} else { |
|
|
|
Butttondata.value = [ |
|
|
|
defaultButtons.formSaveBtn(null), // 保存 |
|
|
|
defaultButtons.formCloseBtn(null) // 关闭 |
|
|
|
] |
|
|
|
} |
|
|
|
} |
|
|
|
defineExpose({ open }) // 提供 open 方法,用于打开弹窗 |
|
|
@ -301,16 +455,21 @@ const submitForm = async () => { |
|
|
|
if (!formRef) return |
|
|
|
const valid = await formRef.value.validate() |
|
|
|
if (!valid) return |
|
|
|
|
|
|
|
if(formData.value.priority == 0){ |
|
|
|
message.error('优先级不可以为0') |
|
|
|
return |
|
|
|
} |
|
|
|
// 提交请求 |
|
|
|
formLoading.value = true |
|
|
|
try { |
|
|
|
let data = { |
|
|
|
id: formData.value.id, |
|
|
|
strategyCode: formData.value.strategyCode,//策略代码 |
|
|
|
name: formData.value.name,//名称 |
|
|
|
description: formData.value.description,//描述 |
|
|
|
priority: formData.value.priority,//优先级 |
|
|
|
status: formData.value.status ? 0 : 1,//状态 |
|
|
|
strategyCode: formData.value.strategyCode, //策略代码 |
|
|
|
name: formData.value.name, //名称 |
|
|
|
description: formData.value.description, //描述 |
|
|
|
priority: formData.value.priority, //优先级 |
|
|
|
status: formData.value.status ? 0 : 1, //状态 |
|
|
|
//规则条件集合 |
|
|
|
condition: JSON.stringify(formData.value.condition), |
|
|
|
configuration: JSON.stringify(formData.value.configuration) |
|
|
@ -334,52 +493,34 @@ const submitForm = async () => { |
|
|
|
const resetForm = () => { |
|
|
|
formData.value = { |
|
|
|
id: '', |
|
|
|
strategyCode: formStrategyCode.value,//策略代码 |
|
|
|
name: '',//名称 |
|
|
|
description: '',//描述 |
|
|
|
priority: '',//优先级 |
|
|
|
status: true,//状态 |
|
|
|
strategyCode: formStrategyCode.value, //策略代码 |
|
|
|
name: '', //名称 |
|
|
|
description: '', //描述 |
|
|
|
priority: '', //优先级 |
|
|
|
status: true, //状态 |
|
|
|
//规则条件集合 |
|
|
|
condition: [ |
|
|
|
// 供应商类型 |
|
|
|
{ ParamCode: 'SupplierType', Operator: "==", Value: "" }, |
|
|
|
{ ParamCode: 'SupplierType', Operator: '==', Value: '' }, |
|
|
|
// 供应商 |
|
|
|
{ ParamCode: 'SupplierCode', Operator: "IN", Value: "" }, |
|
|
|
{ ParamCode: 'SupplierCode', Operator: 'IN', Value: '' }, |
|
|
|
// 星期几 |
|
|
|
{ ParamCode: 'Weekday', Operator: "IN", Value: [] } |
|
|
|
{ ParamCode: 'Weekday', Operator: 'IN', Value: [] } |
|
|
|
], |
|
|
|
configuration: { |
|
|
|
// 开始时间 |
|
|
|
BeginTime:"", |
|
|
|
// 结束时间 |
|
|
|
EndTime:"", |
|
|
|
// 仓库代码 |
|
|
|
WarehouseCode:"", |
|
|
|
// 月台代码 |
|
|
|
DockCode:"", |
|
|
|
// 在途库位代码 |
|
|
|
OnTheWayLocationCode:"", |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 弹窗按钮 |
|
|
|
const Butttondata = [ |
|
|
|
defaultButtons.formSaveBtn(null), // 保存 |
|
|
|
defaultButtons.formCloseBtn(null), // 关闭 |
|
|
|
] |
|
|
|
// 按钮事件 |
|
|
|
const buttonBaseClick = (val, item) => { |
|
|
|
// 保存 |
|
|
|
if (val == 'save') { |
|
|
|
submitForm() |
|
|
|
} |
|
|
|
// 关闭 |
|
|
|
else if (val == 'close') { |
|
|
|
dialogVisible.value = false |
|
|
|
// 开始时间 |
|
|
|
BeginTime: '', |
|
|
|
// 结束时间 |
|
|
|
EndTime: '', |
|
|
|
// 仓库代码 |
|
|
|
WarehouseCode: '', |
|
|
|
// 月台代码 |
|
|
|
DockCode: '', |
|
|
|
// 在途库位代码 |
|
|
|
OnTheWayLocationCode: '' |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
</script> |
|
|
|
<style scoped lang="scss"> |
|
|
|
.item { |
|
|
|