diff --git a/src/api/auth/authAdmin.js b/src/api/auth/authAdmin.js
index 1523a56e..30340561 100644
--- a/src/api/auth/authAdmin.js
+++ b/src/api/auth/authAdmin.js
@@ -9,7 +9,6 @@ export function authAdminList(query) {
});
}
-
//根据当前角色,获取是否为客户角色
export function roleCustomers(query) {
return axios({
@@ -67,4 +66,18 @@ export function selectUser(query) {
});
}
+export function modifyPasswd(data) {
+ return axios({
+ url: "/admin/auth/admin/updateUser",
+ method: "post",
+ data: data
+ });
+}
+export function filterByUser(query) {
+ return axios({
+ url: "/admin/auth/admin/selectUser",
+ method: "get",
+ params: query
+ });
+}
diff --git a/src/api/thrsys/thrProductsExport.js b/src/api/thrsys/thrProductsExport.js
index dac0a27e..ad941681 100644
--- a/src/api/thrsys/thrProductsExport.js
+++ b/src/api/thrsys/thrProductsExport.js
@@ -31,3 +31,11 @@ export function exportExcel(query) {
});
}
+export function exportExcelAll(query) {
+ return axios({
+ url: "/udiwms/thrProducts/importLog/exportAll",
+ method: "post",
+ data: query
+ });
+}
+
diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue
index 4df395bc..96add313 100644
--- a/src/layout/components/Navbar.vue
+++ b/src/layout/components/Navbar.vue
@@ -10,10 +10,10 @@
部门:{{ deptName }}
+ style="margin: 10px;color: #2d8cf0;font-size: 14px;">部门 : {{ deptName }}
仓库:{{ inv }}
-
用户:{{ this.companyName }}
+ style="margin-right: 18px;margin-left:8px;color: #2d8cf0;font-size: 14px;">仓库 : {{ inv }}
+
用户 : 吴XX{{ this.companyName }}
({{
this.userName
@@ -40,6 +40,9 @@
切换仓库
+
+ 修改密码
+
退出登录
@@ -102,6 +105,78 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 修改密码
+ 取消
+
+
+
+
@@ -118,17 +193,35 @@ import RuoYiDoc from '@/components/RuoYi/Doc'
import store from "@/store";
import {filterAllByUser} from "@/api/system/invWarehouse";
import {filterSubByInv, findByDeptUser} from "@/api/system/invSubWarehouse";
-import {updateInv} from "@/api/auth/authAdmin";
+import {updateInv, modifyPasswd,filterByUser} from "@/api/auth/authAdmin";
import {isRelogin} from "@/utils/request";
import router from "@/router";
export default {
data() {
+ // let validatePass2 = (rule, value, callback) => {
+ // if (value === "") {
+ // callback(new Error("请再次输入密码"));
+ // } else if (value !== this.inputQuery.passWord) {
+ // callback(new Error("两次输入密码不一致!"));
+ // } else {
+ // callback();
+ // }
+ // };
return {
inv: store.getters.locInvName,
deptName: store.getters.locDeptName,
selInvVisible: false,
+ isVisible: false,
userInfo: {},
+ inputQuery: {
+ passWord: "",
+ newPassword: "",
+ confirmPassword: "",
+ userName: "",
+ locInvCode: "",
+
+ },
deptList: [],
invList: [],
formRules: {
@@ -138,6 +231,19 @@ export default {
locInvCode: [
{required: true, message: "请选择当前仓库", trigger: "blur"}
],
+ password: [{required: true, message: "请输入密码", trigger: "blur"}],
+ newPassword: [{required: true, message: "请输入密码", trigger: "blur"}],
+ confirmPassword: [
+ {required: true, message: "请确认密码", trigger: "blur"},
+ // {validator: validatePass2, trigger: "blur"},
+ ],
+ },
+ rules: {
+ password: [{required: true, message: "请输入密码", trigger: "blur"}],
+ confirmPassword: [
+ {required: true, message: "请确认密码", trigger: "blur"},
+ // {validator: validatePass2, trigger: "blur"},
+ ],
},
};
@@ -176,6 +282,41 @@ export default {
}
},
methods: {
+ onSubmit() {
+ if (this.inputQuery.newPassword != this.inputQuery.confirmPassword) {
+ this.$message.error("新密码与确认密码不一致!!!!");
+ return
+ }
+ if (this.inputQuery.passWord == this.inputQuery.newPassword) {
+ this.$message.error("旧密码与新密码不能相同!!!!");
+ return
+ }
+ this.$refs["dataForm"].validate((valid) => {
+ if (valid) {
+ this.loading = true;
+ modifyPasswd(this.inputQuery).then((response) => {
+ if (response.code === 20000) {
+ this.loading = false;
+ this.$confirm('密码重置成功,请点击确定重新登录', '提示', {
+ confirmButtonText: '确定',
+ cancelButtonText: '取消',
+ type: 'warning'
+ }).then(() => {
+ this.$store.dispatch('LogOut').then(() => {
+ location.href = process.env.VUE_APP_CONTEXT_PATH;
+ })
+ }).catch(() => {
+ });
+ } else {
+ this.$message.error(response.message);
+ }
+ });
+ } else {
+ return false;
+ }
+ });
+ },
+
toggleSideBar() {
this.$store.dispatch('app/toggleSideBar')
},
@@ -186,7 +327,7 @@ export default {
type: 'warning'
}).then(() => {
this.$store.dispatch('LogOut').then(() => {
- location.href = process.env.VUE_APP_CONTEXT_PATH ;
+ location.href = process.env.VUE_APP_CONTEXT_PATH;
})
}).catch(() => {
});
@@ -195,6 +336,9 @@ export default {
changeInv() {
this.selInvVisible = true;
},
+ modifyPassword() {
+ this.isVisible = true;
+ },
getDeptList() {
this.deptList = [];
@@ -206,10 +350,20 @@ export default {
.catch(() => {
});
},
+ getInputQuery() {
+ this.inputQuery = [];
+ filterByUser()
+ .then((response) => {
+ this.inputQuery = response.data || [];
+ // this.getInvList();
+ })
+ .catch(() => {
+ });
+ },
deptChange() {
this.getInvList();
- this.userInfo.locInvCode="";
+ this.userInfo.locInvCode = "";
},
getInvList() {
@@ -225,7 +379,7 @@ export default {
}
})
.catch(() => {
- this.selInvVisible=true;
+ this.selInvVisible = true;
});
},
@@ -261,6 +415,8 @@ export default {
closeDialog() {
this.selInvVisible = false;
+ this.isVisible = false;
+
this.getDeptList()
this.resetForm();
},
@@ -278,12 +434,15 @@ export default {
},
created() {
this.userName = this.$store.getters.name;
- this.userInfo = {
- id: store.getters.adminId,
- locInvCode: store.getters.locInvCode,
- locDeptCode: store.getters.locDeptCode,
- };
-
+ this.userInfo = {
+ id: store.getters.adminId,
+ locInvCode: store.getters.locInvCode,
+ locDeptCode: store.getters.locDeptCode,
+ };
+ this.inputQuery = {
+ userName: this.$store.getters.name,
+ };
+ this.getInputQuery();
this.getDeptList();
//this.getInvList()
diff --git a/src/views/basic/corpMaintain/corpMaintain.vue b/src/views/basic/corpMaintain/corpMaintain.vue
index f1418213..c171f6e2 100644
--- a/src/views/basic/corpMaintain/corpMaintain.vue
+++ b/src/views/basic/corpMaintain/corpMaintain.vue
@@ -213,6 +213,7 @@ export default {
return {
query: {
key: "",
+ corpType: "2",
page: 1,
limit: 20,
},
@@ -303,6 +304,7 @@ export default {
});
this.query = {
key: "",
+ corpType: "2",
page: 1,
limit: 20,
};
diff --git a/src/views/basic/product/udiInfoManageSp.vue b/src/views/basic/product/udiInfoManageSp.vue
index cffe0252..ff53de71 100644
--- a/src/views/basic/product/udiInfoManageSp.vue
+++ b/src/views/basic/product/udiInfoManageSp.vue
@@ -125,6 +125,7 @@
详情
+ 移除
@@ -485,7 +486,33 @@ export default {
};
this.checked = row.isUseDy == 1;
},
-
+ handleDeleteClick(rowId){
+ this.$confirm("此操作将删除该供应商器械信息, 是否继续?", "提示", {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning",
+ })
+ .then(() => {
+ let dQuery = {
+ id: rowId,
+ };
+ deleteCompanyProductRelevance(dQuery)
+ .then((response) => {
+ this.loading = false;
+ if (response.code == 20000) {
+ this.$message.success("删除成功");
+ } else {
+ this.$message.error(response.message);
+ }
+ this.getList();
+ })
+ .catch(() => {
+ this.loading = false;
+ });
+ })
+ .catch(() => {
+ });
+ },
lockProducts(status) {
let selectData = this.multipleSelection;
let postQuery = {
diff --git a/src/views/inout/DialogCreateOrder.vue b/src/views/inout/DialogCreateOrder.vue
index cb6cd368..10349d2a 100644
--- a/src/views/inout/DialogCreateOrder.vue
+++ b/src/views/inout/DialogCreateOrder.vue
@@ -567,6 +567,7 @@ export default {
action: null,
invCode: null,
fromCorp: null,
+ fromCorpName: null,
fromInvCode: null,
remark: null,
fromType: 2,
@@ -1461,6 +1462,7 @@ export default {
this.corpOrderIdDisabled = true;
this.orderFormData = this.orderQuery;
this.actionEnable = true;
+ this.orderFormData.fromCorp=this.orderFormData.fromCorpName;
if (this.$isNotBlank(this.orderFormData.checkPreInOrders)) {
this.checkPreInArray = this.orderFormData.split(",");
}
diff --git a/src/views/inout/DialogCreateOrderSelect.vue b/src/views/inout/DialogCreateOrderSelect.vue
index 8bebd22a..e9771cd2 100644
--- a/src/views/inout/DialogCreateOrderSelect.vue
+++ b/src/views/inout/DialogCreateOrderSelect.vue
@@ -451,6 +451,7 @@ export default {
startTime: null,
endTime: null,
};
+ this.actDateRange = null
this.getList();
},
//查询
diff --git a/src/views/inout/InvoiceRegistration.vue b/src/views/inout/InvoiceRegistration.vue
index a732880f..dceff7c9 100644
--- a/src/views/inout/InvoiceRegistration.vue
+++ b/src/views/inout/InvoiceRegistration.vue
@@ -799,41 +799,37 @@ export default {
showImgViewer(row) {
this.certFileUrl =
this.BASE_URL +
- "/udiwms/image/register/file/getImage?type=image2&name="+row.licenseUrl;
+ "/udiwms/image/register/file/getImage?type=image2&name=" + row.licenseUrl;
this.imgList = [];
- this.imgList.push(this.certFileUrl)
+ this.imgList.push(this.certFileUrl);
let index = row.licenseUrl.lastIndexOf('.');
- if(index===-1){
- this.$message.error("文件名异常!")
- return false
+ if (index === -1) {
+ this.$message.error("文件名异常!");
+ return false;
}
- if(row.licenseUrl.substr(index+1)==='pdf'){
- let pdf = "application/pdf"
+ if (row.licenseUrl.substr(index + 1) === 'pdf') {
+ let pdf = "application/pdf";
let binaryData = [];
- previewFile(this.certFileUrl).then(res=>{
+ previewFile(this.certFileUrl).then(res => {
binaryData.push(res);
- let URL = window.URL.createObjectURL(new Blob(binaryData, {type: pdf}));
+ let URL = window.URL.createObjectURL(new Blob(binaryData, { type: pdf }));
window.open(URL);
- })
- // window.open(this.imgList[0])
- return false
+ });
+ return false;
}
this.imgViewerVisible = true;
- // previewImage({
- // imageUrl: this.inputQuery.licenseUrl,
- // certFileUrl: this.certFileUrl,
- // }).then((response) => {
- // if (response.code === 20000) {
- // }
- // console.log(this.imgList);
- // });
const m = (e) => {
e.preventDefault();
};
document.body.style.overflow = "hidden";
document.addEventListener("touchmove", m, false); // 禁止页面滑动
-
},
+ closeImgViewer() {
+ this.imgViewerVisible = false;
+ document.body.style.overflow = "auto"; // 恢复页面滑动
+ document.removeEventListener("touchmove", m, false); // 移除禁止页面滑动的事件
+ },
+
invChange() {
@@ -842,7 +838,7 @@ export default {
},
freshen() {
this.Upinvoice = false;
- this.getBizDetailListInv();
+ // this.getBizDetailListInv();
},
printOrder(row) {
this.currentManufacturer = row;
diff --git a/src/views/inout/muti/ioOrderMutiSelect.vue b/src/views/inout/muti/ioOrderMutiSelect.vue
index 41a24468..857efd00 100644
--- a/src/views/inout/muti/ioOrderMutiSelect.vue
+++ b/src/views/inout/muti/ioOrderMutiSelect.vue
@@ -169,6 +169,7 @@ export default {
0: "草稿",
1: "未审核",
2: "已审核",
+ 3: "已拒绝"
},
orderMutiVisible: false,
actDateRange: [],
@@ -210,7 +211,9 @@ export default {
statusFilterType(status) {
const statusMap = {
0: "warning",
- 1: "success",
+ 1: "primary",
+ 2: "success",
+ 3: "danger"
};
return statusMap[status];
},
diff --git a/src/views/inventory/InvCountOrderAudit.vue b/src/views/inventory/InvCountOrderAudit.vue
index 57e4d8fa..3aa436a7 100644
--- a/src/views/inventory/InvCountOrderAudit.vue
+++ b/src/views/inventory/InvCountOrderAudit.vue
@@ -328,7 +328,7 @@ export default {
updateCountOrderStatus(params).then((res) => {
if (res.code === 20000) {
this.$message.success("审核通过");
- this.$message.success("已驳回");
+ this.$message.warning("已驳回");
this.getList();
this.onRestDetail();
} else {
diff --git a/src/views/inventory/inner/innerCodeDetail.vue b/src/views/inventory/inner/innerCodeDetail.vue
index 3b248202..8de253d6 100644
--- a/src/views/inventory/inner/innerCodeDetail.vue
+++ b/src/views/inventory/inner/innerCodeDetail.vue
@@ -42,7 +42,7 @@
-
+
{{ statusMap[scope.row.status] }}
diff --git a/src/views/system/dept/invRelUsers.vue b/src/views/system/dept/invRelUsers.vue
index 5a77c4a9..120f19c4 100644
--- a/src/views/system/dept/invRelUsers.vue
+++ b/src/views/system/dept/invRelUsers.vue
@@ -216,7 +216,6 @@ export default {
warehouseUserList(this.userQuery).then((res) => {
this.userData = res.data.list;
this.userTotal = res.data.total;
-
}).catch((error) => {
this.$message.error("数据正在处理,请勿重复提交")
});
diff --git a/src/views/system/param/busTypeChange.vue b/src/views/system/param/busTypeChange.vue
index 7034e6b0..b26b13ea 100644
--- a/src/views/system/param/busTypeChange.vue
+++ b/src/views/system/param/busTypeChange.vue
@@ -239,7 +239,14 @@ export default {
this.$message.error("请选择类型!");
return;
}
-
+ if (this.inputQuery.beforeTime < 0){
+ this.$message.error("生成出入库单时间间隔不能为负数!")
+ return;
+ }
+ if (this.inputQuery.busBeforeTime < 0){
+ this.$message.error("生成业务单时间间隔不能为负数!")
+ return;
+ }
if (this.formName === "add") {
let numRegExp = '^[0-9]*$';
let numReg = new RegExp(numRegExp);
diff --git a/src/views/system/param/busTypePre.vue b/src/views/system/param/busTypePre.vue
index 30388134..a6ffdf7e 100644
--- a/src/views/system/param/busTypePre.vue
+++ b/src/views/system/param/busTypePre.vue
@@ -235,11 +235,11 @@ export default {
return;
}
if (this.inputQuery.beforeTime < 0){
- this.$message.error("时间间隔不能为负数!")
+ this.$message.error("生成出入库单时间间隔不能为负数!")
return;
}
if (this.inputQuery.busBeforeTime < 0){
- this.$message.error("时间间隔不能为负数!")
+ this.$message.error("生成业务单时间间隔不能为负数!")
return;
}
// if (isBlank(this.inputQuery.invCode)) {
diff --git a/src/views/system/user/authUser.vue b/src/views/system/user/authUser.vue
index 7bb18229..7fc018fc 100644
--- a/src/views/system/user/authUser.vue
+++ b/src/views/system/user/authUser.vue
@@ -1,38 +1,42 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
- 重置
-
- 查询
-
- 新增
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 显示/隐藏搜索栏
+ 重置
+ 查询
+ 新增
+
+
+
+
@@ -292,10 +296,12 @@ export default {
}
};
return {
+ showSearch: true,
roles: [],
query: {
userName: "",
userFlag: "1",
+ deptName: "",
page: 1,
limit: 10,
roleId: "",
@@ -363,6 +369,12 @@ export default {
};
},
methods: {
+ getDeptList(){
+
+ },
+ hideSearch() {
+ this.showSearch = !this.showSearch;
+ },
onReset() {
this.$router.push({
path: ""
@@ -370,6 +382,7 @@ export default {
this.query = {
userName: "",
userFlag: "1",
+ deptName: null,
page: 1,
limit: 10,
roleId: "",
diff --git a/src/views/thirdSys/product/thrProductsExport.vue b/src/views/thirdSys/product/thrProductsExport.vue
index 8b11fc1f..eddb7c33 100644
--- a/src/views/thirdSys/product/thrProductsExport.vue
+++ b/src/views/thirdSys/product/thrProductsExport.vue
@@ -34,8 +34,8 @@
{{ status[scope.row.status] }}
-
-
+
+
下载
diff --git a/src/views/thirdSys/product/thrProductsSelect.vue b/src/views/thirdSys/product/thrProductsSelect.vue
index 422cc234..9090365d 100644
--- a/src/views/thirdSys/product/thrProductsSelect.vue
+++ b/src/views/thirdSys/product/thrProductsSelect.vue
@@ -113,7 +113,7 @@ import {getInvbasdoc} from "@/api/thrsys/getErps";
import {getBasicThirdSys, filterDetailByKey} from "@/api/thrsys/basicThirdSys";
import {selectIp} from "@/api/system/systemParamConfig";
import thrProductsDetail from "./thrProductsDetail";
-import {exportExcel} from "@/api/thrsys/thrProductsExport"
+import {exportExcel,exportExcelAll} from "@/api/thrsys/thrProductsExport"
import {thrProductUpload} from "@/api/thrsys/smp"
export default {
@@ -155,6 +155,7 @@ export default {
},
thrProductsDetailVisible: false,
thisData: null,
+ multipleSelection: []
};
},
@@ -395,11 +396,32 @@ export default {
selectData.forEach((obj) => {
this.filterQuery.thrProductsEntities.push(obj);
});
- this.allExport();
+ exportExcel(this.filterQuery)
+ .then((response) => {
+ if (response.code == 20000) {
+ this.$message({
+ type: "success",
+ message: "导出成功,后台正在生成Json文件,请稍后刷新查看!",
+ });
+ this.$emit("cancelDialog", true);
+ } else {
+ this.$message({
+ type: "error",
+ message: response.message,
+ });
+ this.$emit("cancelDialog", true);
+ }
+ })
+ .catch(() => {
+ this.$message({
+ type: "error",
+ message: "上传失败",
+ });
+ });
},
allExport() {
this.filterQuery.thrProductsEntities=this.list;
- exportExcel(this.filterQuery)
+ exportExcelAll(this.filterQuery)
.then((response) => {
if (response.code == 20000) {
this.$message({