|
|
@ -117,6 +117,13 @@ export default { |
|
|
|
this.bank_list = res.data |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
showAdd() { |
|
|
|
this.$nextTick(() => { |
|
|
|
this.init() |
|
|
|
this.$refs['form_obj'].clearValidate() |
|
|
|
}) |
|
|
|
this.viewTitle = '【新增】开票信息' |
|
|
|
getPathSidByUserSid({ userSid: window.sessionStorage.getItem('userSid') }).then((res) => { |
|
|
|
if (res.success) { |
|
|
|
this.formobj.useOrgSid = res.data |
|
|
@ -125,29 +132,23 @@ export default { |
|
|
|
this.formobj.useOrgName = resp.data.name |
|
|
|
} |
|
|
|
}) |
|
|
|
req.fetchDetailsByUseOrgSid(res.data).then((response) => { |
|
|
|
if (response.success) { |
|
|
|
if (response.data !== null) { |
|
|
|
this.formobj = response.data |
|
|
|
this.viewTitle = '【编辑】开票信息' |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
showAdd() { |
|
|
|
this.$nextTick(() => { |
|
|
|
this.init() |
|
|
|
this.$refs['form_obj'].clearValidate() |
|
|
|
}) |
|
|
|
this.viewTitle = '【新增】开票信息' |
|
|
|
}, |
|
|
|
save() { |
|
|
|
this.$refs['form_obj'].validate((valid) => { |
|
|
|
if (valid) { |
|
|
|
req.saveOrUpdate(this.formobj).then((resp) => { |
|
|
|
if (resp.success) { |
|
|
|
this.$message({ showClose: true, type: 'success', message: '保存成功' }) |
|
|
|
this.formobj.sid = '' |
|
|
|
this.formobj.address = '' |
|
|
|
this.formobj.bankAccount = '' |
|
|
|
this.formobj.bankName = '' |
|
|
|
this.formobj.name = '' |
|
|
|
this.formobj.phone = '' |
|
|
|
this.formobj.taxpayerNo = '' |
|
|
|
// this.handleReturn('true') |
|
|
|
} |
|
|
|
}).catch(() => { |
|
|
|