diff --git a/src/api/basic/basicThirdSys.js b/src/api/basic/basicThirdSys.js
index f4621df..b06f8ae 100644
--- a/src/api/basic/basicThirdSys.js
+++ b/src/api/basic/basicThirdSys.js
@@ -65,7 +65,7 @@ export function saveBusTypes(data) {
url: "/udiwms/basic/thirdsys/saveBusTypes",
method: "post",
data: data
- })
+ });
}
export function deleteThirdSysBusType(params) {
@@ -73,15 +73,15 @@ export function deleteThirdSysBusType(params) {
url: "/udiwms/basic/thirdsys/delete",
method: "get",
params: params
- })
+ });
}
-export function enableInterfaces(data) {
+export function updateInterfaceStatus(data) {
return axios({
- url: "/udiwms/basic/thirdsys/enableInterfaces",
+ url: "/udiwms/basic/thirdsys/updateInterfaceStatus",
method: "post",
data: data
- })
+ });
}
export function testThirdService(data) {
@@ -89,8 +89,7 @@ export function testThirdService(data) {
url: "/udiwms/basic/thirdsys/testThirdService",
method: "post",
data: data
- })
+ });
}
-
diff --git a/src/views/basic/BasicThirdSys.vue b/src/views/basic/BasicThirdSys.vue
index b2a3ee5..11fd138 100644
--- a/src/views/basic/BasicThirdSys.vue
+++ b/src/views/basic/BasicThirdSys.vue
@@ -123,6 +123,13 @@
>编辑
+ 移除
+
@@ -161,18 +168,24 @@
-
+
- 编辑
+ 编辑
+
-
+
单据类型:
-
+
第三方单据类型:
-
+
接口地址:
备注:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{
@@ -562,13 +676,13 @@ export default {
})
},
addBussinessTypeData() {
- this.bussinessTypeFormVisible = false;
- //新增
- if (this.formName == "add") {
- this.thirdBuyForm.type = 2;
- this.thirdBuyForm.thirdSys = this.thirdSysFk;
+ if (this.getOrdersEditBtnVisible) {
+ this.editGeOrderParamVisible = false;
+ } else {
+ this.bussinessTypeFormVisible = false;
}
+
//匹配编码
this.bussinessTypeList.forEach(item =>{
//单据业务类型编码
@@ -580,7 +694,7 @@ export default {
this.thirdBuyList.forEach(item => {
//第三方单据类型编码
if (item.name === this.thirdBuyForm.thirdBuyName) {
- this.thirdBuyForm.thirdBuyCode = item.code;
+ this.thirdBuyForm.thirdBuyCode = item.action;
}
});
@@ -600,10 +714,9 @@ export default {
},
getThirdBuyType() {
let query = {
- thirdSysFk: this.thirdSysFk,
- type: 1,
+ thirdSys: this.thirdSysFk
}
- filterBusTypeDetail(query).then((res)=> {
+ getOriginBusType(query).then((res)=> {
this.thirdBuyList = res.data.list;
});
},
@@ -631,8 +744,20 @@ export default {
});
},
addInterfaceData(){
- this.addInterfaceVisible = false;
- enableInterfaces(this.selectInterfaceList).then((res) => {
+ let data = [];
+ if (this.selectInterfaceList.length > 0) {
+ this.addInterfaceVisible = false;
+ this.selectInterfaceList.forEach(id => {
+ let item = {
+ id: id,
+ enabled: true
+ };
+ data.push(item);
+ })
+ } else {
+ this.$message.warning("请选择需要添加的接口");
+ }
+ updateInterfaceStatus(data).then((res) => {
if (res.code === 20000) {
this.selectInterfaceList = [];
this.$message.success("添加成功");
@@ -655,7 +780,45 @@ export default {
}
}).catch((error) => {
this.$message.error("添加失败");
+ });
+ },
+ disableInterface(row) {
+ let data = [{id: row.id, enabled: false}];
+ updateInterfaceStatus(data).then((res) => {
+ if (res.code === 20000) {
+ this.$message.success("移除成功");
+ let query = {
+ thirdSysFk: this.thirdSysFk,
+ enabled: true
+ };
+ this.loading = true;
+ getDetailBasicThirdSys(query)
+ .then((response) => {
+ this.loading = false;
+ this.detailList = response.data.list || [];
+ this.total = response.data.total || 0;
+ })
+ .catch(() => {
+ this.loading = false;
+ this.list = [];
+ this.total = 0;
+ });
+ }
})
+ },
+ editGeOrderParam(index,row) {
+ this.formName = "edit";
+ this.editGeOrderParamVisible = true;
+ this.getThirdBuyType();
+ this.thirdBuyForm = {
+ id: row.id,
+ code: row.code,
+ name: row.name,
+ type: row.type,
+ url: row.url,
+ thirdSys: this.thirdSysFk,
+ remark: row.remark
+ };
}
},
components: {
@@ -686,5 +849,13 @@ export default {
flex-wrap: wrap;
}
+.itemTag {
+ float: left;
+ text-align: left;
+ margin-top: 10px;
+ width: 100px;
+ margin-bottom: 5px;
+}
+
diff --git a/src/views/thrsys/SysUdimsData.vue b/src/views/thrsys/SysUdimsData.vue
index 73d42b3..9a9f9ab 100644
--- a/src/views/thrsys/SysUdimsData.vue
+++ b/src/views/thrsys/SysUdimsData.vue
@@ -22,10 +22,9 @@
查询
-
@@ -123,9 +122,9 @@ export default {
currentRow: null,
editQuery: null,
type: {
- "AutoDownloadOrder": "已完成单据",
- "AutoDownloadBusType": "单据类型",
- "AutoDownloadAllData": "基础信息",
+ "AutoUploadOrder": "已完成单据",
+ "AutoUploadBusType": "单据类型",
+ "AutoUploadAllData": "基础信息",
"AutoDownloadDiProducts": "国家库DI数据"
},
status: {