Commit cf910902 by chenwq

员工恢复

1 parent 98690088
......@@ -278,7 +278,7 @@ export default {
this.editForm.receiveWay = this.editForm.receiveWay + ''
this.recoveryCoupon()
this.recoveryTotalPrice()
this.hasStaffBlock()
this.hasStaffBlock(false)
this.$nextTick(() => {
this.editStatus = false
})
......@@ -355,10 +355,10 @@ export default {
this.key = new Date()
},
hasStaffBlock() {
hasStaffBlock(isValidate = true) {
var idx = this.editFormData.findIndex(item => item.name == 'staffListBlock')
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() {
......
......@@ -136,7 +136,10 @@ export default {
},
{
label: '赠送原因',
prop: 'giveReason'
prop: 'giveReason',
formatter: cellValue => {
return cellValue.giveReason || '-'
}
},
{
label: '创建时间',
......
......@@ -97,7 +97,7 @@ export default {
recoverySelected() {
if (this.selectedStaffList && this.selectedStaffList.length) {
this.selectedStaffList.forEach(row => {
row.userOneId = row.staffId
row.userOneId = row.staffUUID
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!