|
|
@ -4,8 +4,8 @@ |
|
|
|
<div class="tab-header webtop"> |
|
|
|
<div>{{ viewTitle }}</div> |
|
|
|
<div> |
|
|
|
<el-button type="primary" size="small" :disabled="FormLoading" @click="handleCreate()">保存</el-button> |
|
|
|
<el-button type="primary" size="small" :disabled="disabled" @click="handleSubmit()">提交</el-button> |
|
|
|
<el-button type="primary" size="small" :disabled="submitdisabled" @click="handleCreate()">保存</el-button> |
|
|
|
<el-button type="primary" size="small" :disabled="submitdisabled" @click="handleSubmit()">提交</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class=""> |
|
|
@ -81,7 +81,7 @@ |
|
|
|
<el-table-column align="center" label="序号" type="index" width="60"/> |
|
|
|
<el-table-column label="操作" align="center" width="80px" class-name="small-padding fixed-width"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button size="mini" type="danger" @click="handleDelete(scope.row,scope.$index)">删除 |
|
|
|
<el-button size="mini" type="danger" @click="handleDelete(scope.$index)">删除 |
|
|
|
</el-button> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
@ -257,10 +257,8 @@ export default { |
|
|
|
this.temp.staffSid = window.sessionStorage.getItem('staffSid') |
|
|
|
this.temp.orgSid = window.sessionStorage.getItem('orgSid') |
|
|
|
saveChe(this.temp).then((response) => { |
|
|
|
this.FormLoading = true |
|
|
|
if (response.code === '200') { |
|
|
|
this.FormLoading = false |
|
|
|
this.$message({ showClose: true, type: 'success', message: '提交成功' }) |
|
|
|
if (response.success) { |
|
|
|
this.$message({ showClose: true, type: 'success', message: '保存成功' }) |
|
|
|
// 子页面向父级页面传递值 |
|
|
|
window.parent.postMessage({ |
|
|
|
cmd: 'returnHeight', |
|
|
@ -269,6 +267,8 @@ export default { |
|
|
|
code: 1 |
|
|
|
} |
|
|
|
}, '*') |
|
|
|
} else { |
|
|
|
this.submitdisabled = false |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
@ -301,13 +301,8 @@ export default { |
|
|
|
console.log('提交时sid', this.temp.sid) |
|
|
|
// 提交流程 |
|
|
|
submitVehicleApprove(this.temp).then((response) => { |
|
|
|
if (response.code === '200') { |
|
|
|
this.$notify({ |
|
|
|
title: '提示', |
|
|
|
message: '提交成功', |
|
|
|
type: 'success', |
|
|
|
duration: 2000 |
|
|
|
}) |
|
|
|
if (response.success) { |
|
|
|
this.$message({ showClose: true, type: 'success', message: '提交成功' }) |
|
|
|
// 子页面向父级页面传递值 |
|
|
|
window.parent.postMessage({ |
|
|
|
cmd: 'returnHeight', |
|
|
@ -316,6 +311,8 @@ export default { |
|
|
|
code: 1 |
|
|
|
} |
|
|
|
}, '*') |
|
|
|
} else { |
|
|
|
this.submitdisabled = false |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
@ -349,7 +346,7 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
// 删除一行 |
|
|
|
handleDelete(row, index) { |
|
|
|
handleDelete(index) { |
|
|
|
this.temp.carList.splice(index, 1) |
|
|
|
}, |
|
|
|
// ------------ 页面跳转以及数据获取 ------------ |
|
|
|