diff --git a/pages/GPSform/GPSform.js b/pages/GPSform/GPSform.js
index 73bae17..d5e3449 100644
--- a/pages/GPSform/GPSform.js
+++ b/pages/GPSform/GPSform.js
@@ -79,8 +79,8 @@ Page({
yes_Line: this.data.obj.wired_equipment,
no_Line: this.data.obj.wireless_equipment,
product: this.data.obj.product,
- date: this.data.obj.setup_time.slice(0, 10),
- time: this.data.obj.setup_time.slice(11, 16),
+ date: this.data.obj.setup_time?.slice(0, 10),
+ time: this.data.obj.setup_time?.slice(11, 16),
region: this.data.obj.area,
city: this.data.obj.setup_address,
remakes: this.data.obj.remakes
@@ -247,6 +247,7 @@ Page({
},
biderInput(e) {
let name = e.currentTarget.dataset.name
+ console.log(1111111111111111111111111111,name)
this.setData({
[name]: e.detail.value
})
diff --git a/pages/toExamine/pages/first/first.js b/pages/toExamine/pages/first/first.js
index b21a260..4f5b40b 100644
--- a/pages/toExamine/pages/first/first.js
+++ b/pages/toExamine/pages/first/first.js
@@ -3,1477 +3,1493 @@ let util = getApp().globalData.utilFun;
let Selector = require('../../../../utils/selector.js')
Page({
- /**
- * 页面的初始数据
- */
- data: {
- letter: [{
- name: 'A'
- }, {
- name: 'B'
- }, {
- name: 'C'
- }, {
- name: 'D'
- }, {
- name: 'F'
- }, {
- name: 'G'
- }, {
- name: 'H'
- }, {
- name: 'I'
- }, {
- name: 'J'
- }, {
- name: 'K'
- }, {
- name: 'L'
- }, {
- name: 'M'
- }, {
- name: 'N'
- }, {
- name: 'O'
- }, {
- name: 'P'
- }, {
- name: 'Q'
- }, {
- name: 'R'
- }, {
- name: 'S'
- }, {
- name: 'T'
- }, {
- name: 'W'
- }, {
- name: 'X'
- }, {
- name: 'Y'
- }, {
- name: 'Z'
- }],
- index: -1,
- listModel: [],
- arrModel: [],
- brr: [],
- flag: false,
- number: '', //订单编号
- name: "", //项目名称
- type: "", //业务类型
- id: null, //訂單id
- obj: {}, // 基础信息
- vehicle: {}, // 车辆评估
- indexs: 0,
- upload_type: 0, //当前上传的图片 type
- tool_arr: [
- './image/tool_img.png', './image/tool_img.png', './image/tool_img.png'
- ], //提示上传图片
- tool_index: 0, //上传图片的index
- is_upload: false, //上传图片
- arr: Selector.selector.maritalStatus, // 婚姻状况
- list: Selector.selector.relationship, // 关系
- rate: Selector.selector.rate, // 申请费率
- num: Selector.selector.num, //申请数
- multiArray: [], // 车辆品牌选择
- multiArrayT: [],
- vehicleType: [], // 具体车型
- multiIndex: [0, 0, 0], // 车型下标
- det_id: "", //详情id
- det_type: "", // 详情类型
- order_id: "", // 订单id
- // tokne:"",
- // code:""//,
- draft: {},
- form_type: "",
- lock: true
- },
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ letter: [{
+ name: 'A'
+ }, {
+ name: 'B'
+ }, {
+ name: 'C'
+ }, {
+ name: 'D'
+ }, {
+ name: 'F'
+ }, {
+ name: 'G'
+ }, {
+ name: 'H'
+ }, {
+ name: 'I'
+ }, {
+ name: 'J'
+ }, {
+ name: 'K'
+ }, {
+ name: 'L'
+ }, {
+ name: 'M'
+ }, {
+ name: 'N'
+ }, {
+ name: 'O'
+ }, {
+ name: 'P'
+ }, {
+ name: 'Q'
+ }, {
+ name: 'R'
+ }, {
+ name: 'S'
+ }, {
+ name: 'T'
+ }, {
+ name: 'W'
+ }, {
+ name: 'X'
+ }, {
+ name: 'Y'
+ }, {
+ name: 'Z'
+ }],
+ index: -1,
+ listModel: [],
+ arrModel: [],
+ brr: [],
+ flag: false,
+ number: '', //订单编号
+ name: "", //项目名称
+ type: "", //业务类型
+ id: null, //訂單id
+ obj: {}, // 基础信息
+ vehicle: {}, // 车辆评估
+ indexs: 0,
+ upload_type: 0, //当前上传的图片 type
+ tool_arr: [
+ './image/tool_img.png', './image/tool_img.png', './image/tool_img.png'
+ ], //提示上传图片
+ tool_index: 0, //上传图片的index
+ is_upload: false, //上传图片
+ arr: Selector.selector.maritalStatus, // 婚姻状况
+ list: Selector.selector.relationship, // 关系
+ rate: Selector.selector.rate, // 申请费率
+ num: Selector.selector.num, //申请数
+ multiArray: [], // 车辆品牌选择
+ multiArrayT: [],
+ vehicleType: [], // 具体车型
+ multiIndex: [0, 0, 0], // 车型下标
+ det_id: "", //详情id
+ det_type: "", // 详情类型
+ order_id: "", // 订单id
+ // tokne:"",
+ // code:""//,
+ draft: {},
+ form_type: "",
+ lock: true,
+ carModel: [],
+ },
- /**
- * 生命周期函数--监听页面加载
- */
- onLoad: function(options) {
- let that = this
- this.setData({
- id: options.id ? options.id : '', // 产品id
- name: options.title ? options.title : '', // 产品名字
- type: options.type ? options.type : '', // 产品类型
- det_id: options.det_id ? options.det_id : '', // 详情id
- det_type: options.det_type ? options.det_type : '', // 详情类型
- number: options.number ? options.number : '', // 详情类型
- draft: options.obj ? JSON.parse(options.obj) : '',
- form_type: options.form_type ? options.form_type : ''
- })
- if (this.data.number == '') {
- this.order();
- }
- this.getData();
- this.getList();
- this.getModel()
- },
- show() {
- this.setData({
- flag: true
- })
- },
- display() {
- this.setData({
- flag: false
- })
- },
- // 获取品牌列表
- getModel(index) {
- let that = this;
- wx.request({
- url: `https://open.cheegu.com/CARDB.getMasterBrand?token=F6A07E4CB6C8454DAA1EEB02B8FEB2B2`, //仅为示例,并非真实的接口地址
- header: {
- // 'content-type': 'application/json' // 默认值
- },
- success(res) {
- // console.log(res)
- res.data.message.map(item => {
- that.data.arrModel.push(item)
- that.data.brr.push(item)
- })
- multiArrayT: [that.data.letter, that.data.arrModel, res.data.message]
- that.getveh(0)
- }
- })
- },
- // 获取车系列表
- getveh(index) {
- let that = this
- wx.request({
- url: `https://open.cheegu.com/CARDB.getSerial?token=F6A07E4CB6C8454DAA1EEB02B8FEB2B2&masterid=${that.data.arrModel[index].id}`, //仅为示例,并非真实的接口地址
- header: {
- // 'content-type': 'application/json' // 默认值
- },
- success(res) {
- that.setData({
- listModel: res.data.message,
- multiArrayT: [that.data.letter, that.data.arrModel, res.data.message]
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad: function (options) {
+ let that = this
+ this.setData({
+ id: options.id ? options.id : '', // 产品id
+ name: options.title ? options.title : '', // 产品名字
+ type: options.type ? options.type : '', // 产品类型
+ det_id: options.det_id ? options.det_id : '', // 详情id
+ det_type: options.det_type ? options.det_type : '', // 详情类型
+ number: options.number ? options.number : '', // 详情类型
+ draft: options.obj ? JSON.parse(options.obj) : '',
+ form_type: options.form_type ? options.form_type : ''
})
- }
- })
- },
- // 获取车型列表
- getAdd(index) {
- let that = this
- wx.request({
- url: `https://open.cheegu.com/CARDB.getModel?token=F6A07E4CB6C8454DAA1EEB02B8FEB2B2&serialid=${that.data.listModel[index].id}`, //仅为示例,并非真实的接口地址
- header: {
- // 'content-type': 'application/json' // 默认值
- },
- success(res) {
- that.setData({
- vehicleType: res.data.message
+ if (this.data.number == '') {
+ this.order();
+ }
+ this.getData();
+ this.getList();
+ this.getModel()
+ },
+ show() {
+ this.setData({
+ flag: true
})
- }
- })
- },
- // 具体车型选择
- bindPickerChange(e) {
- this.setData({
- index: e.detail.value
- })
- this.data.vehicle.car_model.text_center[1] = this.data.vehicleType[e.detail.value].name
- this.setData({
- vehicle: this.data.vehicle,
- })
- this.immediate()
- },
- // 车辆品牌选择
- bindMultiPickerChange: function(e) { //确定选择
- this.data.vehicle.car_model.text_center = []
- this.getveh(e.detail.value[1])
- this.getAdd(e.detail.value[2])
- this.data.vehicle.car_model.text_center[0] = (`${this.data.multiArrayT[1][this.data.multiIndex[1]].name}-${this.data.multiArrayT[2][this.data.multiIndex[2]].name}`)
- this.setData({
- multiIndex: e.detail.value,
- vehicle: this.data.vehicle,
- index: -1
- })
- // console.log(this.data.index)
- this.immediate()
- },
- // 滑动事件
- bindMultiPickerColumnChange: function(e) {
- let that = this
- let arr = this.data.brr
- if (e.detail.column == 0) {
- arr = arr.filter(item => {
- return this.data.letter[e.detail.value].name === item.char
- })
- // console.log(arr)
- this.setData({
- arrModel: arr,
- multiIndex: [e.detail.value, 0, 0],
- multiArrayT: [that.data.letter, that.data.arrModel, that.data.listModel]
- })
- that.getveh(0)
- } else if (e.detail.column == 1) {
- this.setData({
- multiIndex: [this.data.multiIndex[0], e.detail.value, 0]
- })
- that.getveh(e.detail.value)
- } else {
- this.setData({
- multiIndex: [this.data.multiIndex[0], this.data.multiIndex[1], e.detail.value]
- })
- }
- },
- // 详情
- getDetail() {
- let url = `api/examine-initial-get?id=${this.data.det_id}&salesman_id=${wx.getStorageSync("userInfo").id}`
- let that = this;
- util.httpRequest(url).then((res) => {
- // console.log(res)
- if (res.code == '200') {
- res.data.car_assessment.r_other = ''
- res.data.car_assessment.r_remark = ''
- that.setData({
- name: res.data.basics.product_title,
- type: res.data.basics.product_type,
- number: res.data.basics.number,
- id: res.data.basics.product_id,
- order_id: res.data.basics.id
+ },
+ display() {
+ this.setData({
+ flag: false
})
- let obj = Object.assign(res.data.basics, res.data.car_assessment);
- that.assignment(obj)
+ },
+ // 获取品牌列表
+ getModel(index) {
+ let that = this;
+ let url = 'api/car_model'
+ let data = {}
+ util.httpRequest(url, data, 'get').then((res) => {
+ console.log(res.data, 'res.data')
+ wx.hideLoading()
+ if (res.code == '200') {
+ res.data.brand.map(item => {
+ that.data.arrModel.push({
+ name: item.title,id:item.id,
- }
- })
- },
- // 判断是否填写参数
- is_judge() {
- let Data = this.data.obj;
- let Tab = this.data.vehicle;
- // 身份证照片
- if (Data.id_card_photo.require == 1) {
- console.log(Data.id_card_photo)
- if (Data.id_card_photo.img_arr.length == 0) {
- wx.showToast({
- title: `请上传${Data.id_card_photo.title}!`,
- icon: 'none',
- duration: 1500
+ })
+ that.data.brr.push({name: item.title})
+ })
+ that.setData({
+ carModel:res.data.model
+ })
+ that.getveh(0)
+ }
})
- return false;
- } else {
- let num = 0;
- Data.id_card_photo.img_arr.forEach((liem, index) => {
- if (liem == '') {
- num++;
- }
+ },
+ // 获取车系列表
+ getveh(index) {
+ let that = this
+
+ let model = that.data.carModel.filter(item => {
+ return that.data.arrModel[index].id === item.car_brand_id;
})
- if (num > 0) {
- wx.showToast({
- title: `请上传全部${Data.id_card_photo.title}!`,
- icon: 'none',
- duration: 1500
- })
- return false;
- }
- }
- }
- // 驾驶证照片
- if (Data.drive_license.require == 1) {
- if (Data.drive_license.img_arr.length == 0) {
- wx.showToast({
- title: `请上传${Data.drive_license.title}!`,
- icon: 'none',
- duration: 1500
+
+ model = model.map(item => {
+ return {
+ name:item.title,
+ }
+ });
+
+ that.setData({
+ listModel: model,
+ multiArrayT: [that.data.letter, that.data.arrModel, model]
})
- return false;
- } else {
- let num = 0;
- Data.drive_license.img_arr.forEach((liem, index) => {
- if (liem == '') {
- num++;
- }
+ },
+ // 获取车型列表
+ getAdd(index) {
+ // let that = this
+ // wx.request({
+ // url: `/api/car_model`, //仅为示例,并非真实的接口地址
+ // header: {
+ // // 'content-type': 'application/json' // 默认值
+ // },
+ // success(res) {
+ // that.setData({
+ // vehicleType: res.data.data
+ // })
+ // }
+ // })
+ },
+ // 具体车型选择
+ bindPickerChange(e) {
+ this.setData({
+ index: e.detail.value
})
- if (num > 0) {
- wx.showToast({
- title: `请上传${Data.drive_license.title}!`,
- icon: 'none',
- duration: 1500
- })
- return false;
- }
- }
- }
- // 银行卡照片
- if (Data.bank_card.require == 1) {
- if (Data.bank_card.img_arr.length == 0) {
- wx.showToast({
- title: `请上传${Data.bank_card.title}!`,
- icon: 'none',
- duration: 1500
+ this.data.vehicle.car_model.text_center[1] = this.data.vehicleType[e.detail.value].name
+ this.setData({
+ vehicle: this.data.vehicle,
})
- return false;
- } else {
- let num = 0;
- Data.bank_card.img_arr.forEach((liem, index) => {
- if (liem == '') {
- num++;
- }
+ this.immediate()
+ },
+ // 车辆品牌选择
+ bindMultiPickerChange: function (e) { //确定选择
+ this.data.vehicle.car_model.text_center = []
+ console.log('e.detail.value',e.detail.value)
+ this.getveh(e.detail.value[1])
+ this.getAdd(e.detail.value[2])
+ this.data.vehicle.car_model.text_center[0] = (`${this.data.multiArrayT[1][this.data.multiIndex[1]].name}-${this.data.multiArrayT[2][this.data.multiIndex[2]].name}`)
+ this.setData({
+ multiIndex: e.detail.value,
+ vehicle: this.data.vehicle,
+ index: -1
})
- if (num > 0) {
- wx.showToast({
- title: `请上传${Data.bank_card.title}!`,
- icon: 'none',
- duration: 1500
- })
- return false;
+ // console.log(this.data.index)
+ this.immediate()
+ },
+ // 滑动事件
+ bindMultiPickerColumnChange: function (e) {
+ let that = this
+ let arr = this.data.brr
+ if (e.detail.column == 0) {
+ arr = arr.filter(item => {
+ return this.data.letter[e.detail.value].name === item.char
+ })
+ // console.log(arr)
+ this.setData({
+ arrModel: arr,
+ multiIndex: [e.detail.value, 0, 0],
+ multiArrayT: [that.data.letter, that.data.arrModel, that.data.listModel]
+ })
+ that.getveh(0)
+ } else if (e.detail.column == 1) {
+ this.setData({
+ multiIndex: [this.data.multiIndex[0], e.detail.value, 0]
+ })
+ that.getveh(e.detail.value)
+ } else {
+ this.setData({
+ multiIndex: [this.data.multiIndex[0], this.data.multiIndex[1], e.detail.value]
+ })
}
- }
- }
- // 征信查询授权书
- if (Data.credit_reporting.require == 1) {
- if (Data.credit_reporting.img_arr.length == 0) {
- wx.showToast({
- title: `请上传${Data.credit_reporting.title}!`,
- icon: 'none',
- duration: 1500
- })
- return false;
- } else {
- let num = 0;
- Data.credit_reporting.img_arr.forEach((liem, index) => {
- if (liem == '') {
- num++;
- }
+ },
+ // 详情
+ getDetail() {
+ let url = `api/examine-initial-get?id=${this.data.det_id}&salesman_id=${wx.getStorageSync("userInfo").id}`
+ let that = this;
+ util.httpRequest(url).then((res) => {
+ // console.log(res)
+ if (res.code == '200') {
+ res.data.car_assessment.r_other = ''
+ res.data.car_assessment.r_remark = ''
+ that.setData({
+ name: res.data.basics.product_title,
+ type: res.data.basics.product_type,
+ number: res.data.basics.number,
+ id: res.data.basics.product_id,
+ order_id: res.data.basics.id
+ })
+ let obj = Object.assign(res.data.basics, res.data.car_assessment);
+ that.assignment(obj)
+
+ }
})
- if (num > 0) {
- wx.showToast({
- title: `请上传${Data.credit_reporting.title}!`,
- icon: 'none',
- duration: 1500
- })
- return false;
+ },
+ // 判断是否填写参数
+ is_judge() {
+ let Data = this.data.obj;
+ let Tab = this.data.vehicle;
+ // 身份证照片
+ if (Data.id_card_photo.require == 1) {
+ console.log(Data.id_card_photo)
+ if (Data.id_card_photo.img_arr.length == 0) {
+ wx.showToast({
+ title: `请上传${Data.id_card_photo.title}!`,
+ icon: 'none',
+ duration: 1500
+ })
+ return false;
+ } else {
+ let num = 0;
+ Data.id_card_photo.img_arr.forEach((liem, index) => {
+ if (liem == '') {
+ num++;
+ }
+ })
+ if (num > 0) {
+ wx.showToast({
+ title: `请上传全部${Data.id_card_photo.title}!`,
+ icon: 'none',
+ duration: 1500
+ })
+ return false;
+ }
+ }
}
- }
- }
- // 承租人姓名
- if (Data.lessee_name.require == 1) {
- if (Data.lessee_name.text_center == '') {
- wx.showToast({
- title: `请填写${Data.lessee_name.title}!`,
- icon: 'none',
- duration: 1500
- })
- return false;
- }
- }
- // 婚姻状态
- if (Data.marriage.require == 1) {
- if (!Data.marriage.option && Data.marriage.option !== 0) {
- wx.showToast({
- title: `请选择${Data.marriage.title}!`,
- icon: 'none',
- duration: 1500
- })
- return false;
- }
- }
- // 年龄
- if (Data.age.require == 1) {
- if (Data.age.text_center == '') {
- wx.showToast({
- title: `请填写${Data.age.title}!`,
- icon: 'none',
- duration: 1500
- })
- return false;
- }
- }
- // 身份证号码
- if (Data.id_card.require == 1) {
- if (Data.id_card.text_center == '') {
- wx.showToast({
- title: `请填写${Data.id_card.title}!`,
- icon: 'none',
- duration: 1500
- })
- return false;
- }
- }
- // 身份证地址
- if (Data.id_card_address.require == 1) {
- if (Data.id_card_address.text_center == '') {
- wx.showToast({
- title: `请填写${Data.id_card_address.title}!`,
- icon: 'none',
- duration: 1500
- })
- return false;
- }
- }
- // 手机号
- if (Data.phone.require == 1) {
- if (!(/^1(3|4|5|6|7|8|9)\d{9}$/.test(Data.phone.text_center))) {
- wx.showToast({
- title: `请填写正确${Data.phone.title}!`,
- icon: 'none',
- duration: 1500
- })
- return false;
- }
- }
- // 担保人身份证照片
- if (Data.b_id_card_photo.require == 1) {
- if (Data.b_id_card_photo.img_arr.length == 0) {
- wx.showToast({
- title: `请上传${Data.b_id_card_photo.title}`,
- icon: 'none',
- duration: 1500
- })
- return false;
- } else {
- let num = 0;
- Data.b_id_card_photo.img_arr.forEach((liem, index) => {
- if (liem == '') {
- num++;
- }
- })
- if (num > 0) {
- wx.showToast({
- title: `请上传${Data.b_id_card_photo.title}`,
- icon: 'none',
- duration: 1500
- })
- return false;
+ // 驾驶证照片
+ if (Data.drive_license.require == 1) {
+ if (Data.drive_license.img_arr.length == 0) {
+ wx.showToast({
+ title: `请上传${Data.drive_license.title}!`,
+ icon: 'none',
+ duration: 1500
+ })
+ return false;
+ } else {
+ let num = 0;
+ Data.drive_license.img_arr.forEach((liem, index) => {
+ if (liem == '') {
+ num++;
+ }
+ })
+ if (num > 0) {
+ wx.showToast({
+ title: `请上传${Data.drive_license.title}!`,
+ icon: 'none',
+ duration: 1500
+ })
+ return false;
+ }
+ }
}
- }
- }
- // 担保人征信查询授权书
- if (Data.b_credit_reporting.require == 1) {
- if (Data.b_credit_reporting.img_arr.length == 0) {
- wx.showToast({
- title: `请上传${Data.b_credit_reporting.title}`,
- icon: 'none',
- duration: 1500
- })
- return false;
- } else {
- let num = 0;
- Data.b_credit_reporting.img_arr.forEach((liem, index) => {
- if (liem == '') {
- num++;
- }
- })
- if (num > 0) {
- wx.showToast({
- title: `请上传${Data.b_credit_reporting.title}`,
- icon: 'none',
- duration: 1500
- })
- return false;
+ // 银行卡照片
+ if (Data.bank_card.require == 1) {
+ if (Data.bank_card.img_arr.length == 0) {
+ wx.showToast({
+ title: `请上传${Data.bank_card.title}!`,
+ icon: 'none',
+ duration: 1500
+ })
+ return false;
+ } else {
+ let num = 0;
+ Data.bank_card.img_arr.forEach((liem, index) => {
+ if (liem == '') {
+ num++;
+ }
+ })
+ if (num > 0) {
+ wx.showToast({
+ title: `请上传${Data.bank_card.title}!`,
+ icon: 'none',
+ duration: 1500
+ })
+ return false;
+ }
+ }
+ }
+ // 征信查询授权书
+ if (Data.credit_reporting.require == 1) {
+ if (Data.credit_reporting.img_arr.length == 0) {
+ wx.showToast({
+ title: `请上传${Data.credit_reporting.title}!`,
+ icon: 'none',
+ duration: 1500
+ })
+ return false;
+ } else {
+ let num = 0;
+ Data.credit_reporting.img_arr.forEach((liem, index) => {
+ if (liem == '') {
+ num++;
+ }
+ })
+ if (num > 0) {
+ wx.showToast({
+ title: `请上传${Data.credit_reporting.title}!`,
+ icon: 'none',
+ duration: 1500
+ })
+ return false;
+ }
+ }
+ }
+ // 承租人姓名
+ if (Data.lessee_name.require == 1) {
+ if (Data.lessee_name.text_center == '') {
+ wx.showToast({
+ title: `请填写${Data.lessee_name.title}!`,
+ icon: 'none',
+ duration: 1500
+ })
+ return false;
+ }
+ }
+ // 婚姻状态
+ if (Data.marriage.require == 1) {
+ if (!Data.marriage.option && Data.marriage.option !== 0) {
+ wx.showToast({
+ title: `请选择${Data.marriage.title}!`,
+ icon: 'none',
+ duration: 1500
+ })
+ return false;
+ }
+ }
+ // 年龄
+ if (Data.age.require == 1) {
+ if (Data.age.text_center == '') {
+ wx.showToast({
+ title: `请填写${Data.age.title}!`,
+ icon: 'none',
+ duration: 1500
+ })
+ return false;
+ }
+ }
+ // 身份证号码
+ if (Data.id_card.require == 1) {
+ if (Data.id_card.text_center == '') {
+ wx.showToast({
+ title: `请填写${Data.id_card.title}!`,
+ icon: 'none',
+ duration: 1500
+ })
+ return false;
+ }
+ }
+ // 身份证地址
+ if (Data.id_card_address.require == 1) {
+ if (Data.id_card_address.text_center == '') {
+ wx.showToast({
+ title: `请填写${Data.id_card_address.title}!`,
+ icon: 'none',
+ duration: 1500
+ })
+ return false;
+ }
+ }
+ // 手机号
+ if (Data.phone.require == 1) {
+ if (!(/^1(3|4|5|6|7|8|9)\d{9}$/.test(Data.phone.text_center))) {
+ wx.showToast({
+ title: `请填写正确${Data.phone.title}!`,
+ icon: 'none',
+ duration: 1500
+ })
+ return false;
+ }
+ }
+ // 担保人身份证照片
+ if (Data.b_id_card_photo.require == 1) {
+ if (Data.b_id_card_photo.img_arr.length == 0) {
+ wx.showToast({
+ title: `请上传${Data.b_id_card_photo.title}`,
+ icon: 'none',
+ duration: 1500
+ })
+ return false;
+ } else {
+ let num = 0;
+ Data.b_id_card_photo.img_arr.forEach((liem, index) => {
+ if (liem == '') {
+ num++;
+ }
+ })
+ if (num > 0) {
+ wx.showToast({
+ title: `请上传${Data.b_id_card_photo.title}`,
+ icon: 'none',
+ duration: 1500
+ })
+ return false;
+ }
+ }
+ }
+ // 担保人征信查询授权书
+ if (Data.b_credit_reporting.require == 1) {
+ if (Data.b_credit_reporting.img_arr.length == 0) {
+ wx.showToast({
+ title: `请上传${Data.b_credit_reporting.title}`,
+ icon: 'none',
+ duration: 1500
+ })
+ return false;
+ } else {
+ let num = 0;
+ Data.b_credit_reporting.img_arr.forEach((liem, index) => {
+ if (liem == '') {
+ num++;
+ }
+ })
+ if (num > 0) {
+ wx.showToast({
+ title: `请上传${Data.b_credit_reporting.title}`,
+ icon: 'none',
+ duration: 1500
+ })
+ return false;
+ }
+ }
+ }
+ // 担保人姓名
+ if (Data.guarantee_name.require == 1) {
+ if (Data.guarantee_name.text_center == '') {
+ wx.showToast({
+ title: `请填写${Data.guarantee_name.title}!`,
+ icon: 'none',
+ duration: 1500
+ })
+ return false;
+ }
+ }
+ // 担保人与承租人关系
+ if (Data.relation.require == 1) {
+ if (!Data.relation.option && Data.relation.option !== 0) {
+ wx.showToast({
+ title: `请选择${Data.relation.title}!`,
+ icon: 'none',
+ duration: 1500
+ })
+ return false;
+ }
+ }
+ // 担保人身份证号
+ if (Data.b_id_card.require == 1) {
+ if (Data.b_id_card.text_center == '') {
+ wx.showToast({
+ title: `请填写${Data.b_id_card.title}!`,
+ icon: 'none',
+ duration: 1500
+ })
+ return false;
+ }
+ }
+ // 担保人手机号
+ if (Data.b_phone.require == 1) {
+ if (!(/^1(3|4|5|6|7|8|9)\d{9}$/.test(Data.b_phone.text_center))) {
+ wx.showToast({
+ title: `请填写正确${Data.b_phone.title}!`,
+ icon: 'none',
+ duration: 1500
+ })
+ return false;
+ }
+ }
+ // 居住地
+ if (Data.address.require == 1) {
+ if (!Data.address.option) {
+ wx.showToast({
+ title: `请选择${Data.address.title}!`,
+ icon: 'none',
+ duration: 1500
+ })
+ return false;
+ }
+ }
+ // 详细地址
+ if (Data.address_detail.require == 1) {
+ if (Data.address_detail.text_center == '') {
+ wx.showToast({
+ title: `请填写${Data.address_detail.title}!`,
+ icon: 'none',
+ duration: 1500
+ })
+ return false;
+ }
}
- }
- }
- // 担保人姓名
- if (Data.guarantee_name.require == 1) {
- if (Data.guarantee_name.text_center == '') {
- wx.showToast({
- title: `请填写${Data.guarantee_name.title}!`,
- icon: 'none',
- duration: 1500
- })
- return false;
- }
- }
- // 担保人与承租人关系
- if (Data.relation.require == 1) {
- if (!Data.relation.option && Data.relation.option !== 0) {
- wx.showToast({
- title: `请选择${Data.relation.title}!`,
- icon: 'none',
- duration: 1500
- })
- return false;
- }
- }
- // 担保人身份证号
- if (Data.b_id_card.require == 1) {
- if (Data.b_id_card.text_center == '') {
- wx.showToast({
- title: `请填写${Data.b_id_card.title}!`,
- icon: 'none',
- duration: 1500
- })
- return false;
- }
- }
- // 担保人手机号
- if (Data.b_phone.require == 1) {
- if (!(/^1(3|4|5|6|7|8|9)\d{9}$/.test(Data.b_phone.text_center))) {
- wx.showToast({
- title: `请填写正确${Data.b_phone.title}!`,
- icon: 'none',
- duration: 1500
- })
- return false;
- }
- }
- // 居住地
- if (Data.address.require == 1) {
- if (!Data.address.option) {
- wx.showToast({
- title: `请选择${Data.address.title}!`,
- icon: 'none',
- duration: 1500
- })
- return false;
- }
- }
- // 详细地址
- if (Data.address_detail.require == 1) {
- if (Data.address_detail.text_center == '') {
- wx.showToast({
- title: `请填写${Data.address_detail.title}!`,
- icon: 'none',
- duration: 1500
- })
- return false;
- }
- }
-
- // 车辆评估
- // 汽修宝照片
- if (Tab.repair.require == 1) {
- if (Tab.repair.img_arr.length == 0) {
- wx.showToast({
- title: `请上传${Tab.repair.title}`,
- icon: 'none',
- duration: 1500
- })
- return false;
- } else {
- let num = 0;
- Tab.repair.img_arr.forEach((liem, index) => {
- if (liem == '') {
- num++;
- }
- })
- if (num > 0) {
- wx.showToast({
- title: `请上传全部${Tab.repair.title}`,
- icon: 'none',
- duration: 1500
- })
- return false;
+ // 车辆评估
+ // 汽修宝照片
+ if (Tab.repair.require == 1) {
+ if (Tab.repair.img_arr.length == 0) {
+ wx.showToast({
+ title: `请上传${Tab.repair.title}`,
+ icon: 'none',
+ duration: 1500
+ })
+ return false;
+ } else {
+ let num = 0;
+ Tab.repair.img_arr.forEach((liem, index) => {
+ if (liem == '') {
+ num++;
+ }
+ })
+ if (num > 0) {
+ wx.showToast({
+ title: `请上传全部${Tab.repair.title}`,
+ icon: 'none',
+ duration: 1500
+ })
+ return false;
+ }
+ }
}
- }
- }
- // 车300照片
- if (Tab.car_three.require == 1) {
- if (Tab.car_three.img_arr.length == 0) {
- wx.showToast({
- title: `请上传${Tab.car_three.title}`,
- icon: 'none',
- duration: 1500
- })
- return false;
- } else {
- let num = 0;
- Tab.car_three.img_arr.forEach((liem, index) => {
- if (liem == '') {
- num++;
- }
- })
- if (num > 0) {
- wx.showToast({
- title: `请上传全部${Tab.car_three.title}`,
- icon: 'none',
- duration: 1500
- })
- return false;
+ // 车300照片
+ if (Tab.car_three.require == 1) {
+ if (Tab.car_three.img_arr.length == 0) {
+ wx.showToast({
+ title: `请上传${Tab.car_three.title}`,
+ icon: 'none',
+ duration: 1500
+ })
+ return false;
+ } else {
+ let num = 0;
+ Tab.car_three.img_arr.forEach((liem, index) => {
+ if (liem == '') {
+ num++;
+ }
+ })
+ if (num > 0) {
+ wx.showToast({
+ title: `请上传全部${Tab.car_three.title}`,
+ icon: 'none',
+ duration: 1500
+ })
+ return false;
+ }
+ }
}
- }
- }
- // 行驶证照片
- if (Tab.travel.require == 1) {
- if (Tab.travel.img_arr.length == 0) {
- wx.showToast({
- title: `请上传${Tab.travel.title}`,
- icon: 'none',
- duration: 1500
- })
- return false;
- } else {
- let num = 0;
- Tab.travel.img_arr.forEach((liem, index) => {
- if (liem == '') {
- num++;
- }
- })
- if (num > 0) {
- wx.showToast({
- title: `请上传全部${Tab.travel.title}`,
- icon: 'none',
- duration: 1500
- })
- return false;
+ // 行驶证照片
+ if (Tab.travel.require == 1) {
+ if (Tab.travel.img_arr.length == 0) {
+ wx.showToast({
+ title: `请上传${Tab.travel.title}`,
+ icon: 'none',
+ duration: 1500
+ })
+ return false;
+ } else {
+ let num = 0;
+ Tab.travel.img_arr.forEach((liem, index) => {
+ if (liem == '') {
+ num++;
+ }
+ })
+ if (num > 0) {
+ wx.showToast({
+ title: `请上传全部${Tab.travel.title}`,
+ icon: 'none',
+ duration: 1500
+ })
+ return false;
+ }
+ }
}
- }
- }
- // 车牌
- if (Tab.car_license.require == 1) {
- if (Tab.car_license.text_center == '') {
- wx.showToast({
- title: `请填写${Tab.car_license.title}!`,
- icon: 'none',
- duration: 1500
- })
- return false;
- }
- }
- // vin
- if (Tab.vin.require == 1) {
- if (Tab.vin.text_center == '') {
- wx.showToast({
- title: `请填写${Tab.vin.title}!`,
- icon: 'none',
- duration: 1500
- })
- return false;
- }
- }
- // 车型
- if (Tab.car_model.require == 1) {
- if (!Tab.car_model.text_center) {
- wx.showToast({
- title: `请选择${Tab.car_model.title}!`,
- icon: 'none',
- duration: 1500
- })
- return false;
- }
- }
- // 上牌日期
- if (Tab.up_plate_date.require == 1) {
- if (!Tab.up_plate_date.option && Tab.up_plate_date.option !== 0) {
- wx.showToast({
- title: `请选择${Tab.up_plate_date.title}!`,
- icon: 'none',
- duration: 1500
- })
- return false;
- }
- }
- // 发动机号
- if (Tab.engine_number.require == 1) {
- if (Tab.engine_number.text_center == '') {
- wx.showToast({
- title: `请填写${Tab.engine_number.title}!`,
- icon: 'none',
- duration: 1500
- })
- return false;
- }
- }
- // 公里数
- if (Tab.mileage.require == 1) {
- if (Tab.mileage.text_center == '') {
- wx.showToast({
- title: `请填写${Tab.mileage.title}!`,
- icon: 'none',
- duration: 1500
- })
- return false;
- }
- }
- // 颜色
- if (Tab.color.require == 1) {
- if (Tab.color.text_center == '') {
- wx.showToast({
- title: `请填写${Tab.color.title}!`,
- icon: 'none',
- duration: 1500
- })
- return false;
- }
- }
- // 评估价
- if (Tab.assessment_price.require == 1) {
- if (Tab.assessment_price.text_center == '') {
- wx.showToast({
- title: `请填写${Tab.assessment_price.title}!`,
- icon: 'none',
- duration: 1500
- })
- return false;
- }
- }
- // 申请金额
- if (Tab.apply.require == 1) {
- if (Tab.apply.text_center == '') {
- wx.showToast({
- title: `请填写${Tab.apply.title}!`,
- icon: 'none',
- duration: 1500
- })
- return false;
- }
- }
- // 申请费率
- if (Tab.apply_rate.require == 1) {
- if (!Tab.apply_rate.option && Tab.apply_rate.option !== 0) {
- wx.showToast({
- title: `请选择${Tab.apply_rate.title}!`,
- icon: 'none',
- duration: 1500
- })
- return false;
- }
- }
- // 申请期数
- if (Tab.apply_number.require == 1) {
- if (!Tab.apply_number.option && Tab.apply_number.option !== 0) {
- wx.showToast({
- title: `请选择${Tab.apply_number.title}!`,
- icon: 'none',
- duration: 1500
- })
- return false;
- }
- }
- if (Tab.apply.text_center > (Tab.assessment_price.text_center * 0.8)) {
- wx.showToast({
- title: `申请金额需≤评估价的80%`,
- icon: 'none',
- duration: 2000
- })
- return false;
- }
- return true;
- },
- // 根据订单号即时存储
- changeType() {
- let url = 'api/form-value-commit'
- let data = {
- salesman_id: wx.getStorageSync("userInfo").id,
- number: this.data.number,
- form_type: this.data.form_type
- }
- util.httpRequest(url, data, 'post').then((res) => {
-
- })
- },
- // 提交资料
- submission() {
- let that = this
- if (!this.is_judge()) {
- return false;
- }
- wx.showLoading({
- title: '提交中...',
- mask: true
- })
- let basics = {
- id: this.data.order_id ? this.data.order_id : '',
- number: this.data.number,
- product_id: this.data.id,
- id_card_photo: this.data.obj.id_card_photo.img_arr.length > 0 ? this.data.obj.id_card_photo.up_img_arr.join(',') : '',
- drive_license: this.data.obj.drive_license.img_arr.length > 0 ? this.data.obj.drive_license.up_img_arr.join(',') : '',
- bank_card: this.data.obj.bank_card.img_arr.length > 0 ? this.data.obj.bank_card.up_img_arr.join(',') : '',
- credit_reporting: this.data.obj.credit_reporting.img_arr.length > 0 ? this.data.obj.credit_reporting.up_img_arr.join(',') : '',
- lessee_name: this.data.obj.lessee_name.text_center ? this.data.obj.lessee_name.text_center : '',
- marriage: this.data.obj.marriage.option || this.data.obj.marriage.option === 0 ? this.data.arr[this.data.obj.marriage.option].name : '',
- age: this.data.obj.age.text_center ? this.data.obj.age.text_center : '',
- id_card: this.data.obj.id_card.text_center ? this.data.obj.id_card.text_center : '',
- id_card_address: this.data.obj.id_card_address.text_center ? this.data.obj.id_card_address.text_center : '',
- phone: this.data.obj.phone.text_center ? this.data.obj.phone.text_center : '',
- email: this.data.obj.email.text_center ? this.data.obj.email.text_center : '',
- b_id_card_photo: this.data.obj.b_id_card_photo.img_arr.length > 0 ? this.data.obj.b_id_card_photo.up_img_arr.join(',') : '',
- b_credit_reporting: this.data.obj.b_credit_reporting.img_arr.length > 0 ? this.data.obj.b_credit_reporting.up_img_arr.join(',') : '',
- guarantee_name: this.data.obj.guarantee_name.text_center ? this.data.obj.guarantee_name.text_center : '',
- relation: this.data.obj.relation.option || this.data.obj.relation.option === 0 ? this.data.list[this.data.obj.relation.option].name : '',
- b_id_card: this.data.obj.b_id_card.text_center ? this.data.obj.b_id_card.text_center : '',
- b_phone: this.data.obj.b_phone.text_center ? this.data.obj.b_phone.text_center : '',
- address: this.data.obj.address.option ? this.data.obj.address.option.join(',') : '',
- address_detail: this.data.obj.address_detail.text_center ? this.data.obj.address_detail.text_center : '',
- b_word_address: this.data.obj.b_word_address.text_center ? this.data.obj.b_word_address.text_center : '',
- b_work_year: this.data.obj.b_work_year.text_center ? this.data.obj.b_work_year.text_center : '',
- b_word: this.data.obj.b_word.text_center ? this.data.obj.b_word.text_center : '',
- b_month_money: this.data.obj.b_month_money.text_center ? this.data.obj.b_month_money.text_center : '',
- remark: this.data.obj.remark.text_center ? this.data.obj.remark.text_center : '',
- other: this.data.obj.other.img_arr.length > 0 ? this.data.obj.other.up_img_arr.join(',') : '',
+ // 车牌
+ if (Tab.car_license.require == 1) {
+ if (Tab.car_license.text_center == '') {
+ wx.showToast({
+ title: `请填写${Tab.car_license.title}!`,
+ icon: 'none',
+ duration: 1500
+ })
+ return false;
+ }
+ }
+ // vin
+ if (Tab.vin.require == 1) {
+ if (Tab.vin.text_center == '') {
+ wx.showToast({
+ title: `请填写${Tab.vin.title}!`,
+ icon: 'none',
+ duration: 1500
+ })
+ return false;
+ }
+ }
+ // 车型
+ if (Tab.car_model.require == 1) {
+ if (!Tab.car_model.text_center) {
+ wx.showToast({
+ title: `请选择${Tab.car_model.title}!`,
+ icon: 'none',
+ duration: 1500
+ })
+ return false;
+ }
+ }
+ // 上牌日期
+ if (Tab.up_plate_date.require == 1) {
+ if (!Tab.up_plate_date.option && Tab.up_plate_date.option !== 0) {
+ wx.showToast({
+ title: `请选择${Tab.up_plate_date.title}!`,
+ icon: 'none',
+ duration: 1500
+ })
+ return false;
+ }
+ }
+ // 发动机号
+ if (Tab.engine_number.require == 1) {
+ if (Tab.engine_number.text_center == '') {
+ wx.showToast({
+ title: `请填写${Tab.engine_number.title}!`,
+ icon: 'none',
+ duration: 1500
+ })
+ return false;
+ }
+ }
+ // 公里数
+ if (Tab.mileage.require == 1) {
+ if (Tab.mileage.text_center == '') {
+ wx.showToast({
+ title: `请填写${Tab.mileage.title}!`,
+ icon: 'none',
+ duration: 1500
+ })
+ return false;
+ }
+ }
+ // 颜色
+ if (Tab.color.require == 1) {
+ if (Tab.color.text_center == '') {
+ wx.showToast({
+ title: `请填写${Tab.color.title}!`,
+ icon: 'none',
+ duration: 1500
+ })
+ return false;
+ }
+ }
+ // 评估价
+ if (Tab.assessment_price.require == 1) {
+ if (Tab.assessment_price.text_center == '') {
+ wx.showToast({
+ title: `请填写${Tab.assessment_price.title}!`,
+ icon: 'none',
+ duration: 1500
+ })
+ return false;
+ }
+ }
+ // 申请金额
+ if (Tab.apply.require == 1) {
+ if (Tab.apply.text_center == '') {
+ wx.showToast({
+ title: `请填写${Tab.apply.title}!`,
+ icon: 'none',
+ duration: 1500
+ })
+ return false;
+ }
+ }
+ // 申请费率
+ if (Tab.apply_rate.require == 1) {
+ if (!Tab.apply_rate.option && Tab.apply_rate.option !== 0) {
+ wx.showToast({
+ title: `请选择${Tab.apply_rate.title}!`,
+ icon: 'none',
+ duration: 1500
+ })
+ return false;
+ }
+ }
+ // 申请期数
+ if (Tab.apply_number.require == 1) {
+ if (!Tab.apply_number.option && Tab.apply_number.option !== 0) {
+ wx.showToast({
+ title: `请选择${Tab.apply_number.title}!`,
+ icon: 'none',
+ duration: 1500
+ })
+ return false;
+ }
+ }
+ if (Tab.apply.text_center > (Tab.assessment_price.text_center * 0.8)) {
+ wx.showToast({
+ title: `申请金额需≤评估价的80%`,
+ icon: 'none',
+ duration: 2000
+ })
+ return false;
+ }
+ return true;
+ },
+ // 根据订单号即时存储
+ changeType() {
+ let url = 'api/form-value-commit'
+ let data = {
+ salesman_id: wx.getStorageSync("userInfo").id,
+ number: this.data.number,
+ form_type: this.data.form_type
+ }
+ util.httpRequest(url, data, 'post').then((res) => {
- }
- let car_assessment = {
- // 车辆估计
- repair: this.data.vehicle.repair.img_arr.length > 0 ? this.data.vehicle.repair.up_img_arr.join(',') : '',
- car_three: this.data.vehicle.car_three.img_arr.length > 0 ? this.data.vehicle.car_three.up_img_arr.join(',') : '',
- travel: this.data.vehicle.travel.img_arr.length > 0 ? this.data.vehicle.travel.up_img_arr.join(',') : '',
- car_license: this.data.vehicle.car_license.text_center ? this.data.vehicle.car_license.text_center : '',
- vin: this.data.vehicle.vin.text_center ? this.data.vehicle.vin.text_center : '',
- car_model: this.data.vehicle.car_model.text_center[0] && this.data.vehicle.car_model.text_center[0] ? this.data.vehicle.car_model.text_center.join(',') : '',
- up_plate_date: this.data.vehicle.up_plate_date.option ? this.data.vehicle.up_plate_date.option : '',
- engine_number: this.data.vehicle.engine_number.text_center ? this.data.vehicle.engine_number.text_center : '',
- mileage: this.data.vehicle.mileage.text_center ? this.data.vehicle.mileage.text_center : '',
- color: this.data.vehicle.color.text_center ? this.data.vehicle.color.text_center : '',
- assessment_price: this.data.vehicle.assessment_price.text_center ? this.data.vehicle.assessment_price.text_center : '',
- apply: this.data.vehicle.apply.text_center ? this.data.vehicle.apply.text_center : '',
- apply_rate: this.data.vehicle.apply_rate.option || this.data.vehicle.apply_rate.option === 0 ? this.data.rate[this.data.vehicle.apply_rate.option].name : '',
- apply_number: this.data.vehicle.apply_number.option || this.data.vehicle.apply_number.option === 0 ? this.data.num[this.data.vehicle.apply_number.option].name : '',
- remark: this.data.vehicle.remark.text_center ? this.data.vehicle.remark.text_center : '',
- other: this.data.vehicle.other.img_arr.length > 0 ? this.data.vehicle.other.up_img_arr.join(',') : '',
- }
- let url
- if (this.data.det_type == '2') {
- url = 'api/examine-initial-again'
- } else {
- url = 'api/examine-initial'
- }
- let data = {
- salesman_id: wx.getStorageSync("userInfo").id,
- basics: basics,
- car_assessment: car_assessment,
- }
- util.httpRequest(url, data, 'post').then((res) => {
- wx.hideLoading()
- if (res.code == '200') {
- that.changeType()
- wx.showToast({
- title: '初审提交成功!',
- icon: 'success',
- duration: 1500,
- mask: true
})
- setTimeout(() => {
- wx.switchTab({
- url: '../../../../pages/logs/logs',
- })
- }, 1500)
- } else {
- wx.showToast({
- title: res.msg,
- icon: 'none',
- duration: 1500
+ },
+ // 提交资料
+ submission() {
+ let that = this
+ if (!this.is_judge()) {
+ return false;
+ }
+ wx.showLoading({
+ title: '提交中...',
+ mask: true
})
- }
- })
- },
- // 给页面赋值
- assignment(data) {
- let obj = this.data.obj;
- let vehicle = this.data.vehicle;
- console.log(data)
- if (data.id_card_photo.split(",").length > 0) {
- data.id_card_photo.split(",").forEach((liem, index) => {
- console.log(liem)
- if (liem) {
- obj.id_card_photo.img_arr.push(wx.getStorageSync("serverurl") + liem)
- obj.id_card_photo.up_img_arr.push(liem)
- } else {
- obj.id_card_photo.img_arr.push('')
- obj.id_card_photo.up_img_arr.push('')
+ let basics = {
+ id: this.data.order_id ? this.data.order_id : '',
+ number: this.data.number,
+ product_id: this.data.id,
+ id_card_photo: this.data.obj?.id_card_photo?.img_arr.length > 0 ? this.data.obj?.id_card_photo?.up_img_arr.join(',') : '',
+ drive_license: this.data.obj?.drive_license?.img_arr.length > 0 ? this.data.obj?.drive_license?.up_img_arr.join(',') : '',
+ bank_card: this.data.obj?.bank_card?.img_arr.length > 0 ? this.data.obj?.bank_card?.up_img_arr.join(',') : '',
+ credit_reporting: this.data.obj?.credit_reporting?.img_arr.length > 0 ? this.data.obj?.credit_reporting?.up_img_arr.join(',') : '',
+ lessee_name: this.data.obj?.lessee_name?.text_center ? this.data.obj?.lessee_name?.text_center : '',
+ marriage: this.data.obj?.marriage?.option || this.data.obj?.marriage?.option === 0 ? this.data.arr[this.data.obj?.marriage?.option].name : '',
+ age: this.data.obj?.age?.text_center ? this.data.obj?.age?.text_center : '',
+ id_card: this.data.obj?.id_card?.text_center ? this.data.obj?.id_card?.text_center : '',
+ id_card_address: this.data.obj?.id_card_address?.text_center ? this.data.obj?.id_card_address?.text_center : '',
+ phone: this.data.obj?.phone?.text_center ? this.data.obj?.phone?.text_center : '',
+ email: this.data.obj?.email?.text_center ? this.data.obj?.email?.text_center : '',
+ b_id_card_photo: this.data.obj?.b_id_card_photo?.img_arr.length > 0 ? this.data.obj?.b_id_card_photo?.up_img_arr.join(',') : '',
+ b_credit_reporting: this.data.obj?.b_credit_reporting?.img_arr.length > 0 ? this.data.obj?.b_credit_reporting?.up_img_arr.join(',') : '',
+ guarantee_name: this.data.obj?.guarantee_name?.text_center ? this.data.obj?.guarantee_name?.text_center : '',
+ relation: this.data.obj?.relation?.option || this.data.obj?.relation?.option === 0 ? this.data.list[this.data.obj?.relation?.option].name : '',
+ b_id_card: this.data.obj?.b_id_card?.text_center ? this.data.obj?.b_id_card?.text_center : '',
+ b_phone: this.data.obj?.b_phone?.text_center ? this.data.obj?.b_phone?.text_center : '',
+ address: this.data.obj?.address?.option ? this.data.obj?.address?.option.join(',') : '',
+ address_detail: this.data.obj?.address_detail?.text_center ? this.data.obj?.address_detail?.text_center : '',
+ b_word_address: this.data.obj?.b_word_address?.text_center ? this.data.obj?.b_word_address?.text_center : '',
+ b_work_year: this.data.obj?.b_work_year?.text_center ? this.data.obj?.b_work_year?.text_center : '',
+ b_word: this.data.obj?.b_word?.text_center ? this.data.obj?.b_word?.text_center : '',
+ b_month_money: this.data.obj?.b_month_money?.text_center ? this.data.obj?.b_month_money?.text_center : '',
+ remark: this.data.obj?.remark?.text_center ? this.data.obj?.remark?.text_center : '',
+ other: this.data.obj?.other?.img_arr.length > 0 ? this.data.obj?.other?.up_img_arr.join(',') : '',
+
}
- })
- }
- if (data.drive_license.split(",").length > 0) {
- data.drive_license.split(",").forEach((liem, index) => {
- if (liem) {
- obj.drive_license.img_arr.push(wx.getStorageSync("serverurl") + liem)
- obj.drive_license.up_img_arr.push(liem)
- } else {
- obj.drive_license.img_arr.push('')
- obj.drive_license.up_img_arr.push('')
+ let car_assessment = {
+ // 车辆估计
+ repair: this.data.vehicle.repair.img_arr.length > 0 ? this.data.vehicle.repair.up_img_arr.join(',') : '',
+ car_three: this.data.vehicle.car_three.img_arr.length > 0 ? this.data.vehicle.car_three.up_img_arr.join(',') : '',
+ travel: this.data.vehicle.travel.img_arr.length > 0 ? this.data.vehicle.travel.up_img_arr.join(',') : '',
+ car_license: this.data.vehicle.car_license.text_center ? this.data.vehicle.car_license.text_center : '',
+ vin: this.data.vehicle.vin.text_center ? this.data.vehicle.vin.text_center : '',
+ car_model: this.data.vehicle.car_model.text_center[0] && this.data.vehicle.car_model.text_center[0] ? this.data.vehicle.car_model.text_center.join(',') : '',
+ up_plate_date: this.data.vehicle.up_plate_date.option ? this.data.vehicle.up_plate_date.option : '',
+ engine_number: this.data.vehicle.engine_number.text_center ? this.data.vehicle.engine_number.text_center : '',
+ mileage: this.data.vehicle.mileage.text_center ? this.data.vehicle.mileage.text_center : '',
+ color: this.data.vehicle.color.text_center ? this.data.vehicle.color.text_center : '',
+ assessment_price: this.data.vehicle.assessment_price.text_center ? this.data.vehicle.assessment_price.text_center : '',
+ apply: this.data.vehicle.apply.text_center ? this.data.vehicle.apply.text_center : '',
+ apply_rate: this.data.vehicle.apply_rate.option || this.data.vehicle.apply_rate.option === 0 ? this.data.rate[this.data.vehicle.apply_rate.option].name : '',
+ apply_number: this.data.vehicle.apply_number.option || this.data.vehicle.apply_number.option === 0 ? this.data.num[this.data.vehicle.apply_number.option].name : '',
+ remark: this.data.vehicle.remark.text_center ? this.data.vehicle.remark.text_center : '',
+ other: this.data.vehicle.other.img_arr.length > 0 ? this.data.vehicle.other.up_img_arr.join(',') : '',
}
- })
- }
- if (data.bank_card.split(",").length > 0) {
- data.bank_card.split(",").forEach((liem, index) => {
- if (liem) {
- obj.bank_card.img_arr.push(wx.getStorageSync("serverurl") + liem)
- obj.bank_card.up_img_arr.push(liem)
+ let url
+ if (this.data.det_type == '2') {
+ url = 'api/examine-initial-again'
} else {
- obj.bank_card.img_arr.push('')
- obj.bank_card.up_img_arr.push('')
+ url = 'api/examine-initial'
}
- })
- }
- if (data.credit_reporting.split(",").length > 0) {
- data.credit_reporting.split(",").forEach((liem, index) => {
- if (liem) {
- obj.credit_reporting.img_arr.push(wx.getStorageSync("serverurl") + liem)
- obj.credit_reporting.up_img_arr.push(liem)
- } else {
- obj.credit_reporting.img_arr.push('')
- obj.credit_reporting.up_img_arr.push('')
+ let data = {
+ salesman_id: wx.getStorageSync("userInfo").id,
+ basics: basics,
+ car_assessment: car_assessment,
}
- })
- }
- this.data.arr.map((item, index) => {
- if (item.name == data.marriage) {
- this.data.obj.marriage.option = index
- }
- })
- this.data.list.map((item, index) => {
- if (item.name == data.relation) {
- this.data.obj.relation.option = index
- }
- })
- obj.lessee_name.text_center = data.lessee_name ? data.lessee_name : '';
- obj.marriage.option = data.marriage ? this.data.obj.marriage.option : '';
- obj.age.text_center = data.age ? data.age : '';
- obj.id_card.text_center = data.id_card ? data.id_card : '';
- obj.id_card_address.text_center = data.id_card_address ? data.id_card_address : '',
- obj.phone.text_center = data.phone ? data.phone : '';
- obj.email.text_center = data.email ? data.email : '';
- if (data.b_id_card_photo.split(",").length > 0) {
- data.b_id_card_photo.split(",").forEach((liem, index) => {
- if (liem) {
- obj.b_id_card_photo.img_arr.push(wx.getStorageSync("serverurl") + liem)
- obj.b_id_card_photo.up_img_arr.push(liem)
- } else {
- obj.b_id_card_photo.img_arr.push('')
- obj.b_id_card_photo.up_img_arr.push('')
+ util.httpRequest(url, data, 'post').then((res) => {
+ wx.hideLoading()
+ if (res.code == '200') {
+ that.changeType()
+ wx.showToast({
+ title: '初审提交成功!',
+ icon: 'success',
+ duration: 1500,
+ mask: true
+ })
+ setTimeout(() => {
+ wx.switchTab({
+ url: '../../../../pages/logs/logs',
+ })
+ }, 1500)
+ } else {
+ wx.showToast({
+ title: res.msg,
+ icon: 'none',
+ duration: 1500
+ })
+ }
+ })
+ },
+ // 给页面赋值
+ assignment(data) {
+ let obj = this.data.obj;
+ let vehicle = this.data.vehicle;
+ console.log(data)
+ if (data.id_card_photo.split(",").length > 0) {
+ data.id_card_photo.split(",").forEach((liem, index) => {
+ console.log(liem)
+ if (liem) {
+ obj.id_card_photo.img_arr.push(wx.getStorageSync("serverurl") + liem)
+ obj.id_card_photo.up_img_arr.push(liem)
+ } else {
+ obj.id_card_photo.img_arr.push('')
+ obj.id_card_photo.up_img_arr.push('')
+ }
+ })
}
- })
- }
- if (data.b_credit_reporting.split(",").length > 0) {
- data.b_credit_reporting.split(",").forEach((liem, index) => {
- if (liem) {
- obj.b_credit_reporting.img_arr.push(wx.getStorageSync("serverurl") + liem)
- obj.b_credit_reporting.up_img_arr.push(liem)
- } else {
- obj.b_credit_reporting.img_arr.push('')
- obj.b_credit_reporting.up_img_arr.push('')
+ if (data.drive_license.split(",").length > 0) {
+ data.drive_license.split(",").forEach((liem, index) => {
+ if (liem) {
+ obj.drive_license.img_arr.push(wx.getStorageSync("serverurl") + liem)
+ obj.drive_license.up_img_arr.push(liem)
+ } else {
+ obj.drive_license.img_arr.push('')
+ obj.drive_license.up_img_arr.push('')
+ }
+ })
}
- })
- }
- obj.guarantee_name.text_center = data.guarantee_name ? data.guarantee_name : '';
- obj.relation.option = data.relation ? this.data.obj.relation.option : '';
- obj.b_id_card.text_center = data.b_id_card ? data.b_id_card : '';
- obj.b_phone.text_center = data.b_phone ? data.b_phone : '';
- obj.address.option = data.address ? data.address.split(",") : '';
- obj.address_detail.text_center = data.address_detail ? data.address_detail : '';
- obj.b_word_address.text_center = data.b_word_address ? data.b_word_address : '';
- obj.b_work_year.text_center = data.b_work_year ? data.b_work_year : '';
- obj.b_word.text_center = data.b_word ? data.b_word : '';
- obj.b_month_money.text_center = data.b_month_money ? data.b_month_money : '';
- obj.remark.text_center = data.remark ? data.remark : '';
- if (data.other.split(",").length > 0) {
- data.other.split(",").forEach((liem, index) => {
- if (liem) {
- obj.other.img_arr.push(wx.getStorageSync("serverurl") + liem)
- obj.other.up_img_arr.push(liem)
+ if (data.bank_card.split(",").length > 0) {
+ data.bank_card.split(",").forEach((liem, index) => {
+ if (liem) {
+ obj.bank_card.img_arr.push(wx.getStorageSync("serverurl") + liem)
+ obj.bank_card.up_img_arr.push(liem)
+ } else {
+ obj.bank_card.img_arr.push('')
+ obj.bank_card.up_img_arr.push('')
+ }
+ })
+ }
+ if (data.credit_reporting.split(",").length > 0) {
+ data.credit_reporting.split(",").forEach((liem, index) => {
+ if (liem) {
+ obj.credit_reporting.img_arr.push(wx.getStorageSync("serverurl") + liem)
+ obj.credit_reporting.up_img_arr.push(liem)
+ } else {
+ obj.credit_reporting.img_arr.push('')
+ obj.credit_reporting.up_img_arr.push('')
+ }
+ })
+ }
+ this.data.arr.map((item, index) => {
+ if (item.name == data.marriage) {
+ this.data.obj.marriage.option = index
+ }
+ })
+ this.data.list.map((item, index) => {
+ if (item.name == data.relation) {
+ this.data.obj.relation.option = index
+ }
+ })
+ obj.lessee_name.text_center = data.lessee_name ? data.lessee_name : '';
+ obj.marriage.option = data.marriage ? this.data.obj.marriage.option : '';
+ obj.age.text_center = data.age ? data.age : '';
+ obj.id_card.text_center = data.id_card ? data.id_card : '';
+ obj.id_card_address.text_center = data.id_card_address ? data.id_card_address : '',
+ obj.phone.text_center = data.phone ? data.phone : '';
+ obj.email.text_center = data.email ? data.email : '';
+ if (data.b_id_card_photo.split(",").length > 0) {
+ data.b_id_card_photo.split(",").forEach((liem, index) => {
+ if (liem) {
+ obj.b_id_card_photo.img_arr.push(wx.getStorageSync("serverurl") + liem)
+ obj.b_id_card_photo.up_img_arr.push(liem)
+ } else {
+ obj.b_id_card_photo.img_arr.push('')
+ obj.b_id_card_photo.up_img_arr.push('')
+ }
+ })
+ }
+ if (data.b_credit_reporting.split(",").length > 0) {
+ data.b_credit_reporting.split(",").forEach((liem, index) => {
+ if (liem) {
+ obj.b_credit_reporting.img_arr.push(wx.getStorageSync("serverurl") + liem)
+ obj.b_credit_reporting.up_img_arr.push(liem)
+ } else {
+ obj.b_credit_reporting.img_arr.push('')
+ obj.b_credit_reporting.up_img_arr.push('')
+ }
+ })
+ }
+ obj.guarantee_name.text_center = data.guarantee_name ? data.guarantee_name : '';
+ obj.relation.option = data.relation ? this.data.obj.relation.option : '';
+ obj.b_id_card.text_center = data.b_id_card ? data.b_id_card : '';
+ obj.b_phone.text_center = data.b_phone ? data.b_phone : '';
+ obj.address.option = data.address ? data.address.split(",") : '';
+ obj.address_detail.text_center = data.address_detail ? data.address_detail : '';
+ obj.b_word_address.text_center = data.b_word_address ? data.b_word_address : '';
+ obj.b_work_year.text_center = data.b_work_year ? data.b_work_year : '';
+ obj.b_word.text_center = data.b_word ? data.b_word : '';
+ obj.b_month_money.text_center = data.b_month_money ? data.b_month_money : '';
+ obj.remark.text_center = data.remark ? data.remark : '';
+ if (data.other.split(",").length > 0) {
+ data.other.split(",").forEach((liem, index) => {
+ if (liem) {
+ obj.other.img_arr.push(wx.getStorageSync("serverurl") + liem)
+ obj.other.up_img_arr.push(liem)
+ }
+ })
}
- })
- }
- // 车辆评估
- if (data.repair.split(",").length > 0) {
- data.repair.split(",").forEach((liem, index) => {
- if (liem) {
- vehicle.repair.img_arr.push(wx.getStorageSync("serverurl") + liem)
- vehicle.repair.up_img_arr.push(liem)
- } else {
- vehicle.repair.img_arr.push('')
- vehicle.repair.up_img_arr.push('')
+ // 车辆评估
+ if (data.repair.split(",").length > 0) {
+ data.repair.split(",").forEach((liem, index) => {
+ if (liem) {
+ vehicle.repair.img_arr.push(wx.getStorageSync("serverurl") + liem)
+ vehicle.repair.up_img_arr.push(liem)
+ } else {
+ vehicle.repair.img_arr.push('')
+ vehicle.repair.up_img_arr.push('')
+ }
+ })
}
- })
- }
- console.log(this.data.obj)
- if (data.car_three.split(",").length > 0) {
- data.car_three.split(",").forEach((liem, index) => {
- if (liem) {
- vehicle.car_three.img_arr.push(wx.getStorageSync("serverurl") + liem)
- vehicle.car_three.up_img_arr.push(liem)
- } else {
- vehicle.car_three.img_arr.push('')
- vehicle.car_three.up_img_arr.push('')
+ console.log(this.data.obj)
+ if (data.car_three.split(",").length > 0) {
+ data.car_three.split(",").forEach((liem, index) => {
+ if (liem) {
+ vehicle.car_three.img_arr.push(wx.getStorageSync("serverurl") + liem)
+ vehicle.car_three.up_img_arr.push(liem)
+ } else {
+ vehicle.car_three.img_arr.push('')
+ vehicle.car_three.up_img_arr.push('')
+ }
+ })
}
- })
- }
- if (data.travel.split(",").length > 0) {
- data.travel.split(",").forEach((liem, index) => {
- if (liem) {
- vehicle.travel.img_arr.push(wx.getStorageSync("serverurl") + liem)
- vehicle.travel.up_img_arr.push(liem)
- } else {
- vehicle.travel.img_arr.push('')
- vehicle.travel.up_img_arr.push('')
+ if (data.travel.split(",").length > 0) {
+ data.travel.split(",").forEach((liem, index) => {
+ if (liem) {
+ vehicle.travel.img_arr.push(wx.getStorageSync("serverurl") + liem)
+ vehicle.travel.up_img_arr.push(liem)
+ } else {
+ vehicle.travel.img_arr.push('')
+ vehicle.travel.up_img_arr.push('')
+ }
+ })
}
- })
- }
- this.data.rate.map((item, index) => {
- if (item.name == data.apply_rate) {
- this.data.vehicle.apply_rate.option = index
- }
- })
- this.data.num.map((item, index) => {
- if (item.name == data.apply_number) {
- this.data.vehicle.apply_number.option = index
- }
- })
+ this.data.rate.map((item, index) => {
+ if (item.name == data.apply_rate) {
+ this.data.vehicle.apply_rate.option = index
+ }
+ })
+ this.data.num.map((item, index) => {
+ if (item.name == data.apply_number) {
+ this.data.vehicle.apply_number.option = index
+ }
+ })
- vehicle.car_license.text_center = data.car_license ? data.car_license : '';
- vehicle.vin.text_center = data.vin ? data.vin : '';
- vehicle.car_model.text_center = data.car_model ? data.car_model.split(',') : '';
- vehicle.up_plate_date.option = data.up_plate_date ? data.up_plate_date : '';
- vehicle.engine_number.text_center = data.engine_number ? data.engine_number : '';
- vehicle.mileage.text_center = data.mileage ? data.mileage : '';
- vehicle.color.text_center = data.color ? data.color : '';
- vehicle.assessment_price.text_center = data.assessment_price ? data.assessment_price : '';
- vehicle.apply.text_center = data.apply ? data.apply : '';
- vehicle.apply_rate.option = data.apply_rate ? this.data.vehicle.apply_rate.option : '';
- vehicle.apply_number.option = data.apply_number ? this.data.vehicle.apply_number.option : '';
- vehicle.remark.text_center = data.r_remark ? data.r_remark : '';
+ vehicle.car_license.text_center = data.car_license ? data.car_license : '';
+ vehicle.vin.text_center = data.vin ? data.vin : '';
+ vehicle.car_model.text_center = data.car_model ? data.car_model.split(',') : '';
+ vehicle.up_plate_date.option = data.up_plate_date ? data.up_plate_date : '';
+ vehicle.engine_number.text_center = data.engine_number ? data.engine_number : '';
+ vehicle.mileage.text_center = data.mileage ? data.mileage : '';
+ vehicle.color.text_center = data.color ? data.color : '';
+ vehicle.assessment_price.text_center = data.assessment_price ? data.assessment_price : '';
+ vehicle.apply.text_center = data.apply ? data.apply : '';
+ vehicle.apply_rate.option = data.apply_rate ? this.data.vehicle.apply_rate.option : '';
+ vehicle.apply_number.option = data.apply_number ? this.data.vehicle.apply_number.option : '';
+ vehicle.remark.text_center = data.r_remark ? data.r_remark : '';
- if (data.r_other.split(",").length > 0) {
- data.r_other.split(",").forEach((liem, index) => {
- if (liem) {
- vehicle.other.img_arr.push(wx.getStorageSync("serverurl") + liem)
- vehicle.other.up_img_arr.push(liem)
+ if (data.r_other.split(",").length > 0) {
+ data.r_other.split(",").forEach((liem, index) => {
+ if (liem) {
+ vehicle.other.img_arr.push(wx.getStorageSync("serverurl") + liem)
+ vehicle.other.up_img_arr.push(liem)
+ }
+ })
}
- })
- }
- this.setData({
- obj: obj,
- vehicle: vehicle,
- })
- },
- // 获取保存的信息
- getPreservation() {
- let url = 'api/form-value-get';
- let data = {
- salesman_id: wx.getStorageSync("userInfo").id,
- form_type: 1,
- }
- let that = this;
- util.httpRequest(url, data, 'get').then((res) => {
- if (res.data) {
- let ras = res.data.detail;
- // that.assignment(ras)
- wx.showModal({
- title: '提示',
- content: '是否还原上传编写内容?',
- success(res) {
- if (res.confirm) {
- that.assignment(ras)
- } else if (res.cancel) {
+ this.setData({
+ obj: obj,
+ vehicle: vehicle,
+ })
+ },
+ // 获取保存的信息
+ getPreservation() {
+ let url = 'api/form-value-get';
+ let data = {
+ salesman_id: wx.getStorageSync("userInfo").id,
+ form_type: 1,
+ }
+ let that = this;
+ util.httpRequest(url, data, 'get').then((res) => {
+ if (res.data) {
+ let ras = res.data.detail;
+ // that.assignment(ras)
+ wx.showModal({
+ title: '提示',
+ content: '是否还原上传编写内容?',
+ success(res) {
+ if (res.confirm) {
+ that.assignment(ras)
+ } else if (res.cancel) {
+
+ }
+ }
+ })
+ } else {
}
- }
})
- } else {
+ },
+ // 获取订单编号
+ order() {
+ let url = 'api/number-generate';
+ let data = {};
+ let that = this;
+ util.httpRequest(url, data, 'get').then((res) => {
+ if (res.data) {
+ that.setData({
+ number: res.data.number
+ })
+ }
+ })
+ },
+ // 即时保存
+ immediate() {
+ let url = 'api/form-value-write';
+ let detail = {
+ id_card_photo: this.data.obj?.id_card_photo?.img_arr.length > 0 ? this.data.obj?.id_card_photo?.up_img_arr.join(',') : '',
+ drive_license: this.data.obj?.drive_license?.img_arr.length > 0 ? this.data.obj?.drive_license?.up_img_arr.join(',') : '',
+ bank_card: this.data.obj?.bank_card?.img_arr.length > 0 ? this.data.obj?.bank_card?.up_img_arr.join(',') : '',
+ credit_reporting: this.data.obj?.credit_reporting?.img_arr.length > 0 ? this.data.obj?.credit_reporting?.up_img_arr.join(',') : '',
+ lessee_name: this.data.obj?.lessee_name?.text_center ? this.data.obj?.lessee_name?.text_center : '',
+ marriage: this.data.obj?.marriage?.option || this.data.obj?.marriage?.option === 0 ? this.data.arr[this.data.obj?.marriage?.option].name : '',
+ age: this.data.obj?.age?.text_center ? this.data.obj?.age?.text_center : '',
+ id_card: this.data.obj?.id_card?.text_center ? this.data.obj?.id_card?.text_center : '',
+ id_card_address: this.data.obj?.id_card_address?.text_center ? this.data.obj?.id_card_address?.text_center : '',
+ phone: this.data.obj?.phone?.text_center ? this.data.obj?.phone?.text_center : '',
+ email: this.data.obj?.email?.text_center ? this.data.obj?.email?.text_center : '',
+ b_id_card_photo: this.data.obj?.b_id_card_photo?.img_arr.length > 0 ? this.data.obj?.b_id_card_photo?.up_img_arr.join(',') : '',
+ b_credit_reporting: this.data.obj?.b_credit_reporting?.img_arr.length > 0 ? this.data.obj?.b_credit_reporting?.up_img_arr.join(',') : '',
+ guarantee_name: this.data.obj?.guarantee_name?.text_center ? this.data.obj?.guarantee_name?.text_center : '',
+ relation: this.data.obj?.relation?.option || this.data.obj?.relation?.option === 0 ? this.data.list[this.data.obj?.relation?.option].name : '',
+ b_id_card: this.data.obj?.b_id_card?.text_center ? this.data.obj?.b_id_card?.text_center : '',
+ b_phone: this.data.obj?.b_phone?.text_center ? this.data.obj?.b_phone?.text_center : '',
+ address: this.data.obj?.address?.option ? this.data.obj?.address?.option.join(',') : '',
+ address_detail: this.data.obj?.address_detail?.text_center ? this.data.obj?.address_detail?.text_center : '',
+ b_word_address: this.data.obj?.b_word_address?.text_center ? this.data.obj?.b_word_address?.text_center : '',
+ b_work_year: this.data.obj?.b_work_year?.text_center ? this.data.obj?.b_work_year?.text_center : '',
+ b_word: this.data.obj?.b_word?.text_center ? this.data.obj?.b_word?.text_center : '',
+ b_month_money: this.data.obj?.b_month_money?.text_center ? this.data.obj?.b_month_money?.text_center : '',
+ remark: this.data.obj?.remark?.text_center ? this.data.obj?.remark?.text_center : '',
+ other: this.data.obj?.other?.img_arr.length > 0 ? this.data.obj?.other?.up_img_arr.join(',') : '',
+ // 车辆估计
+ repair: this.data.vehicle.repair.img_arr.length > 0 ? this.data.vehicle.repair.up_img_arr.join(',') : '',
+ car_three: this.data.vehicle.car_three.img_arr.length > 0 ? this.data.vehicle.car_three.up_img_arr.join(',') : '',
+ travel: this.data.vehicle.travel.img_arr.length > 0 ? this.data.vehicle.travel.up_img_arr.join(',') : '',
+ car_license: this.data.vehicle.car_license.text_center ? this.data.vehicle.car_license.text_center : '',
+ vin: this.data.vehicle.vin.text_center ? this.data.vehicle.vin.text_center : '',
+ car_model: this.data.vehicle.car_model.text_center[0] && this.data.vehicle.car_model.text_center[1] ? this.data.vehicle.car_model.text_center.join(',') : '',
+ up_plate_date: this.data.vehicle.up_plate_date.option ? this.data.vehicle.up_plate_date.option : '',
+ engine_number: this.data.vehicle.engine_number.text_center ? this.data.vehicle.engine_number.text_center : '',
+ mileage: this.data.vehicle.mileage.text_center ? this.data.vehicle.mileage.text_center : '',
+ color: this.data.vehicle.color.text_center ? this.data.vehicle.color.text_center : '',
+ assessment_price: this.data.vehicle.assessment_price.text_center ? this.data.vehicle.assessment_price.text_center : '',
+ apply: this.data.vehicle.apply.text_center ? this.data.vehicle.apply.text_center : '',
+ apply_rate: this.data.vehicle.apply_rate.option || this.data.vehicle.apply_rate.option === 0 ? this.data.rate[this.data.vehicle.apply_rate.option].name : '',
+ apply_number: this.data.vehicle.apply_number.option || this.data.vehicle.apply_number.option === 0 ? this.data.num[this.data.vehicle.apply_number.option].name : '',
+ r_remark: this.data.vehicle.remark.text_center ? this.data.vehicle.remark.text_center : '',
+ r_other: this.data.vehicle.other.img_arr.length > 0 ? this.data.vehicle.other.up_img_arr.join(',') : '',
+ name: this.data.name,
+ type: this.data.type,
+ id: this.data.id
+ }
+ let data = {
+ salesman_id: wx.getStorageSync("userInfo").id,
+ form_type: 1,
+ detail: detail,
+ number: this.data.number,
+ }
+ util.httpRequest(url, data, 'post').then((res) => {
- }
- })
- },
- // 获取订单编号
- order() {
- let url = 'api/number-generate';
- let data = {};
- let that = this;
- util.httpRequest(url, data, 'get').then((res) => {
- if (res.data) {
- that.setData({
- number: res.data.number
})
- }
- })
- },
- // 即时保存
- immediate() {
- let url = 'api/form-value-write';
- let detail = {
- id_card_photo: this.data.obj.id_card_photo.img_arr.length > 0 ? this.data.obj.id_card_photo.up_img_arr.join(',') : '',
- drive_license: this.data.obj.drive_license.img_arr.length > 0 ? this.data.obj.drive_license.up_img_arr.join(',') : '',
- bank_card: this.data.obj.bank_card.img_arr.length > 0 ? this.data.obj.bank_card.up_img_arr.join(',') : '',
- credit_reporting: this.data.obj.credit_reporting.img_arr.length > 0 ? this.data.obj.credit_reporting.up_img_arr.join(',') : '',
- lessee_name: this.data.obj.lessee_name.text_center ? this.data.obj.lessee_name.text_center : '',
- marriage: this.data.obj.marriage.option || this.data.obj.marriage.option === 0 ? this.data.arr[this.data.obj.marriage.option].name : '',
- age: this.data.obj.age.text_center ? this.data.obj.age.text_center : '',
- id_card: this.data.obj.id_card.text_center ? this.data.obj.id_card.text_center : '',
- id_card_address: this.data.obj.id_card_address.text_center ? this.data.obj.id_card_address.text_center : '',
- phone: this.data.obj.phone.text_center ? this.data.obj.phone.text_center : '',
- email: this.data.obj.email.text_center ? this.data.obj.email.text_center : '',
- b_id_card_photo: this.data.obj.b_id_card_photo.img_arr.length > 0 ? this.data.obj.b_id_card_photo.up_img_arr.join(',') : '',
- b_credit_reporting: this.data.obj.b_credit_reporting.img_arr.length > 0 ? this.data.obj.b_credit_reporting.up_img_arr.join(',') : '',
- guarantee_name: this.data.obj.guarantee_name.text_center ? this.data.obj.guarantee_name.text_center : '',
- relation: this.data.obj.relation.option || this.data.obj.relation.option === 0 ? this.data.list[this.data.obj.relation.option].name : '',
- b_id_card: this.data.obj.b_id_card.text_center ? this.data.obj.b_id_card.text_center : '',
- b_phone: this.data.obj.b_phone.text_center ? this.data.obj.b_phone.text_center : '',
- address: this.data.obj.address.option ? this.data.obj.address.option.join(',') : '',
- address_detail: this.data.obj.address_detail.text_center ? this.data.obj.address_detail.text_center : '',
- b_word_address: this.data.obj.b_word_address.text_center ? this.data.obj.b_word_address.text_center : '',
- b_work_year: this.data.obj.b_work_year.text_center ? this.data.obj.b_work_year.text_center : '',
- b_word: this.data.obj.b_word.text_center ? this.data.obj.b_word.text_center : '',
- b_month_money: this.data.obj.b_month_money.text_center ? this.data.obj.b_month_money.text_center : '',
- remark: this.data.obj.remark.text_center ? this.data.obj.remark.text_center : '',
- other: this.data.obj.other.img_arr.length > 0 ? this.data.obj.other.up_img_arr.join(',') : '',
- // 车辆估计
- repair: this.data.vehicle.repair.img_arr.length > 0 ? this.data.vehicle.repair.up_img_arr.join(',') : '',
- car_three: this.data.vehicle.car_three.img_arr.length > 0 ? this.data.vehicle.car_three.up_img_arr.join(',') : '',
- travel: this.data.vehicle.travel.img_arr.length > 0 ? this.data.vehicle.travel.up_img_arr.join(',') : '',
- car_license: this.data.vehicle.car_license.text_center ? this.data.vehicle.car_license.text_center : '',
- vin: this.data.vehicle.vin.text_center ? this.data.vehicle.vin.text_center : '',
- car_model: this.data.vehicle.car_model.text_center[0] && this.data.vehicle.car_model.text_center[1] ? this.data.vehicle.car_model.text_center.join(',') : '',
- up_plate_date: this.data.vehicle.up_plate_date.option ? this.data.vehicle.up_plate_date.option : '',
- engine_number: this.data.vehicle.engine_number.text_center ? this.data.vehicle.engine_number.text_center : '',
- mileage: this.data.vehicle.mileage.text_center ? this.data.vehicle.mileage.text_center : '',
- color: this.data.vehicle.color.text_center ? this.data.vehicle.color.text_center : '',
- assessment_price: this.data.vehicle.assessment_price.text_center ? this.data.vehicle.assessment_price.text_center : '',
- apply: this.data.vehicle.apply.text_center ? this.data.vehicle.apply.text_center : '',
- apply_rate: this.data.vehicle.apply_rate.option || this.data.vehicle.apply_rate.option === 0 ? this.data.rate[this.data.vehicle.apply_rate.option].name : '',
- apply_number: this.data.vehicle.apply_number.option || this.data.vehicle.apply_number.option === 0 ? this.data.num[this.data.vehicle.apply_number.option].name : '',
- r_remark: this.data.vehicle.remark.text_center ? this.data.vehicle.remark.text_center : '',
- r_other: this.data.vehicle.other.img_arr.length > 0 ? this.data.vehicle.other.up_img_arr.join(',') : '',
- name: this.data.name,
- type: this.data.type,
- id: this.data.id
- }
- let data = {
- salesman_id: wx.getStorageSync("userInfo").id,
- form_type: 1,
- detail: detail,
- number: this.data.number,
- }
- util.httpRequest(url, data, 'post').then((res) => {
+ },
+ // 基础信息
+ getData() {
+ let url = 'api/form-basics';
+ let that = this;
+ util.httpRequest(url).then((res) => {
+ // console.log(res)
+ for (let i in res.data) {
+ res.data[i].up_img_arr = []; //装上传图片
+ res.data[i].img_arr = []; //装图片
+ res.data[i].text_center = ''; //装文字内容
+ res.data[i].option = false; //装选项内容
+ if (res.data[i].tip == '' || !res.data[i].tip) {
+ res.data[i].is_show = false
+ } else {
+ res.data[i].is_show = true
+ }
+ }
+ that.setData({
+ obj: res.data
+ })
+ if (this.data.det_type == 4) {
+ setTimeout(() => {
+ that.getPreservation();
+ }, 500)
+ } else if (this.data.det_type == 5) {
+ setTimeout(() => {
+ that.assignment(that.data.draft)
+ }, 500)
+ } else {
+ this.getDetail()
+ }
+ })
+ },
+ // 车辆评估
+ getList() {
+ let url = 'api/form-car';
+ let that = this;
+ util.httpRequest(url).then((res) => {
+ for (let i in res.data) {
+ res.data[i].up_img_arr = []; //装上传图片
+ res.data[i].img_arr = []; //装图片
+ res.data[i].text_center = ''; //装文字内容
+ res.data[i].option = false; //装选项内容
+ if (res.data[i].tip == '') {
+ res.data[i].is_show = false
+ } else {
+ res.data[i].is_show = true
+ }
+ }
+ that.setData({
+ vehicle: res.data
+ })
+ })
+ },
- })
- },
- // 基础信息
- getData() {
- let url = 'api/form-basics';
- let that = this;
- util.httpRequest(url).then((res) => {
- // console.log(res)
- for (let i in res.data) {
- res.data[i].up_img_arr = []; //装上传图片
- res.data[i].img_arr = []; //装图片
- res.data[i].text_center = ''; //装文字内容
- res.data[i].option = false; //装选项内容
- if (res.data[i].tip == '' || !res.data[i].tip) {
- res.data[i].is_show = false
+ // 多张上传
+ upLoadImgMany(ete) {
+ var that = this;
+ let type = this.data.indexs == 0 ? 'obj' : 'vehicle';
+ let name = ete.currentTarget.dataset.name;
+ let num = `${type}.${name}`;
+ common.uploadImgs(3, 1, function (e, eve) {
+ that.data[type][name].img_arr = that.data[type][name].img_arr.concat(eve);
+ that.data[type][name].up_img_arr = that.data[type][name].up_img_arr.concat(e);
+ that.setData({
+ [num]: that.data[type][name]
+ })
+ that.immediate(); //临时保存
+ })
+ },
+ //影像资料
+ upLoadImgT(e) {
+ let name = e.currentTarget.dataset.name;
+ let type = this.data.indexs == 0 ? 'obj' : 'vehicle';
+ let num = e.currentTarget.dataset.num;
+ let indexT = e.currentTarget.dataset.index;
+ let img = this.data[type][name].image !== '' ? this.data[type][name].image.split(',') : [];
+ img.forEach((liem, index) => {
+ img[index] = wx.getStorageSync('serverurl') + img[index];
+ })
+ if (num) {
+ for (let i = 0; i < num; i++) {
+ if (!img[i]) {
+ img[i] = '';
+ }
+ if (!this.data[type][name].img_arr[i]) {
+ this.data[type][name].img_arr[i] = '';
+ this.data[type][name].up_img_arr[i] = '';
+ }
+ }
} else {
- res.data[i].is_show = true
+ this.data[type][name].img_arr = [];
}
- }
- that.setData({
- obj: res.data
- })
- if (this.data.det_type == 4) {
- setTimeout(() => {
- that.getPreservation();
- }, 500)
- } else if (this.data.det_type == 5) {
- setTimeout(() => {
- that.assignment(that.data.draft)
- }, 500)
- } else {
- this.getDetail()
- }
- })
- },
- // 车辆评估
- getList() {
- let url = 'api/form-car';
- let that = this;
- util.httpRequest(url).then((res) => {
- for (let i in res.data) {
- res.data[i].up_img_arr = []; //装上传图片
- res.data[i].img_arr = []; //装图片
- res.data[i].text_center = ''; //装文字内容
- res.data[i].option = false; //装选项内容
- if (res.data[i].tip == '') {
- res.data[i].is_show = false
+ this.setData({
+ upload_type: name,
+ is_upload: true,
+ tool_index: indexT * 1,
+ tool_arr: img,
+ tool_text: this.data[type][name].tip.split("|") ? this.data[type][name].tip.split("|") : this.data[type][name].tip,
+ code: e.currentTarget.dataset.code
+ })
+ },
+ // 关闭上传图片
+ escUploed(e) {
+ this.setData({
+ is_upload: false,
+ })
+ },
+ // 切换上传提示
+ switchTool() {
+ if (this.data.tool_index >= this.data.tool_arr.length - 1) {
+ this.setData({
+ tool_index: 0,
+ })
} else {
- res.data[i].is_show = true
+ this.setData({
+ tool_index: this.data.tool_index + 1,
+ })
}
- }
- that.setData({
- vehicle: res.data
- })
- })
- },
-
- // 多张上传
- upLoadImgMany(ete) {
- var that = this;
- let type = this.data.indexs == 0 ? 'obj' : 'vehicle';
- let name = ete.currentTarget.dataset.name;
- let num = `${type}.${name}`;
- common.uploadImgs(3, 1, function(e, eve) {
- that.data[type][name].img_arr = that.data[type][name].img_arr.concat(eve);
- that.data[type][name].up_img_arr = that.data[type][name].up_img_arr.concat(e);
- that.setData({
- [num]: that.data[type][name]
- })
- that.immediate(); //临时保存
- })
- },
- //影像资料
- upLoadImgT(e) {
- let name = e.currentTarget.dataset.name;
- let type = this.data.indexs == 0 ? 'obj' : 'vehicle';
- let num = e.currentTarget.dataset.num;
- let indexT = e.currentTarget.dataset.index;
- let img = this.data[type][name].image !== '' ? this.data[type][name].image.split(',') : [];
- img.forEach((liem, index) => {
- img[index] = wx.getStorageSync('serverurl') + img[index];
- })
- if (num) {
- for (let i = 0; i < num; i++) {
- if (!img[i]) {
- img[i] = '';
- }
- if (!this.data[type][name].img_arr[i]) {
- this.data[type][name].img_arr[i] = '';
- this.data[type][name].up_img_arr[i] = '';
- }
- }
- } else {
- this.data[type][name].img_arr = [];
- }
- this.setData({
- upload_type: name,
- is_upload: true,
- tool_index: indexT * 1,
- tool_arr: img,
- tool_text: this.data[type][name].tip.split("|") ? this.data[type][name].tip.split("|") : this.data[type][name].tip,
- code: e.currentTarget.dataset.code
- })
- },
- // 关闭上传图片
- escUploed(e) {
- this.setData({
- is_upload: false,
- })
- },
- // 切换上传提示
- switchTool() {
- if (this.data.tool_index >= this.data.tool_arr.length - 1) {
- this.setData({
- tool_index: 0,
- })
- } else {
- this.setData({
- tool_index: this.data.tool_index + 1,
- })
- }
- },
- // 一对一影像资料 上传图片 2:拍照 1:相册
- up_funT(e) {
- let that = this;
- let name = this.data.indexs == 0 ? 'obj' : 'vehicle';
- let type = e.currentTarget.dataset.type;
- let num = `${name}.${this.data.upload_type}.img_arr`;
- common.uploadImgs(type, 1, function(e, eve) {
- //调用承租人身份证识别
- if (that.data.upload_type == 'id_card_photo' && that.data.tool_index == 0) {
- that.getID(e)
- }
- //调用担保人人身份证识别
- if (that.data.upload_type == 'b_id_card_photo' && that.data.tool_index == 0) {
- that.b_getID(e)
- }
- //调用担保人人行驶证识别
- if (that.data.upload_type == 'travel' && that.data.tool_index == 0) {
- that.driving(e)
- }
- if (that.data[name][that.data.upload_type].img_arr[that.data.tool_index] || that.data[name][that.data.upload_type].img_arr[that.data.tool_index] == '') {
- that.data[name][that.data.upload_type].img_arr[that.data.tool_index] = eve[0];
- that.data[name][that.data.upload_type].up_img_arr[that.data.tool_index] = e
- } else {
- that.data[name][that.data.upload_type].img_arr.push(eve[0])
- that.data[name][that.data.upload_type].up_img_arr.push(e)
- }
- if (eve.length > 0) {
- that.setData({
- is_upload: false
+ },
+ // 一对一影像资料 上传图片 2:拍照 1:相册
+ up_funT(e) {
+ let that = this;
+ let name = this.data.indexs == 0 ? 'obj' : 'vehicle';
+ let type = e.currentTarget.dataset.type;
+ let num = `${name}.${this.data.upload_type}.img_arr`;
+ common.uploadImgs(type, 1, function (e, eve) {
+ //调用承租人身份证识别
+ if (that.data.upload_type == 'id_card_photo' && that.data.tool_index == 0) {
+ that.getID(e)
+ }
+ //调用担保人人身份证识别
+ if (that.data.upload_type == 'b_id_card_photo' && that.data.tool_index == 0) {
+ that.b_getID(e)
+ }
+ //调用担保人人行驶证识别
+ if (that.data.upload_type == 'travel' && that.data.tool_index == 0) {
+ that.driving(e)
+ }
+ if (that.data[name][that.data.upload_type].img_arr[that.data.tool_index] || that.data[name][that.data.upload_type].img_arr[that.data.tool_index] == '') {
+ that.data[name][that.data.upload_type].img_arr[that.data.tool_index] = eve[0];
+ that.data[name][that.data.upload_type].up_img_arr[that.data.tool_index] = e
+ } else {
+ that.data[name][that.data.upload_type].img_arr.push(eve[0])
+ that.data[name][that.data.upload_type].up_img_arr.push(e)
+ }
+ if (eve.length > 0) {
+ that.setData({
+ is_upload: false
+ })
+ }
+ that.setData({
+ [num]: that.data[name][that.data.upload_type].img_arr
+ })
+ that.immediate(); //临时保存
})
- }
- that.setData({
- [num]: that.data[name][that.data.upload_type].img_arr
- })
- that.immediate(); //临时保存
- })
- },
- // 行驶证识别
- driving(img) {
- let that = this;
- let name = this.data.vehicle;
- let url = `api/vehicle-license?url=${img}`
- util.httpRequest(url).then((res) => {
- // console.log(res.data)
- if (res.code == '200') {
- res = res.data;
- name.car_license.text_center = res.plate_num;
- name.vin.text_center = res.vin;
- // name.car_model.text_center[0] = res.model.split(',');
- // name.car_model.text_center[1] = res.vehicle_type.split(',');
- name.up_plate_date.option = res.register_date;
- name.engine_number.text_center = res.engine_num;
- that.setData({
- vehicle: name,
+ },
+ // 行驶证识别
+ driving(img) {
+ let that = this;
+ let name = this.data.vehicle;
+ let url = `api/vehicle-license?url=${img}`
+ util.httpRequest(url).then((res) => {
+ // console.log(res.data)
+ if (res.code == '200') {
+ res = res.data;
+ name.car_license.text_center = res.plate_num;
+ name.vin.text_center = res.vin;
+ // name.car_model.text_center[0] = res.model.split(',');
+ // name.car_model.text_center[1] = res.vehicle_type.split(',');
+ name.up_plate_date.option = res.register_date;
+ name.engine_number.text_center = res.engine_num;
+ that.setData({
+ vehicle: name,
+ })
+ that.immediate()
+ } else {
+ wx.showToast({
+ title: '识别失败请重试。',
+ icon: 'none',
+ duration: 2000
+ })
+ }
+ })
+ },
+ // 识别身份证
+ getID(img) {
+ let that = this;
+ let name = this.data.obj;
+ let url = `api/id-card?url=${img}`
+ util.httpRequest(url).then((res) => {
+ if (res.code == '200') {
+ name.lessee_name.text_center = res.data.name ? res.data.name : '';
+ name.id_card.text_center = res.data.id ? res.data.id : '';
+ name.id_card_address.text_center = res.data.addr ? res.data.addr : ''
+ that.setData({
+ obj: name,
+ })
+ // console.log(that.data.obj)
+ that.immediate()
+ } else {
+ wx.showToast({
+ title: '识别失败请重试。',
+ icon: 'none',
+ duration: 2000
+ })
+ }
})
- that.immediate()
- } else {
- wx.showToast({
- title: '识别失败请重试。',
- icon: 'none',
- duration: 2000
+ },
+ //担保人人身份证识别
+ b_getID(img) {
+ let that = this;
+ let name = this.data.obj;
+ let url = `api/id-card?url=${img}`
+ util.httpRequest(url).then((res) => {
+ if (res.code == '200') {
+ res = res.data;
+ name.guarantee_name.text_center = res.name;
+ name.b_id_card.text_center = res.id;
+ that.setData({
+ obj: name,
+ })
+ that.immediate()
+ } else {
+ wx.showToast({
+ title: '识别失败请重试。',
+ icon: 'none',
+ duration: 2000
+ })
+ }
})
- }
- })
- },
- // 识别身份证
- getID(img) {
- let that = this;
- let name = this.data.obj;
- let url = `api/id-card?url=${img}`
- util.httpRequest(url).then((res) => {
- if (res.code == '200') {
- name.lessee_name.text_center = res.data.name ? res.data.name : '';
- name.id_card.text_center = res.data.id ? res.data.id : '';
- name.id_card_address.text_center = res.data.addr ? res.data.addr : ''
+ },
+ // 删除影像资料
+ upDeleT(e) {
+ let name = e.currentTarget.dataset.name;
+ let index = e.currentTarget.dataset.index;
+ let that = this;
+ let type = this.data.indexs == 0 ? 'obj' : 'vehicle';
+ let num = `${type}.${name}`;
+ this.data[type][name].img_arr[index] = '';
+ this.data[type][name].up_img_arr[index] = ''
+ if (name === "other") {
+ this.data[type][name].img_arr.splice(index, 1);
+ this.data[type][name].up_img_arr.splice(index, 1);
+ }
that.setData({
- obj: name,
+ [num]: that.data[type][name]
})
- // console.log(that.data.obj)
- that.immediate()
- } else {
- wx.showToast({
- title: '识别失败请重试。',
- icon: 'none',
- duration: 2000
+ this.immediate(); //临时保存
+ },
+ biderInput(e) { //双向绑定文本框
+ let name = e.currentTarget.dataset.name;
+ let value = e.detail.value;
+ let type = this.data.indexs == 0 ? 'obj' : 'vehicle';
+ let title = `${type}.${name}.text_center`;
+ console.log(title)
+ this.setData({
+ [title]: value
})
- }
- })
- },
- //担保人人身份证识别
- b_getID(img) {
- let that = this;
- let name = this.data.obj;
- let url = `api/id-card?url=${img}`
- util.httpRequest(url).then((res) => {
- if (res.code == '200') {
- res = res.data;
- name.guarantee_name.text_center = res.name;
- name.b_id_card.text_center = res.id;
- that.setData({
- obj: name,
+ this.immediate(); //临时保存
+ },
+ bindCarInput(e){
+ let value = e.detail.value;
+ this.setData({
+ 'vehicle.car_model.text_center[0]': value
})
- that.immediate()
- } else {
- wx.showToast({
- title: '识别失败请重试。',
- icon: 'none',
- duration: 2000
+ this.immediate(); //临时保存
+ },
+ esc_tisp(e) { //双向绑定
+ let name = e.currentTarget.dataset.name;
+ let value = e.currentTarget.dataset.value ? e.currentTarget.dataset.value : e.detail.value;
+ this.setData({
+ [name]: value
})
- }
- })
- },
- // 删除影像资料
- upDeleT(e) {
- let name = e.currentTarget.dataset.name;
- let index = e.currentTarget.dataset.index;
- let that = this;
- let type = this.data.indexs == 0 ? 'obj' : 'vehicle';
- let num = `${type}.${name}`;
- this.data[type][name].img_arr[index] = '';
- this.data[type][name].up_img_arr[index] = ''
- if (name === "other") {
- this.data[type][name].img_arr.splice(index, 1);
- this.data[type][name].up_img_arr.splice(index, 1);
- }
- that.setData({
- [num]: that.data[type][name]
- })
- this.immediate(); //临时保存
- },
- biderInput(e) { //双向绑定文本框
- let name = e.currentTarget.dataset.name;
- let value = e.detail.value;
- let type = this.data.indexs == 0 ? 'obj' : 'vehicle';
- let title = `${type}.${name}.text_center`;
- this.setData({
- [title]: value
- })
- this.immediate(); //临时保存
- },
- esc_tisp(e) { //双向绑定
- let name = e.currentTarget.dataset.name;
- let value = e.currentTarget.dataset.value ? e.currentTarget.dataset.value : e.detail.value;
- this.setData({
- [name]: value
- })
- this.immediate(); //临时保存
- },
- // 双向绑定的下拉
- currentresidence(e) {
- let type = this.data.indexs == 0 ? 'obj' : 'vehicle';
- let value = e.detail.value;
- let name = e.currentTarget.dataset.name;
- let title = `${type}.${name}.option`;
- this.setData({
- [title]: value
- })
- this.immediate(); //临时保存
- },
- // 图片放大
- previewImage(e) {
- let url = e.currentTarget.dataset.url;
- wx.previewImage({
- current: url, // 当前显示图片的http链接
- urls: [url] // 需要预览的图片http链接列表
- })
- },
- /**
- * 生命周期函数--监听页面初次渲染完成
- */
- onReady: function() {
+ this.immediate(); //临时保存
+ },
+ // 双向绑定的下拉
+ currentresidence(e) {
+ let type = this.data.indexs == 0 ? 'obj' : 'vehicle';
+ let value = e.detail.value;
+ let name = e.currentTarget.dataset.name;
+ let title = `${type}.${name}.option`;
+ this.setData({
+ [title]: value
+ })
+ this.immediate(); //临时保存
+ },
+ // 图片放大
+ previewImage(e) {
+ let url = e.currentTarget.dataset.url;
+ wx.previewImage({
+ current: url, // 当前显示图片的http链接
+ urls: [url] // 需要预览的图片http链接列表
+ })
+ },
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady: function () {
- },
+ },
- /**
- * 生命周期函数--监听页面显示
- */
- onShow: function() {
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow: function () {
- },
+ },
- /**
- * 生命周期函数--监听页面隐藏
- */
- onHide: function() {
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide: function () {
- },
+ },
- /**
- * 生命周期函数--监听页面卸载
- */
- onUnload: function() {
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload: function () {
- },
+ },
- /**
- * 页面相关事件处理函数--监听用户下拉动作
- */
- onPullDownRefresh: function() {
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh: function () {
- },
+ },
- /**
- * 页面上拉触底事件的处理函数
- */
- onReachBottom: function() {
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom: function () {
- },
+ },
- /**
- * 用户点击右上角分享
- */
- onShareAppMessage: function() {
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage: function () {
- }
+ }
})
\ No newline at end of file
diff --git a/pages/toExamine/pages/first/first.wxml b/pages/toExamine/pages/first/first.wxml
index 108f527..b514b19 100644
--- a/pages/toExamine/pages/first/first.wxml
+++ b/pages/toExamine/pages/first/first.wxml
@@ -509,13 +509,14 @@
*{{vehicle.car_model.title}}
-
-
- {{vehicle.car_model.text_center[0]}}
- 请选择
-
-
-
+
+
+
+
+
+
+
+
diff --git a/project.private.config.json b/project.private.config.json
index 7ef9f25..9b05f0a 100644
--- a/project.private.config.json
+++ b/project.private.config.json
@@ -5,5 +5,99 @@
"compileHotReLoad": true,
"urlCheck": false
},
- "libVersion": "3.2.2"
+ "libVersion": "3.2.2",
+ "condition": {
+ "miniprogram": {
+ "list": [
+ {
+ "name": "",
+ "pathName": "pages/GPS/GPS",
+ "query": "",
+ "launchMode": "default",
+ "scene": null
+ },
+ {
+ "name": "",
+ "pathName": "pages/GPSform/GPSform",
+ "query": "item=%7B%22id%22%3A3%2C%22lessee_name%22%3A%22123213%22%2C%22lessee_phone%22%3A%22123123%22%2C%22car_model%22%3A%22123132%22%2C%22status%22%3A0%7D",
+ "launchMode": "default",
+ "scene": null
+ },
+ {
+ "name": "",
+ "pathName": "pages/GPSform/GPSform",
+ "query": "item=%7B%22id%22%3A2%2C%22lessee_name%22%3A%223123%22%2C%22lessee_phone%22%3A%22213123%22%2C%22car_model%22%3A%22321123%22%2C%22status%22%3A0%7D",
+ "launchMode": "default",
+ "scene": null
+ },
+ {
+ "name": "",
+ "pathName": "pages/toExamine/pages/first/first",
+ "query": "id=1&title=A&type=A&det_type=4",
+ "launchMode": "default",
+ "scene": null
+ },
+ {
+ "name": "终审",
+ "pathName": "pages/toExamine/pages/finalJudgment/finalJudgment",
+ "query": "det_id=29&det_type=4",
+ "scene": null
+ },
+ {
+ "name": "注册",
+ "pathName": "pages/register/register",
+ "query": "",
+ "scene": null
+ },
+ {
+ "name": "请款",
+ "pathName": "pages/toExamine/pages/requestfunds/requestfunds",
+ "query": "",
+ "scene": null
+ },
+ {
+ "name": "登录",
+ "pathName": "pages/Sign/Sign",
+ "query": "",
+ "scene": null
+ },
+ {
+ "name": "注册",
+ "pathName": "pages/register/register",
+ "query": "",
+ "scene": null
+ },
+ {
+ "name": "忘记密码",
+ "pathName": "pages/Forget password/Forget password",
+ "query": "",
+ "scene": null
+ },
+ {
+ "name": "初审",
+ "pathName": "pages/toExamine/pages/first/first",
+ "query": "id=1&det_type=4",
+ "scene": null
+ },
+ {
+ "name": "个人资料",
+ "pathName": "pages/myclass/pages/myData/myData",
+ "query": "",
+ "scene": null
+ },
+ {
+ "name": "GPS",
+ "pathName": "pages/GPS/GPS",
+ "query": "",
+ "scene": null
+ },
+ {
+ "name": "GPS表单",
+ "pathName": "pages/GPSform/GPSform",
+ "query": "",
+ "scene": null
+ }
+ ]
+ }
+ }
}
\ No newline at end of file