@yoooloo42/joker 1.0.295 → 1.0.296

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
@@ -48095,18 +48095,14 @@ var amountBox = {
48095
48095
  let {
48096
48096
  scopeThis
48097
48097
  } = _ref;
48098
- let unpaid = 0,
48099
- // 未支付
48100
- started = 0,
48098
+ let started = 0,
48101
48099
  // 支付中
48102
48100
  succeeded = 0,
48103
48101
  // 支付成功
48104
48102
  failed = 0; // 支付失败
48105
48103
 
48106
48104
  scopeThis.tableData.data.forEach(i => {
48107
- if (i.status_code === '0') {
48108
- unpaid = unpaid + i.amount;
48109
- } else if (i.status_code === '1') {
48105
+ if (i.status_code === '1') {
48110
48106
  started = started + i.amount;
48111
48107
  } else if (i.status_code === '2') {
48112
48108
  succeeded = succeeded + i.amount;
@@ -48115,11 +48111,11 @@ var amountBox = {
48115
48111
  }
48116
48112
  });
48117
48113
  return {
48118
- sum: succeeded + started + unpaid,
48119
- succeeded,
48120
48114
  started,
48115
+ succeeded,
48121
48116
  failed,
48122
- unpaid
48117
+ // 未支付
48118
+ unpaid: scopeThis.initBox.deal - succeeded - started
48123
48119
  };
48124
48120
  }
48125
48121
  };
@@ -48201,9 +48197,8 @@ return (_ctx, _cache) => {
48201
48197
  _cache[3] || (_cache[3] = createElementVNode("thead", null, [
48202
48198
  createElementVNode("tr", null, [
48203
48199
  createElementVNode("th", null, "订单金额(应收应付)"),
48204
- createElementVNode("th", null, "支付金额合计"),
48205
- createElementVNode("th", null, "支付成功"),
48206
48200
  createElementVNode("th", null, "支付中"),
48201
+ createElementVNode("th", null, "支付成功"),
48207
48202
  createElementVNode("th", null, "支付失败"),
48208
48203
  createElementVNode("th", null, "未支付")
48209
48204
  ])
@@ -48215,13 +48210,10 @@ return (_ctx, _cache) => {
48215
48210
  }, toDisplayString(Math.floor(scopeThis.initBox.deal) / 100), 5 /* TEXT, STYLE */),
48216
48211
  createElementVNode("td", {
48217
48212
  style: normalizeStyle(style.value.amount)
48218
- }, toDisplayString(Math.floor(scopeThis.amountBox.sum) / 100), 5 /* TEXT, STYLE */),
48213
+ }, toDisplayString(Math.floor(scopeThis.amountBox.started) / 100), 5 /* TEXT, STYLE */),
48219
48214
  createElementVNode("td", {
48220
48215
  style: normalizeStyle(style.value.amount)
48221
48216
  }, toDisplayString(Math.floor(scopeThis.amountBox.succeeded) / 100), 5 /* TEXT, STYLE */),
48222
- createElementVNode("td", {
48223
- style: normalizeStyle(style.value.amount)
48224
- }, toDisplayString(Math.floor(scopeThis.amountBox.started) / 100), 5 /* TEXT, STYLE */),
48225
48217
  createElementVNode("td", {
48226
48218
  style: normalizeStyle(style.value.amount)
48227
48219
  }, toDisplayString(Math.floor(scopeThis.amountBox.failed) / 100), 5 /* TEXT, STYLE */),