|
@@ -26,14 +26,14 @@
|
|
|
class="demo-ruleForm"
|
|
|
><el-row>
|
|
|
<el-col :span="24">
|
|
|
- <el-form-item label="企业客户" prop="companyNo">
|
|
|
+ <el-form-item label="开票信息" prop="companyNo">
|
|
|
<search-customer
|
|
|
:value="ruleForm.companyNo"
|
|
|
:isDetail="this.id !== 'add'"
|
|
|
:names="companyNoNames"
|
|
|
:disabled="isDetail"
|
|
|
@searchChange="companyNo_change"
|
|
|
- :placeholder="'企业客户'"
|
|
|
+ :placeholder="'开票信息'"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -218,7 +218,7 @@ export default {
|
|
|
return {
|
|
|
statusList: [],
|
|
|
loading: false,
|
|
|
- title: "添加企业客户",
|
|
|
+ title: "添加开票信息",
|
|
|
showModelThis: this.showModel,
|
|
|
dataInfo: {},
|
|
|
companyNoNames: "",
|
|
@@ -285,18 +285,19 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
async initForm() {
|
|
|
+ console.log(this.id, this.isDetail);
|
|
|
this.loading = true;
|
|
|
this.resetFormData();
|
|
|
if (this.id === "add") {
|
|
|
- this.title = "添加企业客户";
|
|
|
+ this.title = "添加开票信息";
|
|
|
this.rulesThis = this.rules;
|
|
|
await this.resetForm();
|
|
|
} else {
|
|
|
if (this.isDetail) {
|
|
|
- this.title = "企业客户";
|
|
|
+ this.title = "开票信息";
|
|
|
this.rulesThis = {};
|
|
|
} else {
|
|
|
- this.title = "修改企业客户";
|
|
|
+ this.title = "修改开票信息";
|
|
|
this.rulesThis = this.rules;
|
|
|
}
|
|
|
await this.resetForm();
|
|
@@ -360,34 +361,7 @@ export default {
|
|
|
invoice_mobile: "",
|
|
|
};
|
|
|
},
|
|
|
- async submitCexForm() {
|
|
|
- await this.$refs.cexForm.validate(async (valid) => {
|
|
|
- if (valid) {
|
|
|
- this.loading = true;
|
|
|
- console.log(this.id);
|
|
|
- console.log(this.cexForm);
|
|
|
- let obj = JSON.parse(JSON.stringify(this.cexForm));
|
|
|
|
|
|
- obj.id = this.id;
|
|
|
- console.log(obj);
|
|
|
- let res = await asyncRequest.exam(obj);
|
|
|
- this.loading = false;
|
|
|
- if (res.code === 0) {
|
|
|
- let title = "审核审批成功!";
|
|
|
- this.$notify.success({
|
|
|
- title,
|
|
|
- message: "",
|
|
|
- });
|
|
|
- this.showModelThis = false;
|
|
|
- // 刷新
|
|
|
- this.$emit("refresh");
|
|
|
- }
|
|
|
- } else {
|
|
|
- console.log("error submit!!");
|
|
|
- return false;
|
|
|
- }
|
|
|
- });
|
|
|
- },
|
|
|
selectChangeMobile() {
|
|
|
this.$refs.ruleForm.validateField("invoice_mobile");
|
|
|
},
|
|
@@ -442,7 +416,7 @@ export default {
|
|
|
this.companyList = res.data;
|
|
|
}
|
|
|
},
|
|
|
- //企业客户选择
|
|
|
+ //开票信息选择
|
|
|
companyNo_change(e) {
|
|
|
if (e && e.code) {
|
|
|
this.ruleForm.companyNo = [e.code];
|