Merge pull request '客户开票主体界面调整' (#99) from master-invoice into master
Reviewed-on: http://git.xdadan.loc/tanex/emis-frontend/pulls/99
This commit is contained in:
commit
688d218020
@ -58,7 +58,11 @@
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</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>
|
||||
|
||||
|
||||
@ -159,6 +163,11 @@
|
||||
<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="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="bankAccNo" min-width="150" :show-overflow-tooltip="true"/>
|
||||
<el-table-column :label="$t('联系人')" align="center" prop="contact" min-width="100" />
|
||||
@ -233,8 +242,7 @@ import XLSX from 'xlsx'
|
||||
export default {
|
||||
name: "EmisCustomerInvoiceInfo",
|
||||
components: { elDateSimplePicker,emisCustomerInvoiceInfoForm },
|
||||
dicts: [
|
||||
],
|
||||
dicts: ['customer_invoice_status'],
|
||||
data() {
|
||||
return {
|
||||
resetRefreshId:null,
|
||||
@ -554,6 +562,9 @@ export default {
|
||||
}
|
||||
return statusStr;
|
||||
}
|
||||
if(j==='enableStatus'){
|
||||
return this.selectDictLabel(this.dict.type.customer_invoice_status,v[j]);
|
||||
}
|
||||
return v[j]
|
||||
}))
|
||||
},
|
||||
|
||||
@ -284,6 +284,13 @@ export default {
|
||||
components: { CustomerInvoiceInfoPicker,SettleBillPicker },
|
||||
dicts: ['emis_payment_type'],
|
||||
data() {
|
||||
var checkerCompany=(rule, value, callback)=> {
|
||||
if (this.selectCompanyEnableStatus!=1) {
|
||||
callback(new Error('该开票抬头申请开票被限制,暂缓开票!'));
|
||||
} else {
|
||||
callback();
|
||||
}
|
||||
}
|
||||
return {
|
||||
emisSettleInvoiceRecordOptions: [],
|
||||
// 遮罩层
|
||||
@ -305,6 +312,7 @@ export default {
|
||||
isPreventReClick:false,
|
||||
// 表单参数
|
||||
form: {},
|
||||
selectCompanyEnableStatus:null,
|
||||
// 表单校验
|
||||
rules: {
|
||||
|
||||
@ -318,8 +326,8 @@ export default {
|
||||
{ required: true, message: "开票类型不能为空", trigger: ["blur","change"] }
|
||||
],
|
||||
companyTaxNo: [
|
||||
{ required: true, message: "开票税号不能为空", trigger: ["blur","change"] }
|
||||
],
|
||||
{ required: true, message: "开票税号不能为空", trigger: ["blur","change"] },
|
||||
{ validator: checkerCompany, trigger: ['blur', 'change']}]
|
||||
// remark: [
|
||||
// { required: true, message: "开票备注不能为空", trigger: "blur" }
|
||||
// ],
|
||||
@ -576,7 +584,11 @@ export default {
|
||||
},
|
||||
|
||||
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.companyName=item.companyName;
|
||||
this.form.companyTel=item.companyTel;
|
||||
@ -659,6 +671,7 @@ export default {
|
||||
},
|
||||
invoiceRelList:[],
|
||||
};
|
||||
this.selectCompanyEnableStatus=null;
|
||||
this.resetForm("form");
|
||||
},
|
||||
/** 提交按钮 */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user