From 78bdb5114382f006fb53fd461c7b90f4f43afc39 Mon Sep 17 00:00:00 2001
From: “linengliang” <vanSuperEnergy@163.com>
Date: 星期二, 29 八月 2023 11:59:30 +0800
Subject: [PATCH] 设备分类
---
src/views/spare/modules/sparePartScrapRequirement/SparePartScrapRequirementForm.vue | 21 ++++++++++-----------
1 files changed, 10 insertions(+), 11 deletions(-)
diff --git a/src/views/spare/modules/sparePartScrapRequirement/SparePartScrapRequirementForm.vue b/src/views/spare/modules/sparePartScrapRequirement/SparePartScrapRequirementForm.vue
index 1cf9ac2..29ded9d 100644
--- a/src/views/spare/modules/sparePartScrapRequirement/SparePartScrapRequirementForm.vue
+++ b/src/views/spare/modules/sparePartScrapRequirement/SparePartScrapRequirementForm.vue
@@ -59,7 +59,6 @@
:dataSource='sparesScrapRequirementDetailTable.dataSource'
:maxHeight='300'
:disabled='formDisabled'
- @valueChange="changeAuxiliaryQuantity"
:alwaysEdit='true'
:rowNumber='true'
:bordered='bordered'
@@ -182,7 +181,7 @@
},
{
- title: '涓诲崟浣�',
+ title: '鍗曚綅',
key: 'mainUnitIdName',
type: JVXETypes.normal,
align:'center',
@@ -191,7 +190,7 @@
defaultValue: ''
},
{
- title: '涓诲崟浣�',
+ title: '鍗曚綅',
key: 'mainUnitId',
type: JVXETypes.hidden,
align:'center',
@@ -199,7 +198,7 @@
placeholder: '璇疯緭鍏�${title}',
defaultValue: ''
},
- {
+ /* {
title: '杈呭崟浣�',
key: 'auxiliaryUnitIdName',
align:'center',
@@ -216,7 +215,7 @@
width: '200px',
placeholder: '璇疯緭鍏�${title}',
defaultValue: ''
- },
+ }, */
{
title: '涓绘暟閲�',
key: 'mainQuantity',
@@ -225,7 +224,7 @@
width: '200px',
placeholder: '璇疯緭鍏�${title}',
defaultValue: 0,
- Function({cellValue, row, column}){
+/* Function({cellValue, row, column}){
console.log(cellValue)
console.log(row)
console.log(column)
@@ -237,7 +236,7 @@
}
console.log(cellValue)
return cellValue
- },
+ }, */
validateRules: [
{
required: true,
@@ -255,7 +254,7 @@
]
},
- {
+ /* {
title: '杈呮暟閲�',
key: 'auxiliaryQuantity',
type: JVXETypes.normal,
@@ -263,7 +262,7 @@
align:'center',
placeholder: '璇疯緭鍏�${title}',
defaultValue: 0
- },
+ }, */
{
title: '澶囦欢id',
key: 'sparePartId',
@@ -460,13 +459,13 @@
this.$emit('close')
this.$refs.form.clearValidate()
},
- changeAuxiliaryQuantity(target){
+/* changeAuxiliaryQuantity(target){
console.log(target.columnIndex)
let num=target.columnIndex
if (target.columnIndex ===num){
target.row.auxiliaryQuantity=Math.abs(target.row.conversionRatio*target.row.mainQuantity)
}
- }
+ } */
}
}
</script>
--
Gitblit v1.9.3