diff --git a/pages/billing/changeGoods1.vue b/pages/billing/changeGoods1.vue
index 7680c0f..eb5b8dd 100644
--- a/pages/billing/changeGoods1.vue
+++ b/pages/billing/changeGoods1.vue
@@ -272,23 +272,65 @@
for (let m = 0; m < this.goodsDetail.attributeList[i].value.length; m++) {
this.goodsDetail.attributeList[i].value[m].isChecked = false
}
- }
- if (this.temporaryList.length == 0) {
- this.temporaryList.push(this.attributeList);
- } else {
- for (var i = 0; i < this.temporaryList.length; i++) {
- if (this.temporaryList[i].name.indexOf(this.attributeList.name) != -1) {
- this.temporaryList[i] = this.attributeList
- return
- } else {
- if (this.temporaryList.length == (i + 1)) {
- this.temporaryList.push(this.attributeList);
- return
- }
- }
- }
-
- }
+ }
+ if (this.temporaryList.length == 0) {
+ this.temporaryList.push(this.attributeList);
+ } else {
+ for (var m = 0; m < this.temporaryList.length; m++) {
+ if (this.temporaryList[m].name.indexOf(this.attributeList.name) != -1) {
+ this.temporaryList[m] = this.attributeList
+ return
+ } else {
+ if (this.temporaryList.length == (m + 1)) {
+ this.temporaryList.push(this.attributeList);
+ return
+ }
+ }
+ }
+ }
+ if(this.carList.length == 0){
+ let data = {
+ id: this.goodsDetail.id,
+ price: this.zPrice,
+ num: this.zNum,
+ productName: this.goodsDetail.productName,
+ productSn: this.goodsDetail.productSn,
+ productPicture: this.goodsDetail.productPicture,
+ supplierName: this.goodsDetail.supplierName,
+ saleDetailQueryDTO: this.temporaryList,
+ wholesalePrice: this.goodsDetail.wholesalePrice,
+ lsprice: this.goodsDetail.price
+ }
+ this.carList.push(data)
+ }else{
+ for(let i = 0; i < this.carList.length; i++){
+ if(this.carList[i].id== this.goodsDetail.id){ //商品存在
+ for(let m = 0; m < this.carList[i].saleDetailQueryDTO.length; m++){
+ if(this.carList[i].saleDetailQueryDTO[m].name != this.attributeList.name){ //规格不存在
+ if(this.carList[i].saleDetailQueryDTO.length == (m+1)){
+ this.carList[i].saleDetailQueryDTO.push(this.attributeList)
+ }
+
+ }
+ }
+ }else{ //商品不存在
+ let data = {
+ id: this.goodsDetail.id,
+ price: this.zPrice,
+ num: this.zNum,
+ productName: this.goodsDetail.productName,
+ productSn: this.goodsDetail.productSn,
+ productPicture: this.goodsDetail.productPicture,
+ supplierName: this.goodsDetail.supplierName,
+ saleDetailQueryDTO: this.temporaryList,
+ wholesalePrice: this.goodsDetail.wholesalePrice,
+ lsprice: this.goodsDetail.price
+ }
+ this.carList.push(data)
+ }
+ }
+ }
+
}
@@ -337,11 +379,13 @@
this.type = type
// open 方法传入参数 等同在 uni-popup 组件上绑定 type属性
- if (type == 'carPopup') {
+ if (type == 'carPopup') {
+ this.carNum = 0
this.$refs.carPopup.open('bottom')
for (let i = 0; i < this.carList.length; i++) {
this.carNum += this.carList[i].num
- }
+ }
+
this.carType = this.carList.length
} else {
this.checkGoods(item);
@@ -439,19 +483,19 @@
// icon: 'none'
// })
// }else{
- let data = {
- id: this.goodsDetail.id,
- price: this.zPrice,
- num: this.zNum,
- productName: this.goodsDetail.productName,
- productSn: this.goodsDetail.productSn,
- productPicture: this.goodsDetail.productPicture,
- supplierName: this.goodsDetail.supplierName,
- saleDetailQueryDTO: this.temporaryList,
- wholesalePrice: this.goodsDetail.wholesalePrice,
- lsprice: this.goodsDetail.price
- }
- this.carList.push(data)
+ // let data = {
+ // id: this.goodsDetail.id,
+ // price: this.zPrice,
+ // num: this.zNum,
+ // productName: this.goodsDetail.productName,
+ // productSn: this.goodsDetail.productSn,
+ // productPicture: this.goodsDetail.productPicture,
+ // supplierName: this.goodsDetail.supplierName,
+ // saleDetailQueryDTO: this.temporaryList,
+ // wholesalePrice: this.goodsDetail.wholesalePrice,
+ // lsprice: this.goodsDetail.price
+ // }
+ // this.carList.push(data)
this.temporaryList = []
this.purchasePrice = ''
this.zPrice = ''
diff --git a/pages/index/shareStyle.vue b/pages/index/shareStyle.vue
index 6d24993..fc77b9c 100644
--- a/pages/index/shareStyle.vue
+++ b/pages/index/shareStyle.vue
@@ -7,12 +7,13 @@
- {{item.categoryName}}
+ {{item.categoryName}}
-
-
+
+
@@ -64,36 +65,37 @@
-
-
-
-
+
+
+
+
@@ -106,18 +108,18 @@
indexList: [],
pageNum: 1, //分页的页码
shopList: [],
- info: 0,
- goodsList:[],
+ info: 0,
+ goodsList: [],
categoryId: '', //分类id
searchName: '', //搜索框输入值
shopId: '', //店铺id,
checkbox: '', //需要分享的商品id
- id: '',
- carList:[],
- carNum:0,
- carType:0,
- type:'',
- gwcList:[]
+ id: '',
+ carList: [],
+ carNum: 0,
+ carType: 0,
+ type: '',
+ gwcList: []
}
},
created() {
@@ -129,7 +131,7 @@
uni.redirectTo({
url: "/pages/index/downStearmList?khid=" + options.khid
})
- }
+ }
this.type = uni.getStorageSync('type')
this.getGategoryList()
},
@@ -146,30 +148,30 @@
this.indexList[i].parentId = true
} else {
this.indexList[i].parentId = false
- }
+ }
this.getShareList(this.indexList[i].id);
}
-
+
} else {
this.tui.toast(res.message)
}
}).catch((res) => {})
},
//点击分类获取商品列表
- getShareList(id) {
- this.tui.request("/app/product/getShareList", "POST", {
- categoryId: id,
- supplierName: this.searchName,
- pageNum: this.pageNum,
- pageSize: '100'
- }, false, false).then((res) => {
- if (res.code == 200) {
- console.log(res.result.records)
- this.shopList.push(res.result.records)
- this.goodsList = this.shopList[0]
- } else {
- this.tui.toast(res.message)
- }
+ getShareList(id) {
+ this.tui.request("/app/product/getShareList", "POST", {
+ categoryId: id,
+ supplierName: this.searchName,
+ pageNum: this.pageNum,
+ pageSize: '100'
+ }, false, false).then((res) => {
+ if (res.code == 200) {
+ console.log(res.result.records)
+ this.shopList.push(res.result.records)
+ this.goodsList = this.shopList[0]
+ } else {
+ this.tui.toast(res.message)
+ }
}).catch((res) => {})
},
//顶部搜索框
@@ -179,20 +181,20 @@
title: '搜索:' + res.value,
icon: 'none'
})
- },
- //未入库遮罩
- clickMask(item){
- let title = ''
- if(item.delFlag == 0){
- title = '请将商品上架后再操作!'
- }
- // else if(item.delFlag == 1){
- // title = '请将商品入库后再操作!'
- // }
- uni.showToast({
- title: title,
- icon: 'none'
- })
+ },
+ //未入库遮罩
+ clickMask(item) {
+ let title = ''
+ if (item.delFlag == 0) {
+ title = '请将商品上架后再操作!'
+ }
+ // else if(item.delFlag == 1){
+ // title = '请将商品入库后再操作!'
+ // }
+ uni.showToast({
+ title: title,
+ icon: 'none'
+ })
},
//点击左侧菜单切换
clickLeftBtn(index) {
@@ -202,38 +204,38 @@
} else {
this.indexList[i].parentId = false
}
- }
+ }
this.goodsList = this.shopList[index]
// this.getShareList(this.indexList[index].id)
},
//选中商品
- checkboxChange(item) {
+ checkboxChange(item) {
console.log(item)
- item.checked = !item.checked
- if(this.carList.indexOf(item.id) != -1){
- this.carList.splice(this.carList.indexOf(item.id),1)
- }else{
- this.carList.push(item.id)
- }
- if(this.gwcList.length==0){
- this.gwcList.push(item)
- }else{
- for(let i=0;i
\ No newline at end of file
diff --git a/pages/index/waitStorage.vue b/pages/index/waitStorage.vue
index db69c5b..9b239cd 100644
--- a/pages/index/waitStorage.vue
+++ b/pages/index/waitStorage.vue
@@ -63,10 +63,12 @@
// this.status = 'loading';
// this.page = ++this.page;
// this.getList();
- // },
+ // },
+ onShow(){
+ this.getList()
+ },
onLoad(option) {
this.inStorageStatus = option.inStorageStatus || ''
- this.getList()
this.type = uni.getStorageSync('type')
},
methods: {
diff --git a/pages/index/waitStorageDetail.vue b/pages/index/waitStorageDetail.vue
index c901a98..f130f75 100644
--- a/pages/index/waitStorageDetail.vue
+++ b/pages/index/waitStorageDetail.vue
@@ -4,14 +4,14 @@
{{sales.province + sales.area + sales.city + sales.receiveAddress}}
-
+
品名:{{item.productName == null ?'暂无':item.productName}}
货号:{{item.productSn == null ?'暂无':item.productSn}}
- 总价:{{item.price == null ?'暂无':item.price}} 数量:{{item.productCount == null ?'暂无':item.productCount}}
+ 总价:{{item.price == null ?'暂无':item.price}} 数量:{{item.productCount == null ?'暂无':item.productCount}}
@@ -19,7 +19,7 @@
-
+
{{items.attributeList | sliceMsg}}
数量:{{items.productCount == null ?'暂无':item.productCount}}
diff --git a/pages/inventory/addinventory.vue b/pages/inventory/addinventory.vue
index b6badc5..979b82a 100644
--- a/pages/inventory/addinventory.vue
+++ b/pages/inventory/addinventory.vue
@@ -46,7 +46,7 @@
+ @tap="clickCollapse(value[0])" v-if='storageType==0'>
维护采购价
@@ -55,25 +55,25 @@
-
+
应付金额
-
+
已付金额
-
+
欠款
-
+
其他费用
@@ -190,7 +190,7 @@
keyList: [],
temporaryList: [],
zNum: 0,
- type:''
+ storageType:''
}
},
filters: {
@@ -251,7 +251,8 @@
productCount: this.carList1[i].num,
productId: this.carList1[i].id,
productName: this.carList1[i].productName,
- productPicture: this.carList1[i].productPicture,
+ productPicture: this.carList1[i].productPicture,
+ productSn: this.carList1[i].productSn,
stockLogList: new Map(),
stockLogList1: [],
name: ''
@@ -270,10 +271,10 @@
that.totalAmount += value.productCount
})
this.noPay = this.shouldPay
- this.type = uni.getStorageSync('type')
+
},
onLoad() {
-
+ this.storageType = uni.getStorageSync('type')
},
methods: {
scanCodeAdd() {
@@ -356,7 +357,6 @@
},
//弹出商品规格选择
toggle(type, id) {
- this.type = type
if (type == 'bottom') {
this.getById(id);
}
@@ -522,15 +522,17 @@
inventorySubmit() {
if (this.khName == '' || this.carList == '') {
uni.showToast({
- title: "信息填写完成后入库!",
+ title: "商品信息填写完成后入库!",
icon: 'none'
- })
+ })
+ return
}else{
- if(type==0 && this.shouldPay == 0){
+ if(this.storageType==0 && this.shouldPay == 0){
uni.showToast({
title: "管理员必须维护价格!",
icon: 'none'
})
+ return
}
}
let that = this;
diff --git a/pages/inventory/changeGoods1.vue b/pages/inventory/changeGoods1.vue
index 46bd04c..029395f 100644
--- a/pages/inventory/changeGoods1.vue
+++ b/pages/inventory/changeGoods1.vue
@@ -22,7 +22,7 @@
{{item.productName}}
{{item.productSn}}
-
+
{{item.purchasePrice == null ?'待入库':item.purchasePrice}}
采购价
diff --git a/pages/inventory/goodsList1.vue b/pages/inventory/goodsList1.vue
index 1e1e111..0652f61 100644
--- a/pages/inventory/goodsList1.vue
+++ b/pages/inventory/goodsList1.vue
@@ -78,7 +78,7 @@
- 选择售价
+ 改价
@@ -922,8 +922,6 @@
this.tui.toast('请选择配送公司!')
return
}
- }else if(this.radioType== 3){
- console.log(this.radioType1)
if(this.radioType1 == 0){
if(this.lbgName == ''){
this.tui.toast('请选择配送人员!')
@@ -931,6 +929,11 @@
}
}
+ }else if(this.radioType== 3){
+ if(this.pbAddress == ''){
+ this.tui.toast('请输入拼包地址!')
+ return
+ }
}
}else{
this.tui.toast('请选择发货方式!')
@@ -957,7 +960,7 @@
createBy: this.xsyId,
createByName:this.createByName,
remark: this.remark,
- otherExpense:this.otherExpense, //其他费用
+ otherExpense:this.otherExpense ==''?0:this.otherExpense, //其他费用
shareAddress:this.pbAddress,
transCompany: this.wlName.id,
companyName:this.wlName.companyName,
diff --git a/pages/inventory/inventoryDetail.vue b/pages/inventory/inventoryDetail.vue
index a856d86..389c245 100644
--- a/pages/inventory/inventoryDetail.vue
+++ b/pages/inventory/inventoryDetail.vue
@@ -120,11 +120,10 @@
//快递单600*1040 入库单440*320
let strCmd = blesdk.CreatCPCLPage(440, 320, 1, 0);
strCmd += blesdk.addCPCLText('0', '30', '24', '0', 0, '商品名:'+this.dataList.productName)
- strCmd += blesdk.addCPCLText('0', '80', '24', '0', 0, '商品id:'+this.dataList.id)
- strCmd += blesdk.addCPCLText('0', '130', '24', '0', 0, '货 号:'+this.dataList.productSn)
- strCmd += blesdk.addCPCLText('0', '180', '24', '0', 0, '供应商:'+this.dataList.supplierName)
- strCmd += blesdk.addCPCLText('0', '230', '24', '0', 0, '批发价:'+this.dataList.wholesalePrice)
- strCmd += blesdk.addCPCLText('0', '280', '24', '0', 0, '零售价:'+this.dataList.price)
+ strCmd += blesdk.addCPCLText('0', '80', '24', '0', 0, '货 号:'+this.dataList.productSn)
+ strCmd += blesdk.addCPCLText('0', '130', '24', '0', 0, '供应商:'+this.dataList.supplierName)
+ strCmd += blesdk.addCPCLText('0', '180', '24', '0', 0, '批发价:'+this.dataList.wholesalePrice)
+ strCmd += blesdk.addCPCLText('0', '230', '24', '0', 0, '零售价:'+this.dataList.price)
strCmd += blesdk.addCPCLQRCode(260, 170, 'H', '1', 6, this.dataList.id) //二维码
strCmd += blesdk.addCPCLLocation(0); //对齐指令 0-左对齐 1-右对齐 2-居中
strCmd += blesdk.addCPCLPrint();