|
@@ -13,14 +13,14 @@
|
|
|
<el-row :gutter="20">
|
|
|
<el-form :model="form" :rules="rules" ref="form" class="demo-form-inline" size="small" label-position="right" label-width="80px">
|
|
|
<el-col :span="12">
|
|
|
- <p class="normal-title normal-margin">经销商信息</p>
|
|
|
- <el-form-item label="经销商" prop="enterprisename">
|
|
|
+ <p class="normal-title normal-margin">企业信息</p>
|
|
|
+ <el-form-item label="选择企业" prop="enterprisename">
|
|
|
<el-popover
|
|
|
placement="bottom"
|
|
|
trigger="click"
|
|
|
v-model="visible">
|
|
|
- <invoiceCanUseAgent ref="UseAgent" @selectRow="selectRow"></invoiceCanUseAgent>
|
|
|
- <el-input readonly slot="reference" v-model="form.enterprisename" @focus="queryAgent" suffix-icon="el-icon-arrow-down" placeholder="经销商"></el-input>
|
|
|
+ <invoiceCanUseAgent :qiyi="true" ref="UseAgent" @selectRow="selectRow"></invoiceCanUseAgent>
|
|
|
+ <el-input readonly slot="reference" v-model="form.enterprisename" @focus="queryAgent" suffix-icon="el-icon-arrow-down" placeholder="企业"></el-input>
|
|
|
</el-popover>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -123,6 +123,7 @@ export default {
|
|
|
byhand:false,
|
|
|
invoiceline:'p'
|
|
|
},
|
|
|
+ accountAmount:'',
|
|
|
value:'',
|
|
|
rules:{
|
|
|
enterprisename: [
|
|
@@ -181,8 +182,36 @@ export default {
|
|
|
// 选择经销商
|
|
|
selectRow (row) {
|
|
|
this.visible = false
|
|
|
+ console.log(row);
|
|
|
+
|
|
|
this.form.enterprisename = row.enterprisename
|
|
|
this.form.sys_enterpriseid = row.sys_enterpriseid
|
|
|
+ this.getAccountAmount(row.sys_enterpriseid)
|
|
|
+ },
|
|
|
+ /* 获取财务信息 */
|
|
|
+ async getAccountAmount (id) {
|
|
|
+ let res = await this.$api.requested({
|
|
|
+ "id": 20221013160602,
|
|
|
+ "content": {
|
|
|
+ "sys_enterpriseid":id,
|
|
|
+ "pageNumber": 1,
|
|
|
+ "pageSize": 20,
|
|
|
+ "where": {
|
|
|
+ "condition": ""
|
|
|
+ }
|
|
|
+ },
|
|
|
+ })
|
|
|
+ if (res.data && res.data.length > 0) {
|
|
|
+ this.accountAmount = res.data[0]
|
|
|
+ this.form.invo_enterprisename = this.accountAmount.enterprisename
|
|
|
+ this.form.taxno = this.accountAmount.taxno
|
|
|
+ this.form.address = this.accountAmount.address
|
|
|
+ this.form.phonenumber = this.accountAmount.phonenumber
|
|
|
+ this.form.bank = this.accountAmount.bank
|
|
|
+ this.form.bankcardno = this.accountAmount.bankcardno
|
|
|
+ }
|
|
|
+ console.log(res,'财务信息');
|
|
|
+
|
|
|
},
|
|
|
// 选择开票信息
|
|
|
selectTaxRow (row) {
|