From 83dbb84a938031d9c0d7fd2baced339bb84fedef Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期五, 24 十月 2025 17:05:38 +0800
Subject: [PATCH] #

---
 src/main/webapp/views/erpMaterialuse/materialuse.html     |   53 ++++
 src/main/webapp/static/js/erp/LodopFuncs.js               |    2 
 src/main/webapp/views/erpMaterialwwout/materialwwout.html |  600 ++++++++++++++++++++++++++++++++++++++++++++++++++
 src/main/webapp/views/erpReceiving/erpReceiving.html      |   39 +++
 4 files changed, 691 insertions(+), 3 deletions(-)

diff --git a/src/main/webapp/static/js/erp/LodopFuncs.js b/src/main/webapp/static/js/erp/LodopFuncs.js
index 07ad300..ad02d5a 100644
--- a/src/main/webapp/static/js/erp/LodopFuncs.js
+++ b/src/main/webapp/static/js/erp/LodopFuncs.js
@@ -113,7 +113,7 @@
             return LODOP;
         };
         //===濡備笅绌虹櫧浣嶇疆閫傚悎璋冪敤缁熶竴鍔熻兘(濡傛敞鍐岃鍙ャ�佽瑷�閫夋嫨绛�):===
-        LODOP.SET_LICENSES("", "641484550535952575865576166561", "688858710010010811411756128900", "");
+        // LODOP.SET_LICENSES("", "641484550535952575865576166561", "688858710010010811411756128900", "");
         // LODOP.SET_LICENSES("","AF8A5800B819CD7AB4BCF67B925D7B52","","");
 
         //===========================================================
diff --git a/src/main/webapp/views/erpMaterialuse/materialuse.html b/src/main/webapp/views/erpMaterialuse/materialuse.html
index d4229a0..bda3ef1 100644
--- a/src/main/webapp/views/erpMaterialuse/materialuse.html
+++ b/src/main/webapp/views/erpMaterialuse/materialuse.html
@@ -174,6 +174,11 @@
                         data.datetime = null
                         data.create_time = tableSearchParam.value.datetime[0] + " - " + tableSearchParam.value.datetime[1]
                     }
+                    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/getList",
                         headers: {
@@ -184,9 +189,13 @@
                         contentType: 'application/json;charset=UTF-8',
                         method: 'GET',
                         success: function(res) {
+                            loading.close()
                             if (res.code == 200) {
                                 tableData.value = res.data
-
+                                ElementPlus.ElMessage({
+                                    message: "鎷夊彇鏁版嵁瀹屾垚",
+                                    type: 'success'
+                                });
                             } else if (res.code === 403) {
                                 top.location.href = baseUrl + "/";
                             } else {
@@ -200,6 +209,13 @@
                 }
 
                 function fnCanelPrint(){
+                    if (selectList.value.length === 0){
+                        ElementPlus.ElMessage({
+                            message: "璇峰厛閫夋嫨",
+                            type: 'error'
+                        });
+                        return ;
+                    }
                     const loading = ElementPlus.ElLoading.service({
                         lock: true,
                         text: 'Loading',
@@ -235,6 +251,13 @@
                 }
 
                 function fnCanelPrintRed(){
+                    if (selectList.value.length === 0){
+                        ElementPlus.ElMessage({
+                            message: "璇峰厛閫夋嫨",
+                            type: 'error'
+                        });
+                        return ;
+                    }
                     const loading = ElementPlus.ElLoading.service({
                         lock: true,
                         text: 'Loading',
@@ -291,6 +314,13 @@
                     });
                 }
                 function fnPrint(izPrint) {
+                    if (selectList.value.length === 0){
+                        ElementPlus.ElMessage({
+                            message: "璇峰厛閫夋嫨",
+                            type: 'error'
+                        });
+                        return ;
+                    }
                     ElementPlus.ElMessageBox.confirm('纭畾鎵撳嵃鍚�?')
                         .then(() => {
                             print(izPrint,0)
@@ -302,14 +332,35 @@
                 }
 
                 function fnPrintView(izPrint){
+                    if (selectList.value.length === 0){
+                        ElementPlus.ElMessage({
+                            message: "璇峰厛閫夋嫨",
+                            type: 'error'
+                        });
+                        return ;
+                    }
                     print(izPrint,0)
                 }
 
                 function fnPrintRedView(izPrint) {
+                    if (selectList.value.length === 0){
+                        ElementPlus.ElMessage({
+                            message: "璇峰厛閫夋嫨",
+                            type: 'error'
+                        });
+                        return ;
+                    }
                     print(izPrint,1);
                 }
 
                 function fnPrintRed(izPrint) {
+                    if (selectList.value.length === 0){
+                        ElementPlus.ElMessage({
+                            message: "璇峰厛閫夋嫨",
+                            type: 'error'
+                        });
+                        return ;
+                    }
                     ElementPlus.ElMessageBox.confirm('纭畾绾㈠瓧鎵撳嵃鍚�?')
                         .then(() => {
                             print(izPrint,1);
diff --git a/src/main/webapp/views/erpMaterialwwout/materialwwout.html b/src/main/webapp/views/erpMaterialwwout/materialwwout.html
new file mode 100644
index 0000000..83b5372
--- /dev/null
+++ b/src/main/webapp/views/erpMaterialwwout/materialwwout.html
@@ -0,0 +1,600 @@
+<!DOCTYPE html>
+<html lang="en">
+
+<head>
+    <meta charset="utf-8">
+    <title></title>
+    <meta name="renderer" content="webkit">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
+    <link rel="stylesheet" href="../../static/evn/index.css">
+    <style>
+        .text-center {
+            text-align: center;
+        }
+        .text-gray-500 {
+            width: 100%;
+            color: #6b7280;
+        }
+    </style>
+</head>
+
+<body>
+    <div id="app">
+        <el-card>
+        <el-form :inline="true" label-width="auto">
+            <el-form-item label="寮�宸ユ棩鏈�">
+
+                    <div>
+                        <el-date-picker
+                                v-model="tableSearchParam.dateStart"
+                                type="date"
+                                placeholder="寮�濮嬫棩鏈�"
+                                style="width: 150px;"
+                                :default-time="defaultTime"
+                        />
+                    </div>
+                    <div style="margin-left: 5px;margin-right: 5px">
+                        <span >-</span>
+                    </div>
+                    <div>
+                        <el-date-picker
+                                v-model="tableSearchParam.dateEnd"
+                                type="date"
+                                placeholder="缁撴潫鏃ユ湡"
+                                style="width: 150px;"
+                                :default-time="defaultTime"
+                        />
+                    </div>
+            </el-form-item>
+
+
+            <el-form-item label="渚涘簲鍟�">
+                <el-select v-model="tableSearchParam.venId" placeholder="閫夋嫨渚涘簲鍟�" style="width: 150px" >
+                    <el-option
+                            v-for="item in options"
+                            :key="item.value"
+                            :label="item.label"
+                            :value="item.value"
+                    />
+                </el-select>
+            </el-form-item>
+            <el-form-item label="">
+                <el-button type="primary" @click="page" circle >
+                    <el-icon><Search /></el-icon>
+                </el-button>
+            </el-form-item>
+        </el-form>
+        <el-form :inline="true">
+            <el-form-item label="">
+               <el-button type="primary"  @click="fnPrintView('鍚�')">鎵撳嵃棰勮</el-button>
+            </el-form-item>
+            <el-form-item label="">
+               <el-button type="primary" @click="fnPrint('鏄�')">鎵撳嵃</el-button>
+            </el-form-item>
+            <el-form-item label="">
+                <el-button type="primary" @click="fnTongBu()">鐢熸垚濮斿鍑哄簱鍗�</el-button>
+            </el-form-item>
+            <el-form-item label="">
+               <el-button type="primary">鎾ら攢鐢熸垚</el-button>
+            </el-form-item>
+            <el-form-item label="">
+                <el-button type="primary">鏁版嵁鏌ヨ</el-button>
+            </el-form-item>
+
+        </el-form>
+        <el-table :data="tableData" border style="width: 100%" row-key="id" @selection-change="handleSelectionChange" max-height="650">
+            <el-table-column type="selection" >
+            </el-table-column>
+            <el-table-column type="index" width="50" >
+            </el-table-column>
+            <el-table-column prop="venName" label="渚涘簲鍟�" >
+            </el-table-column>
+            <el-table-column prop="invCode" label="鐗╂枡缂栫爜">
+            </el-table-column>
+            <el-table-column prop="invName" label="鐗╂枡鍚嶇О" width="250" :show-overflow-tooltip="true">
+            </el-table-column>
+            <el-table-column prop="invStd" label="瑙勬牸" width="150" :show-overflow-tooltip="true">
+            </el-table-column>
+            <el-table-column prop="unit" label="鍗曚綅" width="70">
+            </el-table-column>
+            <el-table-column prop="whName" label="浠撳簱" width="90">
+            </el-table-column>
+            <el-table-column prop="qqty" label="鏈熷垵鏁伴噺">
+            </el-table-column>
+            <el-table-column prop="fqty" label="搴斿彂鏁伴噺">
+            </el-table-column>
+            <el-table-column prop="yqty" label="宸插彂鏁伴噺">
+            </el-table-column>
+            <el-table-column prop="wqty" label="鏈彂鏁伴噺">
+            </el-table-column>
+            <el-table-column prop="qty" label="瀹炲彂鏁伴噺">
+            </el-table-column>
+            <el-table-column prop="izSync" label="鏄惁鐢熸垚">
+            </el-table-column>
+        </el-table>
+<!--            <div style="margin-top: 10px">-->
+<!--                <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange"-->
+<!--                               :current-page="currentPage" :page-sizes="pageSizes" :page-size="pageSize"-->
+<!--                               layout="total, sizes, prev, pager, next, jumper" :total="pageTotal">-->
+<!--                </el-pagination>-->
+<!--            </div>-->
+
+            
+        </el-card>
+    </div>
+    
+    <script type="text/javascript" src="../../static/js/jquery/jquery-3.3.1.min.js"></script>
+    <script type="text/javascript" src="../../static/js/common.js" charset="utf-8"></script>
+    <script src="../../static/evn/vue.global.js"></script>
+    <script src="../../static/evn/element-plus.js"></script>
+    <script src="../../static/evn/icons-vue.js"></script>
+    <script src='../../static/js/erp/LodopFuncs.js'></script>
+    <script type="module">
+        // 瀵煎叆涓枃璇█鍖�
+        import zhCn from '../../static/js/erp/zh-cn.js';
+        
+        const { createApp, ref, onMounted, onBeforeMount ,watchEffect} = Vue;
+       
+
+        const app = createApp({
+            setup() {
+                const currentPage = ref(1)
+                const pageSizes = ref([15,20, 30, 50, 100, 200])
+                const pageSize = ref(15)
+                const pageTotal = ref(0)
+                const tableSearchParam = ref({
+                    izJb:"鍚�",
+                    dateStart:new Date(),
+                    dateEnd: new Date(),
+                    venId:null,
+                    izJs:"鍚�"
+                })
+                const tableData = ref([])
+                const defaultTime = ref(new Date())
+                const fullscreenLoading = ref(false)
+
+                const selectData = ref([
+                ])
+
+                const depName = ref('')
+
+                const options = ref([])
+
+                watchEffect(() =>{
+                     options.value.map(item =>{
+                        if (item.value === tableSearchParam.value.venId){
+                            depName.value = item.label
+                        }
+                    })
+
+                })
+
+                const printOptions = [
+                    {
+                        value: '鍚�',
+                        label: '鍚�'
+                    },
+                    {
+                        value: '鏄�',
+                        label: '鏄�'
+                    },
+
+                ]
+
+                const selectList = ref([])
+                
+                function page(){
+                    let data = JSON.parse(JSON.stringify(tableSearchParam.value))
+                    data.curr = currentPage.value
+                    data.limit = pageSize.value
+                    if (tableSearchParam.value.datetime != null) {
+                        data.datetime = null
+                        data.create_time = tableSearchParam.value.datetime[0] + " - " + tableSearchParam.value.datetime[1]
+                    }
+                    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/materialwwout/getList",
+                        headers: {
+                            'token': localStorage.getItem('token')
+                        },
+                        data: data,
+                        dataType: 'json',
+                        contentType: 'application/json;charset=UTF-8',
+                        method: 'GET',
+                        success: function(res) {
+                            loading.close()
+                            if (res.code == 200) {
+                                tableData.value = res.data
+                                ElementPlus.ElMessage({
+                                    message: "鎷夊彇鏁版嵁瀹屾垚",
+                                    type: 'success'
+                                });
+                            } else if (res.code === 403) {
+                                top.location.href = baseUrl + "/";
+                            } else {
+                                ElementPlus.ElMessage({
+                                    message: res.msg,
+                                    type: 'error'
+                                });
+                            }
+                        }
+                    });
+                }
+
+                function fnTongBu(){
+                    if (selectList.value.length === 0){
+                        ElementPlus.ElMessage({
+                            message: "璇峰厛閫夋嫨",
+                            type: 'error'
+                        });
+                        return ;
+                    }
+                    for(let i=0; i<selectList.value.length; i++) {
+                        var rowData = selectList.value[i];
+                        if(rowData.qty === "" || rowData.qty === null || rowData.qty.replace(" ","") === "")
+                        {
+                            ElementPlus.ElMessage({
+                                message: "璇风‘璁ゆ暟閲忓瓨鍦紒",
+                                type: 'error'
+                            });
+                            return ;
+                        }
+                    }
+                    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/materialwwout/tongbu",
+                        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'
+                                });
+                                page()
+                            } else if (res.code === 403) {
+                                top.location.href = baseUrl + "/";
+                            } else {
+                                ElementPlus.ElMessage({
+                                    message: res.msg,
+                                    type: 'error'
+                                });
+                            }
+                        }
+                    });
+                }
+
+                function fnCanelPrint(){
+                    if (selectList.value.length === 0){
+                        ElementPlus.ElMessage({
+                            message: "璇峰厛閫夋嫨",
+                            type: 'error'
+                        });
+                        return ;
+                    }
+                    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/materialuse/canelprint",
+                        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'
+                                });
+                                page()
+                            } else if (res.code === 403) {
+                                top.location.href = baseUrl + "/";
+                            } else {
+                                ElementPlus.ElMessage({
+                                    message: res.msg,
+                                    type: 'error'
+                                });
+                            }
+                        }
+                    });
+                }
+
+
+
+                function getVendor(){
+                    $.ajax({
+                        url: "http://127.0.0.1:9090/basicinfo/vendor/getlistfordropdown",
+                        contentType: 'application/json;charset=UTF-8',
+                        method: 'GET',
+                        success: function(res) {
+                            if (res.code == 200) {
+                                res.data.map(item => {
+                                    options.value.push({
+                                        value: item.venId, label: item.venName
+                                    })
+                                })
+                            } else {
+                                ElementPlus.ElMessage({
+                                    message: res.msg,
+                                    type: 'error'
+                                });
+                            }
+                        }
+                    });
+                }
+                function fnPrint(izPrint) {
+                    if (selectList.value.length === 0){
+                        ElementPlus.ElMessage({
+                            message: "璇峰厛閫夋嫨",
+                            type: 'error'
+                        });
+                        return ;
+                    }
+                    ElementPlus.ElMessageBox.confirm('纭畾鎵撳嵃鍚�?')
+                        .then(() => {
+                            print(izPrint,0)
+                        })
+                        .catch(() => {
+                            // catch error
+                        })
+
+                }
+
+                function fnPrintView(izPrint){
+                    if (selectList.value.length === 0){
+                        ElementPlus.ElMessage({
+                            message: "璇峰厛閫夋嫨",
+                            type: 'error'
+                        });
+                        return ;
+                    }
+
+
+
+                    print(izPrint,0)
+                }
+
+
+
+                function print(izPrint,izRed){
+                    const LODOP = getLodop()
+
+                    const loading = ElementPlus.ElLoading.service({
+                        lock: true,
+                        text: 'Loading',
+                        background: 'rgba(0, 0, 0, 0.7)',
+                    })
+                    let data = JSON.parse(JSON.stringify(tableSearchParam.value))
+                    data.curr = currentPage.value
+                    data.limit = pageSize.value
+                    if (tableSearchParam.value.datetime != null) {
+                        data.datetime = null
+                        data.create_time = tableSearchParam.value.datetime[0] + " - " + tableSearchParam.value.datetime[1]
+                    }
+                    $.ajax({
+                        url: "http://127.0.0.1:9090/mo/materialwwout/updateprint",
+                        headers: {
+                            'token': localStorage.getItem('token')
+                        },
+                        data: data,
+                        dataType: 'json',
+                        contentType: 'application/json;charset=UTF-8',
+                        method: 'GET',
+                        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'
+                                });
+                            }
+                        }
+                    });
+
+                    var gridData = [];
+                    var listVen=[];
+                    for(var i=0; i<selectList.value.length; i++) {
+                        var curRowData = selectList.value[i]
+
+                        var izExist=false;
+                        for (var j = 0; j < listVen.length; j++) {
+                            if(curRowData.venId === listVen[j].venId)
+                            {
+                                izExist=true;
+                                break;
+                            }
+                        }
+                        if(izExist === false)
+                        {
+                            var o={};
+                            o.venId=curRowData.venId;
+                            o.venName=curRowData.venName;
+                            listVen.push(o);
+                        }
+                        gridData.push(curRowData);
+                    }
+
+
+                    LODOP.PRINT_INITA(0,0,800,1100,"濮斿鍔犲伐鍑哄簱鍗�");
+//        LODOP.SET_PRINT_PAGESIZE(1,0,0,"A5");
+//        LODOP.SET_PRINT_PAGESIZE(1,870,520,"");
+
+//        LODOP.PRINT_INITA(0,0,800,500,"濮斿鍔犲伐鍑哄簱鍗�");
+//        LODOP.SET_PRINT_PAGESIZE(1,800,500,"");
+                    LODOP.SET_PRINT_MODE("PRINT_NOCOLLATE",1);
+
+
+                    LODOP.ADD_PRINT_TEXT(28,375,331,36,"濮斿鍔犲伐鍑哄簱鍗�");
+                    LODOP.SET_PRINT_STYLEA(0,"FontSize",20);
+                    LODOP.SET_PRINT_STYLEA(0,"ItemType",1);
+                    LODOP.ADD_PRINT_TEXT(69,128,413,25,"寮�宸ユ棩鏈燂細"+dateFormat("YYYY-mm-dd", tableSearchParam.value.dateStart)+" 鍒� "+dateFormat("YYYY-mm-dd", tableSearchParam.value.dateEnd));
+                    LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
+                    LODOP.SET_PRINT_STYLEA(0,"ItemType",1);
+
+
+                    LODOP.ADD_PRINT_TEXT(69,451,196,25,"鍗曟嵁鏃ユ湡锛�"+dateFormat("YYYY-mm-dd", new Date()));
+                    LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
+                    LODOP.SET_PRINT_STYLEA(0,"ItemType",1);
+                    LODOP.ADD_PRINT_TEXT(69,645,176,25,"鍙戞枡浜猴細");
+                    LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
+                    LODOP.SET_PRINT_STYLEA(0,"ItemType",1);
+
+                    LODOP.ADD_PRINT_TABLE(96,123,2000,960,CreateTable(gridData));
+                    LODOP.SET_PRINT_STYLEA(0,"TableHeightScope",1);
+
+                    LODOP.SET_PRINT_MODE("FULL_WIDTH_FOR_OVERFLOW",true);
+
+
+                    LODOP.PRINT_DESIGN();
+                    //        if(izPrint=="鏄�")
+                    //        {
+                    //            LODOP.PRINT();
+                    //        }
+                    //        else{
+                    //            LODOP.PREVIEW();
+                    //        }
+
+                }
+
+                function dateFormat(fmt, date) {
+                    let ret;
+                    const opt = {
+                        "Y+": date.getFullYear().toString(),        // 骞�
+                        "m+": (date.getMonth() + 1).toString(),     // 鏈�
+                        "d+": date.getDate().toString(),            // 鏃�
+                        "H+": date.getHours().toString(),           // 鏃�
+                        "M+": date.getMinutes().toString(),         // 鍒�
+                        "S+": date.getSeconds().toString()          // 绉�
+                        // 鏈夊叾浠栨牸寮忓寲瀛楃闇�姹傚彲浠ョ户缁坊鍔狅紝蹇呴』杞寲鎴愬瓧绗︿覆
+                    };
+                    for (let k in opt) {
+                        ret = new RegExp("(" + k + ")").exec(fmt);
+                        if (ret) {
+                            fmt = fmt.replace(ret[1], (ret[1].length == 1) ? (opt[k]) : (opt[k].padStart(ret[1].length, "0")))
+                        };
+                    };
+                    return fmt;
+                }
+
+                function  CreateTable(result) {
+//        var css =" <style> table,td,th {border: 1px solid black;border-style: solid;border-collapse: collapse;font-size: 15px;}</style><table border=1>";
+                    var css = "<style> table,td,th {table-layout: fixed;border: 1px black solid;border-collapse: collapse;font-size: 15px;}</style><table>";
+                    //绗竴琛�
+                    var th = "<thead><tr style='height:30px'>" +
+                        "<th  >搴忓彿</th>" +
+                        "<th  >渚涘簲鍟�</th>" +
+                        "<th  >鐗╂枡缂栫爜</th>" +
+                        "<th  >鐗╂枡鍚嶇О</th>" +
+                        "<th  >鐗╂枡瑙勬牸</th>" +
+                        "<th  >鍗曚綅</th>" +
+                        "<th  >浠撳簱</th>" +
+                        "<th  >搴斿彂鏁伴噺</th>" +
+                        "<th  >鏈彂鏁伴噺</th>" +
+                        "<th  >瀹炲彂鏁伴噺</th>" +
+                        "</tr></thead>";
+
+                    var td="";
+                    var row=1;
+                    for (var i = 0; i <result.length; i++) {
+
+                        td = td+"<tr style='height:30px'><td style='width:30px;' align='center' >"+(row)+"</td><td style='width:170px;word-wrap:break-word;word-break:break-all;'  align='left'  >" + result[i].venName + "</td><td style='width:90px;'  align='left'  >" + result[i].invCode + "</td><td style='width:110px;word-wrap:break-word;word-break:break-all;'  align='left'  >" + result[i].invName + "</td> <td style='width:60px;'  align='left'  >" + result[i].invStd + "</td>  <td style='width:40px;'  align='left'  >" + result[i].unit + "</td><td style='width:80px;'  align='left'  >" + result[i].whName + "</td> <td style='width:60px;'  align='left'  >" + result[i].fqty + "</td> <td style='width:60px;'  align='left'  >" + result[i].wqty + "</td> <td style='width:60px;'  align='left'  ></td>  </tr>"
+                        row++;
+                    }
+
+                    var txt = css +th+ td +"</table>";
+                    return txt;
+
+                }
+
+
+                
+                function handleSizeChange(val) {
+                    pageSize.value = val
+                    currentPage.value = 1 // 閲嶇疆鍒扮涓�椤�
+                    page()
+                }
+                
+                function handleCurrentChange(val) {
+                    currentPage.value = val
+                    page()
+                }
+                function handleSelectionChange(val) {                    
+
+                    selectList.value = val
+                }
+
+                onMounted(() => {
+                    page()
+                })
+
+                onBeforeMount(() => {
+                    getVendor()
+
+                })
+
+                return {
+                    tableData,
+                    currentPage,
+                    pageSizes,
+                    pageSize,
+                    pageTotal,
+                    tableSearchParam,
+                    defaultTime,
+                    selectData,
+                    options,
+                    printOptions,
+                    page,
+                    fnPrint,
+                    fnPrintView,
+                    fnCanelPrint,
+                    fnTongBu,
+                    handleSizeChange,
+                    handleCurrentChange,
+                    handleSelectionChange
+                    
+                }
+            }
+        });
+        
+        app.use(ElementPlus, {
+            locale: zhCn.default || zhCn
+        });
+        for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
+            app.component(key, component)
+        }
+        app.mount('#app');
+    </script>
+
+</body>
+
+</html>
\ No newline at end of file
diff --git a/src/main/webapp/views/erpReceiving/erpReceiving.html b/src/main/webapp/views/erpReceiving/erpReceiving.html
index 24b886e..dd479be 100644
--- a/src/main/webapp/views/erpReceiving/erpReceiving.html
+++ b/src/main/webapp/views/erpReceiving/erpReceiving.html
@@ -144,6 +144,11 @@
                         data.datetime = null
                         data.create_time = tableSearchParam.value.datetime[0] + " - " + tableSearchParam.value.datetime[1]
                     }
+                    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/getList",
                         headers: {
@@ -154,9 +159,13 @@
                         contentType: 'application/json;charset=UTF-8',
                         method: 'GET',
                         success: function(res) {
+                            loading.close()
                             if (res.code == 200) {
                                 tableData.value = res.data
-
+                                ElementPlus.ElMessage({
+                                    message: "鎷夊彇鏁版嵁瀹屾垚",
+                                    type: 'success'
+                                });
                             } else if (res.code === 403) {
                                 top.location.href = baseUrl + "/";
                             } else {
@@ -170,6 +179,13 @@
                 }
 
                 function tongbu(){
+                    if (selectList.value.length === 0){
+                        ElementPlus.ElMessage({
+                            message: "璇峰厛閫夋嫨",
+                            type: 'error'
+                        });
+                        return ;
+                    }
                     const loading = ElementPlus.ElLoading.service({
                         lock: true,
                         text: 'Loading',
@@ -205,6 +221,13 @@
                 }
 
                 function caneltongbu1(){
+                    if (selectList.value.length === 0){
+                        ElementPlus.ElMessage({
+                            message: "璇峰厛閫夋嫨",
+                            type: 'error'
+                        });
+                        return ;
+                    }
                     const loading = ElementPlus.ElLoading.service({
                         lock: true,
                         text: 'Loading',
@@ -240,6 +263,13 @@
                 }
 
                 function tongbureturn(){
+                    if (selectList.value.length === 0){
+                        ElementPlus.ElMessage({
+                            message: "璇峰厛閫夋嫨",
+                            type: 'error'
+                        });
+                        return ;
+                    }
                     const loading = ElementPlus.ElLoading.service({
                         lock: true,
                         text: 'Loading',
@@ -275,6 +305,13 @@
                 }
 
                 function caneltongbureturn(){
+                    if (selectList.value.length === 0){
+                        ElementPlus.ElMessage({
+                            message: "璇峰厛閫夋嫨",
+                            type: 'error'
+                        });
+                        return ;
+                    }
                     const loading = ElementPlus.ElLoading.service({
                         lock: true,
                         text: 'Loading',

--
Gitblit v1.9.1