客户开票主体界面调整
This commit is contained in:
parent
ffb75d2552
commit
eb90b98dc2
@ -58,7 +58,11 @@
|
|||||||
@keyup.enter.native="handleQuery"
|
@keyup.enter.native="handleQuery"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="启用状态" prop="enableStatus">
|
||||||
|
<el-select v-model="queryParams.enableStatus" placeholder="启用状态" clearable>
|
||||||
|
<el-option v-for="dict in dict.type.customer_invoice_status" :key="dict.value" :label="dict.label" :value="dict.value"/>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
</SearchForm>
|
</SearchForm>
|
||||||
|
|
||||||
|
|
||||||
@ -159,6 +163,11 @@
|
|||||||
<el-table-column :label="$t('公司电话')" align="center" prop="companyTel" min-width="100" />
|
<el-table-column :label="$t('公司电话')" align="center" prop="companyTel" min-width="100" />
|
||||||
<el-table-column :label="$t('公司地址')" align="center" prop="companyAddress" min-width="300" :show-overflow-tooltip="true"/>
|
<el-table-column :label="$t('公司地址')" align="center" prop="companyAddress" min-width="300" :show-overflow-tooltip="true"/>
|
||||||
<!-- <el-table-column :label="$t('开票类型')" align="center" prop="invoiceType" min-width="100" /> -->
|
<!-- <el-table-column :label="$t('开票类型')" align="center" prop="invoiceType" min-width="100" /> -->
|
||||||
|
<el-table-column :label="$t('启用状态')" align="center" prop="enableStatus" min-width="100" >
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<dict-tag :options="dict.type.customer_invoice_status" :value="scope.row.enableStatus"/>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column :label="$t('开户行')" align="center" prop="bankName" min-width="150" :show-overflow-tooltip="true"/>
|
<el-table-column :label="$t('开户行')" align="center" prop="bankName" min-width="150" :show-overflow-tooltip="true"/>
|
||||||
<el-table-column :label="$t('开户账号')" align="center" prop="bankAccNo" min-width="150" :show-overflow-tooltip="true"/>
|
<el-table-column :label="$t('开户账号')" align="center" prop="bankAccNo" min-width="150" :show-overflow-tooltip="true"/>
|
||||||
<el-table-column :label="$t('联系人')" align="center" prop="contact" min-width="100" />
|
<el-table-column :label="$t('联系人')" align="center" prop="contact" min-width="100" />
|
||||||
@ -233,8 +242,7 @@ import XLSX from 'xlsx'
|
|||||||
export default {
|
export default {
|
||||||
name: "EmisCustomerInvoiceInfo",
|
name: "EmisCustomerInvoiceInfo",
|
||||||
components: { elDateSimplePicker,emisCustomerInvoiceInfoForm },
|
components: { elDateSimplePicker,emisCustomerInvoiceInfoForm },
|
||||||
dicts: [
|
dicts: ['customer_invoice_status'],
|
||||||
],
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
resetRefreshId:null,
|
resetRefreshId:null,
|
||||||
@ -554,6 +562,9 @@ export default {
|
|||||||
}
|
}
|
||||||
return statusStr;
|
return statusStr;
|
||||||
}
|
}
|
||||||
|
if(j==='enableStatus'){
|
||||||
|
return this.selectDictLabel(this.dict.type.customer_invoice_status,v[j]);
|
||||||
|
}
|
||||||
return v[j]
|
return v[j]
|
||||||
}))
|
}))
|
||||||
},
|
},
|
||||||
|
|||||||
@ -284,6 +284,13 @@ export default {
|
|||||||
components: { CustomerInvoiceInfoPicker,SettleBillPicker },
|
components: { CustomerInvoiceInfoPicker,SettleBillPicker },
|
||||||
dicts: ['emis_payment_type'],
|
dicts: ['emis_payment_type'],
|
||||||
data() {
|
data() {
|
||||||
|
var checkerCompany=(rule, value, callback)=> {
|
||||||
|
if (this.selectCompanyEnableStatus!=1) {
|
||||||
|
callback(new Error('该开票抬头申请开票被限制,暂缓开票!'));
|
||||||
|
} else {
|
||||||
|
callback();
|
||||||
|
}
|
||||||
|
}
|
||||||
return {
|
return {
|
||||||
emisSettleInvoiceRecordOptions: [],
|
emisSettleInvoiceRecordOptions: [],
|
||||||
// 遮罩层
|
// 遮罩层
|
||||||
@ -305,6 +312,7 @@ export default {
|
|||||||
isPreventReClick:false,
|
isPreventReClick:false,
|
||||||
// 表单参数
|
// 表单参数
|
||||||
form: {},
|
form: {},
|
||||||
|
selectCompanyEnableStatus:null,
|
||||||
// 表单校验
|
// 表单校验
|
||||||
rules: {
|
rules: {
|
||||||
|
|
||||||
@ -318,8 +326,8 @@ export default {
|
|||||||
{ required: true, message: "开票类型不能为空", trigger: ["blur","change"] }
|
{ required: true, message: "开票类型不能为空", trigger: ["blur","change"] }
|
||||||
],
|
],
|
||||||
companyTaxNo: [
|
companyTaxNo: [
|
||||||
{ required: true, message: "开票税号不能为空", trigger: ["blur","change"] }
|
{ required: true, message: "开票税号不能为空", trigger: ["blur","change"] },
|
||||||
],
|
{ validator: checkerCompany, trigger: ['blur', 'change']}]
|
||||||
// remark: [
|
// remark: [
|
||||||
// { required: true, message: "开票备注不能为空", trigger: "blur" }
|
// { required: true, message: "开票备注不能为空", trigger: "blur" }
|
||||||
// ],
|
// ],
|
||||||
@ -576,7 +584,11 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
onCustomerInvoiceInSelect(item){
|
onCustomerInvoiceInSelect(item){
|
||||||
console.log("==>onCustomerInvoiceInSelect==>",item);
|
this.selectCompanyEnableStatus=item.enableStatus;
|
||||||
|
// if(item.enableStatus!=1){
|
||||||
|
// this.$modal.msgError("该开票抬头申请开票被限制,暂缓开票!");
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
this.form.companyTaxNo=item.companyTaxNo;
|
this.form.companyTaxNo=item.companyTaxNo;
|
||||||
this.form.companyName=item.companyName;
|
this.form.companyName=item.companyName;
|
||||||
this.form.companyTel=item.companyTel;
|
this.form.companyTel=item.companyTel;
|
||||||
@ -659,6 +671,7 @@ export default {
|
|||||||
},
|
},
|
||||||
invoiceRelList:[],
|
invoiceRelList:[],
|
||||||
};
|
};
|
||||||
|
this.selectCompanyEnableStatus=null;
|
||||||
this.resetForm("form");
|
this.resetForm("form");
|
||||||
},
|
},
|
||||||
/** 提交按钮 */
|
/** 提交按钮 */
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user