From 0640765e5a6011ffd0d0f969fb3705f15da60902 Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期日, 07 四月 2024 18:26:37 +0800
Subject: [PATCH] +获取庄口的接口联调+获取车间的接口联调+获取组别的接口联调+调整修改公共可编辑表格的组件
---
src/components/makepager/CommonFormTableView.vue | 29 +++++++++++++++++++++++------
1 files changed, 23 insertions(+), 6 deletions(-)
diff --git a/src/components/makepager/CommonFormTableView.vue b/src/components/makepager/CommonFormTableView.vue
index a356dcd..2877fc2 100644
--- a/src/components/makepager/CommonFormTableView.vue
+++ b/src/components/makepager/CommonFormTableView.vue
@@ -159,6 +159,24 @@
</span>
</template>
<el-form-item
+ v-else-if="item.input"
+ label=" "
+ :prop="'tableData.' + scope.$index + '.' + item.prop"
+ :rules="[{ required: item.isRequird ? true : false, message: '杈撳叆涓嶈兘涓虹┖' }]"
+ >
+ <el-input
+ v-model.trim="scope.row[item.prop]"
+ maxlength="50"
+ size="mini"
+ :disabled="!isOperate"
+ @change="
+ (val) => {
+ commonInputChange(val, item.prop, scope.row, scope)
+ }
+ "
+ ></el-input>
+ </el-form-item>
+ <el-form-item
v-else-if="item.inputFloat"
label=" "
:prop="'tableData.' + scope.$index + '.' + item.prop"
@@ -219,12 +237,12 @@
</el-checkbox-group>
</div>
</el-form>
- <el-button size="small" type="primary" :disabled="!isOperate" @click="add">鏂板</el-button>
- <div v-if="!detailEnter" style="margin: 10px">
+ <el-button style="margin: 10px" size="small" type="primary" @click="add">鏂板</el-button>
+ <div v-if="!detailEnter" style="margin: 10px" >
<el-button size="small" type="primary" :disabled="!isOperate" @click="add">鏂板</el-button>
<!-- <el-button size="small" type="primary" disabled>瀵煎叆鏄庣粏</el-button> -->
- <el-button size="small" type="primary" :disabled="!isOperate" @click="empty">娓呯┖</el-button>
- <el-button size="small" type="primary" @click="recalculate" :disabled="isRecalculate && !isOperate ? false : true"
+ <el-button size="small" type="primary" :disabled="!isOperate" @click="empty">娓呯┖</el-button>
+ <el-button size="small" type="primary" @click="recalculate" :disabled="isRecalculate && !isOperate ? false : true"
>閲嶇畻</el-button
>
</div>
@@ -661,10 +679,9 @@
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang="scss" scoped>
.page-view {
- height:100%;
position: relative;
.el-form{
- height:100%;
+ height:calc(100% - 120px);
}
.el-form-item {
margin-bottom: 0;
--
Gitblit v1.8.0