From 87a475c8ca6fceb49648b6e4c700f968841ce845 Mon Sep 17 00:00:00 2001
From: wangfukang <15630117759@163.com>
Date: Fri, 23 Feb 2024 22:21:33 +0800
Subject: [PATCH] 111
---
pages/index/downStearmList.vue | 11 ++-
pages/index/downarrears.vue | 24 +-----
pages/index/downstream.vue | 2 +-
pages/index/home.vue | 8 +-
pages/index/orderDetail.vue | 126 +++++++++++++++++++++++-------
pages/index/shareStyle.vue | 5 +-
pages/index/upstream.vue | 2 +-
pages/index/waitStorage.vue | 10 ++-
pages/index/waitStorageDetail.vue | 102 +++++++++++++++++++++---
pages/inventory/changeGoods1.vue | 2 +-
pages/inventory/goodsList1.vue | 14 ++--
pages/login/login.vue | 2 +
12 files changed, 229 insertions(+), 79 deletions(-)
diff --git a/pages/index/downStearmList.vue b/pages/index/downStearmList.vue
index eb2a65a..22ff4b8 100644
--- a/pages/index/downStearmList.vue
+++ b/pages/index/downStearmList.vue
@@ -311,7 +311,7 @@
}
this.zPrice = this.zNum * this.purchasePrice
},
- //编辑每一个的单价
+ //点击开单按钮,调起地址输入窗
clickPrice() {
this.$refs.inputDialog.open('bottom')
},
@@ -338,8 +338,13 @@
},
//选择商品查询商品规格
- checkGoods(item) {
- this.purchasePrice = item.price;
+ checkGoods(item) {
+ if(this.priceType == 1){ //批发价
+ this.purchasePrice = item.wholesalePrice;
+ }else{
+ this.purchasePrice = item.price;
+ }
+
this.goodsDetail = item;
this.temporaryList = []
this.columns = []
diff --git a/pages/index/downarrears.vue b/pages/index/downarrears.vue
index 1e0defb..537bab3 100644
--- a/pages/index/downarrears.vue
+++ b/pages/index/downarrears.vue
@@ -18,7 +18,6 @@
-
@@ -37,10 +36,7 @@
return {
userId: '',
nickname: '',
- list: [],
- status: 'loadmore',
- pages:1,
- pageNumber:1
+ list: []
}
},
onLoad(options) {
@@ -50,26 +46,14 @@
},
onShow(){
this.getList()
- },
- onReachBottom() {
- if (this.pages >= this.pageNum) return;
- this.status = 'loading';
- this.pages = ++this.pages;
- this.getList();
},
methods: {
getList() {
this.tui.request("/app/sale/customSale", "post", {
userId: this.userId
- }, false, true).then((res) => {
- this.status = 'nomore';
- if (res.code == 200) {
- if (this.pages == 1) {
- this.list = res.result
- } else {
- this.list = [...this.list, ...res.result]
- }
- this.pageNumber = res.result.pages
+ }, false, true).then((res) => {
+ if (res.code == 200) {
+ this.list = res.result
} else {
this.tui.toast(res.message)
}
diff --git a/pages/index/downstream.vue b/pages/index/downstream.vue
index 125d1b3..39801bd 100644
--- a/pages/index/downstream.vue
+++ b/pages/index/downstream.vue
@@ -45,7 +45,7 @@ export default {
getList() {
this.tui.request("/app/customer/debt", "POST", {}, false, true).then((res) => {
if(res.code == 200){
- this.list = res.result
+ this.list = res.result.records
}else{
this.tui.toast(res.message)
}
diff --git a/pages/index/home.vue b/pages/index/home.vue
index f296eb0..dbcecda 100644
--- a/pages/index/home.vue
+++ b/pages/index/home.vue
@@ -9,7 +9,7 @@
}
},
- onLoad() {
+ onLoad(option) {
uni.showLoading({
title: '加载中...'
})
@@ -27,7 +27,11 @@
url: '/pages/other/custom'
})
}
- } else {
+ } else if(option.khid){
+ uni.reLaunch({
+ url: '/pages/index/downStearmList?khid='+option.khid
+ })
+ }else {
uni.reLaunch({
url: '/pages/login/login'
})
diff --git a/pages/index/orderDetail.vue b/pages/index/orderDetail.vue
index 9640db1..07a2abe 100644
--- a/pages/index/orderDetail.vue
+++ b/pages/index/orderDetail.vue
@@ -13,7 +13,7 @@
暂无图片
{{item.productName}} ({{item.productSn == null ? '暂无':item.productSn}})
- 单价:{{item.purchasePrice == null ? '暂无':item.purchasePrice}} 数量:{{item.productCount == null ? '暂无':item.productCount}} 总价:{{item.discountAmount == null ? '暂无':item.discountAmount}}
+ 单价:{{item.discountAmount == null ? '暂无':item.discountAmount}} 数量:{{item.productCount == null ? '暂无':item.productCount}} 总价:{{item.productCount * item.discountAmount}}
供应商:{{item.supplierName == null ? '暂无':item.supplierName}}
@@ -36,6 +36,13 @@
{{ sales.totalAmount == null ?'暂无':sales.totalAmount }}
+
+ 总成本
+
+ ¥
+ {{ sales.zongchengben == null ?'暂无':sales.zongchengben }}
+
+
实收金额
@@ -72,20 +79,19 @@
- 已选金额
+ 退货金额
¥
{{ changeAmount}}
-
+
-
+ -->
+
+
@@ -258,7 +276,8 @@
collection:[],
lbgName:[],
returnAmount:0,
- shopData:[]
+ shopData:[],
+ changeA:''
}
},
components: {
@@ -275,8 +294,8 @@
}
});
})
- this.returnAmount = (sum * this.sales.discount * 0.1).toFixed(2)
- return (sum * this.sales.discount * 0.1).toFixed(2)
+ this.returnAmount = sum.toFixed(2)
+ return this.returnAmount
} else {
return 0
}
@@ -303,6 +322,7 @@
},
onShow(){
this.lbgName = JSON.parse(JSON.stringify(this.lbgName))
+ this.type=uni.getStorageSync('type')
},
onLoad(option) {
if (option.id != null && option.id != undefined && option.id != "") {
@@ -324,7 +344,22 @@
this.tui.request("/app/sale/get/" + option.id, "GET", null, false, false).then((res) => {
if (res.code == 200 && res.result != null && res.result != undefined) {
this.sales = res.result.sale
- this.list = res.result.saleDetailDTOList
+ this.list = res.result.saleDetailDTOList
+ for(var i=0;i {
- item1.stockLogList1.forEach(item2 => {
+ item1.stockLogList1.forEach((item2,index) => {
+ console.log(index)
if (item2.returnCount) {
item2.productCount = item2.returnCount
- } else {
- item2.productCount = 0
+ } else {
+ item1.stockLogList1.splice(index, 1)
}
})
- })
- this.sales.saleId = this.sales.id;
- this.sales.totalAomount = this.returnAmount;
+ })
+ for(var i=0;i
-
\ No newline at end of file
diff --git a/pages/index/shareStyle.vue b/pages/index/shareStyle.vue
index 7d67294..59d19ce 100644
--- a/pages/index/shareStyle.vue
+++ b/pages/index/shareStyle.vue
@@ -1,7 +1,7 @@
-
+
@@ -210,8 +210,7 @@
this.shopList[i] = []
}
- }
- console.log(this.shopList)
+ }
this.goodsList = this.shopList[0]
} else {
this.tui.toast(res.message)
diff --git a/pages/index/upstream.vue b/pages/index/upstream.vue
index f9502b4..7ebf9a2 100644
--- a/pages/index/upstream.vue
+++ b/pages/index/upstream.vue
@@ -48,7 +48,7 @@
getList() {
this.tui.request("/app/purchase/debt", "get", {}, false, true).then((res) => {
if (res.code == 200) {
- this.list = res.result
+ this.list = res.result.records
} else {
this.tui.toast(res.message)
}
diff --git a/pages/index/waitStorage.vue b/pages/index/waitStorage.vue
index e14625f..bae7007 100644
--- a/pages/index/waitStorage.vue
+++ b/pages/index/waitStorage.vue
@@ -65,7 +65,10 @@
this.inStorageStatus = option.inStorageStatus || ''
this.type = uni.getStorageSync('type')
console.log(this.inStorageStatus)
- this.getList()
+
+ },
+ onShow(){
+ this.getList()
},
onReachBottom() {
if(this.inStorageStatus != 0){
@@ -109,11 +112,12 @@
pageSize:10,
}, false, false).then((res) => {
if (res.code == 200) {
+ this.list = []
this.pages = res.result.pages
if (this.pages == 1) {
- this.list = res.result
+ this.list = res.result.records
} else {
- this.list = [...this.list, ...res.result]
+ this.list = [...this.list, ...res.result.records]
}
} else {
this.tui.toast(res.message)
diff --git a/pages/index/waitStorageDetail.vue b/pages/index/waitStorageDetail.vue
index 8aa8d3a..036fa7e 100644
--- a/pages/index/waitStorageDetail.vue
+++ b/pages/index/waitStorageDetail.vue
@@ -97,7 +97,26 @@
-
+
+
+
+ 回款历史
+
+
+
+ 回款金额:
+ {{ item.amount }}
+
+
+ 操作人:
+ {{ item.createByName }}
+
+
+ 操作时间:
+ {{ item.createTime }}
+
+
+
回款
确认提交
@@ -129,7 +148,8 @@
remark:'',
id:'',
type:'',
- supplier:[]
+ supplier:[],
+ collection:[]
}
},
filters: {
@@ -147,9 +167,18 @@
onLoad(option) {
this.id = option.id
this.getWaitStorage(option.id)
+ this.collectionList(option.id)
this.type = uni.getStorageSync('type')
},
- methods: {
+ methods: {
+ //回款历史
+ collectionList(id){
+ this.tui.request('/app/dealingRecord/getDealingsRecordList','post', {
+ orderId:id
+ },false,true).then(res => {
+ this.collection = res.result
+ }).catch(res => {});
+ },
getWaitStorage(id) {
this.tui.request("/app/purchase/getPurchaseAllData", "post", {
id: id
@@ -262,14 +291,67 @@