Commit de39528b authored by chuan.liu's avatar chuan.liu

违约查询 地址填写新增+联调

parent 8791c116
...@@ -116,13 +116,13 @@ ...@@ -116,13 +116,13 @@
"changeOrigin": true "changeOrigin": true
}, },
"/wmdpwebservices": { "/wmdpwebservices": {
"target": "http://221.10.127.60:5000/sczx", // "target": "http://221.10.127.60:5000/sczx",
// "target": "https://10.0.134.182:9002", "target": "https://10.0.134.182:9002",
"changeOrigin": true "changeOrigin": true
}, },
"/adapter": { "/adapter": {
// "target": "http://221.10.127.60:5000/cyj", "target": "http://221.10.127.60:5000/cyj",
"target": "http://api.c0331.dev.guanyingyun.com", // "target": "http://api.c0331.dev.guanyingyun.com",
"changeOrigin": true "changeOrigin": true
} }
} }
......
...@@ -790,6 +790,38 @@ ...@@ -790,6 +790,38 @@
// "enablePullDownRefresh": true // "enablePullDownRefresh": true
} }
}, },
{
"path": "pages/breakwords-mission-receiver/breakwords-mission-receiver",
"style": {
"app-plus": {
"titleNView": {
"titleAlign": "left",
"titleColor": "#333",
"titleSize": "17px",
"backgroundColor": "transparent",
"titleText": "收货地址",
"autoBackButton": true
}
}
// "enablePullDownRefresh": true
}
},
{
"path": "pages/breakwords-mission-confirm/breakwords-mission-confirm",
"style": {
"app-plus": {
"titleNView": {
"titleAlign": "left",
"titleColor": "#333",
"titleSize": "17px",
"backgroundColor": "transparent",
"titleText": "确认收货 ",
"autoBackButton": true
}
}
// "enablePullDownRefresh": true
}
},
{ {
"path": "pages/breakwords-handle/breakwords-handle", "path": "pages/breakwords-handle/breakwords-handle",
"style": { "style": {
......
<template>
<view class="lists">
<view class="status_bar" :style="navHeight"></view>
<view class="header-bg">
<image class="header-bg-img" src="@/static/image/nav_bg@3x.png" mode="scaleToFill"></image>
</view>
<view class="main" :style="mainHeight">
<view class="block-detal">
<view class="block-detal-head">
<text class="detal-head-item-value detal-head-item-value-first">{{missionDetail.createdate}}</text>
<text class="detal-head-item-value">{{missionDetail.viloationName}}</text>
<text class="detal-head-item-value">{{missionDetail.childTypeName}}</text>
<text
class="detal-head-item-value detal-head-item-value-last status-done">{{missionDetail.status}}</text>
</view>
<view class="block-detal-body">
<text class="detal-item-value">{{missionDetail.terminalName}}</text>
<text class="detal-item-value">{{missionDetail.terminalAddress}}</text>
<text class="detal-item-value">{{missionDetail.productName}}</text>
<text class="detal-item-value">{{missionDetail.productQty}}</text>
</view>
<template v-for="(letter,index) in contactLetterDetail.entryDataList">
<view class="text-block text-block-last">
<text class="middle-date">联络函编号</text>
<text class="middle-date-des">{{letter.contactLetterId}}</text>
</view>
<view class="text-block text-block-last">
<text class="middle-date">附件</text>
<text class="middle-date-des">{{letter.contactLetterName}}</text>
</view>
</template>
</view>
<view class="middle view">
<view class="steps">
<view class="steps__row-container">
<view class="steps__row-line-item">
<view class="steps__row-line steps__row-line--before steps__row-line--hide"></view>
<view class="steps__row-check">
<i class="icon-dot icon-dot-active"></i>
</view>
<view class="steps__row-line steps__row-line--after steps__row-line--active"></view>
</view>
<view class="steps__row-line-item">
<view class="steps__row-line steps__row-line--before"
:class="{'steps__row-line--active':true}">
</view>
<view class="steps__row-check steps__row-circle">
<i class="icon-dot" :class="{'icon-dot-active':true}"></i>
</view>
<view class="steps__row-line steps__row-line--after"
:class="{'steps__row-line--active':true}"></view>
</view>
<view class="steps__row-line-item">
<view class="steps__row-line steps__row-line--before"
:class="{'steps__row-line--active':true}"></view>
<view class="steps__row-check steps__row-circle">
<i class="icon-dot" :class="{'icon-dot-active':true}"></i>
</view>
<view class="steps__row-line steps__row-line--after"
:class="{'steps__row-line--active':true}"></view>
</view>
<view class="steps__row-line-item">
<view class="steps__row-line steps__row-line--before"
:class="{'steps__row-line--active':true}"></view>
<view class="steps__row-check steps__row-circle">
<i class="icon-dot" :class="{'icon-dot-active':true}"></i>
</view>
<view class="steps__row-line steps__row-line--after"
:class="{'steps__row-line--active':true}"></view>
</view>
<view class="steps__row-line-item">
<view class="steps__row-line steps__row-line--before"
:class="{'steps__row-line--active':false}"></view>
<view class="steps__row-check steps__row-circle">
<i class="icon-dot" :class="{'icon-dot-active':false}"></i>
</view>
<view class="steps__row-line steps__row-line--after steps__row-line--hide"></view>
</view>
</view>
<view class="steps__row-text-container">
<view class="steps__row-text">
<text class="steps__row-title steps__row-title-active">联络函</text>
<text class="steps__row-desc"></text>
</view>
<view class="steps__row-text">
<text class="steps__row-title steps__row-title-active">填收货信息</text>
<text class="steps__row-desc"></text>
</view>
<view class="steps__row-text">
<text class="steps__row-title steps__row-title-active">收款确认</text>
<text class="steps__row-desc"></text>
</view>
<view class="steps__row-text">
<text class="steps__row-title steps__row-title-active">发货</text>
<text class="steps__row-desc"></text>
</view>
<view class="steps__row-text">
<text class="steps__row-title">收货确认</text>
<text class="steps__row-desc"></text>
</view>
</view>
</view>
<view class="text-block">
<text class="middle-date">打框架</text>
<view class="middle-date-des uni-list picker-year">
<view class="uni-list-cell">
<view class="uni-list-cell-db">
<text class="uni-input-text">{{ contactLetterDetail.bundledProducts?'是':'否'}}</text>
</view>
</view>
</view>
</view>
<view class="text-block">
<text class="middle-date">收货地址</text>
<view class="middle-date-des uni-list picker-year">
<view class="uni-list-cell">
<view class="uni-list-cell-db">
<text class="uni-input-text">{{ contactLetterDetail.receiveAddress}}</text>
</view>
</view>
</view>
</view>
<view class="text-block">
<text class="middle-date">联系人</text>
<view class="middle-date-des uni-list picker-year">
<view class="uni-list-cell">
<view class="uni-list-cell-db">
<text class="uni-input-text">{{ contactLetterDetail.contactUser}}</text>
</view>
</view>
</view>
</view>
<view class="text-block">
<text class="middle-date">联系电话</text>
<view class="middle-date-des uni-list picker-year">
<view class="uni-list-cell">
<view class="uni-list-cell-db">
<text class="uni-input-text">{{ contactLetterDetail.receiveContactPhone}}</text>
</view>
</view>
</view>
</view>
<view class="text-block">
<text class="middle-date">期望保价(元)</text>
<view class="middle-date-des uni-list picker-year">
<view class="uni-list-cell">
<view class="uni-list-cell-db">
<text class="uni-input-text">{{ contactLetterDetail.expectInsuredValue}}</text>
</view>
</view>
</view>
</view>
<view class="text-block text-block-last">
<text class="middle-date">物流公司</text>
<view class="middle-date-des uni-list picker-year">
<view class="uni-list-cell">
<view class="uni-list-cell-db">
<text class="uni-input-text">{{ contactLetterDetail.expectLogistics}}</text>
</view>
</view>
</view>
</view>
<view class="text-block-children ">
<view class="children-block">
<image class="children-block-icon" src="@/static/image/usercenter_purchaseplan@3x.png" mode="">
</image>
<text class="children-block-text">ddd</text>
</view>
<view class="children-block">
<image class="children-block-icon" src="@/static/image/usercenter_purchaseplan@3x.png" mode="">
</image>
<text class="children-block-text">ddd</text>
</view>
</view>
</view>
</view>
<view class="bottom-area"></view>
<view class="bottom">
<button class="btn" type="default" @tap="submit">
<text class="btn-text">提交</text>
</button>
</view>
</view>
</view>
</template>
<script>
import {
mapState
} from 'vuex'
import {
apiGetContactLetterDetail,
apiDoReceiveInfo
} from '@/servers/breakwords.js'
export default {
data() {
return {
condition: {
taskAssignmentId: '',
bundledProducts: 'false',
receiveAddress: '',
contactUser: '',
receiveContactPhone: '',
expectInsuredValue: '',
expectLogistics: '',
entryDataList: []
},
missionDetail: {},
contactLetterDetail: {},
}
},
computed: {
...mapState(['sysinfo', 'userInfo']),
navHeight() {
return {
'height': `${this.sysinfo.safeArea.top + 44}px`
}
},
mainHeight() {
return {
'height': `${this.sysinfo.safeArea.height - 44 }px`,
}
},
},
onLoad(option) {
if (option && option.pageType) {
this.missionDetail = JSON.parse(option.info)
this.condition.taskAssignmentId = this.missionDetail.ticketId
this.getContactLetterDetail()
}
},
methods: {
async getContactLetterDetail() {
uni.showLoading({
title: '加载中'
});
setTimeout(function() {
uni.hideLoading();
}, 2000);
// const res = await apiGetContactLetterDetail({
// taskAssignmentId: this.condition.taskAssignmentId
// })
let res = {
"result": "S",
"message": "操作成功",
"data": {
"taskAssignmentId": "T000008HK",
"bankName": "开户行",
"accountName": "户名",
"accountNumber": "账号",
"contact": "联系人",
"contactPhone": "联系电话",
"receiveAddress": "收货地址",
"contactUser": "收获联系人",
"receiveContactPhone": "联系人电话",
"expectInsuredValue": "期望保价",
"expectLogistics": "期望物流公司",
"receiveRecorderName": "录入人",
"receiveRecorderTime": "录入时间",
"remitPaidParty": "打款方",
"remitPaidUrl": "打款凭证照片",
"remitRecorderName": "打款录入人",
"remitRecorderTime": "打款录入时间",
"shipLogistics": "发货物流公司",
"shipLogisticsNo": "发货单号",
"shipTime": "发货时间",
"shipRecorderName": "发货人",
"entryDataList": [{
"contactLetterId": "联络函编号",
"contactLetterName": "联络函名称",
"createUserName": "创建人",
"status": "状态",
"statusName": "状态",
"createTime": "生成时间"
}]
}
}
uni.hideLoading();
for (let key in res.data) {
this.$set(this.contactLetterDetail, key, res.data[key])
// this.contactLetterDetail[key] = res.data[key]
}
this.condition.entryDataList = res.data.entryDataList
},
async submit() {
const params = {
'taskAssignmentId': this.condition.taskAssignmentId,
'receiveAddress': this.condition.receiveAddress,
'contactUser': this.condition.contactUser,
'contactPhone': this.condition.receiveContactPhone,
'expectInsuredValue': this.condition.expectInsuredValue,
'expectLogistics': this.condition.expectLogistics,
'receiveRecorderId': this.userInfo.code,
'receiveRecorderName': this.userInfo.name,
'contactLetterId': this.condition.entryDataList[0].contactLetterId,
'bundledProducts': this.condition.bundledProducts
}
uni.showLoading({
title: '加载中'
});
setTimeout(function() {
uni.hideLoading();
}, 2000);
const res = await apiDoReceiveInfo(params)
uni.hideLoading();
uni.navigateBack()
}
}
}
</script>
<style lang="scss" scoped>
.view {
display: flex;
flex-direction: column;
}
.status_bar {
height: var(--status-bar-height);
}
.header-bg {
height: 284rpx;
margin-top: -88rpx;
}
.header-bg-img {
width: 750rpx;
}
.lists {
position: relative;
flex-direction: column;
background: #f0f4f5;
flex: 1;
}
.main {
position: relative;
flex-direction: column;
margin-top: -164rpx;
border-radius: 16rpx;
padding: 0 16rpx;
}
.middle {
background-color: #fff;
border-radius: 16rpx;
padding: 0 48rpx;
margin-bottom: 32rpx;
}
.text-block {
display: flex;
overflow: hidden;
height: 96rpx;
border-bottom: 1px solid #f4f5f6;
}
.text-block-last {
margin-bottom: 0;
border-bottom: 0;
}
.text-block-children {
display: flex;
flex-direction: column;
border-bottom: 1px solid #f4f5f6;
padding: 20rpx 0;
}
.children-block {
display: flex;
align-items: center;
height: 60rpx;
padding-left: 40rpx;
}
.children-block-icon {
width: 40rpx;
height: 40rpx;
margin-right: 20rpx;
}
.children-block-text {
font-size: 24rpx;
}
.no-border {
border: 0;
}
.middle-date {
flex: 3;
font-size: 24rpx;
line-height: 96rpx;
color: #999;
margin-bottom: 8rpx;
}
.middle-date-des {
align-items: center;
flex: 5.5;
font-size: 24rpx;
color: $text-base-color;
height: 96rpx;
line-height: 96rpx;
}
.uni-input-placeholder {
color: #DBDBDB;
}
.picker-year {
position: relative;
align-items: center;
}
.uni-list-cell {
flex: 1;
height: 100%;
padding-right: 52rpx;
}
.uni-list-cell-db {
flex: 1;
height: 100%;
}
.picker-block {
flex: 1;
height: 100%;
}
.icon-arrow {
position: absolute;
right: 22rpx;
top: 40rpx;
width: 7px;
height: 10px;
z-index: 10;
}
.icon-arrow-r {
right: 102rpx;
}
.planout-block-item {
margin-top: 48rpx;
}
.block-detal {
display: flex;
flex-direction: column;
background: #fff;
border-radius: 20rpx;
padding: 32rpx;
margin-top: 32rpx;
margin-bottom: 20rpx;
}
.block-detal-head {
display: flex;
justify-content: space-between;
border-bottom: 1px solid #ddd;
padding-bottom: 6px;
}
.detal-head-item-value {
flex: 1;
text-align: center;
}
.detal-head-item-value-first {
flex: 1.2;
text-align: left;
}
.detal-head-item-value-last {
flex: 0.7;
text-align: right;
}
.status-done {
color: #F62C29;
}
.product-val {
margin-right: 10px;
}
.block-detal-body {
display: flex;
flex-direction: column;
padding-top: 20rpx;
}
.detal-item-value {
color: #333;
font-size: 24rpx;
margin-bottom: 8rpx;
}
.bottom-area {
height: 140rpx;
margin-top: 12rpx;
}
.bottom {
position: fixed;
bottom: 0;
left: 0;
z-index: 10;
width: 750rpx;
height: 140rpx;
padding: 0 32rpx;
background-color: #fff;
display: flex;
justify-content: space-between;
align-items: center;
}
.btn {
flex: 1;
height: 92rpx;
background: $wly-primary-color;
border-radius: 46rpx;
}
.btn-text {
color: #fff;
font-size: 34rpx;
}
.steps {
flex: 1;
flex-direction: column;
margin: 28rpx 0 32rpx;
}
.steps__row-text-container {
align-items: flex-end;
flex-direction: row;
}
.steps__row-text {
flex: 1;
flex-direction: column;
}
.steps__row-title {
font-size: 12px;
line-height: 16px;
text-align: center;
color: $text-base-color;
}
.steps__row-title-active {
color: #ff3e61;
}
.steps__row-container {
margin-bottom: 16rpx;
}
.steps__row-line-item {
flex: 1;
height: 14px;
line-height: 14px;
align-items: center;
justify-content: center;
}
.steps__row-line--before {
transform: translateX(-1px);
}
.icon-dot {
width: 16rpx;
height: 16rpx;
background: #E5E5E5;
border-radius: 50%;
}
.icon-dot-active {
background: #ff1d32;
}
.steps__row-line--after {
transform: translateX(1px);
}
.steps__row-line {
flex: 1;
height: 1px;
background-color: #E5E5E5;
}
.steps__row-line--active {
background: #ff3e61;
border-radius: 1px;
}
.steps__row-circle {
// background: #E5E5E5;
}
.steps__row-line--hide {
background-color: transparent;
}
</style>
<template>
<view class="lists">
<view class="status_bar" :style="navHeight"></view>
<view class="header-bg">
<image class="header-bg-img" src="@/static/image/nav_bg@3x.png" mode="scaleToFill"></image>
</view>
<view class="main" :style="mainHeight">
<view class="block-detal">
<view class="block-detal-head">
<text class="detal-head-item-value detal-head-item-value-first">{{missionDetail.createdate}}</text>
<text class="detal-head-item-value">{{missionDetail.viloationName}}</text>
<text class="detal-head-item-value">{{missionDetail.childTypeName}}</text>
<text
class="detal-head-item-value detal-head-item-value-last status-done">{{missionDetail.status}}</text>
</view>
<view class="block-detal-body">
<text class="detal-item-value">{{missionDetail.terminalName}}</text>
<text class="detal-item-value">{{missionDetail.terminalAddress}}</text>
<text class="detal-item-value">{{missionDetail.productName}}</text>
<text class="detal-item-value">{{missionDetail.productQty}}</text>
</view>
<template v-for="(letter,index) in contactLetterDetail.entryDataList">
<view class="text-block text-block-last">
<text class="middle-date">联络函编号</text>
<text class="middle-date-des">{{letter.contactLetterId}}</text>
</view>
<view class="text-block text-block-last">
<text class="middle-date">附件</text>
<text class="middle-date-des">{{letter.contactLetterName}}</text>
</view>
</template>
</view>
<view class="middle view">
<view class="steps">
<view class="steps__row-container">
<view class="steps__row-line-item">
<view class="steps__row-line steps__row-line--before steps__row-line--hide"></view>
<view class="steps__row-check">
<i class="icon-dot icon-dot-active"></i>
</view>
<view class="steps__row-line steps__row-line--after steps__row-line--active"></view>
</view>
<view class="steps__row-line-item">
<view class="steps__row-line steps__row-line--before"
:class="{'steps__row-line--active':false}">
</view>
<view class="steps__row-check steps__row-circle">
<i class="icon-dot" :class="{'icon-dot-active':false}"></i>
</view>
<view class="steps__row-line steps__row-line--after"
:class="{'steps__row-line--active':false}"></view>
</view>
<view class="steps__row-line-item">
<view class="steps__row-line steps__row-line--before"
:class="{'steps__row-line--active':false}"></view>
<view class="steps__row-check steps__row-circle">
<i class="icon-dot" :class="{'icon-dot-active':false}"></i>
</view>
<view class="steps__row-line steps__row-line--after"
:class="{'steps__row-line--active':false}"></view>
</view>
<view class="steps__row-line-item">
<view class="steps__row-line steps__row-line--before"
:class="{'steps__row-line--active':false}"></view>
<view class="steps__row-check steps__row-circle">
<i class="icon-dot" :class="{'icon-dot-active':false}"></i>
</view>
<view class="steps__row-line steps__row-line--after"
:class="{'steps__row-line--active':false}"></view>
</view>
<view class="steps__row-line-item">
<view class="steps__row-line steps__row-line--before"
:class="{'steps__row-line--active':false}"></view>
<view class="steps__row-check steps__row-circle">
<i class="icon-dot" :class="{'icon-dot-active':false}"></i>
</view>
<view class="steps__row-line steps__row-line--after steps__row-line--hide"></view>
</view>
</view>
<view class="steps__row-text-container">
<view class="steps__row-text">
<text class="steps__row-title steps__row-title-active">联络函</text>
<text class="steps__row-desc"></text>
</view>
<view class="steps__row-text">
<text class="steps__row-title">填收货信息</text>
<text class="steps__row-desc"></text>
</view>
<view class="steps__row-text">
<text class="steps__row-title">收款确认</text>
<text class="steps__row-desc"></text>
</view>
<view class="steps__row-text">
<text class="steps__row-title">发货</text>
<text class="steps__row-desc"></text>
</view>
<view class="steps__row-text">
<text class="steps__row-title">收货确认</text>
<text class="steps__row-desc"></text>
</view>
</view>
</view>
<view class="text-block">
<text class="middle-date">打框架</text>
<view class="middle-date-des uni-list picker-year">
<view class="uni-list-cell">
<view class="uni-list-cell-db">
<picker class="picker-block" @change="bindPickerBundledProChange" mode="selector"
range-key='value' :value="condition.bundledProducts" :range="bundledProPicker">
<text
class="uni-input-text">{{ bundledProPicker[bundledProductsFlagIndex].value}}</text>
</picker>
</view>
</view>
<image class="icon-arrow" src="@/static/image/arrow_r@3x.png" mode="aspectFit"></image>
</view>
</view>
<view class="text-block">
<text class="middle-date">收货地址</text>
<view class="middle-date-des uni-list picker-year">
<view class="uni-list-cell">
<view class="uni-list-cell-db">
<input class="middle-date-des" type="text" v-model="contactLetterDetail.receiveAddress"
placeholder="" />
</view>
</view>
</view>
</view>
<view class="text-block">
<text class="middle-date">联系人</text>
<view class="middle-date-des uni-list picker-year">
<view class="uni-list-cell">
<view class="uni-list-cell-db">
<input class="middle-date-des" type="text" v-model="contactLetterDetail.contactUser"
placeholder="" />
</view>
</view>
</view>
</view>
<view class="text-block">
<text class="middle-date">联系电话</text>
<view class="middle-date-des uni-list picker-year">
<view class="uni-list-cell">
<view class="uni-list-cell-db">
<input class="middle-date-des" type="text"
v-model="contactLetterDetail.receiveContactPhone" placeholder="" />
</view>
</view>
</view>
</view>
<view class="text-block">
<text class="middle-date">期望保价(元)</text>
<view class="middle-date-des uni-list picker-year">
<view class="uni-list-cell">
<view class="uni-list-cell-db">
<input class="middle-date-des" type="number"
v-model="contactLetterDetail.expectInsuredValue" placeholder="请输入期望保价,保留2位小数" />
</view>
</view>
</view>
</view>
<view class="text-block">
<text class="middle-date">物流公司</text>
<view class="middle-date-des uni-list picker-year">
<view class="uni-list-cell">
<view class="uni-list-cell-db">
<picker v-show="deliveryCompanyPickerShow" class="picker-block"
@change="bindPickerDeliveryCompanyChange" mode="selector" range-key='name'
:value="condition.expectLogistics" :range="deliveryCompanyList">
<text
class="uni-input-text">{{ deliveryCompanyList[deliveryCompanyIndex].name}}</text>
</picker>
<input v-show="!deliveryCompanyPickerShow" class="middle-date-des" type="text"
v-model="condition.expectLogistics" placeholder="请输入期望物流公司" />
</view>
</view>
<image v-show="deliveryCompanyPickerShow" class="icon-arrow icon-arrow-r"
src="@/static/image/arrow_r@3x.png" mode="aspectFit">
</image>
<button class="btn-r" type="default" @tap="changeInputWay">
<text class="btn-r-text">其他</text>
</button>
</view>
</view>
</view>
</view>
<view class="bottom-area"></view>
<view class="bottom">
<button class="btn" type="default" @tap="submit">
<text class="btn-text">提交</text>
</button>
</view>
</view>
</view>
</template>
<script>
import {
mapState
} from 'vuex'
import {
apiGetContactLetterDetail,
apiDoReceiveInfo
} from '@/servers/breakwords.js'
export default {
data() {
return {
condition: {
taskAssignmentId: '',
bundledProducts: 'false',
receiveAddress: '',
contactUser: '',
receiveContactPhone: '',
expectInsuredValue: '',
expectLogistics: '',
entryDataList: []
},
bundledProductsFlagIndex: 0,
deliveryCompanyIndex: 0,
deliveryCompanyPickerShow: true,
missionDetail: {},
contactLetterDetail: {},
bundledProPicker: [{
key: 'false',
value: '否'
},
{
key: 'true',
value: '是',
},
],
deliveryCompanyList: [{
'id': '京东快递',
'name': '京东快递'
},
{
'id': '圆通',
'name': '圆通'
},
{
'id': '申通',
'name': '申通'
},
{
'id': '韵达',
'name': '韵达'
},
{
'id': 'EMS',
'name': 'EMS'
},
{
'id': '中通',
'name': '中通'
},
{
'id': '顺丰',
'name': '顺丰'
},
{
'id': '百世',
'name': '百世'
},
{
'id': '天天',
'name': '天天'
},
{
'id': '邮政包裹',
'name': '邮政包裹'
},
{
'id': '宅急送',
'name': '宅急送'
},
{
'id': '全峰',
'name': '全峰'
},
{
'id': '德邦',
'name': '德邦'
}
]
}
},
computed: {
...mapState(['sysinfo', 'userInfo']),
navHeight() {
return {
'height': `${this.sysinfo.safeArea.top + 44}px`
}
},
mainHeight() {
return {
'height': `${this.sysinfo.safeArea.height - 44 }px`,
}
},
},
onLoad(option) {
if (option && option.pageType) {
this.missionDetail = JSON.parse(option.info)
this.condition.taskAssignmentId = this.missionDetail.ticketId
this.getContactLetterDetail()
}
},
methods: {
async getContactLetterDetail() {
uni.showLoading({
title: '加载中'
});
setTimeout(function() {
uni.hideLoading();
}, 2000);
// const res = await apiGetContactLetterDetail({
// taskAssignmentId: this.condition.taskAssignmentId
// })
let res = {
"result": "S",
"message": "操作成功",
"data": {
"taskAssignmentId": "T000008HK",
"bankName": "开户行",
"accountName": "户名",
"accountNumber": "账号",
"contact": "联系人",
"contactPhone": "联系电话",
"receiveAddress": "收货地址",
"contactUser": "收获联系人",
"receiveContactPhone": "联系人电话",
"expectInsuredValue": "期望保价",
"expectLogistics": "期望物流公司",
"receiveRecorderName": "录入人",
"receiveRecorderTime": "录入时间",
"remitPaidParty": "打款方",
"remitPaidUrl": "打款凭证照片",
"remitRecorderName": "打款录入人",
"remitRecorderTime": "打款录入时间",
"shipLogistics": "发货物流公司",
"shipLogisticsNo": "发货单号",
"shipTime": "发货时间",
"shipRecorderName": "发货人",
"entryDataList": [{
"contactLetterId": "联络函编号",
"contactLetterName": "联络函名称",
"createUserName": "创建人",
"status": "状态",
"statusName": "状态",
"createTime": "生成时间"
}]
}
}
uni.hideLoading();
for (let key in res.data) {
this.$set(this.contactLetterDetail, key, res.data[key])
// this.contactLetterDetail[key] = res.data[key]
}
this.condition.entryDataList = res.data.entryDataList
},
bindPickerBundledProChange(e) {
console.log('picker发送选择改变,携带值为', e.detail.value)
this.bundledProductsFlagIndex = e.detail.value
this.condition.bundledProducts = this.bundledProPicker[e.detail.value].key
},
bindPickerDeliveryCompanyChange(e) {
console.log('picker发送选择改变,携带值为', e.detail.value)
this.deliveryCompanyIndex = e.detail.value
this.condition.deliveryCompany = this.deliveryCompanyList[e.detail.value].id
},
changeInputWay() {
this.deliveryCompanyPickerShow = !this.deliveryCompanyPickerShow
},
async submit() {
const params = {
'taskAssignmentId': this.condition.taskAssignmentId,
'receiveAddress': this.condition.receiveAddress,
'contactUser': this.condition.contactUser,
'contactPhone': this.condition.receiveContactPhone,
'expectInsuredValue': this.condition.expectInsuredValue,
'expectLogistics': this.condition.expectLogistics,
'receiveRecorderId': this.userInfo.code,
'receiveRecorderName': this.userInfo.name,
'contactLetterId': this.condition.entryDataList[0].contactLetterId,
'bundledProducts': this.condition.bundledProducts
}
uni.showLoading({
title: '加载中'
});
setTimeout(function() {
uni.hideLoading();
}, 2000);
const res = await apiDoReceiveInfo(params)
uni.hideLoading();
uni.navigateBack()
}
}
}
</script>
<style lang="scss" scoped>
.view {
display: flex;
flex-direction: column;
}
.status_bar {
height: var(--status-bar-height);
}
.header-bg {
height: 284rpx;
margin-top: -88rpx;
}
.header-bg-img {
width: 750rpx;
}
.lists {
position: relative;
flex-direction: column;
background: #f0f4f5;
flex: 1;
}
.main {
position: relative;
flex-direction: column;
margin-top: -164rpx;
border-radius: 16rpx;
padding: 0 16rpx;
}
.middle {
background-color: #fff;
border-radius: 16rpx;
padding: 0 48rpx;
margin-bottom: 32rpx;
}
.text-block {
display: flex;
overflow: hidden;
height: 96rpx;
border-bottom: 1px solid #f4f5f6;
}
.text-block-last {
margin-bottom: 0;
border-bottom: 0;
}
.no-border {
border: 0;
}
.middle-date {
flex: 3;
font-size: 24rpx;
line-height: 96rpx;
color: #999;
margin-bottom: 8rpx;
}
.middle-date-des {
align-items: center;
flex: 5.5;
font-size: 24rpx;
color: $text-base-color;
height: 96rpx;
line-height: 96rpx;
}
.uni-input-placeholder {
color: #DBDBDB;
}
.picker-year {
position: relative;
align-items: center;
}
.uni-list-cell {
flex: 1;
height: 100%;
padding-right: 52rpx;
}
.uni-list-cell-db {
flex: 1;
height: 100%;
}
.picker-block {
flex: 1;
height: 100%;
}
.icon-arrow {
position: absolute;
right: 22rpx;
top: 40rpx;
width: 7px;
height: 10px;
z-index: 10;
}
.icon-arrow-r {
right: 102rpx;
}
.planout-block-item {
margin-top: 48rpx;
}
.block-detal {
display: flex;
flex-direction: column;
background: #fff;
border-radius: 20rpx;
padding: 32rpx;
margin-top: 32rpx;
margin-bottom: 20rpx;
}
.block-detal-head {
display: flex;
justify-content: space-between;
border-bottom: 1px solid #ddd;
padding-bottom: 6px;
}
.detal-head-item-value {
flex: 1;
text-align: center;
}
.detal-head-item-value-first {
flex: 1.2;
text-align: left;
}
.detal-head-item-value-last {
flex: 0.7;
text-align: right;
}
.status-done {
color: #F62C29;
}
.product-val {
margin-right: 10px;
}
.block-detal-body {
display: flex;
flex-direction: column;
padding-top: 20rpx;
}
.detal-item-value {
color: #333;
font-size: 24rpx;
margin-bottom: 8rpx;
}
.bottom-area {
height: 140rpx;
margin-top: 12rpx;
}
.bottom {
position: fixed;
bottom: 0;
left: 0;
z-index: 10;
width: 750rpx;
height: 140rpx;
padding: 0 32rpx;
background-color: #fff;
display: flex;
justify-content: space-between;
align-items: center;
}
.btn {
flex: 1;
height: 92rpx;
background: $wly-primary-color;
border-radius: 46rpx;
}
.btn-text {
color: #fff;
font-size: 34rpx;
}
.btn-r {
display: flex;
justify-content: center;
align-items: center;
width: 40px;
height: 48rpx;
line-height: 48rpx;
padding: 0;
background-color: #F62C29;
}
.btn-r-text {
color: #fff;
font-size: 24rpx;
}
.steps {
flex: 1;
flex-direction: column;
margin: 28rpx 0 32rpx;
}
.steps__row-text-container {
align-items: flex-end;
flex-direction: row;
}
.steps__row-text {
flex: 1;
flex-direction: column;
}
.steps__row-title {
font-size: 12px;
line-height: 16px;
text-align: center;
color: $text-base-color;
}
.steps__row-title-active {
color: #ff3e61;
}
.steps__row-container {
margin-bottom: 16rpx;
}
.steps__row-line-item {
flex: 1;
height: 14px;
line-height: 14px;
align-items: center;
justify-content: center;
}
.steps__row-line--before {
transform: translateX(-1px);
}
.icon-dot {
width: 16rpx;
height: 16rpx;
background: #E5E5E5;
border-radius: 50%;
}
.icon-dot-active {
background: #ff1d32;
}
.steps__row-line--after {
transform: translateX(1px);
}
.steps__row-line {
flex: 1;
height: 1px;
background-color: #E5E5E5;
}
.steps__row-line--active {
background: #ff3e61;
border-radius: 1px;
}
.steps__row-circle {
// background: #E5E5E5;
}
.steps__row-line--hide {
background-color: transparent;
}
</style>
...@@ -160,8 +160,80 @@ ...@@ -160,8 +160,80 @@
setTimeout(function() { setTimeout(function() {
uni.hideLoading(); uni.hideLoading();
}, 2000); }, 2000);
const res = await apiGetMissionList(params) // const res = await apiGetMissionList(params)
// const res = await apiGetClueList() // const res = await apiGetClueList()
let res = {
"result": "S",
"message": "操作成功",
"data": {
"count": 27,
"page": 1,
"pagesize": 10,
"data": [{
"rno": "1",
"requestname": "测试111",
"pcurl": "",
"departmentname": "",
"sysname": "市场秩序",
"createdate": "2021-07-30",
"workflowtype": "-4001",
"appurl": "string",
"requestid": "-206",
"ticketId": "string",
"entryType": "1",
"status": "已处理"
},
{
"rno": "2",
"requestname": "联络函待填写收货信息",
"pcurl": "",
"departmentname": "",
"sysname": "市场秩序",
"createdate": "2021-07-30",
"workflowtype": "-4001",
"appurl": "T00001STE",
"requestid": "-203",
"ticketId": "T00001STE",
"entryType": "4",
"status": "已处理",
"viloationName": "影响质量",
"childTypeName": "childTypeName",
"terminalName": "terminalName",
"terminalAddress": "terminalAddress",
"productName": "productName",
"productQty": "productQty",
},
{
"rno": "3",
"requestname": "string",
"pcurl": "",
"departmentname": "",
"sysname": "市场秩序",
"createdate": "2021-07-30",
"workflowtype": "-4001",
"appurl": "string",
"requestid": "-200",
"ticketId": "string",
"entryType": "1",
"status": "已处理"
},
{
"rno": "4",
"requestname": "联络函待填写收货信息",
"pcurl": "",
"departmentname": "",
"sysname": "市场秩序",
"createdate": "2021-08-01",
"workflowtype": "-4001",
"appurl": "T00001UD0",
"requestid": "-208",
"ticketId": "T00001UD0",
"entryType": "1",
"status": "已处理"
}
]
}
}
uni.hideLoading(); uni.hideLoading();
const { const {
...@@ -227,7 +299,7 @@ ...@@ -227,7 +299,7 @@
}, },
handleStatustext(item) { handleStatustext(item) {
let text = '--' let text = '--'
switch (item.entryType) { switch (item.entryType * 1) {
case 1: case 1:
text = '填写收货' text = '填写收货'
break break
...@@ -242,17 +314,24 @@ ...@@ -242,17 +314,24 @@
}, },
checkOrderStatus(item) { checkOrderStatus(item) {
let entryType = '' let entryType = ''
switch (item.entryType) { switch (item.entryType * 1) {
case 1: case 1:
entryType = '2' entryType = '2'
uni.navigateTo({
url: `/pages/breakwords-mission-receiver/breakwords-mission-receiver?info=${JSON.stringify(item)}&pageType=${entryType}`
})
break break
case 4: case 4:
entryType = '5' entryType = '5'
uni.navigateTo({
url: `/pages/breakwords-mission-confirm/breakwords-mission-confirm?info=${JSON.stringify(item)}&pageType=${entryType}`
})
break break
case 3: case 3:
entryType = '6' entryType = '6'
break break
} }
} }
} }
} }
......
...@@ -176,8 +176,8 @@ class Request { ...@@ -176,8 +176,8 @@ class Request {
// config.baseUrl = 'http://10.0.135.61' // config.baseUrl = 'http://10.0.135.61'
config.baseUrl = 'http://221.10.127.60:5000' config.baseUrl = 'http://221.10.127.60:5000'
} else if (config.url.indexOf('adapter') !== -1) { } else if (config.url.indexOf('adapter') !== -1) {
config.baseUrl = 'http://api.c0331.dev.guanyingyun.com' // config.baseUrl = 'http://api.c0331.dev.guanyingyun.com'
// config.baseUrl = 'http://221.10.127.60:5000/cyj' config.baseUrl = 'http://221.10.127.60:5000/cyj'
} else if (config.url.indexOf('wmdpwebservices') !== -1) { } else if (config.url.indexOf('wmdpwebservices') !== -1) {
config.baseUrl = 'https://10.0.134.182:9002' config.baseUrl = 'https://10.0.134.182:9002'
// config.baseUrl = 'http://221.10.127.60:5000/sczx' // config.baseUrl = 'http://221.10.127.60:5000/sczx'
......
...@@ -100,6 +100,26 @@ export async function apiGetMissionList(params) { ...@@ -100,6 +100,26 @@ export async function apiGetMissionList(params) {
return res return res
} }
/**
* 联络函详情
* @param name 账户名
* @returns {Promise<AxiosResponse<T>>}
*/
export async function apiGetContactLetterDetail(params) {
const res = await apiHelper.post('/wmdpwebservices/taskassignment/contactletter/detail', params)
return res
}
/**
* 易商-填写收货信息接口
* @param name 账户名
* @returns {Promise<AxiosResponse<T>>}
*/
export async function apiDoReceiveInfo(params) {
const res = await apiHelper.post('/wmdpwebservices/trackInformation/doReceiveInfo', params)
return res
}
/** /**
* 查询处理单 * 查询处理单
* @param name 账户名 * @param name 账户名
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment