|
|
@@ -141,11 +141,24 @@
|
|
|
],
|
|
|
// 加载状态
|
|
|
loading: false,
|
|
|
- planOrderId: ''
|
|
|
+ planOrderId: '',
|
|
|
+ userInfo: {}
|
|
|
};
|
|
|
},
|
|
|
+ created() {
|
|
|
+ let info = JSON.parse(localStorage.getItem('info'));
|
|
|
+ this.userInfo = info;
|
|
|
+ },
|
|
|
methods: {
|
|
|
control(row) {
|
|
|
+ console.log(row, this.userInfo);
|
|
|
+ if (row.executorId != this.userInfo.userId) {
|
|
|
+ this.$message({
|
|
|
+ type: 'error',
|
|
|
+ message: '您不是盘点人员,不能报工!',
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
this.$refs.disposeDialogRef.open(row.id);
|
|
|
},
|
|
|
/* 表格数据源 */
|