自动化立体仓库 - WMS系统
#
zhou zhou
2025-10-21 93892dffae58016f8ffd9ee28bbbfa82a66bd7ad
#
2个文件已修改
135 ■■■■■ 已修改文件
pom.xml 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/erpReceiving/erpReceiving.html 128 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pom.xml
@@ -133,6 +133,13 @@
            <artifactId>dynamic-datasource-spring-boot-starter</artifactId>
            <version>4.2.0</version>
        </dependency>
        <dependency>
            <groupId>webapi</groupId>
            <artifactId>webapi</artifactId>
            <version>1.0.0</version>
            <scope>system</scope>
            <systemPath>${project.basedir}/src/main/resources/lib/webapi.jar</systemPath>
        </dependency>
<!--        <dependency>-->
<!--            <groupId>kingdee-xw-openapi</groupId>-->
<!--            <artifactId>kingdee-xw-openapi</artifactId>-->
src/main/webapp/views/erpReceiving/erpReceiving.html
@@ -44,16 +44,16 @@
        </el-form>
        <el-form :inline="true">
            <el-form-item label="">
               <el-button type="primary" @click="tongbu">同步</el-button>
               <el-button type="primary" @click="tongbu" >同步</el-button>
            </el-form-item>
            <el-form-item label="">
               <el-button type="primary">撤销同步</el-button>
               <el-button type="primary" @click="caneltongbu1">撤销同步</el-button>
            </el-form-item>
            <el-form-item label="">
               <el-button type="primary">退料</el-button>
               <el-button type="primary" @click="tongbureturn">退料</el-button>
            </el-form-item>
            <el-form-item label="">
               <el-button type="primary">撤销退料</el-button>
               <el-button type="primary" @click="caneltongbureturn">撤销退料</el-button>
            </el-form-item>
        </el-form>
        <el-table :data="tableData" border style="width: 100%" row-key="finterid" @selection-change="handleSelectionChange" max-height="650">
@@ -79,9 +79,9 @@
            </el-table-column>
            <el-table-column prop="fplanfinishdate" label="计划完工时间">
            </el-table-column>
            <el-table-column prop="iz_sync_receive" label="是否同步" width="90">
            <el-table-column prop="izSyncReceive" label="是否同步" width="90">
            </el-table-column>
            <el-table-column prop="iz_sync_receive_return" label="是否退料" width="90">
            <el-table-column prop="izSyncReceiveReturn" label="是否退料" width="90">
            </el-table-column>
        </el-table>
<!--            <div style="margin-top: 10px">-->
@@ -120,6 +120,7 @@
                })
                const tableData = ref([])
                const defaultTime = ref(new Date())
                const fullscreenLoading = ref(false)
                const options = [
                    {
@@ -144,7 +145,7 @@
                        data.create_time = tableSearchParam.value.datetime[0] + " - " + tableSearchParam.value.datetime[1]
                    }
                    $.ajax({
                        url: baseUrl + "/iCMO/getList/auth",
                        url: "http://127.0.0.1:9090/mo/materialreceive/getList",
                        headers: {
                            'token': localStorage.getItem('token')
                        },
@@ -169,8 +170,13 @@
                }
                function tongbu(){
                    const loading = ElementPlus.ElLoading.service({
                        lock: true,
                        text: 'Loading',
                        background: 'rgba(0, 0, 0, 0.7)',
                    })
                    $.ajax({
                        url: baseUrl + "/other/tongbu/v1",
                        url:"http://127.0.0.1:9090/mo/materialreceive/tongbu",
                        headers: {
                            'token': localStorage.getItem('token')
                        },
@@ -179,9 +185,112 @@
                        contentType: 'application/json;charset=UTF-8',
                        method: 'POST',
                        success: function(res) {
                            loading.close();
                            if (res.code == 200) {
                                ElementPlus.ElMessage({
                                    message: "同步完成",
                                    type: 'success'
                                });
                            } else if (res.code === 403) {
                                top.location.href = baseUrl + "/";
                            } else {
                                ElementPlus.ElMessage({
                                    message: res.msg,
                                    type: 'error'
                                });
                            }
                        }
                    });
                }
                function caneltongbu1(){
                    const loading = ElementPlus.ElLoading.service({
                        lock: true,
                        text: 'Loading',
                        background: 'rgba(0, 0, 0, 0.7)',
                    })
                    $.ajax({
                        url: "http://127.0.0.1:9090/mo/materialreceive/caneltongbu1",
                        headers: {
                            'token': localStorage.getItem('token')
                        },
                        data: JSON.stringify(selectList.value),
                        dataType: 'json',
                        contentType: 'application/json;charset=UTF-8',
                        method: 'POST',
                        success: function(res) {
                            loading.close();
                            if (res.code == 200) {
                                ElementPlus.ElMessage({
                                    message: "撤销同步完成",
                                    type: 'success'
                                });
                            } else if (res.code === 403) {
                                top.location.href = baseUrl + "/";
                            } else {
                                ElementPlus.ElMessage({
                                    message: res.msg,
                                    type: 'error'
                                });
                            }
                        }
                    });
                }
                function tongbureturn(){
                    const loading = ElementPlus.ElLoading.service({
                        lock: true,
                        text: 'Loading',
                        background: 'rgba(0, 0, 0, 0.7)',
                    })
                    $.ajax({
                        url: "http://127.0.0.1:9090/mo/materialreceive/tongbureturn",
                        headers: {
                            'token': localStorage.getItem('token')
                        },
                        data: JSON.stringify(selectList.value),
                        dataType: 'json',
                        contentType: 'application/json;charset=UTF-8',
                        method: 'POST',
                        success: function(res) {
                            loading.close();
                            if (res.code == 200) {
                                ElementPlus.ElMessage({
                                    message: "退料完成",
                                    type: 'success'
                                });
                            } else if (res.code === 403) {
                                top.location.href = baseUrl + "/";
                            } else {
                                ElementPlus.ElMessage({
                                    message: res.msg,
                                    type: 'error'
                                });
                            }
                        }
                    });
                }
                function caneltongbureturn(){
                    const loading = ElementPlus.ElLoading.service({
                        lock: true,
                        text: 'Loading',
                        background: 'rgba(0, 0, 0, 0.7)',
                    })
                    $.ajax({
                        url: "http://127.0.0.1:9090/mo/materialreceive/caneltongbureturn",
                        headers: {
                            'token': localStorage.getItem('token')
                        },
                        data: JSON.stringify(selectList.value),
                        dataType: 'json',
                        contentType: 'application/json;charset=UTF-8',
                        method: 'POST',
                        success: function(res) {
                            loading.close();
                            if (res.code == 200) {
                                ElementPlus.ElMessage({
                                    message: "撤销退料完成",
                                    type: 'success'
                                });
                            } else if (res.code === 403) {
@@ -226,6 +335,9 @@
                    options,
                    page,
                    tongbu,
                    caneltongbu1,
                    tongbureturn,
                    caneltongbureturn,
                    handleSizeChange,
                    handleCurrentChange,
                    handleSelectionChange