gm-printer 10.30.2-beta.6 → 10.30.2-beta.9

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-printer",
3
- "version": "10.30.2-beta.6",
3
+ "version": "10.30.2-beta.9",
4
4
  "description": "diy printer",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -756,7 +756,7 @@ class EditorField extends React.Component {
756
756
  inputName='classificationAndLabelTallyRadio'
757
757
  checked={
758
758
  (specialConfig?.fields?.[0]?.valueField ??
759
- '出库金额') === fields.id
759
+ '下单金额') === fields.id
760
760
  }
761
761
  radioChecked={() =>
762
762
  editStore.setClassificationAndLabelTallyField(fields)
@@ -1298,12 +1298,19 @@ class EditorStore {
1298
1298
  }
1299
1299
  }
1300
1300
 
1301
- set(tableConfig, {
1302
- specialConfig: {
1303
- ...tableConfig.specialConfig,
1304
- [key]: newValue
1305
- }
1306
- })
1301
+ const specialConfig = {
1302
+ ...tableConfig.specialConfig,
1303
+ [key]: newValue
1304
+ }
1305
+ if (!tableConfig.specialConfig?.fields?.[0]) {
1306
+ specialConfig.fields = [
1307
+ {
1308
+ valueField: '下单金额'
1309
+ }
1310
+ ]
1311
+ }
1312
+
1313
+ set(tableConfig, { specialConfig })
1307
1314
 
1308
1315
  // 没有大写金额时,将大写在前和大小写分开的多选框设置为false
1309
1316
  if (tableConfig?.specialConfig?.needUpperCase === false) {