Commit 4b80da3f by liangjianmin

bug

parent 9b2a5027
.payment-index {
.search-box {
border-top: 1px solid #cad9e0;
padding: 0 24rpx;
height: 100rpx;
background: #ffffff;
.box {
height: 60rpx;
position: relative;
flex: 0 0 50%;
.iconfont {
position: absolute;
right: 49rpx;
......@@ -18,13 +16,18 @@
.uni-input {
font-size: 26rpx;
&:-webkit-input-placeholder {
color: #404547;
color: #404547;
}
}
&:first-child {
&.w1 {
padding-left: 24rpx;
flex: 0 0 487rpx;
border-right: 1px solid #cad9e0;
}
&.ml{
&.w2 {
flex: 0 0 238rpx;
}
&.ml {
margin-left: 23rpx;
}
}
......@@ -138,3 +141,7 @@
color: #6e767a;
}
}
.uni-date-editor--x .uni-date__icon-clear {
top: 5px !important;
right: -8px !important;
}
......@@ -79,6 +79,7 @@
position: relative;
margin-left: 67rpx;
height: 100rpx;
border-bottom: 1rpx solid #cad9e0;
.iconfont {
position: absolute;
right: 24rpx;
......@@ -94,13 +95,25 @@
}
}
.btn {
width: 702rpx;
width: 400rpx;
height: 88rpx;
background: #197adb;
border-radius: 4rpx;
font-size: 28rpx;
color: #ffffff;
margin: 0 auto;
}
.canel {
width: 200rpx;
height: 88rpx;
border: 1px solid #197adb;
border-radius: 4rpx;
font-size: 28rpx;
color: #197adb;
}
.bottom{
margin-left: 67rpx;
margin-right: 24rpx;
margin-top: 24rpx;
}
}
}
......
......@@ -65,10 +65,10 @@
</template>
<template v-else>
<!-- 登录无数据-->
<view class="no-data row verCenter rowCenter" v-if="is_login">
<navigator class="no-data row verCenter rowCenter" v-if="is_login" open-type="switchTab" url="/pages/question/list" hover-class="none">
<text class="text">暂无最新问题,</text>
<text class="hove">查看更多问题</text>
</view>
</navigator>
<!-- 未登录状态 -->
<view class="no-data column verCenter rowCenter" v-else>
<view class="row verCenter">
......@@ -139,10 +139,10 @@
</view>
<template v-else>
<!-- 登录无数据-->
<view class="no-data row verCenter rowCenter" v-if="is_login == true">
<navigator class="no-data row verCenter rowCenter" v-if="is_login == true" open-type="switchTab" url="/pages/order/index" hover-class="none">
<text class="text">暂无最新订单,</text>
<text class="hove">查看完整订单</text>
</view>
</navigator>
<!-- 未登录状态 -->
<view class="no-data column verCenter rowCenter" v-if="is_login == false">
<view class="row verCenter">
......@@ -193,16 +193,17 @@ export default {
if (res.data.data.length > 0) {
this.order_num = res.data.order_num;
this.total = res.data.total;
this.order_list = this.order_list.concat(res.data.data);
this.order_list = res.data.data;
} else {
this.flag = true;
}
} else if (res.err_code === 20045) {
this.order_list = [];
this.is_login = false;
this.flag = true;
} else if (res.err_code === 20046) {
this.total = 0;
this.flag = true;
this.is_login = true;
} else {
this.flag = true;
}
......@@ -224,8 +225,7 @@ export default {
).then(res => {
if (res.err_code === 0) {
if (res.data.data.length > 0) {
this.total = res.data.wait_handle_num;
this.list = this.list.concat(res.data.data);
this.list = res.data.data;
} else {
this.flag = true;
this.more = 'noMore';
......@@ -234,7 +234,10 @@ export default {
this.is_login = false;
this.flag = true;
this.more = 'noMore';
this.total = 0;
this.list = [];
} else if (res.err_code === 20046) {
this.flag = true;
this.is_login = true;
} else {
this.flag = true;
this.more = 'noMore';
......
......@@ -3,15 +3,17 @@
<text class="logo"></text>
<text class="title">SCM商务系统</text>
<view class="form-box column rowCenter verCenter">
<view class="input-box row verCenter">
<text class="iconfont icon-riqi1"></text>
<input type="text" placeholder="请输入登录账号" v-model="account" />
</view>
<view class="input-box row verCenter">
<text class="iconfont icon-a-riqi11"></text>
<input type="password" placeholder="请输入登录密码" v-model="pwd" />
</view>
<button class="btn row rowCenter verCenter" @click="submit()">绑定账号</button>
<form report-submit="true" bindsubmit="userSubmit">
<view class="input-box row verCenter">
<text class="iconfont icon-riqi1"></text>
<input type="text" placeholder="请输入登录账号" v-model="account" />
</view>
<view class="input-box row verCenter">
<text class="iconfont icon-a-riqi11"></text>
<input type="password" placeholder="请输入登录密码" v-model="pwd" />
</view>
<button class="btn row rowCenter verCenter" @click="submit()">绑定账号</button>
</form>
</view>
<view class="copyright">©2021深圳市猎芯供应链有限公司 ALL RIGHTS RESERVED</view>
</view>
......@@ -69,9 +71,17 @@ export default {
true
).then(res => {
if (res.err_code === 0) {
uni.setStorageSync('token', res.data.token);
uni.navigateBack({
delta: 2
wx.requestSubscribeMessage({
tmplIds: ['67KexDoluOH6YII26RcD1j6q6vCUeSTr90Y8KiQHzEo'],
success(json) {
console.log(json.errMsg == 'requestSubscribeMessage:ok')
if (json.errMsg == 'requestSubscribeMessage:ok') {
uni.setStorageSync('token', res.data.token);
uni.navigateBack({
delta: 2
});
}
}
});
} else {
uni.showToast({
......
......@@ -267,11 +267,11 @@
<text class="t1">收货信息:</text>
<view class="address row verCenter">
<text class="iconfont icon-dingwei"></text>
<text class="t1">{{ detail.order_hongkong.hk_com_delivery_id_cn.consignee }}</text>
<text class="t2">{{ detail.order_hongkong.hk_com_delivery_id_cn.mobile }}</text>
<text class="t1">{{ detail.inland_delivery.address.consignee }}</text>
<text class="t2">{{ detail.inland_delivery.address.mobile }}</text>
</view>
<text class="address-detail">
{{ detail.order_hongkong.hk_com_delivery_id_cn.city_info || '' }}{{ detail.order_hongkong.hk_com_delivery_id_cn.detail_address || '' }}
{{ detail.inland_delivery.address.city_info || '' }}{{ detail.inland_delivery.address.detail_address || '' }}
</text>
</view>
</template>
......
......@@ -13,9 +13,7 @@
</view>
<view class="show-box" v-if="shade_flag">
<view class="input-box row verCenter">
<picker :value="index" :range="suppliers" range-key="supplier_name" @change="bindPickerChange">
<input type="text" placeholder="请输入供应商" class="uni-input" disabled="disabled" :value="suppliers[index].supplier_name" />
</picker>
<input type="text" placeholder="请输入供应商" class="uni-input" disabled="disabled" :value="suppliers[index].supplier_name" />
</view>
<view class="input-time row verCenter"><uni-datetime-picker v-model="datetimerange" type="daterange" rangeSeparator="至" /></view>
<view class="btn row rowCenter verCenter" @click="submit()">查 询</view>
......
......@@ -7,7 +7,7 @@
</view>
<view class="pp row verCenter">
<text class="t1">付款编号:</text>
<text class="t2">{{ detail['付款编码'] }}</text>
<text class="t2">{{ paymentNumber}}</text>
</view>
<view class="pp row verCenter">
<text class="t1">付款单位:</text>
......
<template>
<view class="payment-index">
<view class="search-box row bothSide verCenter">
<view class="box row verCenter">
<picker mode="date" :value="date" @change="bindDateChange"><input type="text" placeholder="请选择交易时间" class="uni-input" :value="date" /></picker>
<text class="iconfont icon-Chevron"></text>
</view>
<view class="box row verCenter ml">
<picker :value="index" :range="currency" @change="bindPickerChange">
<input type="text" placeholder="请选择付汇币别" class="uni-input" :value="currency[index]" />
</picker>
<view class="box row verCenter w1"><uni-datetime-picker @change="change" v-model="datetimerange" type="daterange" rangeSeparator="至" /></view>
<view class="box row verCenter w2">
<picker :value="index" :range="currency" @change="bindPickerChange"><input type="text" placeholder="付汇币别" class="uni-input" :value="currency[index]" /></picker>
<text class="iconfont icon-Chevron"></text>
</view>
</view>
......@@ -75,6 +70,8 @@ export default {
loading: true,
status: 'more',
date: '',
datetimerange: ['', ''],
index: -1,
currency: [],
contentText: {
contentdown: '下拉加载更多',
......@@ -115,8 +112,24 @@ export default {
}
});
},
change(e) {
console.log(e);
this.list = [];
this.page = 1;
this.datetimerange = e;
this.getData();
},
getData() {
this.request(API.GetPaymentList, 'GET', { currency: this.param.currency, tradeDateTo: this.param.tradeDateTo }, this.loading).then(res => {
this.request(
API.GetPaymentList,
'GET',
{
currency: this.param.currency,
tradeDateFrom: this.datetimerange[0] || '',
tradeDateTo: this.datetimerange[1] || ''
},
this.loading
).then(res => {
if (res.err_code === 0) {
if (res.data.length > 0) {
this.list = res.data;
......@@ -165,6 +178,6 @@ export default {
};
</script>
<style scoped lang="scss">
<style lang="scss">
@import '../../assets/css/payment/index.scss';
</style>
......@@ -17,8 +17,16 @@
<input type="text" placeholder="请输入供应商" class="uni-input" disabled="disabled" :value="suppliers[index].supplier_name" />
</picker>
</view>
<view class="input-time row verCenter"><uni-datetime-picker v-model="datetimerange" type="daterange" rangeSeparator="至" /></view>
<view class="btn row rowCenter verCenter" @click="submit()">查 询</view>
<view class="input-time row verCenter">
<picker :value="index" :range="currency" @change="bindPickerChange">
<input type="text" placeholder="付汇币别" class="uni-input" :value="currency[index]" />
</picker>
<text class="iconfont icon-Chevron"></text>
</view>
<view class="row bottom bothSide">
<view class="btn row rowCenter verCenter" @click="submit()">查 询</view>
<view class="canel row rowCenter verCenter" @click="canel()">重 置</view>
</view>
</view>
</view>
</view>
......@@ -92,8 +100,8 @@ export default {
index: -1,
suppliers: [],
status: 'more',
date: '',
datetimerange: ['', ''],
index: -1,
currency: [],
contentText: {
contentdown: '下拉加载更多',
contentrefresh: '加载数据中...',
......@@ -101,7 +109,8 @@ export default {
},
param: {
entrustNumber: '',
supplierName: ''
supplierName: '',
settleMentCurrency: ''
}
};
},
......@@ -115,12 +124,24 @@ export default {
},
onLoad() {
this.getUserSuppliers();
this.getcurrency();
},
onShow() {
this.list = [];
this.getData();
},
methods: {
getcurrency() {
this.request(API.Getcurrency, 'GET', {}, false).then(res => {
if (res.err_code === 0) {
var arr = [];
for (let i in res.data) {
arr.push(res.data[i]);
}
this.currency = arr;
}
});
},
getUserSuppliers() {
this.request(API.GetUserSuppliers, 'POST', {}, false).then(res => {
if (res.err_code == 0) {
......@@ -162,8 +183,7 @@ export default {
page: this.page,
entrustNumber: this.param.entrustNumber,
supplierName: this.param.supplierName,
dateFrom: this.datetimerange[0] || '',
dateTo: this.datetimerange[1] || ''
settleMentCurrency: this.settleMentCurrency
},
this.loading
).then(res => {
......@@ -190,10 +210,11 @@ export default {
this.reset();
this.getData();
},
bindDateChange(e) {
bindPickerChangeCurrenty(e) {
console.log('picker发送选择改变,携带值为', e.target.value);
this.date = e.target.value;
this.param.end_time = e.target.value;
this.index = e.target.value;
this.param.settleMentCurrency = this.currency[e.target.value];
this.reset();
this.getData();
},
getDate(type) {
......
//const API_BASE = 'https://api.ichunt.com';
const API_BASE = 'http://supplyapi.liexin.com'
const API_BASE = 'https://api.ichunt.com';
//const API_BASE = 'http://supplyapi.liexin.com'
const API = {
/**
......
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 sign in to comment