| | |
| | | }
|
| | |
|
| | | const submitTransfer = () => {
|
| | | if (sourceLocNo.value == null) {
|
| | | message.error(formatMessage('page.stockTransfer.sourceLocNoNull', '请输入源库位'));
|
| | | return;
|
| | | }
|
| | |
|
| | | if (targetLocNo.value == null) {
|
| | | message.error(formatMessage('page.stockTransfer.targetLocNoNull', '目标库位为空'));
|
| | | return;
|
| | | }
|
| | |
|
| | | if (sourceLocNo.value.indexOf('B') >= 0 || sourceLocNo.value.indexOf('C') >= 0) {
|
| | | message.error(formatMessage('page.stockTransfer.targetLocNoNull', 'PC端平库不可使用移库功能!!'));
|
| | | return;
|
| | | }
|
| | |
|
| | | if (targetLocNo.value.indexOf('B') >= 0 || targetLocNo.value.indexOf('C') >= 0) {
|
| | | message.error(formatMessage('page.stockTransfer.targetLocNoNull', 'PC端平库不可使用移库功能!!'));
|
| | | return;
|
| | | }
|
| | |
|
| | |
|
| | | Modal.confirm({
|
| | | title: formatMessage('page.stockTransfer.transfer', '库存移转'),
|
| | | content: formatMessage('page.stockTransfer.confirm', '确定库存移转吗?'),
|
| | |
| | | }
|
| | |
|
| | | const confirmTransfer = () => {
|
| | | if (sourceLocNo.value == null) {
|
| | | message.error(formatMessage('page.stockTransfer.sourceLocNoNull', '请输入源库位'));
|
| | | return;
|
| | | }
|
| | |
|
| | | if(targetLocNo.value == null) {
|
| | | message.error(formatMessage('page.stockTransfer.targetLocNoNull', '目标库位为空'));
|
| | | return;
|
| | | }
|
| | |
|
| | | post('/api/loc/transfer', {
|
| | | sourceLocNo: sourceLocNo.value,
|
| | | targetLocNo: targetLocNo.value
|
| | |
| | | style="width: 200px;" @change="onSourceLocNoChange" />
|
| | | <span style="margin-left: 10px;margin-right: 10px;">-</span>
|
| | | <a-select v-model:value="targetLocNo" :placeholder="formatMessage('page.stockTransfer.targetLocNo', '目标库位')"
|
| | | style="width: 200px" show-search :options="locNoQueryList" @search="locNoSearch" optionFilterProp="label"
|
| | | optionLabelProp="label">
|
| | | style="width: 200px" show-search :options="locNoQueryList" @search="locNoSearch"
|
| | | optionFilterProp="label" optionLabelProp="label">
|
| | | </a-select>
|
| | | </div>
|
| | | <div class="table-header">
|