This commit is contained in:
cclu 2025-01-25 17:42:05 +08:00
parent c8aa5edef1
commit a1908a2aad
4 changed files with 577 additions and 297 deletions

Binary file not shown.

View File

@ -110,13 +110,38 @@
</view> </view>
<view class="contentTextBox" v-if="detailInfo.BillState !== 1"> <view class="contentTextBox" v-if="detailInfo.BillState !== 1">
<textarea v-model="desc"></textarea> <textarea
v-model="desc"
:disabled="detailInfo.BillState === 1"
></textarea>
</view>
<view class="contain" v-if="detailObj.APPLYAPPROVE_ID">
<view class="box">
<view class="store">
<view class="left">
<image class="img" src="/static/images/right-ico.png"></image>
</view>
<view class="right">
<view class="top">
<p class="storeText">
{{ detailObj.APPLYAPPROVE_NAME }}
{{ detailObj.STAFF_NAME.split("【")[0] }}
</p>
<p class="storeTextRight">
{{ detailObj.APPLYAPPROVE_INFO }}
</p>
</view>
<span class="other">{{ detailObj.APPLYAPPROVE_DATE }}</span>
</view>
</view>
</view>
</view> </view>
<view class="bottomBtn" v-if="detailInfo.BillState !== 1"> <view class="bottomBtn" v-if="detailInfo.BillState !== 1">
<button class="btn change" @click="handleBillLading">发起提单</button> <button class="btn change" @click="handleBillLading">发起提单</button>
</view> </view>
<view class="bottomBtn" v-if="detailInfo.BillState === 1"> <!-- <view class="bottomBtn" v-if="detailInfo.BillState === 1">
<button <button
:style="{ :style="{
background: '#e0ba98', background: '#e0ba98',
@ -125,7 +150,7 @@
> >
已发起 已发起
</button> </button>
</view> </view> -->
</view> </view>
</view> </view>
</template> </template>
@ -137,6 +162,9 @@ export default {
menu: {}, // menu: {}, //
detailInfo: {}, // detailInfo: {}, //
desc: "项目结算完成,发起提单审批流程", // desc: "项目结算完成,发起提单审批流程", //
isPush: false, //
selectId: "",
detailObj: {}, //
}; };
}, },
@ -149,9 +177,14 @@ export default {
}, },
onLoad(query) { onLoad(query) {
this.menu = uni.getMenuButtonBoundingClientRect(); this.menu = uni.getMenuButtonBoundingClientRect();
//
if (query.ispush) {
this.isPush = true;
}
// id // id
if (query.id) { if (query.id) {
console.log("query.id", query.id); console.log("query.id", query.id);
this.selectId = query.id;
this.handleGetDetail(query.id); this.handleGetDetail(query.id);
} }
}, },
@ -184,6 +217,10 @@ export default {
} }
console.log("this.detailInfo ", this.detailInfo); console.log("this.detailInfo ", this.detailInfo);
if (this.detailInfo.BillState === 1) {
this.handleGetProgressList();
}
// let req = { // let req = {
// BUSINESSAPPROVALId: id, // BUSINESSAPPROVALId: id,
// }; // };
@ -198,10 +235,17 @@ export default {
uni.hideLoading(); uni.hideLoading();
}, },
// //
//
handleBack() { handleBack() {
if (this.isPush) {
uni.redirectTo({
url: "/pages/billOfLading/index",
});
} else {
uni.navigateBack({ uni.navigateBack({
delta: 1, delta: 1,
}); });
}
}, },
// //
async handleBillLading() { async handleBillLading() {
@ -231,7 +275,7 @@ export default {
}); });
let _this = this; let _this = this;
setTimeout(() => { setTimeout(() => {
_this.handleGetDetail(_this.BUSINESSAPPROVAL_ID); _this.handleGetDetail(_this.detailInfo.BusinessApproval_ID);
}, 2000); }, 2000);
// if (data.Result_Code === 100) { // if (data.Result_Code === 100) {
@ -242,6 +286,19 @@ export default {
// }); // });
// } // }
}, },
//
async handleGetProgressList() {
const data = await this.$request.$webGet(
"EShangApiMain/BusinessProcess/GetBUSINESSAPPROVALDetail",
{ BUSINESSAPPROVALId: this.selectId }
);
let list = data.Result_Data.approveList;
if (list && list.length > 0) {
let obj = list[list.length - 1];
this.detailObj = obj;
console.log("this.detailObj", this.detailObj);
}
},
}, },
}; };
</script> </script>
@ -439,6 +496,85 @@ export default {
padding: 16px; padding: 16px;
} }
.contain {
width: 100%;
background: #fff;
border-radius: 8px;
box-sizing: border-box;
padding: 16px;
margin-top: 16px;
display: flex;
.img {
width: 32px;
height: 32px;
}
.text {
margin-left: 8px;
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #160002;
line-height: 24px;
margin-bottom: 8px;
}
.strong {
font-size: 18px;
color: rgba(125, 86, 50, 1);
font-weight: 600;
margin: 0 4px;
}
.box {
width: 100%;
.store {
width: 100%;
display: flex;
margin-bottom: 10px;
.left {
width: 32px;
.img {
width: 20px;
height: 20px;
margin-top: 3px;
}
}
.right {
flex: 1;
width: 100%;
display: inline-block;
.top {
.storeText {
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #160002;
line-height: 24px;
white-space: nowrap;
}
.storeTextRight {
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #160002;
line-height: 24px;
width: 100%;
text-align: right;
}
}
}
.other {
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #160002;
line-height: 24px;
display: inline-block;
width: 100%;
text-align: right;
}
}
}
}
.bottomBtn { .bottomBtn {
width: 100%; width: 100%;
box-sizing: border-box; box-sizing: border-box;

View File

@ -696,15 +696,20 @@ export default {
let startIndex = 0; let startIndex = 0;
let endIndex = 0; let endIndex = 0;
if (dataObj && dataObj.curList && dataObj.curList.length > 0) { if (dataObj && dataObj.curList && dataObj.curList.length > 0) {
console.log("dataObj.curList", dataObj.curList);
dataObj.curList.forEach((item) => { dataObj.curList.forEach((item) => {
realCurList.push(Number(item.value));
curListList.push(Number(item.value) / 10000);
const date = new Date(item.name); const date = new Date(item.name);
let m = date.getMonth() + 1; let m = date.getMonth() + 1;
let d = date.getDate(); let d = date.getDate();
let dateText = `${m}.${d}`; let dateText = `${m}.${d}`;
item.easyDate = dateText; item.easyDate = dateText;
if (
new Date(item.name).getTime() < new Date(this.lastDay).getTime()
) {
realCurList.push(Number(item.value));
curListList.push(Number(item.value) / 10000);
curDateList.push(moment(item.name).format("YYYY-MM-DD")); curDateList.push(moment(item.name).format("YYYY-MM-DD"));
}
}); });
// if (dataObj.curHoliday.indexOf("-") === -1) { // if (dataObj.curHoliday.indexOf("-") === -1) {

View File

@ -1,95 +1,202 @@
<template> <template>
<view class="page-body" > <view class="page-body">
<!-- <image class="bg" src="https://eshangtech.com/ShopICO/yxcl/projectWarning/bg.svg"></image>--> <!-- <image class="bg" src="https://eshangtech.com/ShopICO/yxcl/projectWarning/bg.svg"></image>-->
<view class="header" :style="{height: menu.bottom + 'px' }"> <view class="header" :style="{ height: menu.bottom + 'px' }">
<image @click="handleBack" class="allowLeft" :style="{top: menu.top +((menu.height - 24) / 2) + 'px'}" src="https://eshangtech.com/ShopICO/ahyd-BID/examine/leftArrowWhite.svg"></image> <image
@click="handleBack"
class="allowLeft"
:style="{ top: menu.top + (menu.height - 24) / 2 + 'px' }"
src="https://eshangtech.com/ShopICO/ahyd-BID/examine/leftArrowWhite.svg"
></image>
</view> </view>
<p class="title">分润比例切换</p> <p class="title">分润比例切换</p>
<view class="main"> <view class="main">
<view class="detail"> <view class="detail">
<view class="type">{{dataDetail.BUSINESS_TYPE===1000?'合作经营':dataDetail.BUSINESS_TYPE===2000?'固定租金':''}}</view> <view class="type">{{
dataDetail.BUSINESS_TYPE === 1000
? "合作经营"
: dataDetail.BUSINESS_TYPE === 2000
? "固定租金"
: ""
}}</view>
<view class="top"> <view class="top">
<view class="left"> <view class="left">
<image class="logo" :src="dataDetail.BUSINESSPROJECT_ICO?dataDetail.BUSINESSPROJECT_ICO:'https://eshangtech.com/ShopICO/yxcl/projectWarning/defaultImg.svg'"></image> <image
class="logo"
:src="
dataDetail.BUSINESSPROJECT_ICO
? dataDetail.BUSINESSPROJECT_ICO
: 'https://eshangtech.com/ShopICO/yxcl/projectWarning/defaultImg.svg'
"
></image>
</view> </view>
<view class="right"> <view class="right">
<p class="detailTitle">{{dataDetail.SERVERPARTSHOP_NAME}}</p> <p class="detailTitle">{{ dataDetail.SERVERPARTSHOP_NAME }}</p>
<view class="fixed" > <view class="fixed">
<image class="serviceFixed" src="https://eshangtech.com/ShopICO/yxcl/projectWarning/position.svg"></image> <image
<span class="service">{{dataDetail.SERVERPART_NAME}}</span> class="serviceFixed"
src="https://eshangtech.com/ShopICO/yxcl/projectWarning/position.svg"
></image>
<span class="service">{{ dataDetail.SERVERPART_NAME }}</span>
</view> </view>
<view class="other"> <view class="other">
<view class="item"> <view class="item">
<image class="icon" src="https://eshangtech.com/ShopICO/yxcl/projectWarning/user.svg"></image> <image
<span class="value">{{dataDetail.COOPMERCHANTS_LINKMAN || '-'}}</span> class="icon"
src="https://eshangtech.com/ShopICO/yxcl/projectWarning/user.svg"
></image>
<span class="value">{{
dataDetail.COOPMERCHANTS_LINKMAN || "-"
}}</span>
</view> </view>
<view class="item"> <view class="item">
<image class="icon" src="https://eshangtech.com/ShopICO/yxcl/projectWarning/phone.svg"></image> <image
<span class="value">{{dataDetail.COOPMERCHANTS_MOBILEPHONE || '-'}}</span> class="icon"
src="https://eshangtech.com/ShopICO/yxcl/projectWarning/phone.svg"
></image>
<span class="value">{{
dataDetail.COOPMERCHANTS_MOBILEPHONE || "-"
}}</span>
</view> </view>
</view> </view>
</view> </view>
</view> </view>
<view class="bottom"> <view class="bottom">
<view class="message"> <view class="message">
<image class="icon" src="https://eshangtech.com/ShopICO/yxcl/projectWarning/money.svg"></image> <image
class="icon"
src="https://eshangtech.com/ShopICO/yxcl/projectWarning/money.svg"
></image>
<span class="text">保底租金</span> <span class="text">保底租金</span>
<span class="money">{{dataDetail.MINTURNOVER || '-'}}</span> <span class="money">{{ dataDetail.MINTURNOVER || "-" }}</span>
</view> </view>
<view class="message" > <view class="message">
<image class="icon" src="https://eshangtech.com/ShopICO/yxcl/projectWarning/date.svg"></image> <image
class="icon"
src="https://eshangtech.com/ShopICO/yxcl/projectWarning/date.svg"
></image>
<span class="text">本期结算</span> <span class="text">本期结算</span>
<span class="money">{{dataDetail.STARTDATE || '-'}} - {{dataDetail.ENDDATE || '-'}}</span> <span class="money"
>{{ dataDetail.STARTDATE || "-" }} -
{{ dataDetail.ENDDATE || "-" }}</span
>
</view> </view>
<view class="message" style="margin-bottom: 0"> <view class="message" style="margin-bottom: 0">
<image class="icon" src="https://eshangtech.com/ShopICO/yxcl/projectWarning/date.svg"></image> <image
class="icon"
src="https://eshangtech.com/ShopICO/yxcl/projectWarning/date.svg"
></image>
<span class="text">合同期限</span> <span class="text">合同期限</span>
<span class="money">{{dataDetail.COMPACT_STARTDATE || '-'}} - {{dataDetail.COMPACT_ENDDATE || '-'}}</span> <span class="money"
>{{ dataDetail.COMPACT_STARTDATE || "-" }} -
{{ dataDetail.COMPACT_ENDDATE || "-" }}</span
>
</view> </view>
</view> </view>
</view> </view>
<view class="contain"> <view class="contain">
<image class="img" style="width: 32px;height: 32px" src="https://eshangtech.com/ShopICO/yxcl/projectWarning/question.svg"></image> <image
class="img"
style="width: 32px; height: 32px"
src="https://eshangtech.com/ShopICO/yxcl/projectWarning/question.svg"
></image>
<view> <view>
<view class="text"> <view class="text">
本项目驿达累计分润已达<span class="strong"><span clsas="strong" style="font-size: 14px"></span>{{ dataDetail.ROYALTY_PRICE|| '-' }}</span>,<br/> 本项目驿达累计分润已达<span class="strong"
<span v-if="dataDetail.EXPENSE_AMOUNT">其中已扣减水电物业费 ><span clsas="strong" style="font-size: 14px"></span
<span class="strong"><span clsas="strong" style="font-size: 14px"></span>{{$util.fmoney(dataDetail.EXPENSE_AMOUNT)}}</span>, >{{ dataDetail.ROYALTY_PRICE || "-" }}</span
</span><br/> >,<br />
<span v-if="dataDetail.EXPIREDAYS!==0">预计<span class="strong">{{ dataDetail.EXPIREDAYS|| '-' }}</span>后完成</span> <span v-if="dataDetail.EXPENSE_AMOUNT"
<span v-if="dataDetail.EXPIREDAYS===0" class="strong">已完成</span>保底 >其中已扣减水电物业费
<span class="strong"
><span clsas="strong" style="font-size: 14px"></span
>{{ $util.fmoney(dataDetail.EXPENSE_AMOUNT) }}</span
>, </span
><br />
<span v-if="dataDetail.EXPIREDAYS !== 0"
>预计<span class="strong">{{ dataDetail.EXPIREDAYS || "-" }}</span
>后完成</span
>
<span v-if="dataDetail.EXPIREDAYS === 0" class="strong">已完成</span
>保底
</view> </view>
<view class="text" :style="{marginBottom: dataDetail.PROJECTWARNING_STATE===2000?'8px':'0px'}"> <view
<span v-if="dataDetail.PROJECTWARNING_STATE===9000">{{dataDetail.PROJECTWARNING_DESC}}</span> class="text"
<span v-else>是否依合同将分润比例进行切换</span><br/> :style="{
驿达<span class="strong">{{YDValue|| '-'}}%</span>, marginBottom:
商家<span class="strong">{{SJValue|| '-'}}%</span> dataDetail.PROJECTWARNING_STATE === 2000 ? '8px' : '0px',
<span v-if="dataDetail.PROJECTWARNING_STATE>0&&dataDetail.PROJECTWARNING_STATE<9000"></span> }"
>
<span v-if="dataDetail.PROJECTWARNING_STATE === 9000"
>{{ dataDetail.PROJECTWARNING_DESC }}</span
>
<span v-else>是否依合同将分润比例进行切换</span><br />
驿达<span class="strong">{{ YDValue || "-" }}%</span>, 商家<span
class="strong"
>{{ SJValue || "-" }}%</span
>
<span
v-if="
dataDetail.PROJECTWARNING_STATE > 0 &&
dataDetail.PROJECTWARNING_STATE < 9000
"
></span
>
</view> </view>
<view v-if='dataDetail.PROJECTWARNING_STATE>0 && dataDetail.PROJECTWARNING_STATE<9000' class="text" style="margin-top: 8px" :style="{marginBottom: dataDetail.PROJECTWARNING_STATE===2000?'8px':'0px'}"> <view
<span>{{ `切换日期默认设定:` }}<span class="strong">{{configTime}}</span></span> v-if="
dataDetail.PROJECTWARNING_STATE > 0 &&
dataDetail.PROJECTWARNING_STATE < 9000
"
class="text"
style="margin-top: 8px"
:style="{
marginBottom:
dataDetail.PROJECTWARNING_STATE === 2000 ? '8px' : '0px',
}"
>
<span
>{{ `切换日期默认设定:`
}}<span class="strong">{{ configTime }}</span></span
>
</view> </view>
</view> </view>
</view> </view>
<view class="contain" v-if="storeList.length && storeList.length>0"> <view class="contain" v-if="storeList.length && storeList.length > 0">
<view class="box"> <view class="box">
<view class="store" v-for="(item,index) in storeList" :key="index" :style="{marginBottom:index + 1 === storeList.length?'0px':'10px'}"> <view
class="store"
v-for="(item, index) in storeList"
:key="index"
:style="{
marginBottom: index + 1 === storeList.length ? '0px' : '10px',
}"
>
<view class="left"> <view class="left">
<image class="img" :src="item.APPROVED_TYPE!==9999?'/static/images/right-ico.png':'/static/images/wrong-ico.png'"></image> <image
class="img"
:src="
item.APPROVED_TYPE !== 9999
? '/static/images/right-ico.png'
: '/static/images/wrong-ico.png'
"
></image>
</view> </view>
<view class="right"> <view class="right">
<view class="top"> <view class="top">
<p class="storeText">{{item.APPROVED_NAME}}</p> <p class="storeText">{{ item.APPROVED_NAME }}</p>
<p class="storeText">{{item.APPROVED_STAFF}}{{item.APPROVED_INFO}}</p> <p class="storeText">
{{ item.APPROVED_STAFF }}{{ item.APPROVED_INFO }}
</p>
</view> </view>
<span class="other">{{item.APPROVED_DATE}}</span> <span class="other">{{ item.APPROVED_DATE }}</span>
</view> </view>
</view> </view>
</view> </view>
</view> </view>
</view> </view>
<view class="bottomBtn" v-if="dataDetail.DealMark===0"> <view class="bottomBtn" v-if="dataDetail.DealMark === 0">
<button class="btn change" @click="handleChange">切换比例</button> <button class="btn change" @click="handleChange">切换比例</button>
<button class="btn" @click="handleNoChange">暂不切换</button> <button class="btn" @click="handleNoChange">暂不切换</button>
</view> </view>
@ -101,165 +208,186 @@ import Store from "../../store/store";
export default { export default {
data() { data() {
return { return {
PROJECTWARNING_ID:'', PROJECTWARNING_ID: "",
dataDetail:{}, dataDetail: {},
inputValue:'',// inputValue: "", //
useDate:{}, useDate: {},
YDValue:'',// 驿 YDValue: "", // 驿
SJValue:'',// SJValue: "", //
statusBarHeight:'', statusBarHeight: "",
menu:'', menu: "",
time:'',// time: "", //
desc:[],// desc: [], //
type:true,// type: true, //
storeList:[],// storeList: [], //
configTime:'' configTime: "",
} };
}, },
onLoad(query){ onLoad(query) {
// //
let systemInfo = uni.getSystemInfoSync() let systemInfo = uni.getSystemInfoSync();
this.statusBarHeight = Number(systemInfo.statusBarHeight) this.statusBarHeight = Number(systemInfo.statusBarHeight);
this.menu = uni.getMenuButtonBoundingClientRect() this.menu = uni.getMenuButtonBoundingClientRect();
this.PROJECTWARNING_ID = query.id this.PROJECTWARNING_ID = query.id;
this.handleGetDetail() this.handleGetDetail();
this.useDate = Store.state.userData this.useDate = Store.state.userData;
if (query.type==='no'){ if (query.type === "no") {
this.type = false this.type = false;
} }
this.handleStore() this.handleStore();
const date= new Date() const date = new Date();
let m = date.getMonth() + 1 let m = date.getMonth() + 1;
if (m === 12){ if (m === 12) {
m = 1 m = 1;
}else{ } else {
m = m + 1 m = m + 1;
} }
this.configTime = `${m}月1日0点` this.configTime = `${m}月1日0点`;
}, },
// //
onUnload() { onUnload() {
// //
this.$util.addUserBehavior() this.$util.addUserBehavior();
}, },
methods:{ methods: {
// //
handleGetDetail(){ handleGetDetail() {
uni.showLoading({ uni.showLoading({
title:'正在加载' title: "正在加载",
});
this.$request
.$webGet("EShangApiMain/BusinessProject/GetPROJECTWARNINGDetail", {
PROJECTWARNINGId: this.PROJECTWARNING_ID,
}) })
this.$request.$webGet('EShangApiMain/BusinessProject/GetPROJECTWARNINGDetail',{ .then((res) => {
PROJECTWARNINGId:this.PROJECTWARNING_ID uni.hideLoading();
}).then(res=>{ this.dataDetail = res.Result_Data;
uni.hideLoading()
this.dataDetail = res.Result_Data
// //
for (let key in this.dataDetail){ for (let key in this.dataDetail) {
if (key==='REVENUEDAILY_AMOUNT' || key==='REVENUE_AMOUNT' || key==='ROYALTY_PRICE' || key==='SUBROYALTY_PRICE' || key==='TICKET_FEE' || key==='MINTURNOVER'){ if (
this.dataDetail[key] = this.$util.fmoney(this.dataDetail[key]) key === "REVENUEDAILY_AMOUNT" ||
key === "REVENUE_AMOUNT" ||
key === "ROYALTY_PRICE" ||
key === "SUBROYALTY_PRICE" ||
key === "TICKET_FEE" ||
key === "MINTURNOVER"
) {
this.dataDetail[key] = this.$util.fmoney(this.dataDetail[key]);
} }
} }
this.YDValue = this.dataDetail.MerchantRatio.split(':')[0] this.YDValue = this.dataDetail.MerchantRatio.split(":")[0];
this.SJValue = this.dataDetail.MerchantRatio.split(':')[1] this.SJValue = this.dataDetail.MerchantRatio.split(":")[1];
if (this.dataDetail.PROJECTWARNING_DESC){ if (this.dataDetail.PROJECTWARNING_DESC) {
this.time = this.dataDetail.PROJECTWARNING_DESC.split('【')[1].split('】')[0] this.time =
this.desc[0] = this.dataDetail.PROJECTWARNING_DESC.split('【')[0] this.dataDetail.PROJECTWARNING_DESC.split("【")[1].split("】")[0];
this.desc[1] = this.dataDetail.PROJECTWARNING_DESC.split('【')[1].split('')[1] this.desc[0] = this.dataDetail.PROJECTWARNING_DESC.split("【")[0];
this.desc[1] =
this.dataDetail.PROJECTWARNING_DESC.split("【")[1].split("")[1];
} }
}) });
}, },
handleStore(){ handleStore() {
this.$request.$webPost('EShangApiMain/BusinessProject/GetAPPROVEDList',{ this.$request
SearchParameter:{ .$webPost("EShangApiMain/BusinessProject/GetAPPROVEDList", {
SearchParameter: {
TABLE_ID: this.PROJECTWARNING_ID, TABLE_ID: this.PROJECTWARNING_ID,
TABLE_NAME: "T_PROJECTWARNING" TABLE_NAME: "T_PROJECTWARNING",
}, },
PageIndex: 1, PageIndex: 1,
PageSiz: 99, PageSiz: 99,
SortStr: "APPROVED_DATE desc" SortStr: "APPROVED_DATE desc",
}).then(res=>{
this.storeList = res.Result_Data.List
}) })
.then((res) => {
this.storeList = res.Result_Data.List;
console.log("this.storeList", this.storeList);
});
}, },
// //
handleNoChange(){ handleNoChange() {
let _this = this let _this = this;
uni.showModal({ uni.showModal({
title: '是否暂不切换分润比例?', title: "是否暂不切换分润比例?",
success: function (res) { success: function (res) {
if (res.confirm) { if (res.confirm) {
uni.showLoading({ uni.showLoading({
title:'正在加载' title: "正在加载",
}) });
_this.$request.$webGet('EShangApiMain/BusinessProject/ApproveProinst',{ _this.$request
.$webGet("EShangApiMain/BusinessProject/ApproveProinst", {
BusinessId: _this.PROJECTWARNING_ID, // BusinessId: _this.PROJECTWARNING_ID, //
StaffId:_this.useDate.UserId,// StaffId: _this.useDate.UserId, //
StaffName:_this.useDate.UserName,// StaffName: _this.useDate.UserName, //
SwitchRate:_this.dataDetail.ROYALTY_RATE * 100,// SwitchRate: _this.dataDetail.ROYALTY_RATE * 100, //
ApproveState:'9999',// ApproveState: "9999", //
}).then(res=>{ })
uni.hideLoading() .then((res) => {
uni.hideLoading();
uni.showToast({ uni.showToast({
title: res.Result_Desc, title: res.Result_Desc,
icon: 'none' icon: "none",
}) });
_this.handleGetDetail() _this.handleGetDetail();
uni.navigateBack({ uni.navigateBack({
delta: 1 delta: 1,
}) });
}) });
}
} }
},
}); });
}, },
// //
handleChange(){ handleChange() {
let _this = this let _this = this;
uni.showModal({ uni.showModal({
title: '是否切换分润比例?', title: "是否切换分润比例?",
success: function (res) { success: function (res) {
if (res.confirm) { if (res.confirm) {
uni.showLoading({ uni.showLoading({
title:'正在加载' title: "正在加载",
}) });
_this.$request.$webGet('EShangApiMain/BusinessProject/ApproveProinst',{ _this.$request
.$webGet("EShangApiMain/BusinessProject/ApproveProinst", {
BusinessId: _this.PROJECTWARNING_ID, // BusinessId: _this.PROJECTWARNING_ID, //
StaffId:_this.useDate.UserId,// StaffId: _this.useDate.UserId, //
StaffName:_this.useDate.UserName,// StaffName: _this.useDate.UserName, //
SwitchRate:_this.dataDetail.ROYALTY_CRATE,// SwitchRate: _this.dataDetail.ROYALTY_CRATE, //
ApproveState:_this.dataDetail.PROJECTWARNING_STATE===1000?'2000':'9000',// ApproveState:
}).then(res=>{ _this.dataDetail.PROJECTWARNING_STATE === 1000
uni.hideLoading() ? "2000"
if (_this.dataDetail.PROJECTWARNING_STATE===1000){ : "9000", //
_this.handleBack() })
.then((res) => {
uni.hideLoading();
if (_this.dataDetail.PROJECTWARNING_STATE === 1000) {
_this.handleBack();
} }
uni.showToast({ uni.showToast({
title: res.Result_Desc, title: res.Result_Desc,
icon: 'none' icon: "none",
}) });
_this.handleGetDetail() _this.handleGetDetail();
}) });
}
} }
},
}); });
}, },
handleBack(){ handleBack() {
if (this.type){ if (this.type) {
uni.redirectTo({ uni.redirectTo({
url: '/pages/projectWarning/index' url: "/pages/projectWarning/index",
}); });
}else{ } else {
uni.navigateBack({ uni.navigateBack({
delta:1 delta: 1,
}); });
} }
} },
} },
} };
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
@import '/static/public/font/stylesheet.css'; @import "/static/public/font/stylesheet.css";
.page-body { .page-body {
width: 100vw; width: 100vw;
min-height: 100vh; min-height: 100vh;
@ -274,75 +402,87 @@ export default {
// top: 0;left: 0; // top: 0;left: 0;
// z-index: 1; // z-index: 1;
//} //}
.header{ .header {
width: 100%; width: 100%;
box-sizing: border-box; box-sizing: border-box;
padding: 0 16px; padding: 0 16px;
position: relative; position: relative;
margin-top: 0; margin-top: 0;
z-index:222; z-index: 222;
.allowLeft{ .allowLeft {
position: absolute; position: absolute;
width: 24px; width: 24px;
height: 24px; height: 24px;
left: 16px; left: 16px;
} }
} }
.title{ .title {
font-size: 28px; font-size: 28px;
font-family: Alimama ShuHeiTi; font-family: Alimama ShuHeiTi;
color: #160002; color: #160002;
line-height: 39px; line-height: 39px;
margin: 18px 0 16px 16px; margin: 18px 0 16px 16px;
background: linear-gradient(180deg, #C25E18 30%, #8C4917 100%); background: linear-gradient(180deg, #c25e18 30%, #8c4917 100%);
-webkit-background-clip: text; -webkit-background-clip: text;
-webkit-text-fill-color: transparent; -webkit-text-fill-color: transparent;
} }
.main{ .main {
width: 100%; width: 100%;
box-sizing: border-box; box-sizing: border-box;
padding: 0 16px 95px; padding: 0 16px 95px;
.detail{ .detail {
width: 100%; width: 100%;
box-sizing: border-box; box-sizing: border-box;
background: linear-gradient(314deg, #FFFCF3 0%, #FFF0E6 20%, #FFF9F5 51%, #FFF8E7 73%, #FFF6EE 100%); background: linear-gradient(
314deg,
#fffcf3 0%,
#fff0e6 20%,
#fff9f5 51%,
#fff8e7 73%,
#fff6ee 100%
);
border-radius: 8px; border-radius: 8px;
padding: 16px; padding: 16px;
position: relative; position: relative;
.type{ .type {
position: absolute; position: absolute;
right: 0; right: 0;
top: 16px; top: 16px;
background: linear-gradient(270deg, #F8D792 0%, #FFE6B2 50%, #FBC13B 100%); background: linear-gradient(
270deg,
#f8d792 0%,
#ffe6b2 50%,
#fbc13b 100%
);
border-radius: 10px 0 0 2px; border-radius: 10px 0 0 2px;
padding:2px 8px; padding: 2px 8px;
font-size: 14px; font-size: 14px;
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
font-weight: 400; font-weight: 400;
color: #604128; color: #604128;
line-height: 20px; line-height: 20px;
} }
.top{ .top {
width: 100%; width: 100%;
height: 168rpx; height: 168rpx;
display: flex; display: flex;
.left{ .left {
width: 168rpx; width: 168rpx;
height: 168rpx; height: 168rpx;
margin-right: 12px; margin-right: 12px;
border-radius: 8px; border-radius: 8px;
overflow: hidden; overflow: hidden;
.logo{ .logo {
width: 168rpx; width: 168rpx;
height: 168rpx; height: 168rpx;
} }
} }
.right{ .right {
//display: flex; //display: flex;
//flex-direction: column; //flex-direction: column;
//justify-content: space-between; //justify-content: space-between;
//align-items: flex-start; //align-items: flex-start;
.detailTitle{ .detailTitle {
font-size: 36rpx; font-size: 36rpx;
font-family: PingFangSC-Semibold, PingFang SC; font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600; font-weight: 600;
@ -350,7 +490,7 @@ export default {
margin-bottom: 12rpx; margin-bottom: 12rpx;
line-height: 56rpx; line-height: 56rpx;
} }
.fixed{ .fixed {
height: 24px; height: 24px;
line-height: 24px; line-height: 24px;
padding: 1px 4px; padding: 1px 4px;
@ -359,34 +499,34 @@ export default {
border-radius: 4px; border-radius: 4px;
display: inline-block; display: inline-block;
margin-bottom: 12rpx; margin-bottom: 12rpx;
.serviceFixed{ .serviceFixed {
width: 20rpx; width: 20rpx;
height: 24rpx; height: 24rpx;
margin-right: 8rpx; margin-right: 8rpx;
line-height: 24px; line-height: 24px;
} }
.service{ .service {
font-size: 28rpx; font-size: 28rpx;
font-family: PingFangSC-Semibold, PingFang SC; font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600; font-weight: 600;
color: #6C492A; color: #6c492a;
line-height: 40rpx; line-height: 40rpx;
} }
} }
.other{ .other {
width: 100%; width: 100%;
display: flex; display: flex;
align-items: center; align-items: center;
.item{ .item {
display: flex; display: flex;
align-items: center; align-items: center;
margin-right: 16px; margin-right: 16px;
.icon{ .icon {
width: 16px; width: 16px;
height: 16px; height: 16px;
margin-right: 6px; margin-right: 6px;
} }
.value{ .value {
font-size: 28rpx; font-size: 28rpx;
font-family: PingFangSC-Regular, PingFang SC; font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400; font-weight: 400;
@ -398,38 +538,38 @@ export default {
} }
} }
} }
.bottom{ .bottom {
margin-top: 24px; margin-top: 24px;
.message{ .message {
width: 100%; width: 100%;
display: flex; display: flex;
align-items: center; align-items: center;
margin-bottom: 8px; margin-bottom: 8px;
.icon{ .icon {
width: 16px; width: 16px;
height: 16px; height: 16px;
margin-right: 8px; margin-right: 8px;
} }
.text{ .text {
font-size: 14px; font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC; font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400; font-weight: 400;
color: #786B6C; color: #786b6c;
line-height: 20px; line-height: 20px;
margin-right: 8px; margin-right: 8px;
} }
.money{ .money {
font-size: 14px; font-size: 14px;
font-family: PingFangSC-Semibold, PingFang SC; font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600; font-weight: 600;
color: #7D5632; color: #7d5632;
line-height: 20px; line-height: 20px;
} }
} }
} }
} }
} }
.contain{ .contain {
width: 100%; width: 100%;
background: #fff; background: #fff;
border-radius: 8px; border-radius: 8px;
@ -437,11 +577,11 @@ export default {
padding: 16px; padding: 16px;
margin-top: 16px; margin-top: 16px;
display: flex; display: flex;
.img{ .img {
width: 32px; width: 32px;
height: 32px; height: 32px;
} }
.text{ .text {
margin-left: 8px; margin-left: 8px;
font-size: 14px; font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC; font-family: PingFangSC-Regular, PingFang SC;
@ -450,34 +590,34 @@ export default {
line-height: 24px; line-height: 24px;
margin-bottom: 8px; margin-bottom: 8px;
} }
.strong{ .strong {
font-size: 18px; font-size: 18px;
color: rgba(125, 86, 50, 1); color: rgba(125, 86, 50, 1);
font-weight: 600; font-weight: 600;
margin: 0 4px; margin: 0 4px;
} }
.box{ .box {
width: 100%; width: 100%;
.store{ .store {
width: 100%; width: 100%;
display: flex; display: flex;
margin-bottom: 10px; margin-bottom: 10px;
.left{ .left {
width: 32px; width: 32px;
.img{ .img {
width: 20px; width: 20px;
height: 20px; height: 20px;
margin-top: 3px; margin-top: 3px;
} }
} }
.right{ .right {
flex: 1; flex: 1;
width: 100%; width: 100%;
display: inline-block; display: inline-block;
.top{ .top {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
.storeText{ .storeText {
font-size: 14px; font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC; font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400; font-weight: 400;
@ -487,7 +627,7 @@ export default {
} }
} }
} }
.other{ .other {
font-size: 14px; font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC; font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400; font-weight: 400;
@ -500,7 +640,7 @@ export default {
} }
} }
} }
.bottomBtn{ .bottomBtn {
width: 100%; width: 100%;
height: 92px; height: 92px;
box-sizing: border-box; box-sizing: border-box;
@ -510,23 +650,22 @@ export default {
background: #fff; background: #fff;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
.btn{ .btn {
width: calc((100% - 16px)/2); width: calc((100% - 16px) / 2);
height: 41px; height: 41px;
background: rgba(125, 86, 50, 0.1); background: rgba(125, 86, 50, 0.1);
border-radius: 4px; border-radius: 4px;
font-size: 16px; font-size: 16px;
font-family: PingFangSC-Medium, PingFang SC; font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500; font-weight: 500;
color: #6D5F5E; color: #6d5f5e;
opacity: 0.6; opacity: 0.6;
} }
.change{ .change {
background: #7D5632; background: #7d5632;
color: #FEFFFF; color: #feffff;
opacity: 1; opacity: 1;
} }
} }
} }
</style> </style>