diff --git a/src/views/home/data_tables.vue b/src/views/home/data_tables.vue index fb6f580..cdf2a83 100644 --- a/src/views/home/data_tables.vue +++ b/src/views/home/data_tables.vue @@ -6,20 +6,19 @@ -->
- - 全部 - 今天 - 昨天 - 最近7天 - 最近30天 - 本周 - 本月 - 自定义 - - - + + 全部 + 今天 + 昨天 + 最近7天 + 最近30天 + 本周 + 本月 + 自定义 + + + 查询 重置 @@ -39,19 +38,17 @@
- {{ item.payAmount }} -
-
{{ item.payType }}
-
-
- - --> +{{ item.payAmount }} + +
{{ item.payType }}
+ + + + -->
- - + + @@ -67,7 +64,7 @@ - + +
+
+
订货单位
@@ -496,14 +498,17 @@
副单位
-
+
+
- - +
+
订货单位
{{ unitItem.conUnitTwo }}=
- {{unitItem.conUnit }} + {{ unitItem.conUnit }} 删除
@@ -634,11 +639,13 @@ import { hasPermission } from '@/utils/limits.js' export default { components: { AddConsTakin, UploadExcel, consRecordDetail }, - name:'information', + name: 'information', data() { return { tongji: {},//统计 dayjs, + // 切换主副单位 + switchzhufu: "1", query: { conTypeId: "", conTypeName: "", @@ -815,7 +822,11 @@ export default { }) }, async submitUnit() { + + console.log(this.switchzhufu, '体哦啊是1') + const res = await unittbConsInfo([{ + defaultUnit: this.switchzhufu == 1 ? this.unitItem.conUnit : this.unitItem.conUnitTwo, conUnitTwoConvert: this.unitItem.conUnitTwoConvert * 1, conUnitTwo: this.unitItem.conUnitTwo, id: this.unitItem.id @@ -879,9 +890,9 @@ export default { return 'red' } }, - conUnitTwoinput(d){ + conUnitTwoinput(d) { // console.log(d.target.value,'调试1') - this.unitItem.conUnitTwo=d.target.value + this.unitItem.conUnitTwo = d.target.value }, // 状态切换 async showChange(e, row) { diff --git a/src/views/invoicing/operation_in.vue b/src/views/invoicing/operation_in.vue index 5c53a01..1f7415f 100644 --- a/src/views/invoicing/operation_in.vue +++ b/src/views/invoicing/operation_in.vue @@ -43,6 +43,7 @@ + {{ queryForm.waitAmount }} @@ -84,10 +85,6 @@ - - - - @@ -123,13 +120,14 @@ @@ -188,7 +195,8 @@ -
入库前:{{ scope.row.stockNumber }}{{ scope.row.unitName }}
+
入库前:{{ scope.row.stockNumber }}{{ scope.row.unitName + }}
@@ -240,7 +248,7 @@ import { tbConsInfoGet, tbProductlist } from "@/api/invoicing"; import { tbShopPurveyorGet, tbProductStockOperateOutAndOn, stockInOut } from '@/api/invoicing' import { formatDecimal } from '@/utils' export default { - name:'operation_in', + name: 'operation_in', components: { shopList, ConsumableList @@ -380,7 +388,11 @@ export default { }) } else { this.tableData.list.forEach(ele => { - zong += ele.price * ele.stockNumber + let p = 1 + if (ele.unit && ele.conUnitTwo == ele.unit) { + p = ele.conUnitTwoConvert + } + zong += ele.price * ele.stockNumber * p }) } this.queryForm.totalAmount = formatDecimal(zong) @@ -404,7 +416,6 @@ export default { }, // 切换入库内容 tabChange(value, type) { - console.log(value, type) this.shopTypesActive = type == 'in' ? 0 : 1 this.inTabValue = value this.resetHandle() @@ -413,7 +424,7 @@ export default { }, // 切换类型 changeTypeEnum(index) { - let filterd= this.purveyorList.filter(ele=>ele.id == index) + let filterd = this.purveyorList.filter(ele => ele.id == index) this.queryForm.waitAmount = filterd[0].waitAmount this.inTabs.forEach((i) => { @@ -445,7 +456,6 @@ export default { }, 10) } else { row[key1] = cvalue - let zong = 0 this.tableData.list.forEach(ele => { let p = 1 diff --git a/src/views/invoicing/operation_out.vue b/src/views/invoicing/operation_out.vue index 3096136..d1a3bb3 100644 --- a/src/views/invoicing/operation_out.vue +++ b/src/views/invoicing/operation_out.vue @@ -43,6 +43,7 @@ + {{ queryForm.waitAmount }}
@@ -83,11 +84,6 @@
- - - - - @@ -122,7 +118,7 @@ @@ -141,7 +137,21 @@ -
出库前:{{ scope.row.number }}{{ scope.row.conUnit }}
+ + +
出库前: + {{ !scope.row.unit ? + (scope.row.defaultUnit ? + scope.row.defaultUnit== scope.row.conUnitTwo? + (scope.row.number/scope.row.conUnitTwoConvert): scope.row.number:scope.row.number) + : scope.row.unit== scope.row.conUnitTwo? + (scope.row.number/scope.row.conUnitTwoConvert): scope.row.number}} + + {{ !scope.row.unit ? (scope.row.defaultUnit ? scope.row.defaultUnit : + scope.row.conUnit) : scope.row.unit }} +
+ +
@@ -184,7 +194,7 @@ @@ -385,7 +395,11 @@ export default { }) } else { this.tableData.list.forEach(ele => { - zong += ele.price * ele.stockNumber + let p = 1 + if (ele.unit && ele.conUnitTwo == ele.unit) { + p = ele.conUnitTwoConvert + } + zong += ele.price * ele.stockNumber * p }) } this.queryForm.totalAmount = formatDecimal(zong) diff --git a/src/views/order_manage/order_list.vue b/src/views/order_manage/order_list.vue index 79fef88..9d312d5 100644 --- a/src/views/order_manage/order_list.vue +++ b/src/views/order_manage/order_list.vue @@ -230,6 +230,7 @@ export default { mounted() { if (this.$route.query.tableName) { this.query.tableName = this.$route.query.tableName + this.query.createdAt = this.$route.query.date } if (this.$route.query.orderNo) { this.query.orderNo = this.$route.query.orderNo