|
|
@@ -1787,7 +1787,7 @@
|
|
|
:on-remove="(file) => removePhoto(file, policyNumberForm.jqPolicyList, 'jqPolicyList')"
|
|
|
:file-list="policyNumberForm.jqPolicyList" :on-change="(file) => policydrivingupload(file, 'jqPolicy')">
|
|
|
<el-button size="small" type="primary">点击上传</el-button>
|
|
|
- <el-button size="small" type="primary" @click.stop="policyNumberForm.jqPolicyList = []">清空</el-button>
|
|
|
+ <el-button size="small" type="primary" @click.stop="policyNumberForm.jqPolicyList = [];jqSignDate=null">清空</el-button>
|
|
|
</el-upload>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="商业保单:" prop="syPolicy">
|
|
|
@@ -1795,7 +1795,7 @@
|
|
|
:on-remove="(file) => removePhoto(file, policyNumberForm.syPolicyList, 'syPolicyList')"
|
|
|
:file-list="policyNumberForm.syPolicyList" :on-change="(file) => policydrivingupload(file, 'syPolicy')">
|
|
|
<el-button size="small" type="primary">点击上传</el-button>
|
|
|
- <el-button size="small" type="primary" @click.stop="policyNumberForm.syPolicyList = []">清空</el-button>
|
|
|
+ <el-button size="small" type="primary" @click.stop="policyNumberForm.syPolicyList = [];sySignDate=null">清空</el-button>
|
|
|
</el-upload>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="非车保单:" prop="noPolicy">
|
|
|
@@ -2361,6 +2361,7 @@ import imageDialog from "@/views/Core/components/imageDialog.vue";
|
|
|
import floatingBar from '@/components/customerService/floatingBar.vue';//表单组件
|
|
|
|
|
|
import { mapState } from "vuex";
|
|
|
+import {uploadFileToTraferSignDateTime} from "../../../http/moudules/letter";
|
|
|
export default {
|
|
|
inject: ["reload"],
|
|
|
name: "qrCode",
|
|
|
@@ -2399,6 +2400,10 @@ export default {
|
|
|
}
|
|
|
};
|
|
|
return {
|
|
|
+ // add by hxl 2025-06-26 ---begin
|
|
|
+ jqSignDate:null,
|
|
|
+ sySignDate:null,
|
|
|
+ // add by end 2025-06-266 ---begin
|
|
|
// add by hxl 2024-12-16 ---begin
|
|
|
orderExternalStatus: 0,
|
|
|
companyName:"",
|
|
|
@@ -2460,6 +2465,7 @@ export default {
|
|
|
},
|
|
|
nowCostsId: undefined, // 现询
|
|
|
policyNumberForm: {
|
|
|
+ signDate: "",
|
|
|
jqpolicyno: "",
|
|
|
sypolicyno: "",
|
|
|
jypolicyno: "",
|
|
|
@@ -4364,6 +4370,13 @@ export default {
|
|
|
|
|
|
// console.log(file, fileList);
|
|
|
this.policyNumberForm[type] = []
|
|
|
+ // add by hxl 清空交强的签单日期
|
|
|
+ if(type =="jqPolicyList"){
|
|
|
+ this.jqSignDate=null;
|
|
|
+ }
|
|
|
+ if(type =="syPolicyList"){
|
|
|
+ this.sySignDate=null;
|
|
|
+ }
|
|
|
console.log(this.policyNumberForm[type])
|
|
|
|
|
|
},
|
|
|
@@ -9912,12 +9925,15 @@ export default {
|
|
|
},
|
|
|
policydrivingupload(file, val) {
|
|
|
// this.policyNumberForm[val + 'List'] = []
|
|
|
+ var fileType = null;
|
|
|
switch (val) {
|
|
|
case "jqPolicy":
|
|
|
this.policyNumberForm.jqPolicyList = [];
|
|
|
+ fileType ="1";
|
|
|
break;
|
|
|
case "syPolicy":
|
|
|
this.policyNumberForm.syPolicyList = [];
|
|
|
+ fileType ="2";
|
|
|
break;
|
|
|
case "noPolicy":
|
|
|
this.policyNumberForm.noPolicyList = [];
|
|
|
@@ -9932,12 +9948,52 @@ export default {
|
|
|
const params = new FormData(); // 声明formData数据类型
|
|
|
params.append("multipartFile", file);
|
|
|
params.append("type", "file");
|
|
|
- this.$api.letter.uploadFile(params).then((res) => {
|
|
|
- if (res.code == "200") {
|
|
|
- res.data.name = res.data.fileName;
|
|
|
- this.policyNumberForm[val + "List"].push(res.data);
|
|
|
+
|
|
|
+ var companyId =null;
|
|
|
+ this.ztreeNodes.forEach((item) => {
|
|
|
+ if (this.companyName == item.name){
|
|
|
+ companyId=item.id;
|
|
|
}
|
|
|
- });
|
|
|
+ })
|
|
|
+
|
|
|
+ console.log(companyId)
|
|
|
+ //如果是交强或者商业保单的提取签单时间
|
|
|
+ if (val === "jqPolicy" || val === "syPolicy"){
|
|
|
+ params.append("fileType", fileType);
|
|
|
+ params.append("companyId", companyId);
|
|
|
+ this.$api.letter.uploadFileToTraferSignDateTime(params).then((res) => {
|
|
|
+ if (res.code == "200") {
|
|
|
+ res.data.name = res.data.fileName;
|
|
|
+ this.policyNumberForm[val + "List"].push(res.data);
|
|
|
+ if(val === "jqPolicy"){
|
|
|
+ //交强险直接设置签单时间
|
|
|
+ this.jqSignDate =res.data.signTime;
|
|
|
+ console.log(this.jqSignDate)
|
|
|
+ if (this.jqSignDate!=null){
|
|
|
+ this.policyNumberForm.signDate =this.jqSignDate;
|
|
|
+ }
|
|
|
+ }else {
|
|
|
+ this.sySignDate =res.data.signTime;
|
|
|
+ console.log(this.sySignDate)
|
|
|
+ //如果交强签单日期为空,设置商业险的签单日期
|
|
|
+ if(this.jqSignDate == null){
|
|
|
+ if (this.sySignDate!=null){
|
|
|
+ this.policyNumberForm.signDate =this.sySignDate;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }else{
|
|
|
+ this.$api.letter.uploadFile(params).then((res) => {
|
|
|
+ if (res.code == "200") {
|
|
|
+ res.data.name = res.data.fileName;
|
|
|
+ this.policyNumberForm[val + "List"].push(res.data);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
},
|
|
|
handleRemove1(file, imageIdList, imgList) {
|
|
|
this[imageIdList].map((ele, index) => {
|