-
+
@@ -527,7 +527,7 @@
-
+
@@ -1038,8 +1038,27 @@ export default {
this.searchTable2() // 查表2
this.searchUnInquiryPartNumber()
this.searchUnBuyPartNumber()
+ this.initDirection()
},
methods: {
+ initDirection() {
+ const direction = this.$getDirection()
+ direction.on('keyup', function(e, val) {
+ console.log(val)
+ if (e.keyCode === 39) {
+ direction.next()
+ }
+ if (e.keyCode === 37) {
+ direction.previous()
+ }
+ if (e.keyCode === 38) {
+ direction.previousLine()
+ }
+ if (e.keyCode === 40) {
+ direction.nextLine()
+ }
+ })
+ },
clickCard1(project, machine) {
this.projectValue = project
this.machine = []
diff --git a/src/views/PurchasingCenter/CreatePurchaseContract/index.vue b/src/views/PurchasingCenter/CreatePurchaseContract/index.vue
index cfff54dd..d18250c7 100644
--- a/src/views/PurchasingCenter/CreatePurchaseContract/index.vue
+++ b/src/views/PurchasingCenter/CreatePurchaseContract/index.vue
@@ -135,13 +135,13 @@
-
+
—
-
+
—
@@ -157,7 +157,7 @@
-
+
{{ scope.row.备注 || '—' }}
@@ -265,8 +265,27 @@ export default {
},
created() {
this.fetchData()
+ this.initDirection()
},
methods: {
+ initDirection() {
+ const direction = this.$getDirection()
+ direction.on('keyup', function(e, val) {
+ console.log(val)
+ if (e.keyCode === 39) {
+ direction.next()
+ }
+ if (e.keyCode === 37) {
+ direction.previous()
+ }
+ if (e.keyCode === 38) {
+ direction.previousLine()
+ }
+ if (e.keyCode === 40) {
+ direction.nextLine()
+ }
+ })
+ },
// 合同头实时保存
contractHeaderChange() {
if (this.contractNumValue) {
diff --git a/src/views/PurchasingCenter/OfflineContract/index.vue b/src/views/PurchasingCenter/OfflineContract/index.vue
index ef16cf4a..8f086007 100644
--- a/src/views/PurchasingCenter/OfflineContract/index.vue
+++ b/src/views/PurchasingCenter/OfflineContract/index.vue
@@ -379,7 +379,7 @@
-
+
{{ scope.row.数量 }}
@@ -395,13 +395,13 @@
-
+
{{ (scope.row.单价 / (1 + taxRate)).toFixed(2) }}
-
+
{{ (scope.row.未税单价 * (1 + taxRate)).toFixed(2) }}
@@ -417,13 +417,13 @@
-
+
{{ scope.row.交货期要求 || '—' }}
-
+
{{ scope.row.备注 || '—' }}
@@ -862,8 +862,27 @@ export default {
this.searchTable1()
this.searchTable2()
this.searchTable00()
+ this.initDirection()
},
methods: {
+ initDirection() {
+ const direction = this.$getDirection()
+ direction.on('keyup', function(e, val) {
+ console.log(val)
+ if (e.keyCode === 39) {
+ direction.next()
+ }
+ if (e.keyCode === 37) {
+ direction.previous()
+ }
+ if (e.keyCode === 38) {
+ direction.previousLine()
+ }
+ if (e.keyCode === 40) {
+ direction.nextLine()
+ }
+ })
+ },
filterHandler0(value, row) { // 筛选备注
return row['备注'] === value
},