diff --git a/src/components/FirstJob/recordBill.vue b/src/components/FirstJob/recordBill.vue index 6a59be2..777a1f7 100644 --- a/src/components/FirstJob/recordBill.vue +++ b/src/components/FirstJob/recordBill.vue @@ -386,6 +386,7 @@ export default { { min: 18, max: 18, + pattern: /^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/, message: "请输入正确的身份证号", trigger: "submit", }, @@ -710,6 +711,10 @@ export default { this.form["customJobId"] = this.firminfo.id; this.form["applyUserId"] = this.proxyinfo.id; this.form["agencyUserId"] = this.proxyinfo.id; + this.form["idCard"] = this.form["idCard"].replace(/\s+/g, ""); + + + dataObj = qs.stringify({ ...this.form, @@ -719,6 +724,9 @@ export default { }); data = await recordBillApiDaotian(dataObj); } else { + + this.form["idCard"] = this.form["idCard"].replace(/\s+/g, ""); + dataObj = qs.stringify({ ...this.form, storeJobId: this.firminfo.id,