|
@@ -157,6 +157,21 @@
|
|
<stack @register="registerStackingEntruckingModal" :machine="queryParam.ccmNo" @success="handleSuccess" />
|
|
<stack @register="registerStackingEntruckingModal" :machine="queryParam.ccmNo" @success="handleSuccess" />
|
|
<!-- 打印 -->
|
|
<!-- 打印 -->
|
|
<printModal @register="registerPrintModal" @success="handleSuccess" />
|
|
<printModal @register="registerPrintModal" @success="handleSuccess" />
|
|
|
|
+ <!-- 修改目的地 -->
|
|
|
|
+ <a-modal v-model:open="openTypeConfigIdModal" title="切换目的地" centered width="400px" :footer="null">
|
|
|
|
+ <div class="flex justify-center items-center" style="padding: 20px">
|
|
|
|
+ <div>选择目的地:</div>
|
|
|
|
+ <JSearchSelect
|
|
|
|
+ type="list"
|
|
|
|
+ style="width: 200px"
|
|
|
|
+ v-model:value="currentRecord.destinationId"
|
|
|
|
+ :options="destinationOptions[currentRecord.ccmNo]"
|
|
|
|
+ placeholder="请选择"
|
|
|
|
+ allowClear
|
|
|
|
+ @change="(v) => handleDestinationIdChange(v, currentRecord)"
|
|
|
|
+ />
|
|
|
|
+ </div>
|
|
|
|
+ </a-modal>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -286,6 +301,8 @@
|
|
]);
|
|
]);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ const openTypeConfigIdModal = ref(false);
|
|
|
|
+ const currentRecord = ref<any>();
|
|
/**
|
|
/**
|
|
* 下拉操作栏
|
|
* 下拉操作栏
|
|
*/
|
|
*/
|
|
@@ -303,6 +320,14 @@
|
|
onClick: handleLog.bind(null, record),
|
|
onClick: handleLog.bind(null, record),
|
|
disabled: false,
|
|
disabled: false,
|
|
},
|
|
},
|
|
|
|
+ {
|
|
|
|
+ label: '修改目的地',
|
|
|
|
+ onClick: () => {
|
|
|
|
+ openTypeConfigIdModal.value = true;
|
|
|
|
+ currentRecord.value = record;
|
|
|
|
+ },
|
|
|
|
+ disabled: false,
|
|
|
|
+ },
|
|
{
|
|
{
|
|
label: '删除',
|
|
label: '删除',
|
|
popConfirm: {
|
|
popConfirm: {
|
|
@@ -515,12 +540,14 @@
|
|
okText: '确认',
|
|
okText: '确认',
|
|
cancelText: '取消',
|
|
cancelText: '取消',
|
|
onOk: () => {
|
|
onOk: () => {
|
|
- return destinationSwitch({
|
|
|
|
|
|
+ const fetchFn = record.typeConfigId === '1024' ? edit : destinationSwitch;
|
|
|
|
+ return fetchFn({
|
|
...record,
|
|
...record,
|
|
typeConfigId: v,
|
|
typeConfigId: v,
|
|
destination: destinationInfo.label,
|
|
destination: destinationInfo.label,
|
|
}).then(() => {
|
|
}).then(() => {
|
|
handleSuccess();
|
|
handleSuccess();
|
|
|
|
+ openTypeConfigIdModal.value = false;
|
|
});
|
|
});
|
|
},
|
|
},
|
|
onCancel: () => {
|
|
onCancel: () => {
|