zsk 8 months ago
parent 218426c03b
commit ed90618cd8

@ -8,7 +8,7 @@ let orderInfo = {
order_list:"/assistant/apply/order/list",// 工单列表(旧) order_list:"/assistant/apply/order/list",// 工单列表(旧)
order_list_new:"/yishoudan/user/apply/order/V2/list",// 工单列表(新) order_list_new:"/yishoudan/user/apply/order/V2/list",// 工单列表(新)
order_detail :"/assistant/apply/order/detail",// 工单详情(旧) order_detail :"/assistant/apply/order/detail",// 工单详情(旧)
order_detail_new :"/yishoudan/user/apply/order/details",// 工单详情(新)(toc) order_detail_new :"/yishoudan/user/apply/order/web/details",// 工单详情(新)(toc)
order_detail_newTob :"/yishoudan/user/apply/order/V2/details",// 工单详情(tob) order_detail_newTob :"/yishoudan/user/apply/order/V2/details",// 工单详情(tob)
order_update_detail :"/yishoudan/user/apply/order/V2/updateOrderInfo",// 工单信息修改 order_update_detail :"/yishoudan/user/apply/order/V2/updateOrderInfo",// 工单信息修改
order_submitRemark :"/yishoudan/user/apply/order/updateOrder",// 跟进记录提交事件 order_submitRemark :"/yishoudan/user/apply/order/updateOrder",// 跟进记录提交事件

File diff suppressed because it is too large Load Diff

@ -1,32 +1,27 @@
<template> <template>
<view class="p-root-detail-job-desq g_w_all g_h_all g_bg_f_5 g_kuaishou"> <view class="p-root-detail-job-desq g_w_all g_h_all g_bg_f_5 g_kuaishou">
<view <view class="g_flex_column_between" v-if="type == 'view'" :style="{
class="g_flex_column_between"
v-if="type == 'view'"
:style="{
height: pheight + 'px', height: pheight + 'px',
overflow: 'auto', overflow: 'auto',
}" }">
>
<view class="g_h_10 g_flex_none g_bg_f_5"></view> <view class="g_h_10 g_flex_none g_bg_f_5"></view>
<view class="g_flex_1 g_bg_f g_pl_16 g_pr_16 g_pt_8 g_pb_8" style="overflow-y: auto"> <view class="g_flex_1 g_bg_f g_pl_16 g_pr_16 g_pt_8 g_pb_8" style="overflow-y: auto">
<view class="g_fs_16 g_c_6 g_mb_16">{{ time }}</view> <!-- <view class="g_fs_16 g_c_6 g_mb_16">{{ time }}</view> -->
<text class="g_fs_16 g_c_6 g_pb_100" :user-select="true" style="word-break: break-all; white-space: pre-line">{{info}}</text> <text class="g_fs_16 g_c_6 g_pb_100" :user-select="true"
style="word-break: break-all; white-space: pre-line">{{info}}</text>
</view> </view>
</view> </view>
<view class="g_bg_f g_h_all g_flex_column_between" v-if="type == 'edit'"> <view class="g_bg_f g_h_all g_flex_column_between" v-if="type == 'edit'">
<view class="g_h_10 g_flex_none g_bg_f_5"></view> <view class="g_h_10 g_flex_none g_bg_f_5"></view>
<view <view class="g_flex_1 g_bg_f g_pt_8 g_pb_8 g_pl_16 g_pr_16" :style="{
class="g_flex_1 g_bg_f g_pt_8 g_pb_8 g_pl_16 g_pr_16"
:style="{
'max-height': height + 'rpx', 'max-height': height + 'rpx',
overflow: 'auto', overflow: 'auto',
}" }">
> <u-input v-model="applyInfo.globalText" type="textarea" :border="false" :auto-height="true"
<u-input v-model="applyInfo.globalText" type="textarea" :border="false" :auto-height="true" :maxlength="1000" :height="height" :clearable="false" /> :maxlength="1000" :height="height" :clearable="false" />
</view> </view>
<view class="g_h_100 g_flex_none g_bg_f_5"></view> <view class="g_h_100 g_flex_none g_bg_f_5"></view>
<g-panel-fixed> <!-- <g-panel-fixed>
<view class="g_flex_row_between"> <view class="g_flex_row_between">
<view class="g_flex_c" style="width: 50%"> <view class="g_flex_c" style="width: 50%">
<g-button btnText="取消" type="default" size="small" @clickBtn="goBack"></g-button> <g-button btnText="取消" type="default" size="small" @clickBtn="goBack"></g-button>
@ -35,7 +30,7 @@
<g-button btnText="保存" type="primary" size="small" @clickBtn="goReturn"></g-button> <g-button btnText="保存" type="primary" size="small" @clickBtn="goReturn"></g-button>
</view> </view>
</view> </view>
</g-panel-fixed> </g-panel-fixed> -->
</view> </view>
<view class="g_bg_f g_h_all g_flex_column_between g_bg_f_5" v-if="type == 'form'"> <view class="g_bg_f g_h_all g_flex_column_between g_bg_f_5" v-if="type == 'form'">
<view class="g_h_10 g_flex_none g_bg_f_5"></view> <view class="g_h_10 g_flex_none g_bg_f_5"></view>
@ -46,16 +41,20 @@
</view> </view>
<view class="showdoc g_flex_row_start g_clear_scroll g_pb_12"> <view class="showdoc g_flex_row_start g_clear_scroll g_pb_12">
<view class="g_flex_row_start_none menu-obj"> <view class="g_flex_row_start_none menu-obj">
<view v-for="item in disList" :key="item.id" class="menu-btn g_flex_column_center" :class="applyInfo.agencyReturnFeeType == item.id ? 'menu-active' : ''" @click="changeDis(item)"> <view v-for="item in disList" :key="item.id" class="menu-btn g_flex_column_center"
:class="applyInfo.agencyReturnFeeType == item.id ? 'menu-active' : ''"
@click="changeDis(item)">
<view class="btn g_radius_4 g_pl_8 g_pr_8 g_pt_4 g_pb_4 g_fs_12">{{ item.text }}</view> <view class="btn g_radius_4 g_pl_8 g_pr_8 g_pt_4 g_pb_4 g_fs_12">{{ item.text }}</view>
</view> </view>
</view> </view>
</view> </view>
<view class="g_flex_row_around flex_center g_bg_f g_h_44 g_pl_10 g_pr_10 g_radius_8" style="width: calc(100% - 20px); margin: 0 auto"> <view class="g_flex_row_around flex_center g_bg_f g_h_44 g_pl_10 g_pr_10 g_radius_8"
style="width: calc(100% - 20px); margin: 0 auto">
<view class="g_mr_16"> <view class="g_mr_16">
{{ disList[applyInfo.agencyReturnFeeType].pre }} {{ disList[applyInfo.agencyReturnFeeType].pre }}
</view> </view>
<u-input height="22" v-model="applyInfo.agencyReturnFee" type="digit" class="g_flex_1 weui-input" placeholder="仅数字" placeholder-style="color:#999" /> <u-input height="22" v-model="applyInfo.agencyReturnFee" type="digit" class="g_flex_1 weui-input"
placeholder="仅数字" placeholder-style="color:#999" />
<view class=""> <view class="">
{{ disList[applyInfo.agencyReturnFeeType].suffix }} {{ disList[applyInfo.agencyReturnFeeType].suffix }}
</view> </view>
@ -73,171 +72,169 @@
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
info: "-", info: "-",
time: "", time: "",
title: "", title: "",
type: "", type: "",
applyInfo: {}, applyInfo: {},
height: 1200, height: 1200,
pheight: 800, pheight: 800,
disActive: 0, disActive: 0,
result: "", result: "",
disList: [ disList: [{
{ id: 0,
id: 0, text: "按小时",
text: "按小时", pre: "按时",
pre: "按时", suffix: "元/小时",
suffix: "元/小时", },
}, {
{ id: 1,
id: 1, text: "按天数",
text: "按天数", pre: "按天",
pre: "按天", suffix: "元/天",
suffix: "元/天", },
}, {
{ id: 2,
id: 2, text: "按月数",
text: "按月数", pre: "按月",
pre: "按月", suffix: "元/月",
suffix: "元/月", },
}, {
{ id: 3,
id: 3, text: "按次数",
text: "按次数", pre: "按次",
pre: "按次", suffix: "元/次",
suffix: "元/次", },
}, {
{ id: 4,
id: 4, text: "按件数",
text: "按件数", pre: "按件",
pre: "按件", suffix: "元/件",
suffix: "元/件", },
}, {
{ id: 5,
id: 5, text: "共计",
text: "共计", pre: "共计",
pre: "共计", suffix: "元",
suffix: "元", },
}, ],
],
};
},
onReady() {
console.log(uni.getSystemInfoSync().windowHeight - 145);
this.pheight = uni.getSystemInfoSync().windowHeight;
this.height = (uni.getSystemInfoSync().windowHeight - 145) * 2;
},
onLoad(options) {
let str = "";
if (options.info) {
if (options.info == "undefined" || options.info == "null" || options.info == "NaN") {
this.info = "-";
} else {
this.info = options.info;
}
} else {
this.info = "-";
}
this.time = options.time;
this.title = options.title;
this.type = options.type;
console.log("this.info", this.info);
this.disActive = options.dis ? options.dis : 0;
},
onShow() {
let that = this;
uni.setNavigationBarTitle({
title: that.title,
});
if (uni.getStorageSync("APPLY_OBJ")) {
let applyInfo = uni.getStorageSync("APPLY_OBJ");
this.applyInfo = {
orderId: applyInfo.id,
relationId: applyInfo.relationId,
applyUserId: applyInfo.applyUserId,
agencyReturnFee: applyInfo.agencyReturnFee / 100,
agencyReturnFeeType: applyInfo.agencyReturnFeeType === "" ? 0 : applyInfo.agencyReturnFeeType,
agencyReturnFeeDesp: applyInfo.agencyReturnFeeDesp,
policyIdx: applyInfo.policyIdx,
interviewDesp: applyInfo.interviewDesp,
employeeSalary: applyInfo.employeeSalary,
version: applyInfo.version,
globalText: "",
}; };
if (this.title == "其他说明") { },
that.applyInfo.globalText = that.applyInfo.interviewDesp; onReady() {
} else if (this.title == "职位说明") { console.log(uni.getSystemInfoSync().windowHeight - 145);
that.applyInfo.globalText = that.applyInfo.employeeSalary; this.pheight = uni.getSystemInfoSync().windowHeight;
} else if (this.title == "代理费详情") { this.height = (uni.getSystemInfoSync().windowHeight - 145) * 2;
that.applyInfo.globalText = that.applyInfo.agencyReturnFeeDesp; },
onLoad(options) {
let str = "";
if (options.info) {
if (options.info == "undefined" || options.info == "null" || options.info == "NaN") {
this.info = "-";
} else {
this.info = options.info;
}
} else {
this.info = "-";
} }
console.log("this.applyInfo", this.applyInfo); this.time = options.time;
} this.title = options.title;
}, this.type = options.type;
onUnload() { console.log("this.info", this.info);
console.log("onUnload"); this.disActive = options.dis ? options.dis : 0;
uni.removeStorageSync("APPLY_OBJ"); },
}, onShow() {
methods: {
goReturn() {
let that = this; let that = this;
if (this.title == "其他说明") { uni.setNavigationBarTitle({
that.applyInfo.interviewDesp = that.applyInfo.globalText; title: that.title,
} else if (this.title == "职位说明") { });
that.applyInfo.employeeSalary = that.applyInfo.globalText; if (uni.getStorageSync("APPLY_OBJ")) {
} else if (this.title == "代理费详情") { let applyInfo = uni.getStorageSync("APPLY_OBJ");
that.applyInfo.agencyReturnFeeDesp = that.applyInfo.globalText; this.applyInfo = {
} orderId: applyInfo.id,
delete that.applyInfo.globalText; relationId: applyInfo.relationId,
that.G.Post( applyUserId: applyInfo.applyUserId,
that.api.order_update_detail, agencyReturnFee: applyInfo.agencyReturnFee / 100,
{ agencyReturnFeeType: applyInfo.agencyReturnFeeType === "" ? 0 : applyInfo.agencyReturnFeeType,
...that.applyInfo, agencyReturnFeeDesp: applyInfo.agencyReturnFeeDesp,
agencyReturnFee: that.applyInfo.agencyReturnFee * 100, policyIdx: applyInfo.policyIdx,
}, interviewDesp: applyInfo.interviewDesp,
(res) => { employeeSalary: applyInfo.employeeSalary,
console.log("res", res); version: applyInfo.version,
uni.navigateBack(); globalText: "",
};
if (this.title == "其他说明") {
that.applyInfo.globalText = that.applyInfo.interviewDesp;
} else if (this.title == "职位说明") {
that.applyInfo.globalText = that.applyInfo.employeeSalary;
} else if (this.title == "代理费详情") {
that.applyInfo.globalText = that.applyInfo.agencyReturnFeeDesp;
} }
); console.log("this.applyInfo", this.applyInfo);
}
}, },
goBack() { onUnload() {
uni.navigateBack(); console.log("onUnload");
uni.removeStorageSync("APPLY_OBJ");
}, },
changeDis(e) { methods: {
let that = this; goReturn() {
this.applyInfo.agencyReturnFeeType = e.id; let that = this;
if (this.title == "其他说明") {
that.applyInfo.interviewDesp = that.applyInfo.globalText;
} else if (this.title == "职位说明") {
that.applyInfo.employeeSalary = that.applyInfo.globalText;
} else if (this.title == "代理费详情") {
that.applyInfo.agencyReturnFeeDesp = that.applyInfo.globalText;
}
delete that.applyInfo.globalText;
that.G.Post(
that.api.order_update_detail, {
...that.applyInfo,
agencyReturnFee: that.applyInfo.agencyReturnFee * 100,
},
(res) => {
console.log("res", res);
uni.navigateBack();
}
);
},
goBack() {
uni.navigateBack();
},
changeDis(e) {
let that = this;
this.applyInfo.agencyReturnFeeType = e.id;
},
}, },
}, };
};
</script> </script>
<style lang="less"> <style lang="less">
.p-root-detail-job-desq { .p-root-detail-job-desq {
.menu-btn { .menu-btn {
margin-right: 8px; margin-right: 8px;
.btn { .btn {
background: rgba(204, 204, 204, 0.2); background: rgba(204, 204, 204, 0.2);
border: 1rpx solid transparent; border: 1rpx solid transparent;
color: #666666; color: #666666;
white-space: nowrap; white-space: nowrap;
} }
&:first-child { &:first-child {
margin-left: 12px; margin-left: 12px;
}
} }
}
.menu-active { .menu-active {
.btn { .btn {
background: rgba(0, 182, 102, 0.1); background: rgba(0, 182, 102, 0.1);
border: 1rpx solid #6a81ff; border: 1rpx solid #6a81ff;
color: #6a81ff; color: #6a81ff;
}
} }
} }
}
</style> </style>
Loading…
Cancel
Save