|
|
@@ -196,6 +196,17 @@
|
|
|
</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="unit"
|
|
|
+ label="单位"
|
|
|
+ width="100"
|
|
|
+ header-align="center"
|
|
|
+ align="left"
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{ scope.row.unit }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
</el-table>
|
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
@@ -1971,7 +1982,7 @@
|
|
|
|
|
|
// 跳过分类行(如果分类行不需要保存基本信息)
|
|
|
if (!row.isCategory) {
|
|
|
- // 保存基本信息:序号、项目、单位
|
|
|
+ // 保存基本信息:序号、项目(单位列不再保存)
|
|
|
if (row.seq !== undefined && row.seq !== null && row.seq !== '') {
|
|
|
saveData.push({
|
|
|
rowid: rowid,
|
|
|
@@ -1987,20 +1998,20 @@
|
|
|
rvalue: String(row.itemName),
|
|
|
})
|
|
|
}
|
|
|
-
|
|
|
- if (row.unit) {
|
|
|
- saveData.push({
|
|
|
- rowid: rowid,
|
|
|
- rkey: '单位',
|
|
|
- rvalue: String(row.unit),
|
|
|
- })
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
// 保存固定表头字段的值(来自 fixedFields / dynamicColumns)——扩展到所有行
|
|
|
const fixedLabels = this.dynamicColumns()
|
|
|
if (Array.isArray(fixedLabels) && fixedLabels.length > 0) {
|
|
|
fixedLabels.forEach((label) => {
|
|
|
+ // showVisible === '0' 的列:保存时不传参
|
|
|
+ const meta = this.getFieldMeta(label)
|
|
|
+ const sv =
|
|
|
+ meta && meta.showVisible != null
|
|
|
+ ? String(meta.showVisible).trim()
|
|
|
+ : ''
|
|
|
+ if (sv === '0') return
|
|
|
+
|
|
|
const val = row[label]
|
|
|
if (val !== undefined && val !== null && val !== '') {
|
|
|
saveData.push({
|