Browse Source

策略

master
zhangli 1 year ago
parent
commit
79a5387696
  1. 220
      src/views/wms/strategy/purchaseReceiptStrategy/AddForm.vue
  2. 3
      src/views/wms/strategy/purchaseReceiptStrategy/index.vue
  3. 277
      src/views/wms/strategy/supplieDeliveryStrategy/AddForm.vue
  4. 1
      src/views/wms/strategy/supplieDeliveryStrategy/index.vue
  5. 40
      src/views/wms/strategy/upShelfStrategy/AddForm.vue

220
src/views/wms/strategy/purchaseReceiptStrategy/AddForm.vue

@ -5,114 +5,112 @@
<div class="p-20px m--10px" style="max-height: 500px;overflow-y: auto;"> <div class="p-20px m--10px" style="max-height: 500px;overflow-y: auto;">
<!-- 规则 --> <!-- 规则 -->
<el-form ref="formRef" :model="formData" :rules="rules" label-width="140px" label-position="left"> <el-form ref="formRef" :model="formData" :rules="rules" label-width="140px" label-position="left">
<el-row> <div class="item">
<el-col :span="24"> <div class="title">规则</div>
<div class="item"> <el-row>
<div class="title">规则</div> <el-col :span="24">
<el-col :span="24"> <el-form-item label="代码" prop="strategyCode">
<el-form-item label="代码" prop="code"> <el-input v-model="formData.strategyCode" placeholder="请输入代码" clearable disabled />
<el-input v-model="formData.code" placeholder="请输入代码" clearable disabled /> </el-form-item>
</el-form-item> </el-col>
</el-col> <el-col :span="24">
<el-col :span="24"> <el-form-item label="名称" prop="name">
<el-form-item label="名称" prop="name"> <el-input v-model="formData.name" placeholder="请输入名称" clearable />
<el-input v-model="formData.name" placeholder="请输入名称" clearable /> </el-form-item>
</el-form-item> </el-col>
</el-col> <el-col :span="24">
<el-col :span="24"> <el-form-item label="描述" prop="description">
<el-form-item label="描述" prop="description"> <el-input v-model="formData.description" placeholder="请输入描述" clearable />
<el-input v-model="formData.description" placeholder="请输入描述" clearable /> </el-form-item>
</el-form-item> </el-col>
</el-col> <el-col :span="12">
<el-col :span="12"> <el-form-item label="优先级" prop="priority">
<el-form-item label="优先级" prop="priority"> <el-input-number v-model="formData.priority" :min="1" />
<el-input-number v-model="formData.priority" :min="1" /> </el-form-item>
</el-form-item> </el-col>
</el-col> <el-col :span="12">
<el-col :span="12"> <el-form-item label="状态" prop="status">
<el-form-item label="状态" prop="status"> <el-switch v-model="formData.status" />
<el-switch v-model="formData.status" /> </el-form-item>
</el-form-item> </el-col>
</el-col> </el-row>
</div> </div>
</el-col> <!-- 规则条件 -->
<!-- 规则条件 --> <div class="item mt-20px">
<el-col :span="24"> <div class="title">规则条件</div>
<div class="item mt-20px"> <el-row>
<div class="title">规则条件</div> <el-col :span="24" v-for="(item, index) in formData.condition" :key="index">
<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-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-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"
<el-option :label="cur.label" :value="cur.value" v-for="cur in options.supplierTypeRangeOptions" :key="cur.value" />
:key="cur.value" /> </el-select>
</el-select> <el-select v-model="item.Value" placeholder="请选择供应商类型" style="flex: 1;" clearable
<el-select v-model="item.Value" placeholder="请选择供应商类型" style="flex: 1;" clearable @change="changeSupplierType">
@change="changeSupplierType"> <el-option v-for="dict in getStrDictOptions(DICT_TYPE.SUPPLIER_TYPE)" :key="dict.value"
<el-option v-for="dict in getStrDictOptions(DICT_TYPE.SUPPLIER_TYPE)" :key="dict.value" :label="dict.label" :value="dict.value" />
:label="dict.label" :value="dict.value" /> </el-select>
</el-select> <!-- </div> -->
<!-- </div> --> </el-form-item>
</el-form-item> <!-- 供应商 -->
<!-- 供应商 --> <el-form-item v-else-if="item.ParamCode == 'SupplierCode'" label="供应商" class="err-120">
<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-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"
<el-option :label="cur.label" :value="cur.value" v-for="cur in options.supplierRangeOptions" :key="cur.value" />
:key="cur.value" /> </el-select>
</el-select> <el-select v-model="item.Value" placeholder="请选择供应商" style="flex: 1;" clearable>
<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-option v-for="cur in options.supplierList" :key="cur.id" :label="cur.name" :value="cur.id" /> </el-select>
</el-select> </el-form-item>
</el-form-item> </el-col>
</el-col> </el-row>
</div> </div>
</el-col> <!-- 规则配置 -->
<!-- 规则配置 --> <div class="item mt-20px">
<el-col :span="24"> <div class="title">规则配置</div>
<div class="item mt-20px"> <el-row>
<div class="title">规则配置</div> <el-col :span="24" v-for="(item, index) in formData.configuration" :key="index">
<el-col :span="24" v-for="(item, index) in formData.configuration" :key="index"> <!-- 按零件拆分 -->
<!-- 按零件拆分 --> <el-form-item v-if="item.ParamCode == 'ByItem'" label="按零件拆分" :prop="'configuration.' + index + '.Value'"
<el-form-item v-if="item.ParamCode == 'ByItem'" label="按零件拆分" :prop="'configuration.' + index + '.Value'" :rules="{
:rules="{ required: true,
required: true, message: '请选择开始时间',
message: '请选择开始时间', trigger: 'change',
trigger: 'change', }">
}"> <el-switch v-model="item.Value" />
<el-switch v-model="item.Value" /> </el-form-item>
</el-form-item> <!-- 按库位拆分 -->
<!-- 按库位拆分 --> <el-form-item v-else-if="item.ParamCode == 'ByLocation'" label="按库位拆分"
<el-form-item v-else-if="item.ParamCode == 'ByLocation'" label="按库位拆分" :prop="'configuration.' + index + '.Value'" :rules="{
:prop="'configuration.' + index + '.Value'" :rules="{ required: true,
required: true, message: '请选择按库位拆分',
message: '请选择按库位拆分', trigger: 'change',
trigger: 'change', }">
}"> <el-switch v-model="item.Value" />
<el-switch v-model="item.Value" /> </el-form-item>
</el-form-item> <!--按器具拆分-->
<!--按器具拆分--> <el-form-item v-else-if="item.ParamCode == 'ByContainer'" label="按器具拆分"
<el-form-item v-else-if="item.ParamCode == 'ByContainer'" label="按器具拆分" :prop="'configuration.' + index + '.Value'" :rules="{
:prop="'configuration.' + index + '.Value'" :rules="{ required: true,
required: true, message: '请选择按器具拆分',
message: '请选择按器具拆分', trigger: 'change',
trigger: 'change', }">
}"> <el-switch v-model="item.Value" />
<el-switch v-model="item.Value" /> </el-form-item>
</el-form-item> <!-- 每个任务明细数量 -->
<!-- 每个任务明细数量 --> <el-form-item v-else-if="item.ParamCode == 'JobDetailCount'" label="每个任务明细数量"
<el-form-item v-else-if="item.ParamCode == 'JobDetailCount'" label="每个任务明细数量" :prop="'configuration.' + index + '.Value'" :rules="{
:prop="'configuration.' + index + '.Value'" :rules="{ required: true,
required: true, message: '请选择每个任务明细数量',
message: '请选择每个任务明细数量', trigger: 'change',
trigger: 'change', }">
}"> <!-- <el-input v-model="item.Value" placeholder="请输入每个任务明细数量" clearable /> -->
<!-- <el-input v-model="item.Value" placeholder="请输入每个任务明细数量" clearable /> --> <el-input-number v-model="item.Value" :min="0" />
<el-input-number v-model="item.Value" :min="0" /> </el-form-item>
</el-form-item> </el-col>
</el-col> </el-row>
</div> </div>
</el-col>
</el-row>
</el-form> </el-form>
</div> </div>
<template #footer> <template #footer>
@ -150,7 +148,6 @@ const formStrategyCode = ref('')
const formData = ref({ const formData = ref({
id: '', id: '',
strategyCode: formStrategyCode.value,//id strategyCode: formStrategyCode.value,//id
code: formStrategyCode.value,//
name: '',// name: '',//
description: '',// description: '',//
priority: '',// priority: '',//
@ -267,7 +264,6 @@ const open = async (type: string, strategyCode: string, id?: number) => {
let data = await RuleApi.getRule(id) let data = await RuleApi.getRule(id)
formData.value.id = data.id formData.value.id = data.id
formData.value.strategyCode = data.strategyCode formData.value.strategyCode = data.strategyCode
formData.value.code = data.code
formData.value.name = data.name formData.value.name = data.name
formData.value.description = data.description formData.value.description = data.description
formData.value.priority = data.priority formData.value.priority = data.priority
@ -302,7 +298,6 @@ const submitForm = async () => {
let data = { let data = {
id: formData.value.id, id: formData.value.id,
strategyCode: formData.value.strategyCode,// strategyCode: formData.value.strategyCode,//
code: formData.value.code,//
name: formData.value.name,// name: formData.value.name,//
description: formData.value.description,// description: formData.value.description,//
priority: formData.value.priority,// priority: formData.value.priority,//
@ -331,7 +326,6 @@ const resetForm = () => {
formData.value = { formData.value = {
id: '', id: '',
strategyCode: formStrategyCode.value,// strategyCode: formStrategyCode.value,//
code: formStrategyCode.value,//
name: '',// name: '',//
description: '',// description: '',//
priority: '',// priority: '',//
@ -345,7 +339,7 @@ const resetForm = () => {
], ],
configuration: [ configuration: [
// //
{ ParamCode: 'ByItem', Value: false}, { ParamCode: 'ByItem', Value: false },
// //
{ ParamCode: 'ByLocation', Value: true }, { ParamCode: 'ByLocation', Value: true },
// //

3
src/views/wms/strategy/purchaseReceiptStrategy/index.vue

@ -12,10 +12,9 @@
<el-table-column align="center" label="优先级" prop="priority" /> <el-table-column align="center" label="优先级" prop="priority" />
<el-table-column align="center" label="状态" prop="status"> <el-table-column align="center" label="状态" prop="status">
<template #default="scope"> <template #default="scope">
<dict-tag :type="DICT_TYPE.COMMON_STATUS" :value="scope.row.status" /> <dict-tag :type="DICT_TYPE.COMMON_STATUS" :value="scope.row.status ? 0 : 1" />
</template> </template>
</el-table-column> </el-table-column>
<!-- <el-table-column label="创建时间" align="center" prop="createTime" width="180" :formatter="dateFormatter" /> -->
<el-table-column align="center" label="操作" fixed="right" width="240"> <el-table-column align="center" label="操作" fixed="right" width="240">
<template #default="scope"> <template #default="scope">
<ButtonBase :Butttondata="butttondata" @button-base-click="buttonTableClick($event, scope.row)" /> <ButtonBase :Butttondata="butttondata" @button-base-click="buttonTableClick($event, scope.row)" />

277
src/views/wms/strategy/supplieDeliveryStrategy/AddForm.vue

@ -4,145 +4,142 @@
<Dialog :title="dialogTitle" v-model="dialogVisible"> <Dialog :title="dialogTitle" v-model="dialogVisible">
<div class="p-20px m--10px" style="max-height: 500px;overflow-y: auto;"> <div class="p-20px m--10px" style="max-height: 500px;overflow-y: auto;">
<el-form ref="formRef" :model="formData" :rules="rules" label-width="120px" label-position="left"> <el-form ref="formRef" :model="formData" :rules="rules" label-width="120px" label-position="left">
<el-row> <!-- 规则 -->
<!-- 规则 --> <div class="item">
<el-col :span="24"> <div class="title">规则</div>
<div class="item"> <el-row>
<div class="title">规则</div> <el-col :span="24">
<el-col :span="24"> <el-form-item label="代码" prop="strategyCode">
<el-form-item label="代码" prop="code"> <el-input v-model="formData.strategyCode" placeholder="请输入代码" clearable disabled />
<el-input v-model="formData.code" placeholder="请输入代码" clearable disabled /> </el-form-item>
</el-form-item> </el-col>
</el-col> <el-col :span="24">
<el-col :span="24"> <el-form-item label="名称" prop="name">
<el-form-item label="名称" prop="name"> <el-input v-model="formData.name" placeholder="请输入名称" clearable />
<el-input v-model="formData.name" placeholder="请输入名称" clearable /> </el-form-item>
</el-form-item> </el-col>
</el-col> <el-col :span="24">
<el-col :span="24"> <el-form-item label="描述" prop="description">
<el-form-item label="描述" prop="description"> <el-input v-model="formData.description" placeholder="请输入描述" clearable />
<el-input v-model="formData.description" placeholder="请输入描述" clearable /> </el-form-item>
</el-form-item> </el-col>
</el-col> <el-col :span="12">
<el-col :span="12"> <el-form-item label="优先级" prop="priority">
<el-form-item label="优先级" prop="priority"> <el-input-number v-model="formData.priority" :min="1" />
<el-input-number v-model="formData.priority" :min="1" /> </el-form-item>
</el-form-item> </el-col>
</el-col> <el-col :span="12">
<el-col :span="12"> <el-form-item label="状态" prop="status">
<el-form-item label="状态" prop="status"> <el-switch v-model="formData.status" />
<el-switch v-model="formData.status" /> </el-form-item>
</el-form-item> </el-col>
</el-col> </el-row>
</div> </div>
</el-col> <!-- 规则条件 -->
<!-- 规则条件 --> <div class="item mt-20px">
<el-col :span="24"> <div class="title">规则条件</div>
<div class="item mt-20px"> <el-row>
<div class="title">规则条件</div> <el-col :span="24" v-for="(item, index) in formData.condition" :key="index">
<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-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-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"
<el-option :label="cur.label" :value="cur.value" v-for="cur in options.supplierTypeRangeOptions" :key="cur.value" />
:key="cur.value" /> </el-select>
</el-select> <el-select v-model="item.Value" placeholder="请选择供应商类型" style="flex: 1;" clearable
<el-select v-model="item.Value" placeholder="请选择供应商类型" style="flex: 1;" clearable @change="changeSupplierType">
@change="changeSupplierType"> <el-option v-for="dict in getStrDictOptions(DICT_TYPE.SUPPLIER_TYPE)" :key="dict.value"
<el-option v-for="dict in getStrDictOptions(DICT_TYPE.SUPPLIER_TYPE)" :key="dict.value" :label="dict.label" :value="dict.value" />
:label="dict.label" :value="dict.value" /> </el-select>
</el-select> <!-- </div> -->
<!-- </div> --> </el-form-item>
</el-form-item> <!-- 供应商 -->
<!-- 供应商 --> <el-form-item v-else-if="item.ParamCode == 'SupplierCode'" label="供应商" class="err-120">
<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-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"
<el-option :label="cur.label" :value="cur.value" v-for="cur in options.supplierRangeOptions" :key="cur.value" />
:key="cur.value" /> </el-select>
</el-select> <el-select v-model="item.Value" placeholder="请选择供应商" style="flex: 1;" clearable>
<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-option v-for="cur in options.supplierList" :key="cur.id" :label="cur.name" :value="cur.id" /> </el-select>
</el-select> </el-form-item>
</el-form-item> <!-- 星期几 -->
<!-- 星期几 --> <el-form-item v-else-if="item.ParamCode == 'Weekday'" label="星期几" class="flex-top err-120">
<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-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"
<el-option :label="cur.label" :value="cur.value" v-for="cur in options.weekRangeOptions" :key="cur.value" />
:key="cur.value" /> </el-select>
</el-select> <div class="checkbox">
<div class="checkbox"> <el-checkbox-group v-model="item.Value" @change="change">
<el-checkbox-group v-model="item.Value" @change="change"> <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>
</el-checkbox-group> </div>
</div> </el-form-item>
</el-form-item> </el-col>
</el-col> </el-row>
</div> </div>
</el-col> <!-- 规则配置 -->
<!-- 规则配置 --> <div class="item mt-20px">
<el-col :span="24"> <div class="title">规则配置</div>
<div class="item mt-20px"> <el-row>
<div class="title">规则配置</div> <!-- 开始时间 -->
<el-col :span="24" v-for="(item, index) in formData.configuration" :key="index">
<!-- 开始时间 --> <!-- 开始时间 -->
<el-col :span="24" v-for="(item, index) in formData.configuration" :key="index"> <el-form-item v-if="item.ParamCode == 'BeginTime'" label="开始时间" :prop="'configuration.' + index + '.Value'"
<!-- 开始时间 --> :rules="{
<el-form-item v-if="item.ParamCode == 'BeginTime'" label="开始时间" required: true,
:prop="'configuration.' + index + '.Value'" :rules="{ message: '请选择开始时间',
required: true, trigger: 'change',
message: '请选择开始时间', }">
trigger: 'change', <el-time-select v-model="item.Value" start="00:00" end="23:59" step="00:15" placeholder="请选择开始时间"
}"> style="width: 100%;" />
<el-time-select v-model="item.Value" start="00:00" end="23:59" step="00:15" placeholder="请选择开始时间" </el-form-item>
style="width: 100%;" /> <!-- 结束时间 -->
</el-form-item> <el-form-item v-else-if="item.ParamCode == 'EndTime'" label="结束时间"
<!-- 结束时间 --> :prop="'configuration.' + index + '.Value'" :rules="{
<el-form-item v-else-if="item.ParamCode == 'EndTime'" label="结束时间" required: true,
:prop="'configuration.' + index + '.Value'" :rules="{ message: '请选择结束时间',
required: true, trigger: 'change',
message: '请选择结束时间', }">
trigger: 'change', <el-time-select v-model="item.Value" start="00:00" end="23:59" step="00:15" placeholder="请选择结束时间"
}"> style="width: 100%;" />
<el-time-select v-model="item.Value" start="00:00" end="23:59" step="00:15" placeholder="请选择结束时间" </el-form-item>
style="width: 100%;" /> <!-- 仓库 -->
</el-form-item> <el-form-item v-else-if="item.ParamCode == 'WarehouseCode'" label="仓库"
<!-- 仓库 --> :prop="'configuration.' + index + '.Value'" :rules="{
<el-form-item v-else-if="item.ParamCode == 'WarehouseCode'" label="仓库" required: true,
:prop="'configuration.' + index + '.Value'" :rules="{ message: '请选择仓库',
required: true, trigger: 'change',
message: '请选择仓库', }">
trigger: 'change', <el-select v-model="item.Value" placeholder="请选择仓库" clearable>
}"> <el-option v-for="cur in options.warehouseList" :key="cur.id" :label="cur.name" :value="cur.id" />
<el-select v-model="item.Value" placeholder="请选择仓库" clearable> </el-select>
<el-option v-for="cur in options.warehouseList" :key="cur.id" :label="cur.name" :value="cur.id" /> </el-form-item>
</el-select> <!-- 月台 -->
</el-form-item> <el-form-item v-else-if="item.ParamCode == 'DockCode'" label="月台"
<!-- 月台 --> :prop="'configuration.' + index + '.Value'" :rules="{
<el-form-item v-else-if="item.ParamCode == 'DockCode'" label="月台" required: true,
:prop="'configuration.' + index + '.Value'" :rules="{ message: '请选择月台',
required: true, trigger: 'change',
message: '请选择月台', }">
trigger: 'change', <el-select v-model="item.Value" placeholder="请选择月台" clearable>
}"> <el-option v-for="cur in options.dockList" :key="cur.id" :label="cur.name" :value="cur.id" />
<el-select v-model="item.Value" placeholder="请选择月台" clearable> </el-select>
<el-option v-for="cur in options.dockList" :key="cur.id" :label="cur.name" :value="cur.id" /> </el-form-item>
</el-select> <!-- 在途库位 -->
</el-form-item> <el-form-item v-else-if="item.ParamCode == 'OnTheWayLocationCode'" label="在途库位"
<!-- 在途库位 --> :prop="'configuration.' + index + '.Value'" :rules="{
<el-form-item v-else-if="item.ParamCode == 'OnTheWayLocationCode'" label="在途库位" required: true,
:prop="'configuration.' + index + '.Value'" :rules="{ message: '请选择在途库位',
required: true, trigger: 'change',
message: '请选择在途库位', }">
trigger: 'change', <el-select v-model="item.Value" placeholder="请选择在途库位" clearable>
}"> <el-option v-for="cur in options.locationList" :key="cur.id" :label="cur.name" :value="cur.id" />
<el-select v-model="item.Value" placeholder="请选择在途库位" clearable> </el-select>
<el-option v-for="cur in options.locationList" :key="cur.id" :label="cur.name" :value="cur.id" /> </el-form-item>
</el-select> </el-col>
</el-form-item> </el-row>
</el-col> </div>
</div>
</el-col>
</el-row>
</el-form> </el-form>
</div> </div>
<template #footer> <template #footer>
@ -180,7 +177,6 @@ const formStrategyCode = ref('')
const formData = ref({ const formData = ref({
id: '', id: '',
strategyCode: formStrategyCode.value,//id strategyCode: formStrategyCode.value,//id
code: formStrategyCode.value,//
name: '',// name: '',//
description: '',// description: '',//
priority: '',// priority: '',//
@ -305,7 +301,6 @@ const open = async (type: string, strategyCode: string, id?: number) => {
let data = await RuleApi.getRule(id) let data = await RuleApi.getRule(id)
formData.value.id = data.id formData.value.id = data.id
formData.value.strategyCode = data.strategyCode formData.value.strategyCode = data.strategyCode
formData.value.code = data.code
formData.value.name = data.name formData.value.name = data.name
formData.value.description = data.description formData.value.description = data.description
formData.value.priority = data.priority formData.value.priority = data.priority
@ -340,7 +335,6 @@ const submitForm = async () => {
let data = { let data = {
id: formData.value.id, id: formData.value.id,
strategyCode: formData.value.strategyCode,// strategyCode: formData.value.strategyCode,//
code: formData.value.code,//
name: formData.value.name,// name: formData.value.name,//
description: formData.value.description,// description: formData.value.description,//
priority: formData.value.priority,// priority: formData.value.priority,//
@ -369,7 +363,6 @@ const resetForm = () => {
formData.value = { formData.value = {
id: '', id: '',
strategyCode: formStrategyCode.value,// strategyCode: formStrategyCode.value,//
code: formStrategyCode.value,//
name: '',// name: '',//
description: '',// description: '',//
priority: '',// priority: '',//

1
src/views/wms/strategy/supplieDeliveryStrategy/index.vue

@ -15,7 +15,6 @@
<dict-tag :type="DICT_TYPE.COMMON_STATUS" :value="scope.row.status?0:1" /> <dict-tag :type="DICT_TYPE.COMMON_STATUS" :value="scope.row.status?0:1" />
</template> </template>
</el-table-column> </el-table-column>
<!-- <el-table-column label="创建时间" align="center" prop="createTime" width="180" :formatter="dateFormatter" /> -->
<el-table-column align="center" label="操作" fixed="right" width="240"> <el-table-column align="center" label="操作" fixed="right" width="240">
<template #default="scope"> <template #default="scope">
<ButtonBase :Butttondata="butttondata" @button-base-click="buttonTableClick($event, scope.row)" /> <ButtonBase :Butttondata="butttondata" @button-base-click="buttonTableClick($event, scope.row)" />

40
src/views/wms/strategy/upShelfStrategy/AddForm.vue

@ -2,10 +2,10 @@
<template> <template>
<Dialog :title="dialogTitle" v-model="dialogVisible"> <Dialog :title="dialogTitle" v-model="dialogVisible">
<div class="p-20px m--10px" style="max-height: 500px;overflow-y: auto;"> <div class="p-20px m--10px" style="max-height: 500px;overflow-y: auto;">
<!-- 规则 --> <el-form ref="formRef" :model="formData" :rules="rules" label-width="120px" label-position="left">
<div class="item"> <!-- 规则 -->
<div class="title">规则</div> <div class="item">
<el-form ref="formRef1" :model="formData" :rules="rules" label-width="120px" label-position="left"> <div class="title">规则</div>
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="代码" prop="code"> <el-form-item label="代码" prop="code">
@ -33,14 +33,16 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
</el-form> </div>
</div>
<!-- 规则条件 --> <!-- 规则条件 -->
<div class="item mt-20px">
<div class="title">规则条件</div> <div class="item mt-20px">
<el-form ref="formRef2" :model="formData" :rules="rules" label-width="120px" label-position="left">
<div class="title">规则条件</div>
<!-- 选择供应商和客户 -->
<el-row> <el-row>
<!-- 选择供应商和客户 -->
<el-col :span="24"> <el-col :span="24">
<el-form-item label="" label-width="0" prop="supplier" class="err-240"> <el-form-item label="" label-width="0" prop="supplier" class="err-240">
<el-select v-model="formData.type" placeholder="" style="width: 110px;margin-right: 10px;"> <el-select v-model="formData.type" placeholder="" style="width: 110px;margin-right: 10px;">
@ -135,12 +137,12 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
</el-form> </div>
</div>
<!-- 规则配置 --> <!-- 规则配置 -->
<div class="item mt-20px">
<div class="title">规则配置</div> <div class="item mt-20px">
<el-form ref="formRef3" :model="formData" :rules="rules" label-width="120px" label-position="left"> <div class="title">规则配置</div>
<el-row> <el-row>
<!-- 仓库 库区 库位组 库位 --> <!-- 仓库 库区 库位组 库位 -->
<el-col :span="24"> <el-col :span="24">
@ -186,8 +188,8 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
</el-form> </div>
</div> </el-form>
</div> </div>
<template #footer> <template #footer>
<!-- 按钮--> <!-- 按钮-->

Loading…
Cancel
Save