|
|
@ -3,9 +3,9 @@ |
|
|
|
<div class="tab-header webtop"> |
|
|
|
<div>{{ viewTitle }}</div> |
|
|
|
<div> |
|
|
|
<el-button type="primary" size="small" @click="handleCreate()">保存</el-button> |
|
|
|
<el-button type="primary" size="small" @click="handleSubmit()">提交</el-button> |
|
|
|
<el-button type="info" size="small" @click="handleReturn()">返回</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> |
|
|
|
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="listconadd"> |
|
|
@ -194,8 +194,6 @@ export default { |
|
|
|
return { |
|
|
|
viewTitle: '', |
|
|
|
// --按钮菜单------- |
|
|
|
FormLoading: false, |
|
|
|
listLoading: false, |
|
|
|
vinNo_list: [], // 车架号 |
|
|
|
warehouwarehouse_list: [], // 存放地点 |
|
|
|
staff_list: [], |
|
|
@ -250,7 +248,8 @@ export default { |
|
|
|
location: [{ required: true, message: '现存放地点不能为空', trigger: 'change' }], |
|
|
|
targetLocation: [{ required: true, message: '目标存放地点不能为空', trigger: 'change' }], |
|
|
|
staffName: [{ required: true, message: '现存放地点负责人不能为空', trigger: 'change' }] |
|
|
|
} |
|
|
|
}, |
|
|
|
submitdisabled: false // 保存按钮 |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
@ -462,6 +461,7 @@ export default { |
|
|
|
policyImage: [], |
|
|
|
scmVehicleGressionVehs: [] |
|
|
|
} |
|
|
|
this.submitdisabled = false |
|
|
|
this.vinNo_list = [] |
|
|
|
this.$emit('doback') |
|
|
|
}, |
|
|
@ -484,13 +484,14 @@ export default { |
|
|
|
} |
|
|
|
this.$refs['dataForm'].validate((valid) => { |
|
|
|
if (valid) { |
|
|
|
this.FormLoading = true |
|
|
|
this.submitdisabled = true |
|
|
|
// 只需添加和修改 |
|
|
|
saveCarTransferInfo(this.temp).then((response) => { |
|
|
|
this.FormLoading = false |
|
|
|
if (response.success) { |
|
|
|
this.handleReturn('true') |
|
|
|
} |
|
|
|
}).catch(() => { |
|
|
|
this.submitdisabled = false |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
@ -521,19 +522,18 @@ export default { |
|
|
|
} |
|
|
|
this.$refs['dataForm'].validate(valid => { |
|
|
|
if (valid) { |
|
|
|
// this.submitdisabled = true |
|
|
|
this.$confirm('是否确定提交该业务', '提示', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
}).then(() => { |
|
|
|
this.submitdisabled = true |
|
|
|
submitCarTransfer(this.temp).then(resp => { |
|
|
|
// this.submitdisabled = false |
|
|
|
if (resp.success) { |
|
|
|
this.handleReturn('true') |
|
|
|
} |
|
|
|
}).catch(() => { |
|
|
|
// this.submitdisabled = false |
|
|
|
this.submitdisabled = false |
|
|
|
}) |
|
|
|
}) |
|
|
|
} else { |
|
|
|