#
Junjie
2024-09-09 04fd71bcdd2f4d13f7fcb1f59952f6decdbb3d65
#
2个文件已修改
28 ■■■■■ 已修改文件
zy-asrs-admin/src/components/orderOut/orderOutBatchPreview/index.vue 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-admin/src/components/orderOut/orderOutMergePreview/stockOut.vue 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-admin/src/components/orderOut/orderOutBatchPreview/index.vue
@@ -21,6 +21,7 @@
let searchInput = ref(null);
let tableData = ref([]);
const operationPortList = ref([])
const globalOperationPort = ref(null)
const open = ref(false);
const showWidth = ref("60%")
const records = ref([])
@@ -178,6 +179,7 @@
    let defaultOperationPort = "";
    if (operationPortList.value.length > 0) {
        defaultOperationPort = operationPortList.value[0].value;
        globalOperationPort.value = defaultOperationPort;
    }
    post('/api/out/orderOut/batch/preview', {
@@ -229,6 +231,14 @@
    })
}
const handleGlobalOperationPortChange = () => {
    if(tableData.value.length > 0) {
        tableData.value.forEach((item) => {
            item.operationPort = globalOperationPort.value;
        })
    }
}
defineExpose({
    open,
    showWidth,
@@ -247,6 +257,10 @@
    <div>
        <a-modal v-model:open="open" :width="showWidth" :title="formatMessage('page.orderOutPreview.preview', '预览订单出库')"
            @ok="handleOk">
            <div>
                <span>作业口:</span>
                <a-select v-model:value="globalOperationPort" :options="operationPortList" @change="handleGlobalOperationPortChange"></a-select>
            </div>
            <a-table :data-source="tableData" :loading="loading" :defaultExpandAllRows="false" :key="TABLE_KEY"
                rowKey="id" :scroll="{ y: 768, scrollToFirstRowOnChange: true }" :columns="columns">
                <template #bodyCell="{ column, text, record, index }">
zy-asrs-admin/src/components/orderOut/orderOutMergePreview/stockOut.vue
@@ -21,6 +21,7 @@
let searchInput = ref(null);
let tableData = ref([]);
const operationPortList = ref([])
const globalOperationPort = ref(null)
const open = ref(false);
const showWidth = ref("60%")
const records = ref([])
@@ -186,6 +187,7 @@
    let defaultOperationPort = "";
    if (operationPortList.value.length > 0) {
        defaultOperationPort = operationPortList.value[0].value;
        globalOperationPort.value = defaultOperationPort;
    }
    post('/api/out/orderOut/merge/loc/preview', data).then((resp) => {
@@ -238,6 +240,14 @@
    })
}
const handleGlobalOperationPortChange = () => {
    if(tableData.value.length > 0) {
        tableData.value.forEach((item) => {
            item.operationPort = globalOperationPort.value;
        })
    }
}
defineExpose({
    open,
    showWidth,
@@ -255,6 +265,10 @@
    <div>
        <a-modal v-model:open="open" :width="showWidth"
            :title="formatMessage('page.orderOutPreview.preview', '预览合并订单出库')" @ok="handleOk">
            <div>
                <span>作业口:</span>
                <a-select v-model:value="globalOperationPort" :options="operationPortList" @change="handleGlobalOperationPortChange"></a-select>
            </div>
            <a-table :data-source="tableData" :loading="loading" :defaultExpandAllRows="false" :key="TABLE_KEY"
                rowKey="index" :scroll="{ y: 768, scrollToFirstRowOnChange: true }" :columns="columns">
                <template #bodyCell="{ column, text, record, index }">