|
|
@@ -207,7 +207,7 @@ export default {
|
|
|
},
|
|
|
option: {},
|
|
|
optionBack: {
|
|
|
- height: 480,
|
|
|
+ height: 400,
|
|
|
calcHeight: 30,
|
|
|
menuWidth: 60,
|
|
|
tip: false,
|
|
|
@@ -630,6 +630,9 @@ export default {
|
|
|
return;
|
|
|
}
|
|
|
for (let item of this.selectionList) {
|
|
|
+ if (this.$store.getters.userInfo.user_name != item.createUserName) {
|
|
|
+ return this.$message.error("不是本人的数据不允许操作");
|
|
|
+ }
|
|
|
if (item.isChecked == 1) {
|
|
|
return this.$message.error("请选择未对账的数据");
|
|
|
}
|
|
|
@@ -668,6 +671,9 @@ export default {
|
|
|
return;
|
|
|
}
|
|
|
for (let item of this.selectionList) {
|
|
|
+ if (this.$store.getters.userInfo.user_name != item.createUserName) {
|
|
|
+ return this.$message.error("不是本人的数据不允许操作");
|
|
|
+ }
|
|
|
if (item.isSignfor == 1) {
|
|
|
return this.$message.error("请先撤销签收再撤销对账");
|
|
|
}
|
|
|
@@ -709,6 +715,9 @@ export default {
|
|
|
return;
|
|
|
}
|
|
|
for (let item of this.selectionList) {
|
|
|
+ if (this.$store.getters.userInfo.user_name != item.createUserName) {
|
|
|
+ return this.$message.error("不是本人的数据不允许操作");
|
|
|
+ }
|
|
|
if (item.isChecked == 0) {
|
|
|
return this.$message.error("请先对账再签收");
|
|
|
}
|
|
|
@@ -750,6 +759,9 @@ export default {
|
|
|
return;
|
|
|
}
|
|
|
for (let item of this.selectionList) {
|
|
|
+ if (this.$store.getters.userInfo.user_name != item.createUserName) {
|
|
|
+ return this.$message.error("不是本人的数据不允许操作");
|
|
|
+ }
|
|
|
if (item.isSignfor == 0) {
|
|
|
return this.$message.error("请选择已签收的数据");
|
|
|
}
|
|
|
@@ -921,9 +933,9 @@ export default {
|
|
|
},
|
|
|
rowClassName({ row, rowIndex }) {
|
|
|
let rowName = "",
|
|
|
- findRow = this.selectionList.find((c) => c.$index === rowIndex);
|
|
|
+ findRow = this.selectionList.find((c) => c.$index === rowIndex);
|
|
|
if (findRow) {
|
|
|
- rowName = "current-row "; // elementUI 默认高亮行的class类 不用再样式了^-^,也可通过css覆盖改变背景颜色
|
|
|
+ rowName = "current-row"; // elementUI 默认高亮行的class类 不用再样式了^-^,也可通过css覆盖改变背景颜色
|
|
|
}
|
|
|
return rowName; //也可以再加上其他类名 如果有需求的话
|
|
|
},
|
|
|
@@ -966,7 +978,7 @@ export default {
|
|
|
.el-button--text.is-disabled {
|
|
|
color: #c0c4cc !important;
|
|
|
}
|
|
|
-::v-deep.current-row {
|
|
|
- background: #ecf3ff;
|
|
|
+.current-row {
|
|
|
+ background: #a0cfff !important;
|
|
|
}
|
|
|
</style>
|