Commit f322ba22 authored by Damon's avatar Damon

Merge branch 'dev' of https://git.banshouhui.com/lijundan/self-support into dev

parents 7b9bbc34 230979e2
...@@ -115,15 +115,17 @@ ...@@ -115,15 +115,17 @@
return this.titles[String(this.info.status)] || this.info.statusText return this.titles[String(this.info.status)] || this.info.statusText
}, },
titles() { titles() {
// 待签收 15 待发货 10 待审核 1 已取消 -1 已驳回 -2 已签收 20 // 待签收 15; 待发货 10; 待审核 1; 已取消 -1; 已驳回 -2; 已签收 20;已完成 100;已核销 91
// 已核销展示为已签收
return { return {
'1': '待审核', '1': '待审核',
'10': '待发货', '10': '待发货',
'15': '代签收', '15': '待签收',
'20': '已签收', '20': '已签收',
'-2': '审核未通过', '-2': '审核未通过',
'-1': '已取消', '-1': '已取消',
'100': '已完成' '100': '已完成',
'91': '已签收' // 已核销
} }
}, },
titleColor() { titleColor() {
...@@ -144,7 +146,9 @@ ...@@ -144,7 +146,9 @@
'15': '20', '15': '20',
'20': '', '20': '',
'-2': '', '-2': '',
'-1': '' '-1': '',
'100': '',
'91': ''
} }
}, },
willStatus() { willStatus() {
......
...@@ -47,7 +47,6 @@ ...@@ -47,7 +47,6 @@
return { return {
value: 0, // 选数 value: 0, // 选数
check: false, // 选中 check: false, // 选中
oldCount: 0 // 旧选数
} }
}, },
computed: { computed: {
...@@ -67,10 +66,8 @@ ...@@ -67,10 +66,8 @@
}, },
}, },
watch: { watch: {
showChecked(val) {
this.oldCount = 0
},
'item.quantity'(val) { 'item.quantity'(val) {
this.check = val > 0
this.value = val this.value = val
}, },
'item.selected'(val) { 'item.selected'(val) {
...@@ -81,18 +78,12 @@ ...@@ -81,18 +78,12 @@
methods: { methods: {
handleChange(event) { handleChange(event) {
this.value = event.value ? this.item.stock : 0 this.value = event.value ? this.item.stock : 0
this.oldCount = this.value
this.$emit('change', event.value) this.$emit('change', event.value)
this.$emit('numChange', this.value)
}, },
numChange(event) { numChange(event) {
if (event.value == 0 && this.oldCount > 0) { this.check = event.value > 0
this.check = false
this.$emit('change', this.check)
} else if (event.value > 0 && this.oldCount == 0) {
this.check = true
this.$emit('change', this.check) this.$emit('change', this.check)
}
this.oldCount = event.value
this.$emit('numChange', event.value) this.$emit('numChange', event.value)
}, },
} }
......
...@@ -564,7 +564,7 @@ ...@@ -564,7 +564,7 @@
"path" : "returnParts", "path" : "returnParts",
"style" : "style" :
{ {
"navigationBarTitleText": "退返件", "navigationBarTitleText": "退件",
"navigationStyle":"custom", "navigationStyle":"custom",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
......
...@@ -132,7 +132,7 @@ ...@@ -132,7 +132,7 @@
}, },
handleClick() { handleClick() {
uni.setClipboardData({ uni.setClipboardData({
data: this.info.orderNumber, data: this.info.express.number,
success: function() { success: function() {
console.log('success'); console.log('success');
} }
......
...@@ -88,10 +88,10 @@ ...@@ -88,10 +88,10 @@
'name': '待签收', 'name': '待签收',
'status': 15 'status': 15
}, },
{ // {
'name': '已签收', // 'name': '已签收',
'status': 20 // 'status': 20
} // }
] ]
}, },
currentTab() { currentTab() {
...@@ -135,6 +135,7 @@ ...@@ -135,6 +135,7 @@
let pages = getCurrentPages() let pages = getCurrentPages()
let page = pages[pages.length - 1] let page = pages[pages.length - 1]
if (page.needApplyList) { if (page.needApplyList) {
page.needApplyList = null
this.currentIndex = 0 this.currentIndex = 0
this.reloadPartsList() this.reloadPartsList()
} }
......
...@@ -107,14 +107,17 @@ ...@@ -107,14 +107,17 @@
return this.titles[String(this.info.status)] || this.info.statusText return this.titles[String(this.info.status)] || this.info.statusText
}, },
titles() { titles() {
// 待签收 15; 待发货 10; 待审核 1; 已取消 -1; 已驳回 -2; 已签收 20;已完成 100;已核销 91
// 已核销展示为已签收
return { return {
'1': '待审核', '1': '待审核',
'10': '待发货', '10': '待发货',
'15': '代签收', '15': '待签收',
'20': '已签收', '20': '已签收',
'-2': '审核未通过', '-2': '审核未通过',
'-1': '已取消', '-1': '已取消',
'100': '已完成' '100': '已完成',
'91': '已签收' // 已核销
} }
}, },
total() { // 合计 total() { // 合计
...@@ -164,13 +167,14 @@ ...@@ -164,13 +167,14 @@
'20': '', '20': '',
'-2': '', '-2': '',
'-1': '', '-1': '',
'100': '' '100': '',
'91': ''
} }
}, },
buttonOperateType() { buttonOperateType() {
return this.operateTypes[this.info.status] return this.operateTypes[this.info.status]
}, },
// 待签收 15 变 已签收 20; 10 待审核 1 变 已取消 -1 // 待签收 15 -> 已签收 20; 待审核 1 -> 已取消 -1
willStatuses() { willStatuses() {
return { return {
'1': '-1', '1': '-1',
...@@ -179,7 +183,8 @@ ...@@ -179,7 +183,8 @@
'20': '', '20': '',
'-2': '', '-2': '',
'-1': '', '-1': '',
'100': '' '100': '',
'91': ''
} }
}, },
willStatus() { willStatus() {
...@@ -308,6 +313,7 @@ ...@@ -308,6 +313,7 @@
.image-view { .image-view {
width: 72rpx; width: 72rpx;
height: 72rpx; height: 72rpx;
flex-shrink: 0;
} }
.right-view { .right-view {
......
...@@ -74,10 +74,10 @@ ...@@ -74,10 +74,10 @@
}, },
}, },
onShow() { onShow() {
// 从过程反馈回来,需要刷新数据
let pages = getCurrentPages() let pages = getCurrentPages()
let page = pages[pages.length - 1] let page = pages[pages.length - 1]
if (page.needApplyList) { if (page.needApplyList) {
page.needApplyList = null
this.getPartsList() this.getPartsList()
} }
}, },
......
...@@ -143,6 +143,7 @@ ...@@ -143,6 +143,7 @@
let list = res.data || [] let list = res.data || []
for (var item of list) { for (var item of list) {
item.selected = false item.selected = false
item.stock = 12
this.partsList.push(item) this.partsList.push(item)
} }
...@@ -177,6 +178,7 @@ ...@@ -177,6 +178,7 @@
console.log(value) console.log(value)
for (var item of this.partsList) { for (var item of this.partsList) {
item.selected = value item.selected = value
item.quantity = value ? item.stock : 0
} }
}, },
handleChange(value, index) { handleChange(value, index) {
......
...@@ -348,10 +348,12 @@ ...@@ -348,10 +348,12 @@
let pages = getCurrentPages() let pages = getCurrentPages()
let page = pages[pages.length - 1] let page = pages[pages.length - 1]
if (page.needFresh) { if (page.needFresh) {
page.needFresh = null
this.loadOrderDetail() this.loadOrderDetail()
this.loadOrderRecord() this.loadOrderRecord()
} }
if (page.needApplyList) { if (page.needApplyList) {
page.needApplyList = null
this.getApplyList() this.getApplyList()
} }
}, },
......
...@@ -139,6 +139,7 @@ ...@@ -139,6 +139,7 @@
let page = pages[pages.length - 1]; let page = pages[pages.length - 1];
let selectedItem = page.selectedItem; let selectedItem = page.selectedItem;
if (selectedItem) { if (selectedItem) {
page.selectedItem = null
for (var item of this.labels[selectedItem.type]) { for (var item of this.labels[selectedItem.type]) {
if (item.id == selectedItem.id) { if (item.id == selectedItem.id) {
this.handleClick(selectedItem.type, item) this.handleClick(selectedItem.type, item)
......
<template> <template>
<view class="parts-wrap"> <view class="parts-wrap">
<w-navbar title="退返件"></w-navbar> <w-navbar title="退件"></w-navbar>
<view class="form"> <view class="form">
<view class="row"> <view class="row">
<view class="label">返件方式</view> <view class="label">返件方式</view>
......
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