| | |
| | | <a-form :model="formData" ref="formTable" name="formTable" :label-col="{ span: 8 }" |
| | | :wrapper-col="{ span: 16 }" style="display: flex;justify-content: space-between;flex-wrap: wrap;" |
| | | autocomplete="off" @finish="onFinish" @finishFailed="onFinishFailed"> |
| | | <a-form-item :label="formatMessage('db.strategy_suggest_loc_rule.mat_id', '商品')" name="matId" |
| | | <a-form-item :label="formatMessage('db.strategy_suggest_loc_rule.locType$', '库位类型')" name="locType$" |
| | | style="width: 250px;"> |
| | | <a-select v-model:value="formData.locType" :options="[ |
| | | { label: '满托', value: 1 }, |
| | | { label: '空托', value: 0 }, |
| | | ]"> |
| | | </a-select> |
| | | </a-form-item> |
| | | <a-form-item v-if="formData.locType != 0" :label="formatMessage('db.strategy_suggest_loc_rule.mat_id', '商品')" name="matId" |
| | | style="width: 250px;" :rules="[{ required: true }]"> |
| | | <a-select v-model:value="formData.matId" mode="multiple" :placeholder="formatMessage('common.select', '请选择')" |
| | | style="width: 100%" show-search :options="matQueryList" optionFilterProp="label" |
| | | optionLabelProp="label" @click="handleSelectMatClick" :open="false"> |
| | | </a-select> |
| | | </a-form-item> |
| | | <a-form-item :label="formatMessage('db.strategy_suggest_loc_rule.batch', '批号')" name="batch" |
| | | <a-form-item v-if="formData.locType != 0" :label="formatMessage('db.strategy_suggest_loc_rule.batch', '批号')" name="batch" |
| | | style="width: 250px;"> |
| | | <a-input v-model:value="formData.batch" /> |
| | | </a-form-item> |