kts-component-invoice-operate 2.0.3 → 2.0.4

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/dist/index.esm.js CHANGED
@@ -3043,7 +3043,7 @@ var useCommodityComparisonButton = (function () {
3043
3043
 
3044
3044
  case 8:
3045
3045
  newGoods = _context.sent;
3046
- newGoods.filter(function (e) {
3046
+ newGoods.forEach(function (e) {
3047
3047
  var _getSN3, _getSN4;
3048
3048
 
3049
3049
  var vt = s.goodsListState.goodsMap.get(e.$index);
package/dist/index.js CHANGED
@@ -3053,7 +3053,7 @@ var useCommodityComparisonButton = (function () {
3053
3053
 
3054
3054
  case 8:
3055
3055
  newGoods = _context.sent;
3056
- newGoods.filter(function (e) {
3056
+ newGoods.forEach(function (e) {
3057
3057
  var _getSN3, _getSN4;
3058
3058
 
3059
3059
  var vt = s.goodsListState.goodsMap.get(e.$index);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kts-component-invoice-operate",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -40,10 +40,9 @@ class MyInvoiceController extends InvoiceController {
40
40
  return e.map(e => {
41
41
  return {
42
42
  ...e,
43
- itemNameOther: e.itemName + '(他方)',
44
- unitOther: e.unit + '(他方)',
45
- itemModelNameOther: e.itemModelName + '(他方)',
46
- itemCodeOther: e.itemCode + '(他方)',
43
+ itemName: e.itemNameSelf + '(他方)',
44
+ itemModelName: e.itemModelNameSelf + '(他方)',
45
+ itemCode: e.itemCodeSelf + '(他方)',
47
46
  }
48
47
  })
49
48
  }
@@ -42,7 +42,7 @@ export default () => {
42
42
  // 比对后的商品
43
43
  const newGoods = await s.goodsListState.productComparison.onComply(goods);
44
44
 
45
- newGoods.filter(e => {
45
+ newGoods.forEach(e => {
46
46
  const vt = s.goodsListState.goodsMap.get(e.$index);
47
47
  if (!vt) return undefined;
48
48