diff --git a/src/views/businessManagement/ordinary.vue b/src/views/businessManagement/ordinary.vue
index 3b4cdc3..1f9d405 100644
--- a/src/views/businessManagement/ordinary.vue
+++ b/src/views/businessManagement/ordinary.vue
@@ -45,8 +45,10 @@
关闭
确认
+
驳回
+
报告
@@ -1572,20 +1574,20 @@ export default {
handleReject() {
this.$refs.rejectForm.validate((valid) => {
if (valid) {
- if (this.role_id == '1839552581620793346') {
- let query = {
- id: this.rejectForm.id,
- repaiRejectReason: this.rejectForm.reason
- }
- servicemanReject(query).then(res => {
- if (res.data.code == 200) {
- this.$message.success('驳回成功')
- this.rejectForm = {}
- this.rejectVisible = false
- this.onLoad()
- }
- })
+ // if (this.role_id == '1839552581620793346') {
+ let query = {
+ id: this.rejectForm.id,
+ repaiRejectReason: this.rejectForm.reason
}
+ servicemanReject(query).then(res => {
+ if (res.data.code == 200) {
+ this.$message.success('驳回成功')
+ this.rejectForm = {}
+ this.rejectVisible = false
+ this.onLoad()
+ }
+ })
+ // }
}
})
@@ -1715,7 +1717,23 @@ export default {
this.$message.error('请至少填写一条维修材料信息')
} else {
let data = []
+ let goodsList = []
this.tableData.map((item, index) => {
+ goodsList.push({
+ productId: item.id,
+ productName: item.productName,
+ applyNum: item.number,
+ orderId: this.repairForm.id,
+ materialName: item.productName,
+ materialCount: item.number,
+ materialPrice: item.price,
+ bigClassId: item.productType.node,
+ rule: item.rule,
+ unit: item.unit,
+ xh: item.xh,
+ inventoryId: item.inventoryId
+ // outNum:""
+ })
data.push({
orderId: this.repairForm.id,
materialName: item.productName,
@@ -1746,14 +1764,15 @@ export default {
query.discount = 0
}
+
let query1 = {
- details: data,
+ details: goodsList,
applyUserId: this.userInfo.user_id, //申领人Id
applyUser: this.userInfo.user_name, //申领人
applyTime: moment().format('YYYY-MM-DD HH:mm:ss'), //申领时间(yyyy-MM-dd HH:mm:ss)
status: 0,
- workId: this.addForm.id,
- remark:'维修单申领'
+ workId: this.repairForm.id,
+ remark: '维修单申领'
}
editData(query).then(res => {
@@ -2015,15 +2034,15 @@ export default {
workId: this.addForm.id,
}
// applyGoods(query1).then(res => {
- if (res.data.code == 200) {
- servicemanReceive({ id: this.addForm.id }).then(res => {
- if (res.data.code == 200) {
- this.$message.success('提交成功')
- this.dialogVisible = false
- this.onLoad()
- }
- })
- }
+ if (res.data.code == 200) {
+ servicemanReceive({ id: this.addForm.id }).then(res => {
+ if (res.data.code == 200) {
+ this.$message.success('提交成功')
+ this.dialogVisible = false
+ this.onLoad()
+ }
+ })
+ }
// })
}
} else {
diff --git a/src/views/device/deviceSystem.vue b/src/views/device/deviceSystem.vue
index 2b1bf05..3fcf3b6 100644
--- a/src/views/device/deviceSystem.vue
+++ b/src/views/device/deviceSystem.vue
@@ -127,8 +127,8 @@
format="yyyy-MM-dd" value-format="yyyy-MM-dd" type="date" placeholder="请选择生产时间">
-->
-
-
+
diff --git a/src/views/goodsManagement/reciviceList.vue b/src/views/goodsManagement/reciviceList.vue
index d68a028..8eff71c 100644
--- a/src/views/goodsManagement/reciviceList.vue
+++ b/src/views/goodsManagement/reciviceList.vue
@@ -12,7 +12,7 @@
-
+
@@ -57,7 +57,7 @@
-
+
diff --git a/src/views/labManagement/inspectionManagement.vue b/src/views/labManagement/inspectionManagement.vue
index 14bdffa..69d7d8a 100644
--- a/src/views/labManagement/inspectionManagement.vue
+++ b/src/views/labManagement/inspectionManagement.vue
@@ -1,46 +1,43 @@
-
+
-
-
-
-
- 新建
-
-
- {{ row.isOpen == 0 ? '停用' : '启用'
- }}
-
-
- 查看
- 编辑
- 启用
- 停用
- 删除
- 下载
- 导出
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+ 新建
+
+
+ {{ row.isOpen == 0 ? '停用' : '启用'
+ }}
+
+
+ 查看
+ 编辑
+ 启用
+ 停用
+ 删除
+ 下载
+ 导出
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dept.vue b/src/views/system/dept.vue
index 96f425e..1030a7d 100644
--- a/src/views/system/dept.vue
+++ b/src/views/system/dept.vue
@@ -260,6 +260,7 @@ export default {
});
// 数据回调进行刷新
done(row);
+ this.onLoad();
}, error => {
window.console.log(error);
loading();
@@ -273,8 +274,10 @@ export default {
});
// 数据回调进行刷新
done(row);
+ this.onLoad();
}, error => {
window.console.log(error);
+
loading();
});
},
@@ -387,6 +390,7 @@ export default {
},
onLoad(page, params = {}) {
this.loading = true;
+ this.data = []
getLazyList(this.parentId, Object.assign(params, this.query)).then(res => {
this.data = res.data.data;
this.loading = false;
diff --git a/src/views/system/user.vue b/src/views/system/user.vue
index 012c101..7cd4025 100644
--- a/src/views/system/user.vue
+++ b/src/views/system/user.vue
@@ -232,7 +232,7 @@ export default {
dialogType: 'drawer',
dialogClickModal: false,
searchShowBtn: false, // 栏目折叠显隐
- refreshBtn: false, // 刷新
+ refreshBtn: false, // 刷新
columnBtn: false, // 操作列显隐
gridBtn:false,
excelBtn: false, // 导出Excel
@@ -728,14 +728,14 @@ export default {
row.deptId = func.join(row.deptId);
row.roleId = func.join(row.roleId);
row.postId = func.join(row.postId);
- if (row.deptId.split(',').length > 1) {
- this.$message({
- type: "error",
- message: "所属部门只能选择一个!"
- });
- loading();
- return false
- }
+ // if (row.deptId.split(',').length > 1) {
+ // this.$message({
+ // type: "error",
+ // message: "所属部门只能选择一个!"
+ // });
+ // loading();
+ // return false
+ // }
add(row).then(() => {
this.initFlag = false;
this.onLoad(this.page);
@@ -753,14 +753,14 @@ export default {
row.deptId = func.join(row.deptId);
row.roleId = func.join(row.roleId);
row.postId = func.join(row.postId);
- if (row.deptId.split(',').length > 1) {
- this.$message({
- type: "error",
- message: "所属部门只能选择一个!"
- });
- loading();
- return false
- }
+ // if (row.deptId.split(',').length > 1) {
+ // this.$message({
+ // type: "error",
+ // message: "所属部门只能选择一个!"
+ // });
+ // loading();
+ // return false
+ // }
update(row).then(() => {
this.initFlag = false;
this.onLoad(this.page);
diff --git a/src/views/workbench/index.vue b/src/views/workbench/index.vue
index 345d899..fc8bb88 100644
--- a/src/views/workbench/index.vue
+++ b/src/views/workbench/index.vue
@@ -893,7 +893,7 @@ export default {
{
name: '维修数量',
type: 'bar',
- barWidth: this.numData == 1 ? 50 : null,
+ barWidth: this.numData == 1 ? 30 : 30,
data: this.peopleNum,
itemStyle: {
color: '#2478f2'
diff --git a/vue.config.js b/vue.config.js
index c759086..4b794d1 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -28,8 +28,8 @@ module.exports = {
//本地服务接口地址
// target: 'http://localhost',
// target:'http://192.168.0.111:80',
- // target:'http://192.168.1.12:10001',
- target:'http://192.168.1.4:10001',
+ target:'http://192.168.1.12:10001',
+ // target:'http://192.168.1.4:10001',
// target:'http://192.168.0.116:80',
// target:'http://192.168.0.108:80',
//远程演示服务地址,可用于直接启动项目