|
@ -54,53 +54,53 @@ |
|
|
<el-row key="规则条件row" :gutter="10"> |
|
|
<el-row key="规则条件row" :gutter="10"> |
|
|
<el-col key="供应商和客户col" :span="24" v-for="(item, index) in formData.condition" :key="index"> |
|
|
<el-col key="供应商和客户col" :span="24" v-for="(item, index) in formData.condition" :key="index"> |
|
|
<!-- 选择供应商和客户 --> |
|
|
<!-- 选择供应商和客户 --> |
|
|
<el-form-item key="供应商和客户formItem" label="" label-width="0" class="err-240" v-if="index == 0"> |
|
|
<!-- <el-form-item key="供应商和客户formItem" label="" label-width="0" class="err-240" v-if="index == 0">--> |
|
|
<el-select key="供应商和客户" |
|
|
<!-- <el-select key="供应商和客户"--> |
|
|
v-model="item.ParamCode" |
|
|
<!-- v-model="item.ParamCode"--> |
|
|
placeholder="" |
|
|
<!-- placeholder=""--> |
|
|
style="width: 110px; margin-right: 10px" |
|
|
<!-- style="width: 110px; margin-right: 10px"--> |
|
|
@change="changeSupplierCustomer" |
|
|
<!-- @change="changeSupplierCustomer"--> |
|
|
:disabled="formData.priority==0&&formType=='update'" |
|
|
<!-- :disabled="formData.priority==0&&formType=='update'"--> |
|
|
> |
|
|
<!-- >--> |
|
|
<el-option |
|
|
<!-- <el-option--> |
|
|
:label="cur.label" |
|
|
<!-- :label="cur.label"--> |
|
|
:value="cur.value" |
|
|
<!-- :value="cur.value"--> |
|
|
v-for="(cur, index) in options.typeOptions" |
|
|
<!-- v-for="(cur, index) in options.typeOptions"--> |
|
|
:key="'供应商和客户'+cur.value" |
|
|
<!-- :key="'供应商和客户'+cur.value"--> |
|
|
/> |
|
|
<!-- />--> |
|
|
</el-select> |
|
|
<!-- </el-select>--> |
|
|
<el-select key="供应商和客户Operator" |
|
|
<!-- <el-select key="供应商和客户Operator"--> |
|
|
v-model="item.Operator" |
|
|
<!-- v-model="item.Operator"--> |
|
|
placeholder="请选择范围" |
|
|
<!-- placeholder="请选择范围"--> |
|
|
style="width: 110px; margin-right: 10px" |
|
|
<!-- style="width: 110px; margin-right: 10px"--> |
|
|
:disabled="formData.priority==0&&formType=='update'" |
|
|
<!-- :disabled="formData.priority==0&&formType=='update'"--> |
|
|
> |
|
|
<!-- >--> |
|
|
<el-option |
|
|
<!-- <el-option--> |
|
|
:label="cur.label" |
|
|
<!-- :label="cur.label"--> |
|
|
:value="cur.value" |
|
|
<!-- :value="cur.value"--> |
|
|
v-for="cur in options.rangeOptions1" |
|
|
<!-- v-for="cur in options.rangeOptions1"--> |
|
|
:key="'供应商和客户Operator'+cur.value" |
|
|
<!-- :key="'供应商和客户Operator'+cur.value"--> |
|
|
/> |
|
|
<!-- />--> |
|
|
</el-select> |
|
|
<!-- </el-select>--> |
|
|
<el-select key="供应商和客户Value" |
|
|
<!-- <el-select key="供应商和客户Value"--> |
|
|
v-model="item.Value" |
|
|
<!-- v-model="item.Value"--> |
|
|
:placeholder="`请选择${item.ParamCode == 'SupplierCode' ? '供应商' : '客户'}`" |
|
|
<!-- :placeholder="`请选择${item.ParamCode == 'SupplierCode' ? '供应商' : '客户'}`"--> |
|
|
style="flex: 1" |
|
|
<!-- style="flex: 1"--> |
|
|
clearable |
|
|
<!-- clearable--> |
|
|
multiple |
|
|
<!-- multiple--> |
|
|
collapse-tags |
|
|
<!-- collapse-tags--> |
|
|
filterable |
|
|
<!-- filterable--> |
|
|
:filter-method="filterMethod" |
|
|
<!-- :filter-method="filterMethod"--> |
|
|
:disabled="formData.priority==0&&formType=='update'" |
|
|
<!-- :disabled="formData.priority==0&&formType=='update'"--> |
|
|
> |
|
|
<!-- >--> |
|
|
<el-option |
|
|
<!-- <el-option--> |
|
|
v-for="cur in options.supplierList" |
|
|
<!-- v-for="cur in options.supplierList"--> |
|
|
:key="'供应商和客户Value'+cur.code" |
|
|
<!-- :key="'供应商和客户Value'+cur.code"--> |
|
|
:label="cur.name" |
|
|
<!-- :label="cur.name"--> |
|
|
:value="cur.code" |
|
|
<!-- :value="cur.code"--> |
|
|
/> |
|
|
<!-- />--> |
|
|
</el-select> |
|
|
<!-- </el-select>--> |
|
|
</el-form-item> |
|
|
<!-- </el-form-item>--> |
|
|
<!-- 选择物料类型 --> |
|
|
<!-- 选择物料类型 --> |
|
|
<el-form-item key="物料类型formItem" label="" label-width="0" class="err-240" v-if="index == 1"> |
|
|
<el-form-item key="物料类型formItem" label="" label-width="0" class="err-240" v-if="index == 1"> |
|
|
<el-select key="物料类型" |
|
|
<el-select key="物料类型" |
|
@ -164,6 +164,25 @@ |
|
|
:value="cur.value" |
|
|
:value="cur.value" |
|
|
/> |
|
|
/> |
|
|
</el-select> |
|
|
</el-select> |
|
|
|
|
|
|
|
|
|
|
|
<el-select key="物料状态" |
|
|
|
|
|
v-model="item.Value" |
|
|
|
|
|
placeholder="请选择物料状态" |
|
|
|
|
|
style="flex: 1" |
|
|
|
|
|
clearable |
|
|
|
|
|
multiple |
|
|
|
|
|
collapse-tags |
|
|
|
|
|
v-else-if="item.ParamCode == 'ItemStatus'" |
|
|
|
|
|
:disabled="formData.priority==0&&formType=='update'" |
|
|
|
|
|
> |
|
|
|
|
|
<el-option |
|
|
|
|
|
v-for="cur in getStrDictOptions(DICT_TYPE.ITEM_STATUS)" |
|
|
|
|
|
:key="'物料状态'+cur.value" |
|
|
|
|
|
:label="cur.label" |
|
|
|
|
|
:value="cur.value" |
|
|
|
|
|
/> |
|
|
|
|
|
</el-select> |
|
|
|
|
|
|
|
|
<el-select key="物料分组" |
|
|
<el-select key="物料分组" |
|
|
v-model="item.Value" |
|
|
v-model="item.Value" |
|
|
placeholder="请输入物料分组,多个物料分组以逗号分隔" |
|
|
placeholder="请输入物料分组,多个物料分组以逗号分隔" |
|
@ -206,111 +225,111 @@ |
|
|
/> |
|
|
/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<!-- 选择重量体积还是面积 --> |
|
|
<!-- 选择重量体积还是面积 --> |
|
|
<el-form-item key="重量体积或面积formItem" label="" label-width="0" class="err-240" v-if="index == 2"> |
|
|
<!-- <el-form-item key="重量体积或面积formItem" label="" label-width="0" class="err-240" v-if="index == 2">--> |
|
|
<el-select key="重量体积或面积" |
|
|
<!-- <el-select key="重量体积或面积"--> |
|
|
v-model="item.ParamCode" |
|
|
<!-- v-model="item.ParamCode"--> |
|
|
placeholder="" |
|
|
<!-- placeholder=""--> |
|
|
@change="changeCalculation" |
|
|
<!-- @change="changeCalculation"--> |
|
|
style="width: 110px; margin-right: 10px" |
|
|
<!-- style="width: 110px; margin-right: 10px"--> |
|
|
:disabled="formData.priority==0&&formType=='update'" |
|
|
<!-- :disabled="formData.priority==0&&formType=='update'"--> |
|
|
> |
|
|
<!-- >--> |
|
|
<el-option |
|
|
<!-- <el-option--> |
|
|
:label="cur.label" |
|
|
<!-- :label="cur.label"--> |
|
|
:value="cur.value" |
|
|
<!-- :value="cur.value"--> |
|
|
v-for="cur in options.calculationTypeOptions" |
|
|
<!-- v-for="cur in options.calculationTypeOptions"--> |
|
|
:key="'重量体积或面积'+cur.value" |
|
|
<!-- :key="'重量体积或面积'+cur.value"--> |
|
|
/> |
|
|
<!-- />--> |
|
|
</el-select> |
|
|
<!-- </el-select>--> |
|
|
<el-select key="重量体积或面积Operator" |
|
|
<!-- <el-select key="重量体积或面积Operator"--> |
|
|
v-model="item.Operator" |
|
|
<!-- v-model="item.Operator"--> |
|
|
placeholder="请选择范围" |
|
|
<!-- placeholder="请选择范围"--> |
|
|
style="width: 110px; margin-right: 10px" |
|
|
<!-- style="width: 110px; margin-right: 10px"--> |
|
|
:disabled="formData.priority==0&&formType=='update'" |
|
|
<!-- :disabled="formData.priority==0&&formType=='update'"--> |
|
|
> |
|
|
<!-- >--> |
|
|
<el-option |
|
|
<!-- <el-option--> |
|
|
:label="cur.label" |
|
|
<!-- :label="cur.label"--> |
|
|
:value="cur.value" |
|
|
<!-- :value="cur.value"--> |
|
|
v-for="cur in options.rangeOptions2" |
|
|
<!-- v-for="cur in options.rangeOptions2"--> |
|
|
:key="'重量体积或面积Operator'+cur.value" |
|
|
<!-- :key="'重量体积或面积Operator'+cur.value"--> |
|
|
/> |
|
|
<!-- />--> |
|
|
</el-select> |
|
|
<!-- </el-select>--> |
|
|
<el-input key="重量体积或面积Value" |
|
|
<!-- <el-input key="重量体积或面积Value"--> |
|
|
v-model="item.Value" |
|
|
<!-- v-model="item.Value"--> |
|
|
:placeholder="`请输入${ |
|
|
<!-- :placeholder="`请输入${--> |
|
|
item.ParamCode == 'Weight' ? '重量' : item.ParamCode == 'Area' ? '面积' : '体积' |
|
|
<!-- item.ParamCode == 'Weight' ? '重量' : item.ParamCode == 'Area' ? '面积' : '体积'--> |
|
|
}`" |
|
|
<!-- }`"--> |
|
|
clearable |
|
|
<!-- clearable--> |
|
|
style="flex: 1" |
|
|
<!-- style="flex: 1"--> |
|
|
:disabled="formData.priority==0&&formType=='update'" |
|
|
<!-- :disabled="formData.priority==0&&formType=='update'"--> |
|
|
/> |
|
|
<!-- />--> |
|
|
</el-form-item> |
|
|
<!-- </el-form-item>--> |
|
|
<!-- 库存状态 --> |
|
|
<!-- 库存状态 --> |
|
|
<el-form-item key="库存状态formItem" label="库存状态" class="err-120" v-if="index == 3"> |
|
|
<!-- <el-form-item key="库存状态formItem" label="库存状态" class="err-120" v-if="index == 3">--> |
|
|
<el-select key="库存状态Operator" |
|
|
<!-- <el-select key="库存状态Operator"--> |
|
|
v-model="item.Operator" |
|
|
<!-- v-model="item.Operator"--> |
|
|
placeholder="请选择范围" |
|
|
<!-- placeholder="请选择范围"--> |
|
|
style="width: 110px; margin-right: 10px" |
|
|
<!-- style="width: 110px; margin-right: 10px"--> |
|
|
:disabled="formData.priority==0&&formType=='update'" |
|
|
<!-- :disabled="formData.priority==0&&formType=='update'"--> |
|
|
> |
|
|
<!-- >--> |
|
|
<el-option |
|
|
<!-- <el-option--> |
|
|
:label="cur.label" |
|
|
<!-- :label="cur.label"--> |
|
|
:value="cur.value" |
|
|
<!-- :value="cur.value"--> |
|
|
v-for="cur in options.rangeOptions1" |
|
|
<!-- v-for="cur in options.rangeOptions1"--> |
|
|
:key="'库存状态Operator'+cur.value" |
|
|
<!-- :key="'库存状态Operator'+cur.value"--> |
|
|
/> |
|
|
<!-- />--> |
|
|
</el-select> |
|
|
<!-- </el-select>--> |
|
|
<el-select key="库存状态Value" |
|
|
<!-- <el-select key="库存状态Value"--> |
|
|
v-model="item.Value" |
|
|
<!-- v-model="item.Value"--> |
|
|
placeholder="请选择库存状态" |
|
|
<!-- placeholder="请选择库存状态"--> |
|
|
style="flex: 1" |
|
|
<!-- style="flex: 1"--> |
|
|
clearable |
|
|
<!-- clearable--> |
|
|
multiple |
|
|
<!-- multiple--> |
|
|
collapse-tags |
|
|
<!-- collapse-tags--> |
|
|
:disabled="formData.priority==0&&formType=='update'" |
|
|
<!-- :disabled="formData.priority==0&&formType=='update'"--> |
|
|
> |
|
|
<!-- >--> |
|
|
<el-option |
|
|
<!-- <el-option--> |
|
|
v-for="cur in getStrDictOptions(DICT_TYPE.INVENTORY_STATUS)" |
|
|
<!-- v-for="cur in getStrDictOptions(DICT_TYPE.INVENTORY_STATUS)"--> |
|
|
:key="'库存状态Value'+cur.value" |
|
|
<!-- :key="'库存状态Value'+cur.value"--> |
|
|
:label="cur.label" |
|
|
<!-- :label="cur.label"--> |
|
|
:value="cur.value" |
|
|
<!-- :value="cur.value"--> |
|
|
/> |
|
|
<!-- />--> |
|
|
</el-select> |
|
|
<!-- </el-select>--> |
|
|
</el-form-item> |
|
|
<!-- </el-form-item>--> |
|
|
<!-- 存储类型 --> |
|
|
<!-- 存储类型 --> |
|
|
<el-form-item key="存储类型formItem" label="存储类型" class="err-120" v-if="index == 4"> |
|
|
<!-- <el-form-item key="存储类型formItem" label="存储类型" class="err-120" v-if="index == 4">--> |
|
|
<el-select key="存储类型Operator" |
|
|
<!-- <el-select key="存储类型Operator"--> |
|
|
v-model="item.Operator" |
|
|
<!-- v-model="item.Operator"--> |
|
|
placeholder="请选择范围" |
|
|
<!-- placeholder="请选择范围"--> |
|
|
style="width: 110px; margin-right: 10px" |
|
|
<!-- style="width: 110px; margin-right: 10px"--> |
|
|
:disabled="formData.priority==0&&formType=='update'" |
|
|
<!-- :disabled="formData.priority==0&&formType=='update'"--> |
|
|
> |
|
|
<!-- >--> |
|
|
<el-option |
|
|
<!-- <el-option--> |
|
|
:label="cur.label" |
|
|
<!-- :label="cur.label"--> |
|
|
:value="cur.value" |
|
|
<!-- :value="cur.value"--> |
|
|
v-for="cur in options.rangeOptions1" |
|
|
<!-- v-for="cur in options.rangeOptions1"--> |
|
|
:key="'存储类型Operator'+cur.value" |
|
|
<!-- :key="'存储类型Operator'+cur.value"--> |
|
|
/> |
|
|
<!-- />--> |
|
|
</el-select> |
|
|
<!-- </el-select>--> |
|
|
<el-select key="存储类型Value" |
|
|
<!-- <el-select key="存储类型Value"--> |
|
|
v-model="item.Value" |
|
|
<!-- v-model="item.Value"--> |
|
|
placeholder="请选择存储类型" |
|
|
<!-- placeholder="请选择存储类型"--> |
|
|
style="flex: 1" |
|
|
<!-- style="flex: 1"--> |
|
|
clearable |
|
|
<!-- clearable--> |
|
|
multiple |
|
|
<!-- multiple--> |
|
|
collapse-tags |
|
|
<!-- collapse-tags--> |
|
|
:disabled="formData.priority==0&&formType=='update'" |
|
|
<!-- :disabled="formData.priority==0&&formType=='update'"--> |
|
|
> |
|
|
<!-- >--> |
|
|
<el-option |
|
|
<!-- <el-option--> |
|
|
v-for="cur in getStrDictOptions(DICT_TYPE.STORAGE_TYPE)" |
|
|
<!-- v-for="cur in getStrDictOptions(DICT_TYPE.STORAGE_TYPE)"--> |
|
|
:key="'存储类型Value'+cur.value" |
|
|
<!-- :key="'存储类型Value'+cur.value"--> |
|
|
:label="cur.label" |
|
|
<!-- :label="cur.label"--> |
|
|
:value="cur.value" |
|
|
<!-- :value="cur.value"--> |
|
|
/> |
|
|
<!-- />--> |
|
|
</el-select> |
|
|
<!-- </el-select>--> |
|
|
</el-form-item> |
|
|
<!-- </el-form-item>--> |
|
|
<!-- 库存事务 --> |
|
|
<!-- 生产线 --> |
|
|
<el-form-item key="库存事务formItem" label="库存事务" class="err-120" v-if="index == 5"> |
|
|
<el-form-item key="生产线formItem" label="生产线" class="err-120" v-if="index == 5"> |
|
|
<el-select key="库存事务Operator" |
|
|
<el-select key="生产线Operator" |
|
|
v-model="item.Operator" |
|
|
v-model="item.Operator" |
|
|
placeholder="请选择范围" |
|
|
placeholder="请选择范围" |
|
|
style="width: 110px; margin-right: 10px" |
|
|
style="width: 110px; margin-right: 10px" |
|
@ -320,16 +339,10 @@ |
|
|
:label="cur.label" |
|
|
:label="cur.label" |
|
|
:value="cur.value" |
|
|
:value="cur.value" |
|
|
v-for="cur in options.rangeOptions1" |
|
|
v-for="cur in options.rangeOptions1" |
|
|
:key="'库存事务Operator'+cur.value" |
|
|
:key="'生产线Operator'+cur.value" |
|
|
/> |
|
|
/> |
|
|
</el-select> |
|
|
</el-select> |
|
|
<!-- <el-input key="库存事务Value" |
|
|
<el-input key="生产线Value" style="flex:1" placeholder="请选择生产线" disabled v-model="item.Value" @blur="blurTransactionType"> |
|
|
v-model="item.Value" |
|
|
|
|
|
placeholder="请输入库存事务,多个库存事务以逗号分隔" |
|
|
|
|
|
clearable |
|
|
|
|
|
style="flex: 1" |
|
|
|
|
|
/> --> |
|
|
|
|
|
<el-input key="库存事务Value" style="flex:1" placeholder="请选择库存事务" disabled v-model="item.Value" @blur="blurTransactionType"> |
|
|
|
|
|
<template #suffix> |
|
|
<template #suffix> |
|
|
<el-button :disabled="formData.priority==0&&formType=='update'" type="text" plain style="color:var(--el-button-text-color)" @click="searchTransactionType"> |
|
|
<el-button :disabled="formData.priority==0&&formType=='update'" type="text" plain style="color:var(--el-button-text-color)" @click="searchTransactionType"> |
|
|
<Icon icon="ep:search" class="mr-5px" /> |
|
|
<Icon icon="ep:search" class="mr-5px" /> |
|
@ -544,91 +557,91 @@ |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<!-- 优先整包 --> |
|
|
<!-- 优先整包 --> |
|
|
<el-col :span="24"> |
|
|
<!-- <el-col :span="24">--> |
|
|
<el-form-item key="优先整包formItem" label="优先整包"> |
|
|
<!-- <el-form-item key="优先整包formItem" label="优先整包">--> |
|
|
<el-switch key="优先整包" |
|
|
<!-- <el-switch key="优先整包"--> |
|
|
v-model="formData.configuration.EntirePackageFirst" |
|
|
<!-- v-model="formData.configuration.EntirePackageFirst"--> |
|
|
active-value="TRUE" |
|
|
<!-- active-value="TRUE"--> |
|
|
inactive-value="FALSE" |
|
|
<!-- inactive-value="FALSE"--> |
|
|
/> |
|
|
<!-- />--> |
|
|
</el-form-item> |
|
|
<!-- </el-form-item>--> |
|
|
</el-col> |
|
|
<!-- </el-col>--> |
|
|
<!-- 发料包装类型 --> |
|
|
<!-- 发料包装类型 --> |
|
|
<el-col key="发料包装类型col" :span="24"> |
|
|
<!-- <el-col key="发料包装类型col" :span="24">--> |
|
|
<el-form-item key="发料包装类型formItem" label="发料包装类型"> |
|
|
<!-- <el-form-item key="发料包装类型formItem" label="发料包装类型">--> |
|
|
<div class="checkbox"> |
|
|
<!-- <div class="checkbox">--> |
|
|
<el-radio-group key="发料包装类型" v-model="formData.configuration.IssueStorageType"> |
|
|
<!-- <el-radio-group key="发料包装类型" v-model="formData.configuration.IssueStorageType">--> |
|
|
<el-radio |
|
|
<!-- <el-radio--> |
|
|
:label="cur.value" |
|
|
<!-- :label="cur.value"--> |
|
|
v-for="cur in getStrDictOptions(DICT_TYPE.STORAGE_TYPE)" |
|
|
<!-- v-for="cur in getStrDictOptions(DICT_TYPE.STORAGE_TYPE)"--> |
|
|
:key="'发料包装类型'+cur.value" |
|
|
<!-- :key="'发料包装类型'+cur.value"--> |
|
|
>{{ cur.label }}</el-radio |
|
|
<!-- >{{ cur.label }}</el-radio--> |
|
|
> |
|
|
<!-- >--> |
|
|
</el-radio-group> |
|
|
<!-- </el-radio-group>--> |
|
|
</div> |
|
|
<!-- </div>--> |
|
|
</el-form-item> |
|
|
<!-- </el-form-item>--> |
|
|
</el-col> |
|
|
<!-- </el-col>--> |
|
|
<!-- 多次发料 --> |
|
|
<!-- 多次发料 --> |
|
|
<el-col key="多次发料col" :span="7"> |
|
|
<!-- <el-col key="多次发料col" :span="7">--> |
|
|
<el-form-item key="多次发料formItem" label="多次发料"> |
|
|
<!-- <el-form-item key="多次发料formItem" label="多次发料">--> |
|
|
<el-switch key="多次发料" |
|
|
<!-- <el-switch key="多次发料"--> |
|
|
v-model="formData.configuration.IsSplit" |
|
|
<!-- v-model="formData.configuration.IsSplit"--> |
|
|
active-value="TRUE" |
|
|
<!-- active-value="TRUE"--> |
|
|
inactive-value="FALSE" |
|
|
<!-- inactive-value="FALSE"--> |
|
|
/> |
|
|
<!-- />--> |
|
|
</el-form-item> |
|
|
<!-- </el-form-item>--> |
|
|
</el-col> |
|
|
<!-- </el-col>--> |
|
|
<!-- 拆分次数 --> |
|
|
<!-- 拆分次数 --> |
|
|
<el-col key="拆分次数col" :span="8"> |
|
|
<!-- <el-col key="拆分次数col" :span="8">--> |
|
|
<el-form-item key="拆分次数formItem" label="拆分次数" label-width="70px"> |
|
|
<!-- <el-form-item key="拆分次数formItem" label="拆分次数" label-width="70px">--> |
|
|
<el-input-number key="拆分次数" |
|
|
<!-- <el-input-number key="拆分次数"--> |
|
|
v-model="formData.configuration.EachTimeQty" |
|
|
<!-- v-model="formData.configuration.EachTimeQty"--> |
|
|
:min="0" |
|
|
<!-- :min="0"--> |
|
|
controls-position="right" |
|
|
<!-- controls-position="right"--> |
|
|
/> |
|
|
<!-- />--> |
|
|
</el-form-item> |
|
|
<!-- </el-form-item>--> |
|
|
</el-col> |
|
|
<!-- </el-col>--> |
|
|
<!-- 时间间隔 --> |
|
|
<!-- 时间间隔 --> |
|
|
<el-col key="时间间隔col" :span="9"> |
|
|
<!-- <el-col key="时间间隔col" :span="9">--> |
|
|
<el-form-item key="时间间隔formItem" label="时间间隔" label-width="70px"> |
|
|
<!-- <el-form-item key="时间间隔formItem" label="时间间隔" label-width="70px">--> |
|
|
<el-input-number key="时间间隔" |
|
|
<!-- <el-input-number key="时间间隔"--> |
|
|
v-model="formData.configuration.TimeInterval" |
|
|
<!-- v-model="formData.configuration.TimeInterval"--> |
|
|
:min="0" |
|
|
<!-- :min="0"--> |
|
|
style="flex: 1; margin-right: 10px" |
|
|
<!-- style="flex: 1; margin-right: 10px"--> |
|
|
controls-position="right" |
|
|
<!-- controls-position="right"--> |
|
|
/>小时 |
|
|
<!-- />小时--> |
|
|
</el-form-item> |
|
|
<!-- </el-form-item>--> |
|
|
</el-col> |
|
|
<!-- </el-col>--> |
|
|
<!-- 使用整理库位--> |
|
|
<!-- 使用整理库位--> |
|
|
<el-col key="使用整理库位col" :span="24"> |
|
|
<!-- <el-col key="使用整理库位col" :span="24">--> |
|
|
<el-form-item key="使用整理库位formItem" label="使用整理库位"> |
|
|
<!-- <el-form-item key="使用整理库位formItem" label="使用整理库位">--> |
|
|
<el-switch key="使用整理库位" |
|
|
<!-- <el-switch key="使用整理库位"--> |
|
|
v-model="formData.configuration.UseOrganizeLocation" |
|
|
<!-- v-model="formData.configuration.UseOrganizeLocation"--> |
|
|
active-value="TRUE" |
|
|
<!-- active-value="TRUE"--> |
|
|
inactive-value="FALSE" |
|
|
<!-- inactive-value="FALSE"--> |
|
|
/> |
|
|
<!-- />--> |
|
|
</el-form-item> |
|
|
<!-- </el-form-item>--> |
|
|
</el-col> |
|
|
<!-- </el-col>--> |
|
|
<!-- 使用在途库位 --> |
|
|
<!-- 使用在途库位 --> |
|
|
<el-col key="使用在途库位col" :span="24"> |
|
|
<!-- <el-col key="使用在途库位col" :span="24">--> |
|
|
<el-form-item key="使用在途库位formItem" label="使用在途库位"> |
|
|
<!-- <el-form-item key="使用在途库位formItem" label="使用在途库位">--> |
|
|
<el-switch key="使用在途库位" |
|
|
<!-- <el-switch key="使用在途库位"--> |
|
|
v-model="formData.configuration.UseTransportLocation" |
|
|
<!-- v-model="formData.configuration.UseTransportLocation"--> |
|
|
active-value="TRUE" |
|
|
<!-- active-value="TRUE"--> |
|
|
inactive-value="FALSE" |
|
|
<!-- inactive-value="FALSE"--> |
|
|
/> |
|
|
<!-- />--> |
|
|
</el-form-item> |
|
|
<!-- </el-form-item>--> |
|
|
</el-col> |
|
|
<!-- </el-col>--> |
|
|
<!-- 生成接收任务 --> |
|
|
<!-- 生成接收任务 --> |
|
|
<el-col key="生成接收任务col" :span="24"> |
|
|
<!-- <el-col key="生成接收任务col" :span="24">--> |
|
|
<el-form-item key="生成接收任务formItem" label="生成接收任务"> |
|
|
<!-- <el-form-item key="生成接收任务formItem" label="生成接收任务">--> |
|
|
<el-switch key="生成接收任务" |
|
|
<!-- <el-switch key="生成接收任务"--> |
|
|
v-model="formData.configuration.CreateReceiptJob" |
|
|
<!-- v-model="formData.configuration.CreateReceiptJob"--> |
|
|
active-value="TRUE" |
|
|
<!-- active-value="TRUE"--> |
|
|
inactive-value="FALSE" |
|
|
<!-- inactive-value="FALSE"--> |
|
|
/> |
|
|
<!-- />--> |
|
|
</el-form-item> |
|
|
<!-- </el-form-item>--> |
|
|
</el-col> |
|
|
<!-- </el-col>--> |
|
|
</el-row> |
|
|
</el-row> |
|
|
</div> |
|
|
</div> |
|
|
</el-form> |
|
|
</el-form> |
|
@ -665,9 +678,8 @@ import { Location } from '@/views/wms/basicDataManage/factoryModeling/location/l |
|
|
import { isString } from '@/utils/is' |
|
|
import { isString } from '@/utils/is' |
|
|
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' |
|
|
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' |
|
|
import * as TransactiontypeApi from '@/api/wms/transactiontype' |
|
|
import * as TransactiontypeApi from '@/api/wms/transactiontype' |
|
|
import { Transactiontype } from '@/views/wms/basicDataManage/documentSetting/transactiontype/transactiontype.data' |
|
|
import { Productionline } from '@/views/wms/basicDataManage/factoryModeling/productionline/productionline.data' |
|
|
|
|
|
import * as ProductionlineApi from '@/api/wms/productionline' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const { t } = useI18n() // 国际化 |
|
|
const { t } = useI18n() // 国际化 |
|
@ -693,18 +705,10 @@ const formData = ref({ |
|
|
status: true, //状态 |
|
|
status: true, //状态 |
|
|
//规则条件集合 |
|
|
//规则条件集合 |
|
|
condition: [ |
|
|
condition: [ |
|
|
// 供应商 |
|
|
|
|
|
{ ParamCode: 'SupplierCode', Operator: 'IN', Value: '' }, |
|
|
|
|
|
// 物料类型/物料分组/物料/abc类/项目/ |
|
|
// 物料类型/物料分组/物料/abc类/项目/ |
|
|
{ ParamCode: 'ItemType', Operator: 'IN', Value: '' }, |
|
|
{ ParamCode: 'ItemType', Operator: 'IN', Value: '' }, |
|
|
// 重量/体积/面积 |
|
|
// 生产线 |
|
|
{ ParamCode: 'Weight', Operator: '>', Value: [] }, |
|
|
{ ParamCode: 'Productionline', Operator: 'IN', Value: '' } |
|
|
// 库存状态 |
|
|
|
|
|
{ ParamCode: 'InventoryStatus', Operator: 'IN', Value: [] }, |
|
|
|
|
|
// 存储类型 |
|
|
|
|
|
{ ParamCode: 'StorageType', Operator: 'IN', Value: [] }, |
|
|
|
|
|
// 库存事务 |
|
|
|
|
|
{ ParamCode: 'TransactionType', Operator: 'IN', Value: '' } |
|
|
|
|
|
], |
|
|
], |
|
|
configuration: { |
|
|
configuration: { |
|
|
// 仓库代码 |
|
|
// 仓库代码 |
|
@ -789,7 +793,8 @@ const options = reactive({ |
|
|
{ value: 'ItemGroup', label: '物料分组' }, |
|
|
{ value: 'ItemGroup', label: '物料分组' }, |
|
|
{ value: 'ItemCode', label: '物料' }, |
|
|
{ value: 'ItemCode', label: '物料' }, |
|
|
{ value: 'Project', label: '项目' }, |
|
|
{ value: 'Project', label: '项目' }, |
|
|
{ value: 'AbcClass', label: 'ABC类' } |
|
|
{ value: 'AbcClass', label: 'ABC类' }, |
|
|
|
|
|
{ value: 'ItemStatus', label: '物料状态' } |
|
|
], |
|
|
], |
|
|
// 重量体积面积类型列表 |
|
|
// 重量体积面积类型列表 |
|
|
calculationTypeOptions: [ |
|
|
calculationTypeOptions: [ |
|
@ -1007,10 +1012,10 @@ const blurWarehouse = async ()=>{ |
|
|
//事务类型 |
|
|
//事务类型 |
|
|
const searchTransactionType = ()=>{ |
|
|
const searchTransactionType = ()=>{ |
|
|
searchTableRef.value.open( |
|
|
searchTableRef.value.open( |
|
|
'请选择事务类型', |
|
|
'请选择生产线', |
|
|
Transactiontype.allSchemas, |
|
|
Productionline.allSchemas, |
|
|
TransactiontypeApi.getTransactiontypePage, |
|
|
ProductionlineApi.getProductionlinePage, |
|
|
'TransactionType', |
|
|
'Productionline', |
|
|
'code', |
|
|
'code', |
|
|
true, |
|
|
true, |
|
|
undefined, |
|
|
undefined, |
|
@ -1096,8 +1101,8 @@ const searchWarehouse = ()=>{ |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
const searchTableSuccess = (formField, searchField, val, type, row) => { |
|
|
const searchTableSuccess = (formField, searchField, val, type, row) => { |
|
|
if(formField=='TransactionType'){ |
|
|
if(formField=='Productionline'){ |
|
|
let transactionType = formData.value.condition.find(item=>item['ParamCode']=='TransactionType') |
|
|
let transactionType = formData.value.condition.find(item=>item['ParamCode']=='Productionline') |
|
|
if(transactionType){ |
|
|
if(transactionType){ |
|
|
transactionType.Value = val.map(item=>(item['code'])).join(',') |
|
|
transactionType.Value = val.map(item=>(item['code'])).join(',') |
|
|
} |
|
|
} |
|
@ -1164,11 +1169,14 @@ const open = async (type: string, strategyCode: string, id?: number) => { |
|
|
if (data.condition) { |
|
|
if (data.condition) { |
|
|
formData.value.condition = JSON.parse(data.condition) |
|
|
formData.value.condition = JSON.parse(data.condition) |
|
|
formData.value.condition.forEach((item, index) => { |
|
|
formData.value.condition.forEach((item, index) => { |
|
|
|
|
|
console.log(item) |
|
|
if ((item.Operator == 'IN' || item.Operator == 'NOT IN')&& Array.isArray(item.Value)) { |
|
|
if ((item.Operator == 'IN' || item.Operator == 'NOT IN')&& Array.isArray(item.Value)) { |
|
|
|
|
|
console.log(item.Value) |
|
|
item.Value = item.Value.split(',') |
|
|
item.Value = item.Value.split(',') |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
console.log(formData.value.condition) |
|
|
if (data.configuration) { |
|
|
if (data.configuration) { |
|
|
formData.value.configuration = JSON.parse(data.configuration) |
|
|
formData.value.configuration = JSON.parse(data.configuration) |
|
|
} |
|
|
} |
|
@ -1298,8 +1306,8 @@ const resetForm = () => { |
|
|
{ ParamCode: 'InventoryStatus', Operator: 'IN', Value: [] }, |
|
|
{ ParamCode: 'InventoryStatus', Operator: 'IN', Value: [] }, |
|
|
// 存储类型 |
|
|
// 存储类型 |
|
|
{ ParamCode: 'StorageType', Operator: 'IN', Value: [] }, |
|
|
{ ParamCode: 'StorageType', Operator: 'IN', Value: [] }, |
|
|
// 库存事务 |
|
|
// 生产线 |
|
|
{ ParamCode: 'TransactionType', Operator: 'IN', Value: '' } |
|
|
{ ParamCode: 'Productionline', Operator: 'IN', Value: '' } |
|
|
], |
|
|
], |
|
|
|
|
|
|
|
|
configuration: { |
|
|
configuration: { |
|
|