|
|
@ -7,6 +7,7 @@ |
|
|
|
<div>{{ viewTitle }}</div> |
|
|
|
<!--start 添加修改按钮--> |
|
|
|
<div> |
|
|
|
<el-button type="primary" size="small" :disabled="submitdisabled" @click="handleClear()">清空</el-button> |
|
|
|
<el-button type="primary" size="small" :disabled="submitdisabled" @click="handleSave()">保存</el-button> |
|
|
|
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button> |
|
|
|
</div> |
|
|
@ -335,6 +336,32 @@ export default { |
|
|
|
this.formobj.adjustmentRemarks = '' |
|
|
|
} |
|
|
|
}, |
|
|
|
handleClear() { |
|
|
|
const tip = '请确认是否清空上传数据!' |
|
|
|
this.$confirm(tip, '提示', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
}).then(() => { |
|
|
|
const loading = this.$loading({ |
|
|
|
lock: true, |
|
|
|
text: 'Loading', |
|
|
|
spinner: 'el-icon-loading', |
|
|
|
background: 'rgba(0, 0, 0, 0.7)' |
|
|
|
}) |
|
|
|
this.submitdisabled = true |
|
|
|
req.clear(this.formobj.sid).then((resp) => { |
|
|
|
if (resp.success) { |
|
|
|
this.$message({ showClose: true, type: 'success', message: '操作成功' }) |
|
|
|
this.handleReturn('true') |
|
|
|
} |
|
|
|
loading.close() |
|
|
|
}).catch(e => { |
|
|
|
this.submitdisabled = false |
|
|
|
loading.close() |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
handleSave() { |
|
|
|
this.$refs['form_obj'].validate((valid) => { |
|
|
|
if (valid) { |
|
|
|