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