|
|
@@ -56,14 +56,14 @@
|
|
|
@selectChange="dicChange('branchName', $event)"></dic-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="12">
|
|
|
+<!-- <el-col :span="12">
|
|
|
<el-form-item label="发票号码" prop="invoiceNo">
|
|
|
<el-input style="width: 100%;" v-model="form.invoiceNo" size="small"
|
|
|
autocomplete="off" :disabled="true" clearable
|
|
|
placeholder="发票号码">
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
- </el-col>
|
|
|
+ </el-col>-->
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="开票日期" prop="invoiceDate">
|
|
|
<el-date-picker v-model="form.invoiceDate" clearable
|
|
|
@@ -73,19 +73,30 @@
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="12">
|
|
|
+ <el-col :span="24">
|
|
|
<el-form-item label="开票单位" prop="invCorpCnName">
|
|
|
- <search-query :datalist="invCorpData"
|
|
|
+ <search-query :datalist="invCorpData" :selectValue="form.invCorpCnName"
|
|
|
+ :clearable="true"
|
|
|
+ :buttonIf="false" :remote="true" :filterable="true"
|
|
|
+ placeholder="请输入开票单位"
|
|
|
+ :forParameter="{ key: 'id', label: 'cnName', value: 'cnName' }"
|
|
|
+ @corpChange="corpChange($event, 'invCorpCnName')"
|
|
|
+ @remoteMethod="invcorpsinvoiceheaderListfun"
|
|
|
+ @corpFocus="invcorpsinvoiceheaderListfun">
|
|
|
+ </search-query>
|
|
|
+ </el-form-item>
|
|
|
+<!-- <el-form-item label="开票单位" prop="invCorpCnName">
|
|
|
+ <search-query :datalist="corpData"
|
|
|
:selectValue="form.invCorpCnName" :clearable="true"
|
|
|
- :disabled="editSave || !form.corpId || tableData.length"
|
|
|
+ :disabled="false"
|
|
|
:buttonIf="false" :remote="true" :filterable="true"
|
|
|
placeholder="请选择开票单位"
|
|
|
:forParameter="{ key: 'id', label: 'invoiceHeader', value: 'id' }"
|
|
|
- @corpChange="corpChange($event, 'invCorpCnName')"
|
|
|
+ @corpChange="corpChange($event, 'corpCnName')"
|
|
|
@remoteMethod="invcorpsinvoiceheaderListfun"
|
|
|
@corpFocus="invcorpsinvoiceheaderListfun">
|
|
|
</search-query>
|
|
|
- </el-form-item>
|
|
|
+ </el-form-item>-->
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="收/付" prop="dc">
|
|
|
@@ -338,7 +349,7 @@
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="发票汇率" prop="exrate">
|
|
|
<el-input style="width: 100%;" v-model="form.exrate" size="small"
|
|
|
- autocomplete="off" :disabled="editSave || tableData.length"
|
|
|
+ autocomplete="off"
|
|
|
clearable placeholder="请输入发票汇率">
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
@@ -1105,7 +1116,7 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
// 带出开票单位数据
|
|
|
- corpsinvoiceheaderList(1, 20, { pid: this.form.corpId }).then(res => {
|
|
|
+ /* corpsinvoiceheaderList(1, 20, { pid: this.form.corpId }).then(res => {
|
|
|
if (res.data.data.records.length != 0) {
|
|
|
this.$set(this.form, 'invCorpId', res.data.data.records[0].id)
|
|
|
this.$set(this.form, 'invCorpCnName', res.data.data.records[0].invoiceHeader)
|
|
|
@@ -1115,30 +1126,34 @@ export default {
|
|
|
this.$set(this.form, 'invCorpAccountBankCny', res.data.data.records[0].accountBankUsd) // 人民币银行
|
|
|
this.$set(this.form, 'invCorpAccountNoCny', res.data.data.records[0].accountNoUsd) // 人民币账户
|
|
|
}
|
|
|
- })
|
|
|
+ })*/
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
// 开票单位
|
|
|
else if (name == 'invCorpCnName') {
|
|
|
+/*
|
|
|
this.$set(this.form, 'invCorpAccountBankUsd', '')
|
|
|
this.$set(this.form, 'invCorpAccountNoUsd', '')
|
|
|
this.$set(this.form, 'invCorpAccountBankCny', '')
|
|
|
this.$set(this.form, 'invCorpAccountNoCny', '')
|
|
|
+*/
|
|
|
if (!value) {
|
|
|
this.$set(this.form, 'invCorpId', '')
|
|
|
this.$set(this.form, 'invCorpCnName', '')
|
|
|
return
|
|
|
}
|
|
|
for (let item of this.invCorpData) {
|
|
|
- if (item.id == value) {
|
|
|
+ if (item.cnName == value) {
|
|
|
this.$set(this.form, 'invCorpId', item.id)
|
|
|
- this.$set(this.form, 'invCorpCnName', item.invoiceHeader)
|
|
|
+ this.$set(this.form, 'invCorpCnName', item.cnName)
|
|
|
+/*
|
|
|
this.$set(this.form, 'invCorpTaxNo', item.uscc) // 税号
|
|
|
this.$set(this.form, 'invCorpAccountBankUsd', item.accountBankUsd) // 美元银行
|
|
|
this.$set(this.form, 'invCorpAccountNoUsd', item.accountNoUsd) // 美元账户
|
|
|
this.$set(this.form, 'invCorpAccountBankCny', item.accountBankUsd) // 人民币银行
|
|
|
this.$set(this.form, 'invCorpAccountNoCny', item.accountNoUsd) // 人民币账户
|
|
|
+*/
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -1564,7 +1579,10 @@ export default {
|
|
|
},
|
|
|
// 根据往来单位选择调用获取发票抬头数据 开票单位数据
|
|
|
invcorpsinvoiceheaderListfun(cnName) {
|
|
|
- corpsinvoiceheaderList(1, 20, { pid: this.form.corpId, cnName }).then(res => {
|
|
|
+/* corpsinvoiceheaderList(1, 20, { pid: this.form.corpId, cnName }).then(res => {
|
|
|
+ this.invCorpData = res.data.data.records
|
|
|
+ })*/
|
|
|
+ getBcorpsList(1, 10, { cnName }).then(res => {
|
|
|
this.invCorpData = res.data.data.records
|
|
|
})
|
|
|
},
|