@yoooloo42/joker 1.0.258 → 1.0.260
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.cjs.js +20 -195
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +20 -195
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -23024,7 +23024,6 @@ const submitInsertOne = async _ref10 => {
|
|
|
23024
23024
|
cancelButtonText: '取消',
|
|
23025
23025
|
type: 'warning' // 警告图标
|
|
23026
23026
|
});
|
|
23027
|
-
console.log('joker测试 000', scopeThis.formData);
|
|
23028
23027
|
const result = await ly0request.storpro({
|
|
23029
23028
|
storproName: scopeThis.storpro.insertOne,
|
|
23030
23029
|
data: scopeThis.formData,
|
|
@@ -47667,7 +47666,7 @@ var tableProps = {
|
|
|
47667
47666
|
}
|
|
47668
47667
|
}]
|
|
47669
47668
|
}, {
|
|
47670
|
-
title: "
|
|
47669
|
+
title: "收银",
|
|
47671
47670
|
hdlDisabled(_ref4) {
|
|
47672
47671
|
let {
|
|
47673
47672
|
scopeThis,
|
|
@@ -47676,32 +47675,13 @@ var tableProps = {
|
|
|
47676
47675
|
} = _ref4;
|
|
47677
47676
|
return scopeThis.initBox.readOnly;
|
|
47678
47677
|
},
|
|
47679
|
-
handle(_ref5) {
|
|
47680
|
-
let {
|
|
47681
|
-
scopeThis,
|
|
47682
|
-
index
|
|
47683
|
-
} = _ref5;
|
|
47684
|
-
withTable.popupInsertOne({
|
|
47685
|
-
scopeThis
|
|
47686
|
-
});
|
|
47687
|
-
}
|
|
47688
|
-
}, {
|
|
47689
|
-
title: "收银",
|
|
47690
|
-
hdlDisabled(_ref6) {
|
|
47691
|
-
let {
|
|
47692
|
-
scopeThis,
|
|
47693
|
-
item,
|
|
47694
|
-
index
|
|
47695
|
-
} = _ref6;
|
|
47696
|
-
return scopeThis.initBox.readOnly;
|
|
47697
|
-
},
|
|
47698
47678
|
menu: [{
|
|
47699
47679
|
title: "收银",
|
|
47700
|
-
handle(
|
|
47680
|
+
handle(_ref5) {
|
|
47701
47681
|
let {
|
|
47702
47682
|
scopeThis,
|
|
47703
47683
|
index
|
|
47704
|
-
} =
|
|
47684
|
+
} = _ref5;
|
|
47705
47685
|
scopeThis.cashBox.formData.id_business = scopeThis.initBox.id_business;
|
|
47706
47686
|
scopeThis.cashBox.formData.businesstype_code = scopeThis.initBox.businesstype_code;
|
|
47707
47687
|
// 支付金额合计
|
|
@@ -47717,11 +47697,11 @@ var tableProps = {
|
|
|
47717
47697
|
}
|
|
47718
47698
|
}, {
|
|
47719
47699
|
title: "退款",
|
|
47720
|
-
handle(
|
|
47700
|
+
handle(_ref6) {
|
|
47721
47701
|
let {
|
|
47722
47702
|
scopeThis,
|
|
47723
47703
|
index
|
|
47724
|
-
} =
|
|
47704
|
+
} = _ref6;
|
|
47725
47705
|
ElMessageBox.confirm('退款?', '警告', {
|
|
47726
47706
|
confirmButtonText: '确认',
|
|
47727
47707
|
cancelButtonText: '取消',
|
|
@@ -47747,11 +47727,11 @@ var tableProps = {
|
|
|
47747
47727
|
}
|
|
47748
47728
|
}, {
|
|
47749
47729
|
title: "中止支付",
|
|
47750
|
-
handle(
|
|
47730
|
+
handle(_ref7) {
|
|
47751
47731
|
let {
|
|
47752
47732
|
scopeThis,
|
|
47753
47733
|
index
|
|
47754
|
-
} =
|
|
47734
|
+
} = _ref7;
|
|
47755
47735
|
ly0request.ly0.storpro({
|
|
47756
47736
|
storproName: "ly0d2.wxzf.setFail",
|
|
47757
47737
|
data: {
|
|
@@ -47772,32 +47752,32 @@ var tableProps = {
|
|
|
47772
47752
|
cols: [{
|
|
47773
47753
|
label: '金额',
|
|
47774
47754
|
show: 'expression',
|
|
47775
|
-
hdlExpression(
|
|
47755
|
+
hdlExpression(_ref8) {
|
|
47776
47756
|
let {
|
|
47777
47757
|
scopeThis,
|
|
47778
47758
|
row
|
|
47779
|
-
} =
|
|
47759
|
+
} = _ref8;
|
|
47780
47760
|
return row.amount ? Math.floor(row.amount) / 100 : 0;
|
|
47781
47761
|
},
|
|
47782
47762
|
width: "75px"
|
|
47783
47763
|
}, {
|
|
47784
47764
|
label: '支付方式',
|
|
47785
47765
|
show: 'expression',
|
|
47786
|
-
hdlExpression(
|
|
47766
|
+
hdlExpression(_ref9) {
|
|
47787
47767
|
let {
|
|
47788
47768
|
scopeThis,
|
|
47789
47769
|
row
|
|
47790
|
-
} =
|
|
47770
|
+
} = _ref9;
|
|
47791
47771
|
return row.process_text + (row.process_code === '0' ? "/" + row.method_text : "");
|
|
47792
47772
|
}
|
|
47793
47773
|
}, {
|
|
47794
47774
|
label: '支付状态',
|
|
47795
47775
|
show: 'expression',
|
|
47796
|
-
hdlExpression(
|
|
47776
|
+
hdlExpression(_ref0) {
|
|
47797
47777
|
let {
|
|
47798
47778
|
scopeThis,
|
|
47799
47779
|
row
|
|
47800
|
-
} =
|
|
47780
|
+
} = _ref0;
|
|
47801
47781
|
return row.status_text + "\n" + unclassified.dateFormat.dateFormat(row.time, 'yyyy/MM/dd hh:mm:ss');
|
|
47802
47782
|
}
|
|
47803
47783
|
}, {
|
|
@@ -47806,44 +47786,31 @@ var tableProps = {
|
|
|
47806
47786
|
buttonGroup: [{
|
|
47807
47787
|
text: "详细",
|
|
47808
47788
|
size: "small",
|
|
47809
|
-
hdlClick(
|
|
47789
|
+
hdlClick(_ref1) {
|
|
47810
47790
|
let {
|
|
47811
47791
|
scopeThis,
|
|
47812
47792
|
row
|
|
47813
|
-
} =
|
|
47793
|
+
} = _ref1;
|
|
47814
47794
|
withTable.popupDoc({
|
|
47815
47795
|
scopeThis,
|
|
47816
47796
|
row
|
|
47817
47797
|
});
|
|
47818
47798
|
}
|
|
47819
|
-
}, {
|
|
47820
|
-
text: "修改",
|
|
47821
|
-
size: "small",
|
|
47822
|
-
hdlClick(_ref12) {
|
|
47823
|
-
let {
|
|
47824
|
-
scopeThis,
|
|
47825
|
-
row
|
|
47826
|
-
} = _ref12;
|
|
47827
|
-
withTable.popupUpdateOne({
|
|
47828
|
-
scopeThis,
|
|
47829
|
-
row
|
|
47830
|
-
});
|
|
47831
|
-
}
|
|
47832
47799
|
}, {
|
|
47833
47800
|
text: "删除",
|
|
47834
|
-
hdlVisible(
|
|
47801
|
+
hdlVisible(_ref10) {
|
|
47835
47802
|
let {
|
|
47836
47803
|
scopeThis,
|
|
47837
47804
|
row
|
|
47838
|
-
} =
|
|
47805
|
+
} = _ref10;
|
|
47839
47806
|
return scopeThis.initBox.readOnly;
|
|
47840
47807
|
},
|
|
47841
47808
|
size: "small",
|
|
47842
|
-
hdlClick(
|
|
47809
|
+
hdlClick(_ref11) {
|
|
47843
47810
|
let {
|
|
47844
47811
|
scopeThis,
|
|
47845
47812
|
row
|
|
47846
|
-
} =
|
|
47813
|
+
} = _ref11;
|
|
47847
47814
|
withTable.submitDeleteOne({
|
|
47848
47815
|
scopeThis,
|
|
47849
47816
|
row
|
|
@@ -47860,9 +47827,7 @@ var tableProps = {
|
|
|
47860
47827
|
|
|
47861
47828
|
var storpro = {
|
|
47862
47829
|
refresh: "ly0d2.record0.find",
|
|
47863
|
-
|
|
47864
|
-
updateOne: "ly0d2.record0.updateOne",
|
|
47865
|
-
deleteOne: "ly0d2.record0.deleteOne",
|
|
47830
|
+
deleteOne: "ly0d2.record.deleteOne",
|
|
47866
47831
|
getPgData: "ly0d2.record0.getPgData",
|
|
47867
47832
|
getPayments: "ly0d2.wxzf.getPayments",
|
|
47868
47833
|
setFail: "ly0d2.wxzf.setFail"
|
|
@@ -47899,141 +47864,6 @@ var find = {
|
|
|
47899
47864
|
}
|
|
47900
47865
|
};
|
|
47901
47866
|
|
|
47902
|
-
var insertOne = {
|
|
47903
|
-
formProps: {
|
|
47904
|
-
popup: {
|
|
47905
|
-
switch: true,
|
|
47906
|
-
visible: false,
|
|
47907
|
-
title: "新增"
|
|
47908
|
-
},
|
|
47909
|
-
cols: [{
|
|
47910
|
-
items: [{
|
|
47911
|
-
inputType: "input",
|
|
47912
|
-
label: "金额",
|
|
47913
|
-
fieldName: "amount0",
|
|
47914
|
-
style: {
|
|
47915
|
-
width: "100px"
|
|
47916
|
-
}
|
|
47917
|
-
}, {
|
|
47918
|
-
inputType: "select",
|
|
47919
|
-
label: "用户自主支付方式",
|
|
47920
|
-
fieldName: "method_code",
|
|
47921
|
-
item_fieldLabel: "text",
|
|
47922
|
-
item_fieldValue: "code",
|
|
47923
|
-
hdlGetItems(_ref) {
|
|
47924
|
-
let {
|
|
47925
|
-
scopeThis
|
|
47926
|
-
} = _ref;
|
|
47927
|
-
return scopeThis.pgData.data.arrMethod;
|
|
47928
|
-
},
|
|
47929
|
-
style: {
|
|
47930
|
-
width: "200px"
|
|
47931
|
-
}
|
|
47932
|
-
}, {
|
|
47933
|
-
inputType: "input",
|
|
47934
|
-
label: "备注",
|
|
47935
|
-
fieldName: "note",
|
|
47936
|
-
style: {
|
|
47937
|
-
width: "400px"
|
|
47938
|
-
}
|
|
47939
|
-
}]
|
|
47940
|
-
}],
|
|
47941
|
-
submit: {
|
|
47942
|
-
async handle(_ref2) {
|
|
47943
|
-
let {
|
|
47944
|
-
scopeThis
|
|
47945
|
-
} = _ref2;
|
|
47946
|
-
console.log('joker测试 111', scopeThis.formData);
|
|
47947
|
-
await withTable.submitInsertOne({
|
|
47948
|
-
scopeThis
|
|
47949
|
-
});
|
|
47950
|
-
}
|
|
47951
|
-
}
|
|
47952
|
-
},
|
|
47953
|
-
formData: {
|
|
47954
|
-
_id: null,
|
|
47955
|
-
id_business: null,
|
|
47956
|
-
businesstype_code: "",
|
|
47957
|
-
businesstype_text: "",
|
|
47958
|
-
amount: 0,
|
|
47959
|
-
amount0: 0,
|
|
47960
|
-
process_code: "",
|
|
47961
|
-
process_text: "",
|
|
47962
|
-
method_code: "",
|
|
47963
|
-
method_text: "",
|
|
47964
|
-
status_code: "",
|
|
47965
|
-
status_text: "",
|
|
47966
|
-
time: null,
|
|
47967
|
-
end: null,
|
|
47968
|
-
note: "",
|
|
47969
|
-
rec: "",
|
|
47970
|
-
wxzf_appid: "",
|
|
47971
|
-
wxzf_mchid: "",
|
|
47972
|
-
wxzf_code_url: "",
|
|
47973
|
-
wxzf_out_trade_no: "",
|
|
47974
|
-
wxzf_transaction_id: "",
|
|
47975
|
-
wxzf_trade_type: "",
|
|
47976
|
-
wxzf_trade_state: "",
|
|
47977
|
-
wxzf_trade_state_desc: "",
|
|
47978
|
-
wxzf_bank_type: "",
|
|
47979
|
-
wxzf_success_time: "",
|
|
47980
|
-
wxzf_payer_openid: "",
|
|
47981
|
-
wxzf_amount_total: 0
|
|
47982
|
-
}
|
|
47983
|
-
};
|
|
47984
|
-
|
|
47985
|
-
var updateOne = {
|
|
47986
|
-
formProps: {
|
|
47987
|
-
popup: {
|
|
47988
|
-
switch: true,
|
|
47989
|
-
visible: false,
|
|
47990
|
-
title: "修改"
|
|
47991
|
-
},
|
|
47992
|
-
cols: [{
|
|
47993
|
-
items: [{
|
|
47994
|
-
inputType: "input",
|
|
47995
|
-
label: "金额",
|
|
47996
|
-
fieldName: "amount0",
|
|
47997
|
-
style: {
|
|
47998
|
-
width: "100px"
|
|
47999
|
-
}
|
|
48000
|
-
}, {
|
|
48001
|
-
inputType: "select",
|
|
48002
|
-
label: "用户自主支付方式",
|
|
48003
|
-
fieldName: "method_code",
|
|
48004
|
-
item_fieldLabel: "text",
|
|
48005
|
-
item_fieldValue: "code",
|
|
48006
|
-
hdlGetItems(_ref) {
|
|
48007
|
-
let {
|
|
48008
|
-
scopeThis
|
|
48009
|
-
} = _ref;
|
|
48010
|
-
return scopeThis.pgData.data.arrMethod;
|
|
48011
|
-
},
|
|
48012
|
-
style: {
|
|
48013
|
-
width: "200px"
|
|
48014
|
-
}
|
|
48015
|
-
}, {
|
|
48016
|
-
inputType: "input",
|
|
48017
|
-
label: "备注",
|
|
48018
|
-
fieldName: "note",
|
|
48019
|
-
style: {
|
|
48020
|
-
width: "400px"
|
|
48021
|
-
}
|
|
48022
|
-
}]
|
|
48023
|
-
}],
|
|
48024
|
-
submit: {
|
|
48025
|
-
async handle(_ref2) {
|
|
48026
|
-
let {
|
|
48027
|
-
scopeThis
|
|
48028
|
-
} = _ref2;
|
|
48029
|
-
await withTable.submitUpdateOne({
|
|
48030
|
-
scopeThis
|
|
48031
|
-
});
|
|
48032
|
-
}
|
|
48033
|
-
}
|
|
48034
|
-
}
|
|
48035
|
-
};
|
|
48036
|
-
|
|
48037
47867
|
var doc = {
|
|
48038
47868
|
formProps: {
|
|
48039
47869
|
popup: {
|
|
@@ -48354,8 +48184,6 @@ const scopeThis = reactive({
|
|
|
48354
48184
|
query: JSON.parse(JSON.stringify(query)),
|
|
48355
48185
|
storpro,
|
|
48356
48186
|
find,
|
|
48357
|
-
insertOne,
|
|
48358
|
-
updateOne,
|
|
48359
48187
|
doc,
|
|
48360
48188
|
pgData: {
|
|
48361
48189
|
arrBusinessType: [],
|
|
@@ -48370,9 +48198,6 @@ const scopeThis = reactive({
|
|
|
48370
48198
|
cashBox
|
|
48371
48199
|
});
|
|
48372
48200
|
|
|
48373
|
-
console.log('joker测试 222', scopeThis.initBox);
|
|
48374
|
-
console.log('joker测试 333', props.myProps);
|
|
48375
|
-
|
|
48376
48201
|
onMounted(async ()=>{
|
|
48377
48202
|
scopeThis.queryInit.formData.id_business = scopeThis.initBox.id_business;
|
|
48378
48203
|
scopeThis.queryInit.formData.businesstype_code = scopeThis.initBox.businesstype_code;
|