Browse Source

全局配置

yxb
DESKTOP-2IO5MST\huting 2 years ago
parent
commit
e7040bcbd7

+ 42
- 2
App.vue View File

<script> <script>
import { request } from "@/utils/network/request.js"; 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 { 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"; // import { log } from "console";
export default { export default {
onLaunch: function (option) { onLaunch: function (option) {
}); });
} }
// #endif // #endif
this.globalParam();
}, },
onShow: function (option) { onShow: function (option) {
console.log(option); console.log(option);
onHide: function () { onHide: function () {
console.log("App Hide"); 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> </script>


font-family: "Microsoft Yahei"; font-family: "Microsoft Yahei";
// filter: grayscale(1) // filter: grayscale(1)
} }

</style> </style>

+ 1
- 1
login/login.vue View File

console.log(result); console.log(result);
console.log(typeof(result)); console.log(typeof(result));
fetchToken(result.code).then((data:any) => { fetchToken(result.code).then((data:any) => {
console.log(data);
console.log("登录",data);
msg("登录成功!"); msg("登录成功!");
uni.$emit("refreshOrder"); uni.$emit("refreshOrder");
uni.navigateBack(); uni.navigateBack();

+ 31
- 16
subpackage/applyCard/car-release.vue View File

<view class="title"> 识别内容如下 </view> <view class="title"> 识别内容如下 </view>
<view class=""> <view class="">
<u-form label-width="200" :model="state.form" ref="uForm"> <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" /> --> <!-- <u-input inputAlign="right" placeholder='请输入车牌号' v-model="state.form.vehicleIdNum" /> -->
<car-number-input @numberInputResult="carNumber" <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>


<u-form-item label="所有人"> <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>
<u-form-item label="车辆类型"> <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>
<u-form-item label="使用性质"> <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>
<u-form-item label="车辆识别代号"> <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>
<u-form-item label="发动机号码"> <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>


<u-form-item label="注册日期"> <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>
<u-form-item label="发证日期"> <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>
<u-form-item label="核定载人数"> <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>
<u-form-item label="整备质量"> <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>
<!-- <u-form-item label="外廊尺寸"> <!-- <u-form-item label="外廊尺寸">
<u-input inputAlign="right" placeholder='请输入外廊尺寸' v-model="state.form.vehicleDimensions" /> <u-input inputAlign="right" placeholder='请输入外廊尺寸' v-model="state.form.vehicleDimensions" />
<label>外廊尺寸</label> <label>外廊尺寸</label>
<view class="input-box"> <view class="input-box">
<text class="sub-label">长</text> <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-text">X</text>
<text class="sub-label">宽</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-text">X</text>
<text class="sub-label">长</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> <text class="sub-text">mm</text>
</view> </view>
</view> </view>
<u-form-item label="总质量"> <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> </u-form-item>
<view class="form-item"> <view class="form-item">
<label>车辆用户类型</label> <label>车辆用户类型</label>
import { getEtcCardStatus } from "@/datas/etcCardStatus.js"; import { getEtcCardStatus } from "@/datas/etcCardStatus.js";
import { getItem } from "@/utils/storage"; import { getItem } from "@/utils/storage";
import {hasLogin} from "@/utils/utils.ts" import {hasLogin} from "@/utils/utils.ts"
import {
getCodeName
} from "@/datas/queryKey.js";
const scrollTop = ref(0); const scrollTop = ref(0);


//监听页面滚动 //监听页面滚动
outlineL: "", outlineL: "",
outlineW: "", outlineW: "",
outlineH: "", outlineH: "",
isSign:''
isSign:'',
isEnableChangeOCRCarInfo:true, //申办时是否允许修改OCR识别出来的车辆信息数据
}); });
onLoad((option : any) => { onLoad((option : any) => {
state.form.orderId = option.orderId; state.form.orderId = option.orderId;
state.vehiclePlateColor = option.vehiclePlateColor; state.vehiclePlateColor = option.vehiclePlateColor;
state.isSign=option.isSign state.isSign=option.isSign
console.log("option",option) console.log("option",option)
getGlobalParam();
}); });


//外廓尺寸输入框 //外廓尺寸输入框
const strReplace = (str : string) => { const strReplace = (str : string) => {
return str.replace("192.168.101.145:9000", "222.85.144.89:19002"); 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> </script>


<style lang="scss" scoped> <style lang="scss" scoped>

+ 3
- 0
subpackage/applyCard/essential-information.vue View File

line-height: 80rpx; line-height: 80rpx;
} }
} }
::deep.numberplates .numberplate-bg.data-v-18c7b8f7 {
width: 195rpx;
}
</style> </style>

+ 47
- 10
subpackage/applyCard/opening-account-people.vue View File

<view :class="state.isMyPeopple ? 'big' : 'nomal'"> 本人车辆 </view> <view :class="state.isMyPeopple ? 'big' : 'nomal'"> 本人车辆 </view>
<view :class="state.isMyPeopple ? 'tip' : ''"> </view> <view :class="state.isMyPeopple ? 'tip' : ''"> </view>
</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 ? 'nomal' : 'big'"> 他人车辆 </view>
<view :class="state.isMyPeopple ? '' : 'tip'"> </view> <view :class="state.isMyPeopple ? '' : 'tip'"> </view>
</view> </view>
<view class="title"> 识别内容如下 </view> <view class="title"> 识别内容如下 </view>
<u-form label-width="200" :model="state.form" ref="uForm"> <u-form label-width="200" :model="state.form" ref="uForm">
<u-form-item label="姓名"> <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>


<!-- <u-form-item label="性别"> <!-- <u-form-item label="性别">
type="select" /> type="select" />
</u-form-item> --> </u-form-item> -->
<u-form-item label="身份证号"> <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>
<u-form-item label="地址"> <u-form-item label="地址">
<u-input placeholder='请输入地址' height='38' type='textarea' :autoHeight='true' <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>
<!-- <u-form-item label="证件有效期"> <!-- <u-form-item label="证件有效期">
<u-input v-model="state.form.begindate" type="select" /> <u-input v-model="state.form.begindate" type="select" />
<view class="title"> 识别内容如下 </view> <view class="title"> 识别内容如下 </view>
<u-form label-width="200" :model="state.form" ref="uForm"> <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.userName" />
<u-input inputAlign="right" placeholder='请输入姓名' v-model="state.form.userName" :disabled="state.isEnableOCRData"/>
</u-form-item> </u-form-item>
<!-- <u-form-item label="性别"> <!-- <u-form-item label="性别">
<u-input inputAlign="right" placeholder='请选择性别' v-model="state.form.gender" type="select" /> <u-input inputAlign="right" placeholder='请选择性别' v-model="state.form.gender" type="select" />
</u-form-item> --> </u-form-item> -->
<u-form-item label="身份证号"> <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>
<!-- <u-form-item label=""> <!-- <u-form-item label="">
<u-input v-model="state.form.userIdNum" /> <u-input v-model="state.form.userIdNum" />
<image v-else class="icon" :src="state.form.agentNegImgUrl"></image> <image v-else class="icon" :src="state.form.agentNegImgUrl"></image>
</view> </view>
</view> </view>
<view class="picture-wrapper" @click="cardFileImageUpdate()">
<view class="picture-wrapper" @click="cardFileImageUpdate()" v-if='state.isEnableBook'>
<view class="bg"> <view class="bg">
<view class=""> <view class="">
<view class="name"> 委托书 </view> <view class="name"> 委托书 </view>
<view class="title"> 识别内容如下 </view> <view class="title"> 识别内容如下 </view>
<u-form label-width="200" :model="state.form" ref="uForm"> <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.agentName" />
<u-input inputAlign="right" placeholder='请输入经办人姓名' v-model="state.form.agentName" :disabled="state.isEnableOCRData"/>
</u-form-item> </u-form-item>
<!-- <u-form-item label="性别"> <!-- <u-form-item label="性别">
<u-input v-model="state.form.agentGender" type="select" /> <u-input v-model="state.form.agentGender" type="select" />
</u-form-item> --> </u-form-item> -->
<u-form-item label="身份证号"> <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>
<!-- <u-form-item label="证件有效期"> <!-- <u-form-item label="证件有效期">
<u-input v-model="state.form.begindate" type="select" /> <u-input v-model="state.form.begindate" type="select" />
setItem, setItem,
getItem, getItem,
} from "@/utils/storage"; } from "@/utils/storage";
import {
getCodeName
} from "@/datas/queryKey.js";
import navBar from "@/components/nav-bar/nav-bar2.vue"; import navBar from "@/components/nav-bar/nav-bar2.vue";
const scrollTop = ref(0) const scrollTop = ref(0)
const state = reactive({ const state = reactive({
orderId: "", orderId: "",
vehiclePlateColor: undefined, vehiclePlateColor: undefined,
isMyPeopple: true, isMyPeopple: true,
isSign:''
isSign:'',
isEnableOther:true, //小程序是否支持他人办理
isEnableBook:true, //他人办理时是否上传委托书
isEnableInfo:true, //小程序信息带出
isEnableOCRData:true, //允许修改OCR识别出来的数据
}); });
const userGenderAction = () => { const userGenderAction = () => {
state.form.opId = getItem('openId')??''; state.form.opId = getItem('openId')??'';
state.isSign=option.isSign; state.isSign=option.isSign;
//state.fromOrder = option.fromOrder //是否来自订单-修改资料 //state.fromOrder = option.fromOrder //是否来自订单-修改资料
getGlobalParam(); //全局配置数据
}); });
//监听页面滚动 //监听页面滚动
const strReplace = (str : string) => { const strReplace = (str : string) => {
return str.replace('192.168.101.145:9000', envs[process.env.NODE_ENV].baseUrl) 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> </script>


<style lang="scss" scoped> <style lang="scss" scoped>

+ 13
- 3
subpackage/orders/order-evaluate-salesman.vue View File

<view class="uni-list"> <view class="uni-list">
<view class="uni-list-cell uni-list-cell-pd"> <view class="uni-list-cell uni-list-cell-pd">
<view class="uni-list-cell-db">是否匿名</view> <view class="uni-list-cell-db">是否匿名</view>
<switch checked />
<switch checked style="transform:scale(0.7)" @change="switchChange"/>
</view> </view>
</view> </view>
<view class="btn"> <view class="btn">
<submit-button @submit="publish" title="发布"></submit-button>
<submit-button @submit="publish" title="发布"></submit-button>
</view> </view>
<!-- 选择标签弹窗 业务员办理满意度弹框--> <!-- 选择标签弹窗 业务员办理满意度弹框-->
state.tagAllList = stringToJson(res.bizContent); state.tagAllList = stringToJson(res.bizContent);
}) })
} }
// 是否匿名
const switchChange=(e)=>{
console.log('switch1 发生 change 事件,携带值为', e.detail.value)
}
onLoad((option) => { onLoad((option) => {
console.log("option",option) console.log("option",option)
state.orderId=option.orderId; state.orderId=option.orderId;
.btn { .btn {
margin: 60rpx 40rpx 0rpx; margin: 60rpx 40rpx 0rpx;
} }
.uni-list-cell{
display: flex;
margin: 10rpx auto;
width: 90%;
justify-content: space-between;
align-items: center;
}
</style> </style>

+ 2
- 1
utils/network/api.js View File

export const addEvaluation="64ed1fdff3b44138ba30d183b613bc7f" //满意度评价-新增 export const addEvaluation="64ed1fdff3b44138ba30d183b613bc7f" //满意度评价-新增
export const satisfactionEvaluation="746b5e0375b8474eb3e133b8c79586d8" //满意度评价-分页查询 export const satisfactionEvaluation="746b5e0375b8474eb3e133b8c79586d8" //满意度评价-分页查询
export const judageSalesman="35744a8e282a42ddbc63814303e9e441" //判断是否有业务员 export const judageSalesman="35744a8e282a42ddbc63814303e9e441" //判断是否有业务员
export const judageQuanProduct="fe71273c1a394eaa999825afe7daa59b" //判断是否有权益产品
export const judageQuanProduct="fe71273c1a394eaa999825afe7daa59b" //判断是否有权益产品
export const getGlobalParam="d0579171c82443cb9b243c113309119a" //全局配置

Loading…
Cancel
Save