入库前:{{ 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 }}
@@ -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 @@
- 原价¥{{ scope.row.costPrice }}/{{ scope.row.conUnit }}
+ 原价¥{{ scope.row.costPrice }}/{{ scope.row.conUnit }}
@@ -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 @@
- 出库前:{{ scope.row.stockNumber }}{{ scope.row.unitName }}
+ 出库前:{{ scope.row.stockNumber }}{{ scope.row.unitName }}
@@ -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