From 93892dffae58016f8ffd9ee28bbbfa82a66bd7ad Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期二, 21 十月 2025 12:47:53 +0800
Subject: [PATCH] #
---
src/main/webapp/views/erpReceiving/erpReceiving.html | 128 ++++++++++++++++++++++++++++++++++++++++--
pom.xml | 7 ++
2 files changed, 127 insertions(+), 8 deletions(-)
diff --git a/pom.xml b/pom.xml
index 063c084..dfb0a0a 100644
--- a/pom.xml
+++ b/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>-->
diff --git a/src/main/webapp/views/erpReceiving/erpReceiving.html b/src/main/webapp/views/erpReceiving/erpReceiving.html
index 0d6ce58..80f51a8 100644
--- a/src/main/webapp/views/erpReceiving/erpReceiving.html
+++ b/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
--
Gitblit v1.9.1