第三方产品信息接口上传接口

20231126-yw
anthonywj 2 years ago
parent 4e798445a2
commit 486e2c7176

@ -5,7 +5,7 @@ VUE_APP_TITLE = UDI管理系统
ENV = 'development' ENV = 'development'
# 开发环境 # 开发环境
VUE_APP_BASE_API = 'http://127.0.0.1:9991' VUE_APP_BASE_API = 'http://192.168.0.166:9991'
VUE_APP_SYNC_API ="http://127.0.0.1:10001" VUE_APP_SYNC_API ="http://127.0.0.1:10001"

@ -8,13 +8,14 @@ ENV = 'production'
#林纪裕cd #林纪裕cd
# VUE_APP_BASE_API = 'http://www.linjiyu.lol:81/UDI_WMS_MC/' VUE_APP_BASE_API = 'http://www.linjiyu.lol:81/UDI_WMS_MC/'
VUE_APP_BASE_API = 'http://www.linjiyu.lol:83/UDI_WMS_MC/' # VUE_APP_BASE_API = 'http://www.linjiyu.lol:83/UDI_WMS_MC/'
刘恩典 刘恩典
# VUE_APP_BASE_API = 'http://192.168.0.127:9150/UDI_WMS_MC/' # VUE_APP_BASE_API = 'http://192.168.0.127:9150/UDI_WMS_MC/'
# VUE_APP_BASE_API = 'http://192.168.0.127:9160/UDI_WMS_MC/' # VUE_APP_BASE_API = 'http://192.168.0.127:9160/UDI_WMS_MC/'
# VUE_APP_BASE_API = 'http://192.168.0.127:9170/UDI_WMS_MC/'
# 平潭正式 # 平潭正式
# VUE_APP_BASE_API = 'http://55.55.0.62:9150/UDI_WMS_MC/' # VUE_APP_BASE_API = 'http://55.55.0.62:9150/UDI_WMS_MC/'

@ -2,33 +2,35 @@ import axios from "@/utils/request";
export function filterLog(query) { export function filterLog(query) {
return axios({ return axios({
url: "/udiwms/thrProducts/exportLog/filter", url: "/udiwms/thrProducts/exportLog/filter",
method: "get", method: "get",
params: query params: query
}); });
} }
export function deleteLog(query) { export function deleteLog(query) {
return axios({ return axios({
url: "/udiwms/thrProducts/exportLog/deleteLog", url: "/udiwms/thrProducts/exportLog/deleteLog",
method: "post", method: "post",
data: query data: query
}); });
} }
export function downloadLog(query) { export function downloadLog(query) {
return axios({ return axios({
url: "/udiwms/thrProducts/exportLog/download", url: "/udiwms/thrProducts/exportLog/download",
method: "get", method: "get",
params: query params: query
}); });
} }
export function exportExcel(query) { export function exportExcel(query) {
return axios({ return axios({
url: "/udiwms/thrProducts/importLog/export", url: "/udiwms/thrProducts/importLog/export",
method: "post", method: "post",
data: query data: query
}); });
} }
export function exportExcelAll(query) { export function exportExcelAll(query) {
@ -39,3 +41,15 @@ export function exportExcelAll(query) {
}); });
} }
export function postThirdProduct(query) {
return axios({
url: "/udiwms/thrsys/products/post",
method: "post",
data: query
});
}

@ -2,7 +2,7 @@
<div> <div>
<el-card> <el-card>
<el-row type="flex"> <el-row type="flex">
<el-col style="flex: 1" v-show="Dictionary"> <el-col style="flex: 1" v-show="Dictionary && vueRouteSource==1">
<el-col v-show="showSearch" style="min-width: 200px; max-width: 100%"> <el-col v-show="showSearch" style="min-width: 200px; max-width: 100%">
<el-tree <el-tree
:data="treeList" :data="treeList"
@ -23,7 +23,7 @@
type="success" type="success"
@click="Dictionary = !Dictionary" @click="Dictionary = !Dictionary"
icon="el-icon-arrow-left" icon="el-icon-arrow-left"
v-show="Dictionary" v-show="Dictionary && vueRouteSource==1"
class="iconButton" class="iconButton"
> >
</el-button> </el-button>
@ -31,7 +31,7 @@
type="success" type="success"
@click="Dictionary = !Dictionary" @click="Dictionary = !Dictionary"
icon="el-icon-arrow-right" icon="el-icon-arrow-right"
v-show="!Dictionary" v-show="!Dictionary && vueRouteSource==1"
class="iconButton" class="iconButton"
> >
</el-button> </el-button>
@ -206,24 +206,27 @@
>查询 >查询
</el-button </el-button
> >
<el-button type="primary" icon="el-icon-plus" @click="editUdiType"></el-button> <el-button type="primary" icon="el-icon-plus" @click="editUdiType"
v-if="vueRouteSource==1"
>物资分类管理
</el-button>
<el-button <el-button
type="primary" type="primary"
icon="el-icon-plus" icon="el-icon-plus" v-if="vueRouteSource==1"
@click="intentImportUdi" @click="intentImportUdi"
>选入DI信息 >选入DI信息
</el-button </el-button
> >
<el-button <el-button
type="primary" type="primary"
icon="el-icon-plus" icon="el-icon-plus" v-if="vueRouteSource==1"
@click="intentImportErp" @click="intentImportErp"
>添加院内字典 >添加院内字典
</el-button </el-button
> >
<el-button <el-button
type="primary" type="primary"
icon="el-icon-plus" icon="el-icon-plus" v-if="vueRouteSource==1"
@click="intentDetail" @click="intentDetail"
>关联添加 >关联添加
</el-button </el-button
@ -411,7 +414,7 @@
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
type="text" type="text"
size="small" size="small" v-if="vueRouteSource==1"
:disabled="scope.row.originUuid != null" :disabled="scope.row.originUuid != null"
@click.native.stop="intentSelectUdi(scope.row)" @click.native.stop="intentSelectUdi(scope.row)"
>关联DI >关联DI
@ -425,17 +428,23 @@
<el-button <el-button
type="text" type="text"
size="small" size="small" v-if="vueRouteSource==1"
@click.native.stop="diEdit(scope.row)" @click.native.stop="diEdit(scope.row)"
>编辑 >编辑
</el-button> </el-button>
<el-button <el-button
type="text" type="text"
size="small" size="small" v-if="vueRouteSource==1"
@click.native.stop="deleteDialog(scope.row)" @click.native.stop="deleteDialog(scope.row)"
>删除 >删除
</el-button> </el-button>
<el-button
type="text"
size="small" v-if="vueRouteSource==2"
@click.native.stop="uploadThird(scope.row)"
>上传
</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -1599,6 +1608,7 @@ import selectHospProduct from "@/views/basic/product/bindHospProduct";
import selectUnBindHospProduct from "@/views/basic/product/unbindHospProduct"; import selectUnBindHospProduct from "@/views/basic/product/unbindHospProduct";
import {getBasicHospType, getListTree} from "@/api/basic/basicHospType"; import {getBasicHospType, getListTree} from "@/api/basic/basicHospType";
import {getHslbs} from "@/api/thrsys/thrHsfl"; import {getHslbs} from "@/api/thrsys/thrHsfl";
import {postThirdProduct} from "@/api/thrsys/thrProductsExport";
export default { export default {
data() { data() {
@ -1710,6 +1720,7 @@ export default {
lockStatusMap: {1: "未提交", 2: "已提交", 3: "已锁定"}, lockStatusMap: {1: "未提交", 2: "已提交", 3: "已锁定"},
activeNames: ["1"], activeNames: ["1"],
useNumEnable: true, useNumEnable: true,
vueRouteSource: 1, // 1:2
}; };
}, },
filters: { filters: {
@ -2042,6 +2053,32 @@ export default {
this.getThirdSysDetail(); this.getThirdSysDetail();
}, },
uploadThird(row) {
this.$confirm('确定上传至第三方系统?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
.then(() => {
postThirdProduct(row)
.then((response) => {
if (response.code == 20000) {
this.loading = false;
this.$message.success(response.data);
} else {
this.$message.error(response.message);
}
})
.catch(() => {
this.loading = false;
});
})
.catch(() => {
})
},
lockProducts(status) { lockProducts(status) {
let selectData = this.multipleSelection; let selectData = this.multipleSelection;
let postQuery = { let postQuery = {
@ -2244,6 +2281,7 @@ export default {
selectUnBindHospProduct, selectUnBindHospProduct,
}, },
created() { created() {
this.vueRouteSource = this.$route.query.vueRouteSource;
this.findBasicProductSet(); this.findBasicProductSet();
this.getList(); this.getList();
this.getTerrList(); this.getTerrList();

Loading…
Cancel
Save