update
This commit is contained in:
parent
c8aa5edef1
commit
a1908a2aad
BIN
ahyd_DIB.zip
BIN
ahyd_DIB.zip
Binary file not shown.
@ -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;
|
||||||
|
|||||||
@ -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) {
|
||||||
|
|||||||
@ -2,86 +2,193 @@
|
|||||||
<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
|
||||||
|
class="serviceFixed"
|
||||||
|
src="https://eshangtech.com/ShopICO/yxcl/projectWarning/position.svg"
|
||||||
|
></image>
|
||||||
<span class="service">{{ dataDetail.SERVERPART_NAME }}</span>
|
<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"
|
||||||
|
:style="{
|
||||||
|
marginBottom:
|
||||||
|
dataDetail.PROJECTWARNING_STATE === 2000 ? '8px' : '0px',
|
||||||
|
}"
|
||||||
|
>
|
||||||
|
<span v-if="dataDetail.PROJECTWARNING_STATE === 9000"
|
||||||
|
>{{ dataDetail.PROJECTWARNING_DESC }}:</span
|
||||||
|
>
|
||||||
<span v-else>是否依合同将分润比例进行切换:</span><br />
|
<span v-else>是否依合同将分润比例进行切换:</span><br />
|
||||||
驿达<span class="strong">{{YDValue|| '-'}}%</span>,
|
驿达<span class="strong">{{ YDValue || "-" }}%</span>, 商家<span
|
||||||
商家<span class="strong">{{SJValue|| '-'}}%</span>
|
class="strong"
|
||||||
<span v-if="dataDetail.PROJECTWARNING_STATE>0&&dataDetail.PROJECTWARNING_STATE<9000">?</span>
|
>{{ 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>
|
||||||
@ -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
|
||||||
|
.$webPost("EShangApiMain/BusinessProject/GetAPPROVEDList", {
|
||||||
SearchParameter: {
|
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"
|
||||||
|
: "9000", // 审批状态
|
||||||
|
})
|
||||||
|
.then((res) => {
|
||||||
|
uni.hideLoading();
|
||||||
if (_this.dataDetail.PROJECTWARNING_STATE === 1000) {
|
if (_this.dataDetail.PROJECTWARNING_STATE === 1000) {
|
||||||
_this.handleBack()
|
_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;
|
||||||
@ -294,7 +422,7 @@ export default {
|
|||||||
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;
|
||||||
}
|
}
|
||||||
@ -305,7 +433,14 @@ export default {
|
|||||||
.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;
|
||||||
@ -313,7 +448,12 @@ export default {
|
|||||||
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;
|
||||||
@ -369,7 +509,7 @@ export default {
|
|||||||
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -414,7 +554,7 @@ export default {
|
|||||||
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;
|
||||||
}
|
}
|
||||||
@ -422,7 +562,7 @@ export default {
|
|||||||
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -518,15 +658,14 @@ export default {
|
|||||||
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>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user