diff --git a/src/views/devices/details.vue b/src/views/devices/details.vue index 0cc9f11..699c92a 100644 --- a/src/views/devices/details.vue +++ b/src/views/devices/details.vue @@ -50,9 +50,12 @@
- - + --> + + +
@@ -113,7 +116,8 @@ export default { forms: { sort: "0", status: "0", - connectionType: "network", printType: [] + connectionType: "network", printType: [], + selectcheckbox: [] }, partList: [] } @@ -121,13 +125,11 @@ export default { filters: { }, mounted() { - if (this.$route.query.id) { - this.getList(this.$route.query.id) - } + this.getpartList() + }, methods: { - handleNodeClick(d) { console.log(d) }, async onSubmit() { // 删除时间字段 @@ -137,17 +139,17 @@ export default { } // 处理打印部分分类 if (this.forms.classifyPrint == 1) { - let data = this.$refs.tree.getCheckedNodes() let idstr = '' let arr = [] - data.forEach(element => { - idstr += element.id + ',' - arr.push({ id: element.id, name: element.name }) - }); - this.forms.categoryList = JSON.stringify(arr) + this.forms.selectcheckbox.forEach(element => { + let prts = this.partList.filter(ele => ele.name == element)[0] + idstr = idstr + prts.id + ',' + arr.push(prts) + }) this.forms.categoryIds = idstr.substring(0, idstr.length - 1) - } + this.forms.categoryList = JSON.stringify(arr) + } const res = await configprinter({ shopId: localStorage.getItem('shopId'), ...this.forms, @@ -163,18 +165,44 @@ export default { page: 0, size: 500 }) - this.partList = res.content + let arr = [] + res.content.forEach(ele => { + arr.push({ + id: ele.id, + name: ele.name + }) + if (ele.childrenList.length > 0) { + ele.childrenList.forEach(element => { + arr.push({ + id: element.id, + name: element.name + }) + }) + } + }) + this.partList = arr + if (this.$route.query.id) { + this.getList(this.$route.query.id) + } }, async getList(id) { const res = await printerd(id) this.forms = res - this.forms.categoryIds=this.forms.categoryIds.split(',') - console.log(this.forms.categoryIds,'调试11111') + if (res.categoryIds) { + let ids = res.categoryIds.split(',') + let arr = [] + ids.forEach(element => { + let prts = this.partList.filter(ele => ele.id == element)[0] + arr.push(prts.name) + }) + this.$set(this.forms, 'selectcheckbox', arr) + } else { + this.$set(this.forms, 'selectcheckbox', []) + } if (res.printType) { this.forms.printType = JSON.parse(res.printType) } else { this.forms.printType = [] - } } } diff --git a/src/views/invoicing/consumable/information.vue b/src/views/invoicing/consumable/information.vue index 97b3e32..57d9a23 100644 --- a/src/views/invoicing/consumable/information.vue +++ b/src/views/invoicing/consumable/information.vue @@ -148,7 +148,7 @@ - +
@@ -165,7 +165,15 @@ {{ scope.row.bizType }}{{ scope.row.amount }} - + + + + + @@ -341,8 +349,8 @@ - - + + 去选择 --> - - + + + + + + @@ -741,6 +751,15 @@ export default { } }) }, + //跳转订单列表 + toGoodslist(orderNo) { + this.$router.push({ + path: '/order_manage/order_list', + query: { + orderNo: orderNo + } + }) + }, //添加耗材弹窗增加 ruleFormsAdd() { console.log('add') @@ -944,6 +963,7 @@ export default { shopId: localStorage.getItem("shopId"), productId: '',//预留耗材id column: this.stockData.column,//列名 + conName:this.query.conName, createdAt: arr//耗材id }) this.stockData.loading = false; @@ -1029,7 +1049,7 @@ export default { this.dialogtitle = "添加"; this.gettbConsType() this.$nextTick(() => { - // this.$refs.refruleForm.resetFields(); + this.$refs.refruleForm.resetFields(); this.resetRuleForms() }); } else { diff --git a/src/views/invoicing/operation_out.vue b/src/views/invoicing/operation_out.vue index 266f375..9c5ab10 100644 --- a/src/views/invoicing/operation_out.vue +++ b/src/views/invoicing/operation_out.vue @@ -2,7 +2,7 @@
- +
-
32.00元
+
{{price|to2}}元
等待用户支付 @@ -91,6 +91,11 @@ export default { default: "请使用扫码枪扫描付款码", }, }, + filters:{ + to2(n){ + return n.toFixed(2) + } + }, data() { return { tips: "", @@ -191,7 +196,7 @@ export default { this.show = true; this.form.money = Number(this.price).toFixed(2); if (this.openSwitch) { - $getOrderPayUrl({ orderId: this.order.id }).then((res) => { + $getOrderPayUrl({ orderId: this.order.id,payAmount:this.price.toFixed(2) }).then((res) => { console.log(res); this.paymentQrcode = res; }); diff --git a/src/views/tool/Instead/index.vue b/src/views/tool/Instead/index.vue index aa4c0c6..a2c6ab6 100644 --- a/src/views/tool/Instead/index.vue +++ b/src/views/tool/Instead/index.vue @@ -177,7 +177,7 @@