|
@@ -198,20 +198,18 @@ export default {
|
|
|
* 处理编辑\详情
|
|
* 处理编辑\详情
|
|
|
*/
|
|
*/
|
|
|
async handleEdit (key, { id, scheduleId }) {
|
|
async handleEdit (key, { id, scheduleId }) {
|
|
|
- debugger
|
|
|
|
|
this.params = {
|
|
this.params = {
|
|
|
id,
|
|
id,
|
|
|
scheduleId
|
|
scheduleId
|
|
|
}
|
|
}
|
|
|
this.readonly = key === 'detail'
|
|
this.readonly = key === 'detail'
|
|
|
this.showAdjustEdit = true
|
|
this.showAdjustEdit = true
|
|
|
- console.log('readonly', this.readonly)
|
|
|
|
|
},
|
|
},
|
|
|
/**
|
|
/**
|
|
|
* 处理单条同意/不同意
|
|
* 处理单条同意/不同意
|
|
|
*/
|
|
*/
|
|
|
async handleAgree (key, data) {
|
|
async handleAgree (key, data) {
|
|
|
- console.log(data)
|
|
|
|
|
|
|
+ // console.log(data)
|
|
|
data.status = (key === 'agree' ? (data.status === '待审核' ? '待审批' : '已通过') : '已拒绝')
|
|
data.status = (key === 'agree' ? (data.status === '待审核' ? '待审批' : '已通过') : '已拒绝')
|
|
|
saveAdjustment(data).then(() => {
|
|
saveAdjustment(data).then(() => {
|
|
|
ActionUtils.successMessage()
|
|
ActionUtils.successMessage()
|
|
@@ -222,7 +220,7 @@ export default {
|
|
|
* 批量处理同意/不同意
|
|
* 批量处理同意/不同意
|
|
|
*/
|
|
*/
|
|
|
async handleMassAgree (key, data) {
|
|
async handleMassAgree (key, data) {
|
|
|
- console.log(key, data)
|
|
|
|
|
|
|
+ // console.log(key, data)
|
|
|
if (data.length < 1) {
|
|
if (data.length < 1) {
|
|
|
ActionUtils.warning('请选择数据!')
|
|
ActionUtils.warning('请选择数据!')
|
|
|
return
|
|
return
|
|
@@ -263,7 +261,6 @@ export default {
|
|
|
*
|
|
*
|
|
|
*/
|
|
*/
|
|
|
handleRowDblclick (row) {
|
|
handleRowDblclick (row) {
|
|
|
- debugger
|
|
|
|
|
this.handleEdit(row, 'detail')
|
|
this.handleEdit(row, 'detail')
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|