Commit cf910902 by chenwq

员工恢复

1 parent 98690088
...@@ -278,7 +278,7 @@ export default { ...@@ -278,7 +278,7 @@ export default {
this.editForm.receiveWay = this.editForm.receiveWay + '' this.editForm.receiveWay = this.editForm.receiveWay + ''
this.recoveryCoupon() this.recoveryCoupon()
this.recoveryTotalPrice() this.recoveryTotalPrice()
this.hasStaffBlock() this.hasStaffBlock(false)
this.$nextTick(() => { this.$nextTick(() => {
this.editStatus = false this.editStatus = false
}) })
...@@ -355,10 +355,10 @@ export default { ...@@ -355,10 +355,10 @@ export default {
this.key = new Date() this.key = new Date()
}, },
hasStaffBlock() { hasStaffBlock(isValidate = true) {
var idx = this.editFormData.findIndex(item => item.name == 'staffListBlock') var idx = this.editFormData.findIndex(item => item.name == 'staffListBlock')
this.editFormData[idx].isHide = !this.editForm.staffList.length this.editFormData[idx].isHide = !this.editForm.staffList.length
this.$refs.editFormRef.$refs[this.editChildRef].validateField('staffList') isValidate && this.$refs.editFormRef.$refs[this.editChildRef].validateField('staffList')
}, },
handleSelectStaff() { handleSelectStaff() {
......
...@@ -136,7 +136,10 @@ export default { ...@@ -136,7 +136,10 @@ export default {
}, },
{ {
label: '赠送原因', label: '赠送原因',
prop: 'giveReason' prop: 'giveReason',
formatter: cellValue => {
return cellValue.giveReason || '-'
}
}, },
{ {
label: '创建时间', label: '创建时间',
......
...@@ -97,7 +97,7 @@ export default { ...@@ -97,7 +97,7 @@ export default {
recoverySelected() { recoverySelected() {
if (this.selectedStaffList && this.selectedStaffList.length) { if (this.selectedStaffList && this.selectedStaffList.length) {
this.selectedStaffList.forEach(row => { this.selectedStaffList.forEach(row => {
row.userOneId = row.staffId row.userOneId = row.staffUUID
this.$refs.mutiProRef.$refs[this.tableParams.mutiSelectName + 'MutiTable'].toggleRowSelection(row) this.$refs.mutiProRef.$refs[this.tableParams.mutiSelectName + 'MutiTable'].toggleRowSelection(row)
}) })
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!