@yoooloo42/joker 1.0.273 → 1.0.274

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
@@ -47634,56 +47634,32 @@ var tableProps = {
47634
47634
  menu: [{
47635
47635
  title: "查询",
47636
47636
  menu: [{
47637
- title: "全部",
47638
- async handle(_ref) {
47639
- let {
47640
- scopeThis,
47641
- index
47642
- } = _ref;
47643
- await withTable.reload({
47644
- scopeThis
47645
- });
47646
- }
47637
+ text: "全部",
47638
+ hdlClick: withTable.reload
47647
47639
  }, {
47648
- title: "刷新",
47649
- async handle(_ref2) {
47650
- let {
47651
- scopeThis,
47652
- index
47653
- } = _ref2;
47654
- await withTable.refresh({
47655
- scopeThis
47656
- });
47657
- }
47640
+ text: "刷新",
47641
+ hdlClick: withTable.refresh
47658
47642
  }, {
47659
- title: "查询",
47660
- handle(_ref3) {
47661
- let {
47662
- scopeThis,
47663
- index
47664
- } = _ref3;
47665
- withTable.popupFind({
47666
- scopeThis
47667
- });
47668
- }
47643
+ text: "查询",
47644
+ hdlClick: withTable.popupFind
47669
47645
  }]
47670
47646
  }, {
47671
47647
  title: "收银",
47672
- hdlDisabled(_ref4) {
47648
+ hdlDisabled(_ref) {
47673
47649
  let {
47674
47650
  scopeThis,
47675
47651
  item,
47676
47652
  index
47677
- } = _ref4;
47653
+ } = _ref;
47678
47654
  return scopeThis.initBox.readOnly;
47679
47655
  },
47680
47656
  menu: [{
47681
47657
  title: "收银",
47682
- handle(_ref5) {
47658
+ handle(_ref2) {
47683
47659
  let {
47684
47660
  scopeThis,
47685
47661
  index
47686
- } = _ref5;
47662
+ } = _ref2;
47687
47663
  scopeThis.cashBox.formData.id_business = scopeThis.initBox.id_business;
47688
47664
  scopeThis.cashBox.formData.businesstype_code = scopeThis.initBox.businesstype_code;
47689
47665
  // 支付金额合计
@@ -47699,11 +47675,11 @@ var tableProps = {
47699
47675
  }
47700
47676
  }, {
47701
47677
  title: "退款",
47702
- handle(_ref6) {
47678
+ handle(_ref3) {
47703
47679
  let {
47704
47680
  scopeThis,
47705
47681
  index
47706
- } = _ref6;
47682
+ } = _ref3;
47707
47683
  ElMessageBox.confirm('退款?', '警告', {
47708
47684
  confirmButtonText: '确认',
47709
47685
  cancelButtonText: '取消',
@@ -47729,11 +47705,11 @@ var tableProps = {
47729
47705
  }
47730
47706
  }, {
47731
47707
  title: "中止支付",
47732
- handle(_ref7) {
47708
+ handle(_ref4) {
47733
47709
  let {
47734
47710
  scopeThis,
47735
47711
  index
47736
- } = _ref7;
47712
+ } = _ref4;
47737
47713
  ly0request.storpro({
47738
47714
  storproName: "ly0d2.wxzf.setFail",
47739
47715
  data: {
@@ -47751,35 +47727,37 @@ var tableProps = {
47751
47727
  }]
47752
47728
  },
47753
47729
  table: {
47730
+ hdlPageSizeChange: withTable.pageSizeChange,
47731
+ hdlCurrentPageChange: withTable.currentPageChange,
47754
47732
  cols: [{
47755
47733
  label: '金额',
47756
47734
  show: 'expression',
47757
- hdlExpression(_ref8) {
47735
+ hdlExpression(_ref5) {
47758
47736
  let {
47759
47737
  scopeThis,
47760
47738
  row
47761
- } = _ref8;
47739
+ } = _ref5;
47762
47740
  return row.amount ? Math.floor(row.amount) / 100 : 0;
47763
47741
  },
47764
47742
  width: "75px"
47765
47743
  }, {
47766
47744
  label: '支付方式',
47767
47745
  show: 'expression',
47768
- hdlExpression(_ref9) {
47746
+ hdlExpression(_ref6) {
47769
47747
  let {
47770
47748
  scopeThis,
47771
47749
  row
47772
- } = _ref9;
47750
+ } = _ref6;
47773
47751
  return row.process_text + (row.process_code === '0' ? "/" + row.method_text : "");
47774
47752
  }
47775
47753
  }, {
47776
47754
  label: '支付状态',
47777
47755
  show: 'expression',
47778
- hdlExpression(_ref0) {
47756
+ hdlExpression(_ref7) {
47779
47757
  let {
47780
47758
  scopeThis,
47781
47759
  row
47782
- } = _ref0;
47760
+ } = _ref7;
47783
47761
  return row.status_text + "\n" + unclassified.dateFormat.dateFormat(row.time, 'yyyy/MM/dd hh:mm:ss');
47784
47762
  }
47785
47763
  }, {
@@ -47788,11 +47766,11 @@ var tableProps = {
47788
47766
  buttonGroup: [{
47789
47767
  text: "详细",
47790
47768
  size: "small",
47791
- hdlClick(_ref1) {
47769
+ hdlClick(_ref8) {
47792
47770
  let {
47793
47771
  scopeThis,
47794
47772
  row
47795
- } = _ref1;
47773
+ } = _ref8;
47796
47774
  withTable.popupDoc({
47797
47775
  scopeThis,
47798
47776
  row
@@ -47800,19 +47778,19 @@ var tableProps = {
47800
47778
  }
47801
47779
  }, {
47802
47780
  text: "删除",
47803
- hdlVisible(_ref10) {
47781
+ hdlVisible(_ref9) {
47804
47782
  let {
47805
47783
  scopeThis,
47806
47784
  row
47807
- } = _ref10;
47785
+ } = _ref9;
47808
47786
  return scopeThis.initBox.readOnly;
47809
47787
  },
47810
47788
  size: "small",
47811
- hdlClick(_ref11) {
47789
+ hdlClick(_ref0) {
47812
47790
  let {
47813
47791
  scopeThis,
47814
47792
  row
47815
- } = _ref11;
47793
+ } = _ref0;
47816
47794
  withTable.submitDeleteOne({
47817
47795
  scopeThis,
47818
47796
  row