|
|
@@ -1522,10 +1522,11 @@ export default {
|
|
|
this.inputForm = inputForm
|
|
|
}
|
|
|
if (this.commonJS.isNotEmpty(isConfirm)) {
|
|
|
- if (this.inputForm.userId == this.$store.state.user.id) {
|
|
|
+ const currentUserId = this.$store.state.user.id
|
|
|
+ const creatorId = this.inputForm.createById || this.inputForm.userId
|
|
|
+ if (isConfirm !== 1 && creatorId == currentUserId) {
|
|
|
isConfirm = 4
|
|
|
}
|
|
|
-
|
|
|
this.isConfirm = isConfirm
|
|
|
}
|
|
|
if (this.commonJS.isNotEmpty(status)) {
|
|
|
@@ -2647,8 +2648,6 @@ export default {
|
|
|
if (item.uniqueId == uniqueId) {
|
|
|
if (item.number) {
|
|
|
item.number = (parseFloat(item.number) - parseFloat(row.count)).toFixed(2)
|
|
|
- console.log(item.number);
|
|
|
-
|
|
|
// this.handleOrdinaryNumberInput(item, 1)
|
|
|
}
|
|
|
|
|
|
@@ -2759,8 +2758,6 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
numberCount = numberCount.toFixed(2)
|
|
|
- console.log(numberCount);
|
|
|
- console.log(row.number);
|
|
|
if (Number(numberCount) > 0 && Number(row.number) > Number(numberCount)) {
|
|
|
|
|
|
row.number = 0
|