kz-ui-base 1.0.123 → 1.0.125

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <base-dialog :visible.sync="visible" width="1200px" :title="title" append-to-body @on-confirm="handleConfirm"
2
+ <base-dialog :visible.sync="visible" width="1400px" :title="title" append-to-body @on-confirm="handleConfirm"
3
3
  @on-cancel="cancel">
4
4
  <div class="app-container">
5
5
  <el-container class="item-panel default-background">
@@ -58,12 +58,11 @@
58
58
  :min-width="col.width || 100" show-overflow-tooltip>
59
59
  <template slot-scope="scope">
60
60
  {{
61
- col.dictType
62
- ? getDictLabelByValue(
63
- col.dictType,
64
- scope.row[col.property]
65
- )
66
- : scope.row[col.property]
61
+ col.formatter
62
+ ? col.formatter(scope.row, scope.column, scope.row[col.property])
63
+ : (col.dictType
64
+ ? getDictLabelByValue(col.dictType, scope.row[col.property])
65
+ : scope.row[col.property])
67
66
  }}
68
67
  </template>
69
68
  </el-table-column>
@@ -134,12 +133,20 @@ export default class SmOrderSelectModal extends Vue {
134
133
  {text: "客户名称", property: "customerName", width: 250},
135
134
  {text: "物料编号", property: "materialNo", width: 130},
136
135
  {text: "物料名称", property: "materialName", width: 230},
136
+ {text: "合同数量", property: "salesQuantity", width: 80, align: "right",
137
+ formatter: (row: any, column: any, cellValue: any) => {
138
+ if (cellValue == null || isNaN(cellValue)) return '0.00';
139
+ return parseFloat(cellValue).toLocaleString('en-US', {
140
+ minimumFractionDigits: 2,
141
+ maximumFractionDigits: 2,
142
+ });
143
+ }
144
+ },
145
+ {text: "单位", property: "salesUnit", dictType: 'uom_code', width: 80},
137
146
  {text: "规格型号", property: "materialSpec", width: 180},
138
147
  {text: "交付类型", property: "exportFlagLabel", width: 80},
139
- {text: "合同数量", property: "salesQuantity", width: 80},
140
- {text: "单位", property: "salesUnit", dictType: 'uom_code', width: 80}
141
148
  ];
142
-
149
+
143
150
  handleSelectionChange(val) {
144
151
  this.currentEntities = val;
145
152
  tableOnSelectionChange(val, this.multipleChoice, this.$refs.multipleTable)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kz-ui-base",
3
- "version": "1.0.123",
3
+ "version": "1.0.125",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -148,11 +148,9 @@ export default {
148
148
  this.msgError("请选择一笔设备数据!");
149
149
  } else {
150
150
  if(this.multipleChoice) {
151
- this.$emit("cancel", this.multipleSelection);
152
- this.$closeDialog()
151
+ this.$closeDialog(true, this.multipleSelection);
153
152
  } else {
154
- this.$emit("cancel", this.multipleSelection?.[0]);
155
- this.$closeDialog()
153
+ this.$closeDialog(true, this.multipleSelection?.[0]);
156
154
  }
157
155
  }
158
156
  },
@@ -90,12 +90,12 @@
90
90
  <el-table-column
91
91
  prop="itemLotNo"
92
92
  label="物料批号"
93
- min-width="120"
93
+ min-width="110"
94
94
  />
95
95
  <el-table-column
96
96
  prop="itemLotAttribute"
97
97
  label="批次属性"
98
- min-width="200"
98
+ min-width="150"
99
99
  show-overflow-tooltip
100
100
  />
101
101
  <el-table-column
@@ -105,7 +105,7 @@
105
105
  />
106
106
  <el-table-column
107
107
  label="库存量"
108
- min-width="100"
108
+ min-width="75"
109
109
  align="right"
110
110
  >
111
111
  <template slot-scope="scope">
@@ -114,7 +114,7 @@
114
114
  </el-table-column>
115
115
  <el-table-column
116
116
  label="单位"
117
- min-width="80"
117
+ min-width="70"
118
118
  >
119
119
  <template slot-scope="scope">
120
120
  <span>{{ getDictLabelByValue('uom_code', scope.row.baseUomCode) }}</span>
@@ -122,7 +122,7 @@
122
122
  </el-table-column>
123
123
  <el-table-column
124
124
  label="辅助库存量"
125
- min-width="100"
125
+ min-width="95"
126
126
  align="right"
127
127
  >
128
128
  <template slot-scope="scope">
@@ -131,12 +131,17 @@
131
131
  </el-table-column>
132
132
  <el-table-column
133
133
  label="单位"
134
- min-width="80"
134
+ min-width="70"
135
135
  >
136
136
  <template slot-scope="scope">
137
137
  <span>{{ getDictLabelByValue('uom_code', scope.row.subUomCode) }}</span>
138
138
  </template>
139
139
  </el-table-column>
140
+ <el-table-column
141
+ prop="workUnitName"
142
+ label="作业单元"
143
+ min-width="140"
144
+ />
140
145
  </el-table>
141
146
  </div>
142
147
  </div>