@@ -1,8 +1,12 @@ | |||
<script> | |||
import { request } from "@/utils/network/request.js"; | |||
import { etcQYAction, queryKey } from "@/utils/network/api.js"; | |||
import { etcQYAction, queryKey,getGlobalParam } from "@/utils/network/api.js"; | |||
import { msg } from "./utils/utils"; | |||
import { getItem } from "./utils/storage"; | |||
import { getItem,setItem } from "./utils/storage"; | |||
import { stringToJson } from "@/utils/network/encryption"; | |||
import { | |||
getCodeName | |||
} from "@/datas/queryKey.js"; | |||
// import { log } from "console"; | |||
export default { | |||
onLaunch: function (option) { | |||
@@ -51,6 +55,7 @@ export default { | |||
}); | |||
} | |||
// #endif | |||
this.globalParam(); | |||
}, | |||
onShow: function (option) { | |||
console.log(option); | |||
@@ -108,6 +113,40 @@ export default { | |||
onHide: function () { | |||
console.log("App Hide"); | |||
}, | |||
methods:{ | |||
globalParam(){ | |||
const options = { | |||
type: 2, | |||
data: { | |||
"loginSource":"69af303ba2eb4608a099163f0d2a5dbd" | |||
}, | |||
method: "POST", | |||
showLoading: true, | |||
}; | |||
request(getGlobalParam, options).then((res) => { | |||
const result = stringToJson(res.bizContent); | |||
setItem('globalParam', result.data) | |||
this.getGlobalParam(); | |||
// getItem("globalParam") | |||
console.log("配置",result); | |||
}); | |||
}, | |||
getGlobalParam(){ | |||
const data=getItem('globalParam') | |||
console.log("全局配置数据1111",getCodeName('IS_ENABLE',data.setGray)) | |||
// 申办时是否允许修改OCR识别出来的车辆信息数据 | |||
if(getCodeName('IS_ENABLE',data.setGray)=='启用'){ | |||
// this.isEnableSetGray=true; | |||
// uni.setCssVar(this.$refs.element, 'filter', 'grayscale(1)'); | |||
// uni.setGlobalCSSVar('--element-filter', 'grayscale(1)'); | |||
const pageStyle = ` font-family: "Microsoft Yahei"; filter: grayscale(1); `; | |||
uni.setPageStyle({ style: pageStyle, }); | |||
} | |||
} | |||
} | |||
}; | |||
</script> | |||
@@ -120,4 +159,5 @@ page { | |||
font-family: "Microsoft Yahei"; | |||
// filter: grayscale(1) | |||
} | |||
</style> |
@@ -208,7 +208,7 @@ const reqLogin = (code:string, data:object) => { | |||
console.log(result); | |||
console.log(typeof(result)); | |||
fetchToken(result.code).then((data:any) => { | |||
console.log(data); | |||
console.log("登录",data); | |||
msg("登录成功!"); | |||
uni.$emit("refreshOrder"); | |||
uni.navigateBack(); |
@@ -53,39 +53,39 @@ | |||
<view class="title"> 识别内容如下 </view> | |||
<view class=""> | |||
<u-form label-width="200" :model="state.form" ref="uForm"> | |||
<u-form-item label="车牌号"> | |||
<u-form-item label="车牌号" > | |||
<!-- <u-input inputAlign="right" placeholder='请输入车牌号' v-model="state.form.vehicleIdNum" /> --> | |||
<car-number-input @numberInputResult="carNumber" | |||
:defaultStr="state.form.vehicleIdNum"></car-number-input> | |||
:defaultStr="state.form.vehicleIdNum" ></car-number-input> | |||
</u-form-item> | |||
<u-form-item label="所有人"> | |||
<u-input inputAlign="right" placeholder="请输入所有人" v-model="state.form.man" /> | |||
<u-input inputAlign="right" placeholder="请输入所有人" v-model="state.form.man" :disabled="state.isEnableChangeOCRCarInfo"/> | |||
</u-form-item> | |||
<u-form-item label="车辆类型"> | |||
<u-input inputAlign="right" placeholder="请输入车辆类型" v-model="state.form.vehicleType" /> | |||
<u-input inputAlign="right" placeholder="请输入车辆类型" v-model="state.form.vehicleType" :disabled="state.isEnableChangeOCRCarInfo"/> | |||
</u-form-item> | |||
<u-form-item label="使用性质"> | |||
<u-input inputAlign="right" placeholder="请输入使用性质" v-model="state.form.character" /> | |||
<u-input inputAlign="right" placeholder="请输入使用性质" v-model="state.form.character" :disabled="state.isEnableChangeOCRCarInfo"/> | |||
</u-form-item> | |||
<u-form-item label="车辆识别代号"> | |||
<u-input inputAlign="right" placeholder="请输入车辆识别代号" v-model="state.form.vin" /> | |||
<u-input inputAlign="right" placeholder="请输入车辆识别代号" v-model="state.form.vin" :disabled="state.isEnableChangeOCRCarInfo"/> | |||
</u-form-item> | |||
<u-form-item label="发动机号码"> | |||
<u-input inputAlign="right" placeholder="请输入发动机号码" v-model="state.form.engineNum" /> | |||
<u-input inputAlign="right" placeholder="请输入发动机号码" v-model="state.form.engineNum" :disabled="state.isEnableChangeOCRCarInfo"/> | |||
</u-form-item> | |||
<u-form-item label="注册日期"> | |||
<u-input inputAlign="right" placeholder="请输入注册日期" v-model="state.form.register" /> | |||
<u-input inputAlign="right" placeholder="请输入注册日期" v-model="state.form.register" :disabled="state.isEnableChangeOCRCarInfo"/> | |||
</u-form-item> | |||
<u-form-item label="发证日期"> | |||
<u-input inputAlign="right" placeholder="请输入发证日期" v-model="state.form.issueDate" /> | |||
<u-input inputAlign="right" placeholder="请输入发证日期" v-model="state.form.issueDate" :disabled="state.isEnableChangeOCRCarInfo"/> | |||
</u-form-item> | |||
<u-form-item label="核定载人数"> | |||
<u-input inputAlign="right" placeholder="请输入核定载人数" v-model="state.form.approvedCount" /> | |||
<u-input inputAlign="right" placeholder="请输入核定载人数" v-model="state.form.approvedCount" :disabled="state.isEnableChangeOCRCarInfo"/> | |||
</u-form-item> | |||
<u-form-item label="整备质量"> | |||
<u-input inputAlign="right" placeholder="请输入整备质量" v-model="state.form.maintenaceMass" /> | |||
<u-input inputAlign="right" placeholder="请输入整备质量" v-model="state.form.maintenaceMass" :disabled="state.isEnableChangeOCRCarInfo"/> | |||
</u-form-item> | |||
<!-- <u-form-item label="外廊尺寸"> | |||
<u-input inputAlign="right" placeholder='请输入外廊尺寸' v-model="state.form.vehicleDimensions" /> | |||
@@ -94,18 +94,18 @@ | |||
<label>外廊尺寸</label> | |||
<view class="input-box"> | |||
<text class="sub-label">长</text> | |||
<input v-model="state.outlineL" @input="outlineInput" /> | |||
<input v-model="state.outlineL" @input="outlineInput" :disabled="state.isEnableChangeOCRCarInfo"/> | |||
<text class="sub-text">X</text> | |||
<text class="sub-label">宽</text> | |||
<input v-model="state.outlineW" @input="outlineInput" /> | |||
<input v-model="state.outlineW" @input="outlineInput" :disabled="state.isEnableChangeOCRCarInfo"/> | |||
<text class="sub-text">X</text> | |||
<text class="sub-label">长</text> | |||
<input v-model="state.outlineH" @input="outlineInput" /> | |||
<input v-model="state.outlineH" @input="outlineInput" :disabled="state.isEnableChangeOCRCarInfo"/> | |||
<text class="sub-text">mm</text> | |||
</view> | |||
</view> | |||
<u-form-item label="总质量"> | |||
<u-input inputAlign="right" placeholder="请输入总质量" v-model="state.form.totalMass" /> | |||
<u-input inputAlign="right" placeholder="请输入总质量" v-model="state.form.totalMass" :disabled="state.isEnableChangeOCRCarInfo"/> | |||
</u-form-item> | |||
<view class="form-item"> | |||
<label>车辆用户类型</label> | |||
@@ -194,6 +194,9 @@ | |||
import { getEtcCardStatus } from "@/datas/etcCardStatus.js"; | |||
import { getItem } from "@/utils/storage"; | |||
import {hasLogin} from "@/utils/utils.ts" | |||
import { | |||
getCodeName | |||
} from "@/datas/queryKey.js"; | |||
const scrollTop = ref(0); | |||
//监听页面滚动 | |||
@@ -365,7 +368,8 @@ | |||
outlineL: "", | |||
outlineW: "", | |||
outlineH: "", | |||
isSign:'' | |||
isSign:'', | |||
isEnableChangeOCRCarInfo:true, //申办时是否允许修改OCR识别出来的车辆信息数据 | |||
}); | |||
onLoad((option : any) => { | |||
state.form.orderId = option.orderId; | |||
@@ -373,6 +377,7 @@ | |||
state.vehiclePlateColor = option.vehiclePlateColor; | |||
state.isSign=option.isSign | |||
console.log("option",option) | |||
getGlobalParam(); | |||
}); | |||
//外廓尺寸输入框 | |||
@@ -489,6 +494,16 @@ | |||
const strReplace = (str : string) => { | |||
return str.replace("192.168.101.145:9000", "222.85.144.89:19002"); | |||
}; | |||
const getGlobalParam=()=>{ | |||
const data=getItem('globalParam') | |||
console.log("全局配置数据",getCodeName('IS_ENABLE',data.applyChangeOCRCarInfo)) | |||
// 申办时是否允许修改OCR识别出来的车辆信息数据 | |||
if(getCodeName('IS_ENABLE',data.applyChangeOCRCarInfo)=='启用'){ | |||
state.isEnableChangeOCRCarInfo=true; | |||
}else{ | |||
state.isEnableChangeOCRCarInfo=false; | |||
} | |||
} | |||
</script> | |||
<style lang="scss" scoped> |
@@ -562,4 +562,7 @@ const productReCodeAction = (orderId) => { | |||
line-height: 80rpx; | |||
} | |||
} | |||
::deep.numberplates .numberplate-bg.data-v-18c7b8f7 { | |||
width: 195rpx; | |||
} | |||
</style> |
@@ -6,7 +6,7 @@ | |||
<view :class="state.isMyPeopple ? 'big' : 'nomal'"> 本人车辆 </view> | |||
<view :class="state.isMyPeopple ? 'tip' : ''"> </view> | |||
</view> | |||
<view @click="tabChange(false)" style="margin-left: 60rpx" class=""> | |||
<view @click="tabChange(false)" style="margin-left: 60rpx" class="" v-if="state.isEnableOther"> | |||
<view :class="state.isMyPeopple ? 'nomal' : 'big'"> 他人车辆 </view> | |||
<view :class="state.isMyPeopple ? '' : 'tip'"> </view> | |||
</view> | |||
@@ -48,7 +48,7 @@ | |||
<view class="title"> 识别内容如下 </view> | |||
<u-form label-width="200" :model="state.form" ref="uForm"> | |||
<u-form-item label="姓名"> | |||
<u-input v-model="state.form.userName" placeholder='请输入姓名' /> | |||
<u-input v-model="state.form.userName" placeholder='请输入姓名' :disabled="state.isEnableOCRData"/> | |||
</u-form-item> | |||
<!-- <u-form-item label="性别"> | |||
@@ -56,11 +56,11 @@ | |||
type="select" /> | |||
</u-form-item> --> | |||
<u-form-item label="身份证号"> | |||
<u-input placeholder='请输入身份证' type="idcard" v-model="state.form.userIdNum" /> | |||
<u-input placeholder='请输入身份证' type="idcard" v-model="state.form.userIdNum" :disabled="state.isEnableOCRData"/> | |||
</u-form-item> | |||
<u-form-item label="地址"> | |||
<u-input placeholder='请输入地址' height='38' type='textarea' :autoHeight='true' | |||
v-model="state.form.address" /> | |||
v-model="state.form.address" :disabled="state.isEnableOCRData"/> | |||
</u-form-item> | |||
<!-- <u-form-item label="证件有效期"> | |||
<u-input v-model="state.form.begindate" type="select" /> | |||
@@ -121,13 +121,13 @@ | |||
<view class="title"> 识别内容如下 </view> | |||
<u-form label-width="200" :model="state.form" ref="uForm"> | |||
<u-form-item label="姓名"> | |||
<u-input inputAlign="right" placeholder='请输入姓名' v-model="state.form.userName" /> | |||
<u-input inputAlign="right" placeholder='请输入姓名' v-model="state.form.userName" :disabled="state.isEnableOCRData"/> | |||
</u-form-item> | |||
<!-- <u-form-item label="性别"> | |||
<u-input inputAlign="right" placeholder='请选择性别' v-model="state.form.gender" type="select" /> | |||
</u-form-item> --> | |||
<u-form-item label="身份证号"> | |||
<u-input inputAlign="right" placeholder='请输入身份证号' v-model="state.form.userIdNum" /> | |||
<u-input inputAlign="right" placeholder='请输入身份证号' v-model="state.form.userIdNum" :disabled="state.isEnableOCRData"/> | |||
</u-form-item> | |||
<!-- <u-form-item label=""> | |||
<u-input v-model="state.form.userIdNum" /> | |||
@@ -173,7 +173,7 @@ | |||
<image v-else class="icon" :src="state.form.agentNegImgUrl"></image> | |||
</view> | |||
</view> | |||
<view class="picture-wrapper" @click="cardFileImageUpdate()"> | |||
<view class="picture-wrapper" @click="cardFileImageUpdate()" v-if='state.isEnableBook'> | |||
<view class="bg"> | |||
<view class=""> | |||
<view class="name"> 委托书 </view> | |||
@@ -191,13 +191,13 @@ | |||
<view class="title"> 识别内容如下 </view> | |||
<u-form label-width="200" :model="state.form" ref="uForm"> | |||
<u-form-item label="经办人姓名"> | |||
<u-input inputAlign="right" placeholder='请输入经办人姓名' v-model="state.form.agentName" /> | |||
<u-input inputAlign="right" placeholder='请输入经办人姓名' v-model="state.form.agentName" :disabled="state.isEnableOCRData"/> | |||
</u-form-item> | |||
<!-- <u-form-item label="性别"> | |||
<u-input v-model="state.form.agentGender" type="select" /> | |||
</u-form-item> --> | |||
<u-form-item label="身份证号"> | |||
<u-input inputAlign="right" placeholder='请输入身份证号' v-model="state.form.agentIdNum" /> | |||
<u-input inputAlign="right" placeholder='请输入身份证号' v-model="state.form.agentIdNum" :disabled="state.isEnableOCRData"/> | |||
</u-form-item> | |||
<!-- <u-form-item label="证件有效期"> | |||
<u-input v-model="state.form.begindate" type="select" /> | |||
@@ -258,6 +258,9 @@ | |||
setItem, | |||
getItem, | |||
} from "@/utils/storage"; | |||
import { | |||
getCodeName | |||
} from "@/datas/queryKey.js"; | |||
import navBar from "@/components/nav-bar/nav-bar2.vue"; | |||
const scrollTop = ref(0) | |||
const state = reactive({ | |||
@@ -302,7 +305,11 @@ | |||
orderId: "", | |||
vehiclePlateColor: undefined, | |||
isMyPeopple: true, | |||
isSign:'' | |||
isSign:'', | |||
isEnableOther:true, //小程序是否支持他人办理 | |||
isEnableBook:true, //他人办理时是否上传委托书 | |||
isEnableInfo:true, //小程序信息带出 | |||
isEnableOCRData:true, //允许修改OCR识别出来的数据 | |||
}); | |||
const userGenderAction = () => { | |||
@@ -462,6 +469,7 @@ | |||
state.form.opId = getItem('openId')??''; | |||
state.isSign=option.isSign; | |||
//state.fromOrder = option.fromOrder //是否来自订单-修改资料 | |||
getGlobalParam(); //全局配置数据 | |||
}); | |||
//监听页面滚动 | |||
@@ -557,6 +565,35 @@ | |||
const strReplace = (str : string) => { | |||
return str.replace('192.168.101.145:9000', envs[process.env.NODE_ENV].baseUrl) | |||
} | |||
const getGlobalParam=()=>{ | |||
const data=getItem('globalParam') | |||
console.log("全局配置数据",getCodeName('IS_ENABLE',data.miniSupportOther),getCodeName('IS_ENABLE',data.otherUploadProxy),getCodeName('IS_ENABLE',data.miniInfoShow),getCodeName('IS_ENABLE',data.changeOCRData)) | |||
// 小程序是否支持他人办理 | |||
if(getCodeName('IS_ENABLE',data.miniSupportOther)=='启用'){ | |||
state.isEnableOther=true; | |||
}else{ | |||
state.isEnableOther=false; | |||
} | |||
// 他人办理时是否上传委托书 | |||
if(getCodeName('IS_ENABLE',data.otherUploadProxy)=='启用'){ | |||
state.isEnableBook=true; | |||
}else{ | |||
state.isEnableBook=false; | |||
} | |||
// 小程序信息带出 | |||
if(getCodeName('IS_ENABLE',data.miniInfoShow)=='启用'){ | |||
state.isEnableInfo=true; | |||
}else{ | |||
state.isEnableInfo=false; | |||
} | |||
// 允许修改OCR识别出来的数据 | |||
if(getCodeName('IS_ENABLE',data.changeOCRData)=='启用'){ | |||
state.isEnableOCRData=false; | |||
}else{ | |||
state.isEnableOCRData=true; | |||
} | |||
} | |||
</script> | |||
<style lang="scss" scoped> |
@@ -56,11 +56,11 @@ | |||
<view class="uni-list"> | |||
<view class="uni-list-cell uni-list-cell-pd"> | |||
<view class="uni-list-cell-db">是否匿名</view> | |||
<switch checked /> | |||
<switch checked style="transform:scale(0.7)" @change="switchChange"/> | |||
</view> | |||
</view> | |||
<view class="btn"> | |||
<submit-button @submit="publish" title="发布"></submit-button> | |||
<submit-button @submit="publish" title="发布"></submit-button> | |||
</view> | |||
<!-- 选择标签弹窗 业务员办理满意度弹框--> | |||
@@ -271,7 +271,10 @@ | |||
state.tagAllList = stringToJson(res.bizContent); | |||
}) | |||
} | |||
// 是否匿名 | |||
const switchChange=(e)=>{ | |||
console.log('switch1 发生 change 事件,携带值为', e.detail.value) | |||
} | |||
onLoad((option) => { | |||
console.log("option",option) | |||
state.orderId=option.orderId; | |||
@@ -405,4 +408,11 @@ | |||
.btn { | |||
margin: 60rpx 40rpx 0rpx; | |||
} | |||
.uni-list-cell{ | |||
display: flex; | |||
margin: 10rpx auto; | |||
width: 90%; | |||
justify-content: space-between; | |||
align-items: center; | |||
} | |||
</style> |
@@ -204,4 +204,5 @@ export const queryHighMsg="64f4a17302774b6eab09f7a1f8364605" //高速快讯查 | |||
export const addEvaluation="64ed1fdff3b44138ba30d183b613bc7f" //满意度评价-新增 | |||
export const satisfactionEvaluation="746b5e0375b8474eb3e133b8c79586d8" //满意度评价-分页查询 | |||
export const judageSalesman="35744a8e282a42ddbc63814303e9e441" //判断是否有业务员 | |||
export const judageQuanProduct="fe71273c1a394eaa999825afe7daa59b" //判断是否有权益产品 | |||
export const judageQuanProduct="fe71273c1a394eaa999825afe7daa59b" //判断是否有权益产品 | |||
export const getGlobalParam="d0579171c82443cb9b243c113309119a" //全局配置 |