Commit a26b8b53 authored by xiangzj's avatar xiangzj

订单动态接口更换

parent 583ace75
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
// "appid" : "__UNI__EDB6A1F", // "appid" : "__UNI__EDB6A1F",
"appid" : "__UNI__EDB6A1F", "appid" : "__UNI__EDB6A1F",
"description" : "订货系统", "description" : "订货系统",
"versionName" : "1.1.24", "versionName" : "1.1.25",
"versionCode" : "10124", "versionCode" : "10125",
"transformPx" : false, "transformPx" : false,
"app-plus" : { "app-plus" : {
/* 5+App特有相关 */ /* 5+App特有相关 */
...@@ -134,7 +134,7 @@ ...@@ -134,7 +134,7 @@
"changeOrigin" : true "changeOrigin" : true
}, },
"/crm-app" : { "/crm-app" : {
// "target" : "http://10.0.135.61", // "target" : "https://218.89.67.37/",
"target" : "http://221.10.127.60:5000", "target" : "http://221.10.127.60:5000",
"changeOrigin" : true "changeOrigin" : true
}, },
...@@ -155,6 +155,7 @@ ...@@ -155,6 +155,7 @@
}, },
"/uusafe" : { "/uusafe" : {
"target" : "https://zzy.ipincloud.cn:9070", "target" : "https://zzy.ipincloud.cn:9070",
// "target" : "https://apps.wuliangye.com.cn:9076",
"changeOrigin" : true "changeOrigin" : true
} }
} }
......
...@@ -301,7 +301,7 @@ ...@@ -301,7 +301,7 @@
'BoxCode': this.orderDetail.INFO.ZZFLD000098, 'BoxCode': this.orderDetail.INFO.ZZFLD000098,
// 'CallbackUrlList': JSON.stringify({WorksbackUrl:''}), // 'CallbackUrlList': JSON.stringify({WorksbackUrl:''}),
'City': this.orderDetail.INFO.ZZFLD000003_TEXT, 'City': this.orderDetail.INFO.ZZFLD000003_TEXT,
// County: this.orderDetail.INFO., 'County': this.orderDetail.INFO.STREET_TEXT,
'MobileNumber': this.orderDetail.INFO.ZZFLD00002M, 'MobileNumber': this.orderDetail.INFO.ZZFLD00002M,
// OrderAmount: "", // OrderAmount: "",
'OrderGoods': JSON.stringify(goodsInfo), 'OrderGoods': JSON.stringify(goodsInfo),
...@@ -311,7 +311,7 @@ ...@@ -311,7 +311,7 @@
"SecretKey": "8B72E5CB394E3CABB56DC8E04AC4DE7F", "SecretKey": "8B72E5CB394E3CABB56DC8E04AC4DE7F",
'StoreCompanyName': this.orderDetail.INFO.CUST_NAME, 'StoreCompanyName': this.orderDetail.INFO.CUST_NAME,
'StoreName': this.orderDetail.INFO.CUST_NAME, 'StoreName': this.orderDetail.INFO.CUST_NAME,
"Sign": md5.hex_md5(`Action=guanying.adapter.crmorder.down&Address=${this.orderDetail.INFO.ZZFLD00002N}&BoxCode=${this.orderDetail.INFO.ZZFLD000098}&City=${this.orderDetail.INFO.ZZFLD000003_TEXT}&MobileNumber=${this.orderDetail.INFO.ZZFLD00002M}&OrderGoods=${JSON.stringify(goodsInfo)}&OutsideCoreOrderID=${this.orderDetail.INFO.OBJECT_ID}&Province=${this.orderDetail.INFO.ZZFLD000002_TEXT}&RealName=${this.orderDetail.INFO.ZZFLD00002L}&StoreCompanyName=${this.orderDetail.INFO.CUST_NAME}&StoreName=${this.orderDetail.INFO.CUST_NAME}&SecretKey=8B72E5CB394E3CABB56DC8E04AC4DE7F`) "Sign": md5.hex_md5(`Action=guanying.adapter.crmorder.down&Address=${this.orderDetail.INFO.ZZFLD00002N}&BoxCode=${this.orderDetail.INFO.ZZFLD000098}&City=${this.orderDetail.INFO.ZZFLD000003_TEXT}&County=${this.orderDetail.INFO.STREET_TEXT}&MobileNumber=${this.orderDetail.INFO.ZZFLD00002M}&OrderGoods=${JSON.stringify(goodsInfo)}&OutsideCoreOrderID=${this.orderDetail.INFO.OBJECT_ID}&Province=${this.orderDetail.INFO.ZZFLD000002_TEXT}&RealName=${this.orderDetail.INFO.ZZFLD00002L}&StoreCompanyName=${this.orderDetail.INFO.CUST_NAME}&StoreName=${this.orderDetail.INFO.CUST_NAME}&SecretKey=8B72E5CB394E3CABB56DC8E04AC4DE7F`)
} }
const res2 = await apiSubmitCustom(params2) const res2 = await apiSubmitCustom(params2)
if(res2.Status !== 'Success'){ if(res2.Status !== 'Success'){
......
...@@ -100,6 +100,7 @@ ...@@ -100,6 +100,7 @@
cursorNumber: 0, cursorNumber: 0,
rememberPsw: true, rememberPsw: true,
rememberAt: true, rememberAt: true,
flag: false
} }
}, },
computed: { computed: {
...@@ -128,11 +129,13 @@ ...@@ -128,11 +129,13 @@
} }
}, },
onLoad() { onLoad() {
ToastPlusModule && this.initEx() ToastPlusModule && this.initEx()
}, },
onShow() { onShow() {
// 判断是否正在等待authEx的返回结果,第一次进入页面默认是false
if (!this.flag && !this.accessToken) {
ToastPlusModule && this.authEx() ToastPlusModule && this.authEx()
}
}, },
//页面初始加载 //页面初始加载
mounted() { mounted() {
...@@ -195,7 +198,10 @@ ...@@ -195,7 +198,10 @@
uni.showLoading({ uni.showLoading({
title: '加载中' title: '加载中'
}); });
// 开启等待被唤醒
this.flag = true
ToastPlusModule.registerExSyncFunc({}, res => { ToastPlusModule.registerExSyncFunc({}, res => {
this.flag = false
this.accessToken = res.data?.token || res this.accessToken = res.data?.token || res
this.getIdToken() this.getIdToken()
}) })
......
...@@ -154,7 +154,7 @@ ...@@ -154,7 +154,7 @@
}, },
mainHeight() { mainHeight() {
return { return {
'height': `${this.sysinfo.safeArea.height - 44 }px`, 'height': `${this.sysinfo.safeArea.height - 30 }px`,
} }
}, },
scrollHeight() { scrollHeight() {
......
<template> <template>
<view class="lists"> <view class="lists">
<view class="status_bar" :style="navHeight"></view> <view class="status_bar" :style="navHeight"></view>
<view class="header-bg"> <!-- <view class="header-bg">
<image class="header-bg-img" src="@/static/image/nav_bg@3x.png" mode="scaleToFill"></image> <image class="header-bg-img" src="@/static/image/nav_bg@3x.png" mode="scaleToFill"></image>
</view> </view> -->
<view class="main"> <view class="main" :style="mainHeight">
<view class="middle view"> <view class="middle view planout-block-item">
<view class="text-block"> <view class="text-block">
<text class="middle-date">全部订单</text> <text class="middle-date">全部订单</text>
<view class="middle-date-des uni-list picker-year"> <view class="middle-date-des uni-list picker-year">
...@@ -13,9 +13,7 @@ ...@@ -13,9 +13,7 @@
<view class="uni-list-cell-db"> <view class="uni-list-cell-db">
<picker class="picker-block" @change="bindPickerTypesChange($event,'type')" range-key='name' <picker class="picker-block" @change="bindPickerTypesChange($event,'type')" range-key='name'
mode="selector" :value="condition.PROCESS_TYPE_VIEW" :range="salePlanArr"> mode="selector" :value="condition.PROCESS_TYPE_VIEW" :range="salePlanArr">
<view class="uni-input"> <text class="uni-input-text">{{condition.PROCESS_TYPE_VIEW}}</text>
{{condition.PROCESS_TYPE_VIEW}}
</view>
</picker> </picker>
</view> </view>
</view> </view>
...@@ -29,9 +27,7 @@ ...@@ -29,9 +27,7 @@
<view class="uni-list-cell-db"> <view class="uni-list-cell-db">
<picker class="picker-block" @change="bindPickerTypesChange($event,'status')" range-key='name' <picker class="picker-block" @change="bindPickerTypesChange($event,'status')" range-key='name'
mode="selector" :value="condition.ESTAT_VIEW" :range="saleStatusArr"> mode="selector" :value="condition.ESTAT_VIEW" :range="saleStatusArr">
<view class="uni-input"> <text class="uni-input-text">{{condition.ESTAT_VIEW}}</text>
{{condition.ESTAT_VIEW}}
</view>
</picker> </picker>
</view> </view>
</view> </view>
...@@ -45,7 +41,7 @@ ...@@ -45,7 +41,7 @@
<view class="uni-list-cell-db"> <view class="uni-list-cell-db">
<picker class="picker-block" @change="bindPickerYearStartChange" mode="date" <picker class="picker-block" @change="bindPickerYearStartChange" mode="date"
:value="condition.POSTING_DATE" fields='day'> :value="condition.POSTING_DATE" fields='day'>
<text class="uni-input">{{condition.POSTING_DATE}}</text> <text class="uni-input-text">{{condition.POSTING_DATE}}</text>
</picker> </picker>
</view> </view>
</view> </view>
...@@ -62,30 +58,47 @@ ...@@ -62,30 +58,47 @@
<text class="btn-text">查询</text> <text class="btn-text">查询</text>
</button> </button>
</view> </view>
<scroll-view :style='scrollHeight' class="scroll-area" scroll-y="true" lower-threshold='150' <!-- <scroll-view class="scroll-area" scroll-y="true" lower-threshold='150'
@scrolltolower='scrolltolower'> @scrolltolower='scrolltolower'> -->
<list class="scroll-area view" loadmoreoffset='100' show-scrollbar='false' @loadmore="scrolltolower"> <list ref="list" class="scroll-area view" loadmoreoffset='100' @loadmore="scrolltolower"
<cell class="list-cell" v-for="(item,index) in lists" :key='index'> :show-scrollbar='false'>
<view class="middle view planout-block-item"> <refresh @refresh="refresh" :display="refreshing ? 'show' : 'hide'">
<view class="text-block"> <!-- <loading-indicator></loading-indicator> -->
<text class="middle-date">{{item.OBJECT_ID}}</text> </refresh>
<text class="middle-pro-des">{{item.DESCRIPTION}}</text> <cell class="" v-for="(item,index) in lists" :key='index'>
<view class="scroll-item block-detal">
<view class="block-detal-item">
<text class="detal-item-label">创建日期</text>
<text class="detal-item-value">{{item.postingDate}}</text>
</view> </view>
<view class="text-block"> <view class="block-detal-item">
<text class="middle-date">制票通知单</text> <text class="detal-item-label">{{item.objectId}}</text>
<text class="middle-date-des">{{item.ZZFLD000007}}/{{item.ZZFLD000009}}</text> <text class="middle-pro-des">{{item.description}}</text>
</view> </view>
<view class="text-block"> <view class="block-detal-item">
<text class="middle-date">发货</text> <text class="detal-item-label">制票通知单</text>
<text class="middle-date-des">{{item.ZDELIVER}}/{{item.ZZFLD000007}}</text> <text class="detal-item-value">{{item.zzfld000007}}/{{item.zzfld000009}}</text>
</view>
<view class="block-detal-item">
<text class="detal-item-label">本单可发货量(件)</text>
<text class="detal-item-value">{{item.zzfld000007}}</text>
</view>
<view class="block-detal-item block-detal-item-last">
<text class="detal-item-label">已发货(件)</text>
<text class="detal-item-value">{{item.zdeliver}}</text>
</view> </view>
</view> </view>
<view class="empty-block"></view> <view class="empty-block"></view>
<!-- </scroll-view> -->
</cell> </cell>
<cell>
<view class="loading-more" v-if='lists.length>2'>
<text class="loading-more-text">{{loadingText}}</text>
</view>
</cell>
<!-- <view class="planout-block-item__last"> </view> -->
</list> </list>
</scroll-view> <!-- </scroll-view> -->
<no-data v-if="lists.length === 0"></no-data>
</view> </view>
</view> </view>
</template> </template>
...@@ -102,14 +115,16 @@ ...@@ -102,14 +115,16 @@
querySysDictionaryDetailsByCode, querySysDictionaryDetailsByCode,
} from '@/servers/purchaseList.js' } from '@/servers/purchaseList.js'
import { import {
querySaleOrder querySaleOrder,
findAppWantGoods
} from '@/servers/breakwords.js' } from '@/servers/breakwords.js'
import timeFormat from '@/uview-ui/libs/function/timeFormat.js' import noData from '@/components/nodata.nvue';
import orderItem from './order-item.nvue';
export default { export default {
data() { data() {
return { return {
refreshing: false,
isOpened: 'none', isOpened: 'none',
loadingText: '加载中...', loadingText: '加载中...',
condition: { condition: {
...@@ -151,6 +166,9 @@ ...@@ -151,6 +166,9 @@
saleStatusArr: [], saleStatusArr: [],
} }
}, },
components: {
noData,
},
computed: { computed: {
...mapState(['sysinfo', 'userInfo']), ...mapState(['sysinfo', 'userInfo']),
navHeight() { navHeight() {
...@@ -158,86 +176,75 @@ ...@@ -158,86 +176,75 @@
'height': `${this.sysinfo.safeArea.top + 44}px` 'height': `${this.sysinfo.safeArea.top + 44}px`
} }
}, },
scrollHeight() {
return {
'height': `${this.sysinfo.safeArea.height - 297- 44 - 20 -40}px`
}
},
mainHeight() { mainHeight() {
return { return {
'height': `${this.sysinfo.safeArea.height - 44 }px`, 'height': `${this.sysinfo.safeArea.height - 44 }px`,
} }
}, },
}, scrollHeight() {
onNavigationBarButtonTap(e) { return {
// console.log('onNavigationBarButtonTap:', e, this.isOpened, this.selectedSalePlan); 'height': `${this.sysinfo.safeArea.height - 44 - 156 }px`
// if (this.isOpened === 'left' && this.selectedSalePlan && this.selectedSalePlan.PLAN_NUMBER) {
// uni.$emit('selectedSalePlan', {
// selectedSalePlan: this.selectedSalePlan,
// index: this.toPageParams.index
// })
// uni.navigateBack()
// return
// }
// this.isOpened = this.isOpened === 'none' ? 'left' : 'none';
// #ifdef APP-PLUS
// let pages = getCurrentPages()
// let page = pages[pages.length - 1]
// let webView = page.$getAppWebview();
// console.log('webView', webView)
// webView.setTitleNViewButtonStyle(0, {
// text: this.isOpened === 'none' ? '选择' : '完成',
// });
// let titleObj = webView.getStyle().titleNView;
// if(!titleObj.buttons){
// returnl
// }
// titleObj.buttons[0].text = 'dd';
// webView.setStyle({
// titleNView:titleObj
// })
// #endif
},
onLoad(option) {
console.log('select-saleplan', option)
if (option && option.from) {
const {
from,
product,
head
} = option
this.toPageParams.product = JSON.parse(product)
this.toPageParams.page = from
this.toPageParams.head = JSON.parse(head)
} }
}, },
onPullDownRefresh() {
console.log('refresh');
this.reset()
this.getSalesPlan(true)
setTimeout(function() {
uni.stopPullDownRefresh();
}, 600);
}, },
// onPullDownRefresh() {
// console.log('refresh');
// this.reset()
// this.getSalesPlan(true)
// setTimeout(function() {
// uni.stopPullDownRefresh();
// }, 600);
// },
created() { created() {
// this.condition.GJAHR = timeFormat(new Date(), 'yyyy')
// this.condition.MONAT = timeFormat(new Date(), 'mm')
this.reset() this.reset()
this.getSalesPlan(true); this.getSalesPlan(true)
this.getSelectDictDataOrigin('A0043') this.getSelectDictDataOrigin('A0043')
this.getSelectDictDataOrigin('A0041') this.getSelectDictDataOrigin('A0041')
}, },
methods: { methods: {
search() {
this.reset()
this.getSalesPlan(true)
},
bindPickerYearStartChange(e) {
console.log('picker发送选择改变,携带值为', e.detail.value)
this.condition.POSTING_DATE = e.detail.value
},
bindPickerTypesChange(e, type) {
console.log('picker发送选择改变,携带值为', e.detail.value)
const index = e.detail.value || 0
switch (type){
case 'type':
this.condition.PROCESS_TYPE = this.salePlanArr[index].value
this.condition.PROCESS_TYPE_VIEW = this.salePlanArr[index].name
break;
case 'status':
this.condition.ESTAT = this.saleStatusArr[index].value
this.condition.ESTAT_VIEW = this.saleStatusArr[index].name
break;
default:
break;
}
},
getSelectDictDataOrigin(dictcode) { getSelectDictDataOrigin(dictcode) {
querySysDictionaryDetailsByCode({'code': dictcode}) querySysDictionaryDetailsByCode({'code': dictcode})
.then(res => { .then(res => {
if(res.data.Rows.length>0){ if(res.data.Rows.length>0){
switch (dictcode){ switch (dictcode){
case 'A0043': case 'A0043':
this.salePlanArr = res.data.Rows const arr1 = {
name: "全部订单",
value: "",
}
this.salePlanArr = [arr1, ...res.data.Rows]
break; break;
case 'A0041': case 'A0041':
this.saleStatusArr = res.data.Rows const arr2 = {
name: "全部状态",
value: "",
}
this.saleStatusArr = [arr2, ...res.data.Rows]
break; break;
default: default:
break; break;
...@@ -246,11 +253,10 @@ ...@@ -246,11 +253,10 @@
}) })
.catch(() => {}) .catch(() => {})
}, },
bindPickerYearStartChange(e) {
console.log('picker发送选择改变,携带值为', e.detail.value)
this.condition.POSTING_DATE = e.detail.value
},
async getSalesPlan(isRefresh) { async getSalesPlan(isRefresh) {
if (isRefresh) {
this.page.PAGE = 1
}
if (this.loadParams.isDone) { if (this.loadParams.isDone) {
return return
} }
...@@ -261,29 +267,55 @@ ...@@ -261,29 +267,55 @@
POSTING_DATE POSTING_DATE
} = this.condition } = this.condition
const params = { const params = {
'$filter':"PARTNER eq '"+this.userInfo.code+"'"+ pagesize: this.page.PAGESIZE,
" and PROCESS_TYPE eq '" + PROCESS_TYPE+"'"+ page: this.page.PAGE,
" and ESTAT eq '" + ESTAT+"'"+ partner: this.userInfo.code,
" and OBJECT_ID eq '" + OBJECT_ID+"'"+ processType: PROCESS_TYPE,
"and POSTING_DATE eq '" + POSTING_DATE+"'", estat: ESTAT,
'$skip':0, objectId: OBJECT_ID,
'$top':50, postingDate: POSTING_DATE
} }
uni.showLoading({ uni.showLoading({
title: '加载中' title: '加载中'
}); });
setTimeout(function() { setTimeout(function() {
uni.hideLoading(); uni.hideLoading();
}, 2000); }, 2000);
try{ const res = await findAppWantGoods(params)
const res = await querySaleOrder(params)
uni.hideLoading(); uni.hideLoading();
const {
Rows,
page,
Total
} = res.data
this.page.PAGE = page * 1
this.loadParams.total = Total * 1
this.loadParams.totalPage = Math.ceil(Total * 1 / this.page.PAGESIZE * 1)
if (isRefresh) {
this.lists = Rows
this.loadParams.isDone = false this.loadParams.isDone = false
this.lists = res.d.results } else {
}catch(e){ this.lists = this.lists.concat(Rows)
//TODO handle the exception }
setTimeout(() => {
this.refreshing = false;
}, 300)
},
refresh(e) {
this.refreshing = true;
this.reset()
this.getSalesPlan(true)
// #ifdef APP-NVUE
try {
// console.log('-------', this.$refs.list)
this.$refs.list.resetLoadmore();
} catch (e) {
console.log('onrefresh', e)
} }
// #endif
}, },
scrolltolower() { scrolltolower() {
console.log('onReachBottom'); console.log('onReachBottom');
...@@ -306,59 +338,7 @@ ...@@ -306,59 +338,7 @@
this.lists = [] this.lists = []
this.loadingText = '加载中' this.loadingText = '加载中'
}, },
search() {
this.reset()
this.getSalesPlan(true);
},
bindPickerTypesChange(e, type) {
console.log('picker发送选择改变,携带值为', e.detail.value)
const index = e.detail.value || 0
switch (type){
case 'type':
this.condition.PROCESS_TYPE = this.salePlanArr[index].value
this.condition.PROCESS_TYPE_VIEW = this.salePlanArr[index].name
break;
case 'status':
this.condition.ESTAT = this.saleStatusArr[index].value
this.condition.ESTAT_VIEW = this.saleStatusArr[index].name
break;
default:
break;
}
},
bindPickerYearChange(e) {
console.log('picker发送选择改变,携带值为', e.detail.value)
this.condition.GJAHR = e.detail.value
},
handleChecked(e, item, index) {
console.log('当前索引:', e, index);
this.lists.forEach((cur) => {
if (cur.PLAN_NUMBER === item.PLAN_NUMBER) {
cur.checked = !cur.checked
} else {
cur.checked = false
}
})
if (item.checked === true) {
this.selectedSalePlan = item
if (this.selectedSalePlan && this.selectedSalePlan.PLAN_NUMBER) {
uni.$emit('selectedSalePlan', {
selectedSalePlan: this.selectedSalePlan,
index: this.toPageParams.index
})
uni.navigateBack()
}
} else {
// const selectIndex = this.selectedSalePlan.findIndex((saleplan)=>{
// return saleplan.id === item.id
// })
// this.selectedSalePlan.splice(selectIndex,1)
this.selectedSalePlan = {}
}
},
} }
} }
</script> </script>
...@@ -370,9 +350,9 @@ ...@@ -370,9 +350,9 @@
.header-bg { .header-bg {
height: 284rpx; height: 284rpx;
opacity: 0.72;
margin-top: -88rpx; margin-top: -88rpx;
} }
.header-bg-img { .header-bg-img {
width: 750rpx; width: 750rpx;
} }
...@@ -380,26 +360,30 @@ ...@@ -380,26 +360,30 @@
.lists { .lists {
position: relative; position: relative;
flex-direction: column; flex-direction: column;
overflow-y: scroll;
background: #f0f4f5; background: #f0f4f5;
overflow-x: hidden; flex: 1;
} }
.main { .main {
position: relative; position: relative;
flex-direction: column; flex-direction: column;
margin-top: -164rpx;
padding: 0 16rpx; padding: 0 16rpx;
// padding-top: 40rpx;
// background-color: #fff;
}
.scroll-area {
overflow-y: scroll;
background: #f0f4f5;
} }
.middle { .middle {
background-color: #fff; background-color: #fff;
border-radius: 16rpx; border-radius: 16rpx;
padding: 32rpx 64rpx 32rpx 48rpx; padding: 0rpx 64rpx 0rpx 48rpx;
} }
.text-block { .text-block {
display: flex;
overflow: hidden; overflow: hidden;
height: 96rpx; height: 96rpx;
margin-bottom: 14rpx; margin-bottom: 14rpx;
...@@ -420,53 +404,46 @@ ...@@ -420,53 +404,46 @@
} }
.middle-date-des { .middle-date-des {
flex: 2; flex: 3;
font-size: 28rpx; font-size: 28rpx;
line-height: 96rpx; line-height: 96rpx;
height: 96rpx; height: 96rpx;
white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
color: #888; color: #888;
} }
.middle-pro-des {
display: flex;
flex: 2;
font-size: 28rpx;
// height: 96rpx;
color: #888;
margin-top: 10rpx;
align-items: center;
}
.middle-date-select {
color: #888;
}
.middle-date-des-select {
color: #333;
}
.picker-year { .picker-year {
position: relative; position: relative;
border-radius: 4px; border-radius: 4px;
align-items: center; align-items: center;
line-height: normal;
} }
.uni-list-cell { .uni-list-cell {
flex: 1; flex: 1;
height: 96rpx;
line-height: 96rpx;
} }
.uni-list-cell-db { .uni-list-cell-db {
flex: 1; flex: 1;
height: 48px;
line-height: 48px;
} }
.picker-block { .picker-block {
flex: 1; flex: 1;
} }
.uni-input-text {
height: 96rpx;
line-height: 96rpx;
font-size: 14px;
color: #888;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
.icon-arrow { .icon-arrow {
position: absolute; position: absolute;
right: 0; right: 0;
...@@ -476,60 +453,119 @@ ...@@ -476,60 +453,119 @@
z-index: 10; z-index: 10;
} }
.scroll-area {
overflow-y: scroll;
}
.planout-block-lists { .planout-block-lists {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
.uni-swipe { .planout-block-item {
// margin: 32rpx 0;
}
.scroll-item {
flex: 1; flex: 1;
margin-bottom: 26rpx; display: flex;
flex-direction: column;
// margin-bottom: 32rpx;
background-color: #fff;
border-radius: 16rpx;
// padding: 32rpx 64rpx 40rpx 48rpx;
}
.planout-block-item__last {
height: 40px;
}
.item-block {
overflow: hidden;
} }
/deep/ .uni-swipe_box { .item-block-label {
font-size: 24rpx;
color: #333;
}
.item-block__label {
flex: 1; flex: 1;
text-align: left;
font-size: 32rpx;
color: #333;
font-weight: 500;
overflow: hidden;
text-overflow: ellipsis;
} }
.swipe-right-block { .item-block-code {
display: flex; padding-bottom: 16rpx;
width: 100rpx;
justify-content: center;
align-items: center;
} }
.swipe-right-block__text { .item-block-name {
display: inline-block; padding-top: 24rpx;
width: 52rpx; padding-bottom: 32rpx;
height: 52rpx;
border-radius: 50%;
background-color: #fff;
} }
.swipe-right-block__active { .item-block-label-des {
width: 52rpx; flex: 1;
height: 52rpx; text-align: left;
border-radius: 50%; font-size: 28rpx;
background-color: $wly-primary-color; color: #333;
}
.item-block-right-des {
flex: 1;
text-align: right;
font-size: 28rpx;
color: #333;
} }
.planout-block { .block-detal {
display: flex; display: flex;
justify-content: space-between; flex-direction: column;
margin-top: 30rpx; background: #f8f8f8;
margin-bottom: 30rpx; border-radius: 20rpx;
padding: 0 24rpx; padding: 0 20rpx;
margin-top: 32rpx;
} }
.planout-block-item { .block-detal-item {
flex: 1; display: flex;
width: 750rpx; overflow: hidden;
margin-bottom: 26rpx; height: 96rpx;
margin-bottom: 14rpx;
border-bottom: 1px solid #f4f5f6;
}
.block-detal-item-last {
margin-bottom: 0;
border-bottom: 0;
} }
.detal-item-label {
flex: 2;
font-size: 28rpx;
line-height: 96rpx;
color: #333;
margin-bottom: 8rpx;
}
.detal-item-value {
flex: 2;
font-size: 28rpx;
line-height: 96rpx;
height: 96rpx;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
color: #888;
}
.middle-pro-des {
display: flex;
flex: 2;
font-size: 28rpx;
// height: 96rpx;
color: #888;
margin-top: 10rpx;
align-items: center;
}
.btn { .btn {
flex: 1; flex: 1;
height: 92rpx; height: 92rpx;
...@@ -555,4 +591,57 @@ ...@@ -555,4 +591,57 @@
font-size: 12px; font-size: 12px;
color: #999; color: #999;
} }
.navs-block {
flex-direction: column;
background-color: #fff;
padding-top: 40rpx;
}
.navs-tab {
display: flex;
flex: 1;
align-items: center;
height: 60rpx;
border-bottom: 1px solid #F4F5F6;
padding-bottom: 8rpx;
}
.navs-tab-item {
display: flex;
justify-content: center;
flex: 1;
align-items: center;
height: 50rpx;
overflow: hidden;
}
.search-type-text {
color: #333;
font-size: 28rpx;
}
.icon-arrow-down {
width: 6px;
height: 4px;
margin-left: 16rpx;
}
.planout-block {
display: flex;
justify-content: space-between;
margin-top: 30rpx;
margin-bottom: 30rpx;
padding: 0 24rpx;
}
.btn {
flex: 1;
height: 92rpx;
background: $wly-primary-color;
border-radius: 46rpx;
}
.btn-text {
color: #fff;
font-size: 34rpx;
}
</style> </style>
...@@ -23,15 +23,15 @@ ...@@ -23,15 +23,15 @@
</view> </view>
<view class="text-block"> <view class="text-block">
<text class="middle-date">制票类型</text> <text class="middle-date">制票类型</text>
<text class="middle-date-des">{{orderItem.noticeSheetTypeTextView}}</text> <text class="middle-date-margin-des">{{orderItem.noticeSheetTypeTextView}}</text>
</view> </view>
<view class="text-block"> <view class="text-block">
<text class="middle-date">开票客户</text> <text class="middle-date">开票客户</text>
<text class="middle-date-des">{{orderItem.billCustomer}}</text> <text class="middle-date-margin-des">{{orderItem.billCustomer}}</text>
</view> </view>
<view class="text-block"> <view class="text-block">
<text class="middle-date" @tap="selectClient">订单客户</text> <text class="middle-date" @tap="selectClient">订单客户</text>
<text class="middle-date-des">{{orderItem.customerName}}</text> <text class="middle-date-margin-des">{{orderItem.customerName}}</text>
</view> </view>
<view class="text-block"> <view class="text-block">
<text class="middle-date">渠道类型</text> <text class="middle-date">渠道类型</text>
...@@ -433,7 +433,7 @@ ...@@ -433,7 +433,7 @@
.text-block { .text-block {
overflow: hidden; overflow: hidden;
height: 96rpx; // height: 96rpx;
// margin-bottom: 14rpx; // margin-bottom: 14rpx;
border-bottom: 1px solid #f4f5f6; border-bottom: 1px solid #f4f5f6;
} }
...@@ -455,10 +455,19 @@ ...@@ -455,10 +455,19 @@
flex: 3; flex: 3;
font-size: 28rpx; font-size: 28rpx;
height: 96rpx; height: 96rpx;
color: $text-base-color;
padding-top: 30rpx; padding-top: 30rpx;
justify-content: start; justify-content: start;
} }
.middle-date-margin-des{
flex: 3;
font-size: 28rpx;
color: $text-base-color;
padding-top: 30rpx;
margin-bottom: 20rpx;
width: 200%;
text-align: left;
justify-content: end;
}
.picker-year { .picker-year {
position: relative; position: relative;
...@@ -535,4 +544,5 @@ ...@@ -535,4 +544,5 @@
line-height: 96rpx; line-height: 96rpx;
color: $text-base-color; color: $text-base-color;
} }
</style> </style>
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<view class="middle view"> <view class="middle view">
<view class="text-block"> <view class="text-block">
<text class="middle-date">存货分类</text> <text class="middle-date">存货分类</text>
<view class="middle-date-des uni-list picker-year"> <view class="middle-date-pro uni-list picker-year">
<view class="uni-list-cell"> <view class="uni-list-cell">
<view class="uni-list-cell-db"> <view class="uni-list-cell-db">
<text class="uni-input">{{clueDetail.wlybrand_text}}</text> <text class="uni-input">{{clueDetail.wlybrand_text}}</text>
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
</view> </view>
<view class="text-block"> <view class="text-block">
<text class="middle-date">客户名称</text> <text class="middle-date">客户名称</text>
<view class="middle-date-des uni-list picker-year"> <view class="middle-date-pro uni-list picker-year">
<view class="uni-list-cell"> <view class="uni-list-cell">
<view class="uni-list-cell-db"> <view class="uni-list-cell-db">
<text class="uni-input">{{clueDetail.cust_name}}</text> <text class="uni-input">{{clueDetail.cust_name}}</text>
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
</view> </view>
<view class="text-block"> <view class="text-block">
<text class="middle-date">计划类型</text> <text class="middle-date">计划类型</text>
<view class="middle-date-des uni-list picker-year"> <view class="middle-date-pro uni-list picker-year">
<view class="uni-list-cell"> <view class="uni-list-cell">
<view class="uni-list-cell-db"> <view class="uni-list-cell-db">
<text class="uni-input">{{clueDetail.plan_type_text}}</text> <text class="uni-input">{{clueDetail.plan_type_text}}</text>
...@@ -266,7 +266,7 @@ ...@@ -266,7 +266,7 @@
.text-block { .text-block {
display: flex; display: flex;
overflow: hidden; overflow: hidden;
height: 96rpx; // height: 96rpx;
border-bottom: 1px solid #f4f5f6; border-bottom: 1px solid #f4f5f6;
} }
...@@ -289,12 +289,22 @@ ...@@ -289,12 +289,22 @@
.middle-date-des { .middle-date-des {
align-items: center; align-items: center;
flex: 5.5; flex: 3;
font-size: 24rpx; font-size: 24rpx;
color: $text-base-color; color: $text-base-color;
height: 96rpx; height: 96rpx;
line-height: 96rpx; line-height: 96rpx;
} }
.middle-date-pro {
align-items: center;
flex: 3;
font-size: 24rpx;
color: $text-base-color;
// height: 96rpx;
// line-height: 96rpx;
display: flex;
margin-top: 30rpx;
}
.uni-input-placeholder { .uni-input-placeholder {
color: #DBDBDB; color: #DBDBDB;
......
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
<view class="uni-list-cell-db"> <view class="uni-list-cell-db">
<picker class="picker-block" @change="bindPickerChange($event,'receive')" :value="orderItem.receiveUnitName" <picker class="picker-block" @change="bindPickerChange($event,'receive')" :value="orderItem.receiveUnitName"
range-key='PARTNER_NAME' mode="selector" :range="receiveUnitArr"> range-key='PARTNER_NAME' mode="selector" :range="receiveUnitArr">
<text class="middle-date-address-text">{{orderItem.receiveUnitName}}</text> <text class="middle-date-margin-des">{{orderItem.receiveUnitName}}</text>
</picker> </picker>
</view> </view>
</view> </view>
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
<view class="middle-date-des-unit uni-list picker-year"> <view class="middle-date-des-unit uni-list picker-year">
<view class="uni-list-cell"> <view class="uni-list-cell">
<view class="uni-list-cell-db"> <view class="uni-list-cell-db">
<text class="middle-date-address-text">{{orderItem.spurtCodeUnitName}}</text> <text class="middle-date-margin-des">{{orderItem.spurtCodeUnitName}}</text>
</view> </view>
</view> </view>
<!-- <image class="icon-arrow" src="@/static/image/arrow_r@3x.png" mode=""></image> --> <!-- <image class="icon-arrow" src="@/static/image/arrow_r@3x.png" mode=""></image> -->
...@@ -589,6 +589,16 @@ ...@@ -589,6 +589,16 @@
line-height: 34rpx; line-height: 34rpx;
align-items: center; align-items: center;
} }
.middle-date-margin-des{
flex: 1;
font-size: 28rpx;
color: #333;
margin-top: 0rpx;
margin-bottom: 20rpx;
width: 200%;
text-align: left;
justify-content: end;
}
.picker-year { .picker-year {
position: relative; position: relative;
align-items: center; align-items: center;
......
...@@ -183,7 +183,7 @@ class Request { ...@@ -183,7 +183,7 @@ class Request {
if (config.url.indexOf('crm-app') !== -1) { if (config.url.indexOf('crm-app') !== -1) {
// config.baseUrl = 'http://10.0.135.61' // config.baseUrl = 'https://crm.wuliangye.com.cn'
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'
...@@ -197,6 +197,7 @@ class Request { ...@@ -197,6 +197,7 @@ class Request {
config.baseUrl = 'http://221.10.127.60:5000/gateway/zdcx' config.baseUrl = 'http://221.10.127.60:5000/gateway/zdcx'
} else if (config.url.indexOf('uusafe') !== -1) { } else if (config.url.indexOf('uusafe') !== -1) {
config.baseUrl = 'https://zzy.ipincloud.cn:9070' config.baseUrl = 'https://zzy.ipincloud.cn:9070'
// config.baseUrl = 'https://apps.wuliangye.com.cn:9076'
} else { } else {
// http://10.0.134.182:8000 // http://10.0.134.182:8000
config.baseUrl = 'http://221.10.127.60:5000/wlySap' config.baseUrl = 'http://221.10.127.60:5000/wlySap'
......
...@@ -231,3 +231,12 @@ export async function queryNewsListSet(params) { ...@@ -231,3 +231,12 @@ export async function queryNewsListSet(params) {
const res = await apiHelper.get('/sap/opu/odata/sap/ZODATA_APP_006_SRV/SODYNSTATSet', params, {'Content-Type': 'application/json','Accept':'application/json'}) const res = await apiHelper.get('/sap/opu/odata/sap/ZODATA_APP_006_SRV/SODYNSTATSet', params, {'Content-Type': 'application/json','Accept':'application/json'})
return res return res
} }
/**
* 最终订单动态
* @returns {Promise<AxiosResponse<T>>}
*/
export async function findAppWantGoods(params) {
const res = await apiHelper.post('/crm-app/Invinfo/findAppWantGoods', params, {
})
return res
}
\ No newline at end of file
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