diff --git a/pages/billing/addUser.vue b/pages/billing/addUser.vue
index 459bf61..e921bdc 100644
--- a/pages/billing/addUser.vue
+++ b/pages/billing/addUser.vue
@@ -1,15 +1,267 @@
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 删除用户
+
+
+ 提交
+
+
+
+
+
+
+
-
\ No newline at end of file
diff --git a/pages/billing/changeGoods.vue b/pages/billing/changeGoods.vue
index e7a97d4..ea465bc 100644
--- a/pages/billing/changeGoods.vue
+++ b/pages/billing/changeGoods.vue
@@ -142,11 +142,14 @@
}
})
if (isTrue) {
- var obj = {};
+ var obj = {};
+ console.log(this.keyList)//颜色尺码
this.keyList.map((item, index) => {
obj[item] = e.value[index]
- })
- this.shopList.push(obj);
+ })
+ console.log("打印出来");
+ this.shopList.push(obj);
+ console.log(this.shopList);
this.showList.push(e.value)
this.numList.push(1)
this.show = false;
@@ -167,7 +170,8 @@
this.listDetail.discountAmount = this.realPrice * 1;
this.listDetail.realPrice = this.numAll * this.goodsDetail.wholesalePrice;
this.listDetail.productCount = this.numAll;
- this.listDetail.productId = this.goodsDetail.id;
+ this.listDetail.productId = this.goodsDetail.id;
+ console.log(this.shopList)
this.shopList.map((item, index) => {
this.attributeList[index] = {
attributeList: JSON.stringify(item),
diff --git a/pages/billing/changeGoods1.vue b/pages/billing/changeGoods1.vue
index d0a0166..cf53e90 100644
--- a/pages/billing/changeGoods1.vue
+++ b/pages/billing/changeGoods1.vue
@@ -56,7 +56,7 @@
class="uni-tab__dot">{{carList.length}}
- 选好了
+ 选好了
@@ -185,7 +185,12 @@
goodsDetail: [],
attrNameList: [],
temporaryList: [],
- carList: []
+ carList: [],
+ columns: [],
+ keyList: [],
+ specsList:[],
+ evalue:[],
+ attributeList:[]
}
},
onLoad() {
@@ -217,15 +222,18 @@
this.goodsDetail.attributeList[index].isChecked = true;
this.goodsDetail.attributeList[index].value[index1].isChecked = true;
console.log(this.goodsDetail)
- var name = '';
+ var name = '',
+ evalue = []
for (var i = 0; i < this.goodsDetail.attributeList.length; i++) {
for (var m = 0, Ien = this.goodsDetail.attributeList[i].value; m < Ien.length; m++) {
console.log(Ien[m])
if (Ien[m].isChecked == true) {
+ evalue.push(Ien[m].value)
name += Ien[m].value
}
}
- }
+ }
+ this.evalue = evalue;
this.temporaryList = [{
id: this.goodsDetail.id,
barcode: this.goodsDetail.barcode,
@@ -233,13 +241,33 @@
name: name,
num: this.temporaryNum,
productName: this.goodsDetail.productName,
- productSn: this.goodsDetail.productSn
+ productSn: this.goodsDetail.productSn,
+ productPicture:this.goodsDetail.productPicture,
+ supplierName:this.goodsDetail.supplierName
}]
},
temporaryChange(val) {
console.log(val)
this.temporaryList[0].num = val
-
+
+ },
+ //点击底部选好了,返回上一页
+ backPrevPage(){
+ this.specsList.map((item, index) => {
+ this.attributeList[index] = {
+ attributeList: JSON.stringify(item),
+ productCount: this.carList[index].num
+ }
+ })
+ for (var i=0;i {
+ this.columns[index] = item.value;
+ this.keyList[index] = item.name;
+ })
}
},
@@ -378,7 +410,19 @@
//弹窗选择规格后,点击弹窗中选好了按钮
temporaryCheck() {
this.carList.push(this.temporaryList[0]);
- this.$refs.popup.close()
+ this.$refs.popup.close()
+ var obj = {};
+ this.keyList.map((item, index) => {
+ obj[item] = this.evalue[index]
+ })
+ this.specsList.push(obj);
+ console.log(this.specsList);
+ // this.specsList.map((item, index) => {
+ // this.attributeList[index] = {
+ // attributeList: JSON.stringify(item),
+ // productCount: this.numList[index]
+ // }
+ // })
// for (var i =0;i
- 单价:{{ val.attributeList.substr(1).substring(0,val.attributeList.substr(1).length-1).replace(/\"/g, "") }}
+ {{ val.attributeList.substr(1).substring(0,val.attributeList.substr(1).length-1).replace(/\"/g, "") }}
* {{val.productCount}}
-
@@ -127,7 +127,9 @@
- 打印
+
+
+
取消订单
@@ -145,6 +147,9 @@