@imedx/ics-imedx-intf-chs-js-sdk
Advanced tools
Comparing version 0.0.1-beta.6 to 0.0.1-beta.7
import { IntfPlatform } from '@imedx/ics-imedx-chromely-plugin-intf-platform'; | ||
import Vue from 'vue'; | ||
/****************************************************************************** | ||
Copyright (c) Microsoft Corporation. | ||
Permission to use, copy, modify, and/or distribute this software for any | ||
purpose with or without fee is hereby granted. | ||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH | ||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | ||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | ||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM | ||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR | ||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | ||
PERFORMANCE OF THIS SOFTWARE. | ||
***************************************************************************** */ | ||
function __awaiter(thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
}); | ||
} | ||
function __generator(thisArg, body) { | ||
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; | ||
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; | ||
function verb(n) { return function (v) { return step([n, v]); }; } | ||
function step(op) { | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (g && (g = 0, op[0] && (_ = 0)), _) try { | ||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
if (y = 0, t) op = [op[0] & 2, t.value]; | ||
switch (op[0]) { | ||
case 0: case 1: t = op; break; | ||
case 4: _.label++; return { value: op[1], done: false }; | ||
case 5: _.label++; y = op[1]; op = [0]; continue; | ||
case 7: op = _.ops.pop(); _.trys.pop(); continue; | ||
default: | ||
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } | ||
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } | ||
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } | ||
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } | ||
if (t[2]) _.ops.pop(); | ||
_.trys.pop(); continue; | ||
} | ||
op = body.call(thisArg, _); | ||
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } | ||
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; | ||
} | ||
} | ||
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { | ||
var e = new Error(message); | ||
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; | ||
}; | ||
var constants = { | ||
@@ -79,321 +20,3 @@ CHS_INTERFACE_CORE: 'ChsInterfaceCore', | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
var script = { | ||
data() { | ||
return { | ||
dialogVisible: false, | ||
chsType: null, | ||
} | ||
}, | ||
props: { | ||
resolve: { | ||
type: Function, | ||
required: true, | ||
}, | ||
reject: { | ||
type: Function, | ||
required: true, | ||
}, | ||
chsTypeList: { | ||
type: Object, | ||
required: true, | ||
}, | ||
}, | ||
mounted() { | ||
this.dialogVisible = true; | ||
}, | ||
methods: { | ||
handleClose(done) { | ||
this.dialogVisible = false; | ||
done(); | ||
this.reject('用户关闭'); | ||
}, | ||
handleCancel() { | ||
this.dialogVisible = false; | ||
this.reject('用户取消'); | ||
}, | ||
handleConfirm() { | ||
if (this.chsType) { | ||
this.dialogVisible = false; | ||
this.resolve(this.chsType); | ||
} else { | ||
this.$toast({ | ||
message: '请选择医保类型!', | ||
}); | ||
} | ||
}, | ||
}, | ||
}; | ||
function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) { | ||
if (typeof shadowMode !== 'boolean') { | ||
createInjectorSSR = createInjector; | ||
createInjector = shadowMode; | ||
shadowMode = false; | ||
} | ||
// Vue.extend constructor export interop. | ||
const options = typeof script === 'function' ? script.options : script; | ||
// render functions | ||
if (template && template.render) { | ||
options.render = template.render; | ||
options.staticRenderFns = template.staticRenderFns; | ||
options._compiled = true; | ||
// functional template | ||
if (isFunctionalTemplate) { | ||
options.functional = true; | ||
} | ||
} | ||
// scopedId | ||
if (scopeId) { | ||
options._scopeId = scopeId; | ||
} | ||
let hook; | ||
if (moduleIdentifier) { | ||
// server build | ||
hook = function (context) { | ||
// 2.3 injection | ||
context = | ||
context || // cached call | ||
(this.$vnode && this.$vnode.ssrContext) || // stateful | ||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional | ||
// 2.2 with runInNewContext: true | ||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { | ||
context = __VUE_SSR_CONTEXT__; | ||
} | ||
// inject component styles | ||
if (style) { | ||
style.call(this, createInjectorSSR(context)); | ||
} | ||
// register component module identifier for async chunk inference | ||
if (context && context._registeredComponents) { | ||
context._registeredComponents.add(moduleIdentifier); | ||
} | ||
}; | ||
// used by ssr in case component is cached and beforeCreate | ||
// never gets called | ||
options._ssrRegister = hook; | ||
} | ||
else if (style) { | ||
hook = shadowMode | ||
? function (context) { | ||
style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot)); | ||
} | ||
: function (context) { | ||
style.call(this, createInjector(context)); | ||
}; | ||
} | ||
if (hook) { | ||
if (options.functional) { | ||
// register for functional component in vue file | ||
const originalRender = options.render; | ||
options.render = function renderWithStyleInjection(h, context) { | ||
hook.call(context); | ||
return originalRender(h, context); | ||
}; | ||
} | ||
else { | ||
// inject component registration as beforeCreate hook | ||
const existing = options.beforeCreate; | ||
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]; | ||
} | ||
} | ||
return script; | ||
} | ||
const isOldIE = typeof navigator !== 'undefined' && | ||
/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase()); | ||
function createInjector(context) { | ||
return (id, style) => addStyle(id, style); | ||
} | ||
let HEAD; | ||
const styles = {}; | ||
function addStyle(id, css) { | ||
const group = isOldIE ? css.media || 'default' : id; | ||
const style = styles[group] || (styles[group] = { ids: new Set(), styles: [] }); | ||
if (!style.ids.has(id)) { | ||
style.ids.add(id); | ||
let code = css.source; | ||
if (css.map) { | ||
// https://developer.chrome.com/devtools/docs/javascript-debugging | ||
// this makes source maps inside style tags work properly in Chrome | ||
code += '\n/*# sourceURL=' + css.map.sources[0] + ' */'; | ||
// http://stackoverflow.com/a/26603875 | ||
code += | ||
'\n/*# sourceMappingURL=data:application/json;base64,' + | ||
btoa(unescape(encodeURIComponent(JSON.stringify(css.map)))) + | ||
' */'; | ||
} | ||
if (!style.element) { | ||
style.element = document.createElement('style'); | ||
style.element.type = 'text/css'; | ||
if (css.media) | ||
style.element.setAttribute('media', css.media); | ||
if (HEAD === undefined) { | ||
HEAD = document.head || document.getElementsByTagName('head')[0]; | ||
} | ||
HEAD.appendChild(style.element); | ||
} | ||
if ('styleSheet' in style.element) { | ||
style.styles.push(code); | ||
style.element.styleSheet.cssText = style.styles | ||
.filter(Boolean) | ||
.join('\n'); | ||
} | ||
else { | ||
const index = style.ids.size - 1; | ||
const textNode = document.createTextNode(code); | ||
const nodes = style.element.childNodes; | ||
if (nodes[index]) | ||
style.element.removeChild(nodes[index]); | ||
if (nodes.length) | ||
style.element.insertBefore(textNode, nodes[index]); | ||
else | ||
style.element.appendChild(textNode); | ||
} | ||
} | ||
} | ||
/* script */ | ||
const __vue_script__ = script; | ||
/* template */ | ||
var __vue_render__ = function() { | ||
var _vm = this; | ||
var _h = _vm.$createElement; | ||
var _c = _vm._self._c || _h; | ||
return _c( | ||
"ics-dialog", | ||
{ | ||
attrs: { | ||
title: "请选择医保类型", | ||
visible: _vm.dialogVisible, | ||
width: "500px", | ||
"before-close": _vm.handleClose | ||
}, | ||
on: { | ||
"update:visible": function($event) { | ||
_vm.dialogVisible = $event; | ||
} | ||
} | ||
}, | ||
[ | ||
_c( | ||
"ics-radio-group", | ||
{ | ||
model: { | ||
value: _vm.chsType, | ||
callback: function($$v) { | ||
_vm.chsType = $$v; | ||
}, | ||
expression: "chsType" | ||
} | ||
}, | ||
_vm._l(_vm.chsTypeList, function(item) { | ||
return _c( | ||
"ics-radio", | ||
{ key: item.id, attrs: { label: item.code, card: "", border: "" } }, | ||
[ | ||
_c("span", { staticClass: "chs-name" }, [ | ||
_vm._v("【" + _vm._s(item.id || "") + "】" + _vm._s(item.name)) | ||
]), | ||
_c("span", { staticClass: "chs-kind" }, [ | ||
_vm._v(_vm._s(item.chsKindName)) | ||
]) | ||
] | ||
) | ||
}), | ||
1 | ||
), | ||
_vm._v(" "), | ||
_c( | ||
"span", | ||
{ | ||
staticClass: "dialog-footer", | ||
attrs: { slot: "footer" }, | ||
slot: "footer" | ||
}, | ||
[ | ||
_c("ics-button", { on: { click: _vm.handleCancel } }, [ | ||
_vm._v("取 消") | ||
]), | ||
_vm._v(" "), | ||
_c( | ||
"ics-button", | ||
{ attrs: { type: "primary" }, on: { click: _vm.handleConfirm } }, | ||
[_vm._v("确 定")] | ||
) | ||
], | ||
1 | ||
) | ||
], | ||
1 | ||
) | ||
}; | ||
var __vue_staticRenderFns__ = []; | ||
__vue_render__._withStripped = true; | ||
/* style */ | ||
const __vue_inject_styles__ = function (inject) { | ||
if (!inject) return | ||
inject("data-v-28c67d70_0", { source: "[data-v-28c67d70] .el-radio-group {\n width: 100%;\n}\n[data-v-28c67d70] .el-radio {\n display: block;\n margin: 10px 0;\n width: 100%;\n}\n[data-v-28c67d70] .el-radio.is-bordered + .el-radio.is-bordered {\n margin-left: 0px;\n}\n[data-v-28c67d70] .el-radio .chs-name {\n color: #182140;\n}\n[data-v-28c67d70] .el-radio .chs-kind {\n float: right;\n color: rgba(24, 33, 64, 0.7);\n}\n\n/*# sourceMappingURL=ChsTypeDialog.vue.map */", map: {"version":3,"sources":["D:\\Work\\Src\\V7\\Program\\接口管理\\js\\ics-imedx-intf-chs-js-sdk\\src\\components\\chs-type-dialog\\ChsTypeDialog.vue","ChsTypeDialog.vue"],"names":[],"mappings":"AAqEA;EACA,WAAA;ACpEA;ADsEA;EACA,cAAA;EACA,cAAA;EACA,WAAA;ACnEA;ADoEA;EACA,gBAAA;AClEA;ADoEA;EACA,cAAA;AClEA;ADoEA;EACA,YAAA;EACA,4BAAA;AClEA;;AAEA,4CAA4C","file":"ChsTypeDialog.vue","sourcesContent":["\n<template>\n <ics-dialog\n title=\"请选择医保类型\"\n :visible.sync=\"dialogVisible\"\n width=\"500px\"\n :before-close=\"handleClose\"\n >\n <ics-radio-group v-model=\"chsType\">\n <ics-radio v-for=\"(item) in chsTypeList\" :key=\"item.id\" :label=\"item.code\" card border\n ><span class=\"chs-name\">【{{ item.id || '' }}】{{ item.name }}</span\n ><span class=\"chs-kind\">{{ item.chsKindName }}</span></ics-radio\n >\n </ics-radio-group>\n <span slot=\"footer\" class=\"dialog-footer\">\n <ics-button @click=\"handleCancel\">取 消</ics-button>\n <ics-button type=\"primary\" @click=\"handleConfirm\">确 定</ics-button>\n </span>\n </ics-dialog>\n</template>\n<script>\nexport default {\n data() {\n return {\n dialogVisible: false,\n chsType: null,\n }\n },\n props: {\n resolve: {\n type: Function,\n required: true,\n },\n reject: {\n type: Function,\n required: true,\n },\n chsTypeList: {\n type: Object,\n required: true,\n },\n },\n mounted() {\n this.dialogVisible = true\n },\n methods: {\n handleClose(done) {\n this.dialogVisible = false\n done()\n this.reject('用户关闭')\n },\n handleCancel() {\n this.dialogVisible = false\n this.reject('用户取消')\n },\n handleConfirm() {\n if (this.chsType) {\n this.dialogVisible = false\n this.resolve(this.chsType)\n } else {\n this.$toast({\n message: '请选择医保类型!',\n })\n }\n },\n },\n}\n</script>\n<style lang=\"scss\" scoped>\n::v-deep .el-radio-group {\n width: 100%;\n}\n::v-deep .el-radio {\n display: block;\n margin: 10px 0;\n width: 100%;\n &.is-bordered + .el-radio.is-bordered {\n margin-left: 0px;\n }\n .chs-name {\n color: #182140;\n }\n .chs-kind {\n float: right;\n color: rgba(24, 33, 64, 0.7);\n }\n}\n</style>\n","::v-deep .el-radio-group {\n width: 100%;\n}\n\n::v-deep .el-radio {\n display: block;\n margin: 10px 0;\n width: 100%;\n}\n::v-deep .el-radio.is-bordered + .el-radio.is-bordered {\n margin-left: 0px;\n}\n::v-deep .el-radio .chs-name {\n color: #182140;\n}\n::v-deep .el-radio .chs-kind {\n float: right;\n color: rgba(24, 33, 64, 0.7);\n}\n\n/*# sourceMappingURL=ChsTypeDialog.vue.map */"]}, media: undefined }); | ||
}; | ||
/* scoped */ | ||
const __vue_scope_id__ = "data-v-28c67d70"; | ||
/* module identifier */ | ||
const __vue_module_identifier__ = undefined; | ||
/* functional template */ | ||
const __vue_is_functional_template__ = false; | ||
/* style inject SSR */ | ||
/* style inject shadow dom */ | ||
const __vue_component__ = /*#__PURE__*/normalizeComponent( | ||
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ }, | ||
__vue_inject_styles__, | ||
__vue_script__, | ||
__vue_scope_id__, | ||
__vue_is_functional_template__, | ||
__vue_module_identifier__, | ||
false, | ||
createInjector, | ||
undefined, | ||
undefined | ||
); | ||
/** | ||
* 弹出医保类型对话框 | ||
*/ | ||
function showChsTypeDialog(chsTypeList) { | ||
return new Promise(function (resolve, reject) { | ||
var chsTypeDialog = Vue.extend(__vue_component__); | ||
// 创建一个Vue实例 | ||
new chsTypeDialog({ | ||
propsData: { resolve: resolve, reject: reject, chsTypeList: chsTypeList } | ||
}).$mount(); | ||
}); | ||
} | ||
// @ts-ignore | ||
var IcsImedxIntfChsPlatformJsSdk = /** @class */ (function () { | ||
@@ -407,57 +30,25 @@ /** | ||
} | ||
IcsImedxIntfChsPlatformJsSdk.use = function (_a) { | ||
var request = _a.request; | ||
this.Request = request; | ||
}; | ||
/** | ||
* 医保初始化接口 | ||
* @param param 医保初始化入参 | ||
* @param param.visitId 患者就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
* 医保初始化接口 | ||
* @param param 医保初始化入参 | ||
* @param param.visitId 患者就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.Init = function (_a) { | ||
var visitId = _a.visitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode; | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.Init, { | ||
visitId: visitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode | ||
}); | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.Init, { visitId: visitId, businessCode: businessCode, oPFlag: oPFlag, serviceMode: serviceMode }); | ||
}; | ||
/** | ||
* 医保读卡接口 | ||
* @param param 医保读卡入参 | ||
* @param param.visitId 患者就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
* 医保读卡接口 | ||
* @param param 医保读卡入参 | ||
* @param param.visitId 患者就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.ReadCard = function (_a) { | ||
var visitId = _a.visitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode; | ||
return __awaiter(this, void 0, void 0, function () { | ||
var res, chsTypeId; | ||
return __generator(this, function (_b) { | ||
switch (_b.label) { | ||
case 0: return [4 /*yield*/, IcsImedxIntfChsPlatformJsSdk.Request({ | ||
url: 'chs-basic/chs-type/list/by/status', | ||
method: 'post', | ||
data: {} | ||
})]; | ||
case 1: | ||
res = _b.sent(); | ||
return [4 /*yield*/, showChsTypeDialog(res.data)]; | ||
case 2: | ||
chsTypeId = _b.sent(); | ||
return [2 /*return*/, IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.ReadCard, { | ||
visitId: visitId, | ||
chsTypeId: chsTypeId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode | ||
})]; | ||
} | ||
}); | ||
}); | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.ReadCard, { visitId: visitId, businessCode: businessCode, oPFlag: oPFlag, serviceMode: serviceMode }); | ||
}; | ||
@@ -474,73 +65,46 @@ /** | ||
var visitId = _a.visitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode; | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.Register, { | ||
visitId: visitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode | ||
}); | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.Register, { visitId: visitId, businessCode: businessCode, oPFlag: oPFlag, serviceMode: serviceMode }); | ||
}; | ||
/** | ||
* 医保登记修改接口 | ||
* @param param 医保登记修改入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
* 医保登记修改接口 | ||
* @param param 医保登记修改入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.RegisterUpdate = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode; | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.RegisterUpdate, { | ||
chsTypeId: chsTypeId, | ||
visitId: visitId, | ||
chsVisitId: chsVisitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode | ||
}); | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.RegisterUpdate, { chsTypeId: chsTypeId, visitId: visitId, chsVisitId: chsVisitId, businessCode: businessCode, oPFlag: oPFlag, serviceMode: serviceMode }); | ||
}; | ||
/** | ||
* 医保登记撤销接口 | ||
* @param param 医保登记撤销入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
* 医保登记撤销接口 | ||
* @param param 医保登记撤销入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.RegisterCancel = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode; | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.RegisterCancel, { | ||
chsTypeId: chsTypeId, | ||
visitId: visitId, | ||
chsVisitId: chsVisitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode | ||
}); | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.RegisterCancel, { chsTypeId: chsTypeId, visitId: visitId, chsVisitId: chsVisitId, businessCode: businessCode, oPFlag: oPFlag, serviceMode: serviceMode }); | ||
}; | ||
/** | ||
* 医保费用上传接口 | ||
* @param param 医保费用上传入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
* @param param.chargeSettleId his费用结算id | ||
*/ | ||
* 医保费用上传接口 | ||
* @param param 医保费用上传入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
* @param param.chargeSettleId his费用结算id | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.FeeTransfer = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode, chargeSettleId = _a.chargeSettleId; | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.FeeTransfer, { | ||
chsTypeId: chsTypeId, | ||
visitId: visitId, | ||
chsVisitId: chsVisitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode, | ||
chargeSettleId: chargeSettleId | ||
}); | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.FeeTransfer, { chsTypeId: chsTypeId, visitId: visitId, chsVisitId: chsVisitId, businessCode: businessCode, oPFlag: oPFlag, serviceMode: serviceMode, chargeSettleId: chargeSettleId }); | ||
}; | ||
@@ -560,124 +124,77 @@ /** | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode, chargeSettleId = _a.chargeSettleId; | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.FeeTransferCancel, { | ||
chsTypeId: chsTypeId, | ||
visitId: visitId, | ||
chsVisitId: chsVisitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode, | ||
chargeSettleId: chargeSettleId | ||
}); | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.FeeTransferCancel, { chsTypeId: chsTypeId, visitId: visitId, chsVisitId: chsVisitId, businessCode: businessCode, oPFlag: oPFlag, serviceMode: serviceMode, chargeSettleId: chargeSettleId }); | ||
}; | ||
/** | ||
* 医保预结算接口 | ||
* @param param 医保预结算入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
* @param param.chargeSettleId his费用结算id | ||
*/ | ||
* 医保预结算接口 | ||
* @param param 医保预结算入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
* @param param.chargeSettleId his费用结算id | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.PreSettle = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode, chargeSettleId = _a.chargeSettleId; | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.PreSettle, { | ||
chsTypeId: chsTypeId, | ||
visitId: visitId, | ||
chsVisitId: chsVisitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode, | ||
chargeSettleId: chargeSettleId | ||
}); | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.PreSettle, { chsTypeId: chsTypeId, visitId: visitId, chsVisitId: chsVisitId, businessCode: businessCode, oPFlag: oPFlag, serviceMode: serviceMode, chargeSettleId: chargeSettleId }); | ||
}; | ||
/** | ||
* 医保预结算撤销接口 | ||
* @param param 医保预结算撤销入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
* @param param.chargeSettleId his费用结算id | ||
*/ | ||
* 医保预结算撤销接口 | ||
* @param param 医保预结算撤销入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
* @param param.chargeSettleId his费用结算id | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.PreSettleCancel = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode, chargeSettleId = _a.chargeSettleId; | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.PreSettleCancel, { | ||
chsTypeId: chsTypeId, | ||
visitId: visitId, | ||
chsVisitId: chsVisitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode, | ||
chargeSettleId: chargeSettleId | ||
}); | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.PreSettleCancel, { chsTypeId: chsTypeId, visitId: visitId, chsVisitId: chsVisitId, businessCode: businessCode, oPFlag: oPFlag, serviceMode: serviceMode, chargeSettleId: chargeSettleId }); | ||
}; | ||
/** | ||
* 医保结算接口 | ||
* @param param 医保结算入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
* @param param.chargeSettleId his费用结算id | ||
*/ | ||
* 医保结算接口 | ||
* @param param 医保结算入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
* @param param.chargeSettleId his费用结算id | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.Settle = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode, chargeSettleId = _a.chargeSettleId; | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.Settle, { | ||
chsTypeId: chsTypeId, | ||
visitId: visitId, | ||
chsVisitId: chsVisitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode, | ||
chargeSettleId: chargeSettleId | ||
}); | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.Settle, { chsTypeId: chsTypeId, visitId: visitId, chsVisitId: chsVisitId, businessCode: businessCode, oPFlag: oPFlag, serviceMode: serviceMode, chargeSettleId: chargeSettleId }); | ||
}; | ||
/** | ||
* 医保结算撤销接口 | ||
* @param param 医保结算撤销入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
* @param param.chargeSettleId his费用结算id | ||
*/ | ||
* 医保结算撤销接口 | ||
* @param param 医保结算撤销入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
* @param param.chargeSettleId his费用结算id | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.SettleCancel = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode, chargeSettleId = _a.chargeSettleId; | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.SettleCancel, { | ||
chsTypeId: chsTypeId, | ||
visitId: visitId, | ||
chsVisitId: chsVisitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode, | ||
chargeSettleId: chargeSettleId | ||
}); | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.SettleCancel, { chsTypeId: chsTypeId, visitId: visitId, chsVisitId: chsVisitId, businessCode: businessCode, oPFlag: oPFlag, serviceMode: serviceMode, chargeSettleId: chargeSettleId }); | ||
}; | ||
/** | ||
* 医保出院登记接口 | ||
* @param param 出院登记入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
* 医保出院登记接口 | ||
* @param param 出院登记入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.LeaveRegister = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode; | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.LeaveRegister, { | ||
chsTypeId: chsTypeId, | ||
visitId: visitId, | ||
chsVisitId: chsVisitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode | ||
}); | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.LeaveRegister, { chsTypeId: chsTypeId, visitId: visitId, chsVisitId: chsVisitId, businessCode: businessCode, oPFlag: oPFlag, serviceMode: serviceMode }); | ||
}; | ||
@@ -696,20 +213,8 @@ /** | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode; | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.LeaveRegisterCancel, { | ||
chsTypeId: chsTypeId, | ||
visitId: visitId, | ||
chsVisitId: chsVisitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode | ||
}); | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.LeaveRegisterCancel, { chsTypeId: chsTypeId, visitId: visitId, chsVisitId: chsVisitId, businessCode: businessCode, oPFlag: oPFlag, serviceMode: serviceMode }); | ||
}; | ||
/** | ||
* 安装Vue | ||
* @param Vue Vue对象 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.install = function (Vue) { }; | ||
return IcsImedxIntfChsPlatformJsSdk; | ||
}()); | ||
export { IcsImedxIntfChsPlatformJsSdk as default }; | ||
export default IcsImedxIntfChsPlatformJsSdk; | ||
//# sourceMappingURL=ics-imedx-Intf-chs-js-sdk.es5.js.map |
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('@imedx/ics-imedx-chromely-plugin-intf-platform'), require('vue')) : | ||
typeof define === 'function' && define.amd ? define(['@imedx/ics-imedx-chromely-plugin-intf-platform', 'vue'], factory) : | ||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.icsImedxIntfChsJsSdk = factory(global.icsImedxChromelyPluginIntfPlatform, global.Vue)); | ||
})(this, (function (icsImedxChromelyPluginIntfPlatform, Vue) { 'use strict'; | ||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('@imedx/ics-imedx-chromely-plugin-intf-platform')) : | ||
typeof define === 'function' && define.amd ? define(['@imedx/ics-imedx-chromely-plugin-intf-platform'], factory) : | ||
(global.icsImedxIntfChsJsSdk = factory(global.icsImedxChromelyPluginIntfPlatform)); | ||
}(this, (function (icsImedxChromelyPluginIntfPlatform) { 'use strict'; | ||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } | ||
var constants = { | ||
CHS_INTERFACE_CORE: 'ChsInterfaceCore', | ||
Init: '2000', | ||
ReadCard: '2100', | ||
Register: '2201', | ||
RegisterUpdate: '2202', | ||
RegisterCancel: '2250', | ||
FeeTransfer: '2301', | ||
FeeTransferCancel: '2350', | ||
PreSettle: '2401', | ||
PreSettleCancel: '2450', | ||
Settle: '2501', | ||
SettleCancel: '2550', | ||
LeaveRegister: '2601', | ||
LeaveRegisterCancel: '2650' | ||
}; | ||
var Vue__default = /*#__PURE__*/_interopDefaultLegacy(Vue); | ||
/****************************************************************************** | ||
Copyright (c) Microsoft Corporation. | ||
Permission to use, copy, modify, and/or distribute this software for any | ||
purpose with or without fee is hereby granted. | ||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH | ||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | ||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | ||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM | ||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR | ||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | ||
PERFORMANCE OF THIS SOFTWARE. | ||
***************************************************************************** */ | ||
function __awaiter(thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
}); | ||
} | ||
function __generator(thisArg, body) { | ||
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; | ||
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; | ||
function verb(n) { return function (v) { return step([n, v]); }; } | ||
function step(op) { | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (g && (g = 0, op[0] && (_ = 0)), _) try { | ||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
if (y = 0, t) op = [op[0] & 2, t.value]; | ||
switch (op[0]) { | ||
case 0: case 1: t = op; break; | ||
case 4: _.label++; return { value: op[1], done: false }; | ||
case 5: _.label++; y = op[1]; op = [0]; continue; | ||
case 7: op = _.ops.pop(); _.trys.pop(); continue; | ||
default: | ||
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } | ||
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } | ||
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } | ||
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } | ||
if (t[2]) _.ops.pop(); | ||
_.trys.pop(); continue; | ||
} | ||
op = body.call(thisArg, _); | ||
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } | ||
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; | ||
} | ||
} | ||
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { | ||
var e = new Error(message); | ||
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; | ||
}; | ||
var constants = { | ||
CHS_INTERFACE_CORE: 'ChsInterfaceCore', | ||
Init: '2000', | ||
ReadCard: '2100', | ||
Register: '2201', | ||
RegisterUpdate: '2202', | ||
RegisterCancel: '2250', | ||
FeeTransfer: '2301', | ||
FeeTransferCancel: '2350', | ||
PreSettle: '2401', | ||
PreSettleCancel: '2450', | ||
Settle: '2501', | ||
SettleCancel: '2550', | ||
LeaveRegister: '2601', | ||
LeaveRegisterCancel: '2650' | ||
}; | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
var script = { | ||
data() { | ||
return { | ||
dialogVisible: false, | ||
chsType: null, | ||
} | ||
}, | ||
props: { | ||
resolve: { | ||
type: Function, | ||
required: true, | ||
}, | ||
reject: { | ||
type: Function, | ||
required: true, | ||
}, | ||
chsTypeList: { | ||
type: Object, | ||
required: true, | ||
}, | ||
}, | ||
mounted() { | ||
this.dialogVisible = true; | ||
}, | ||
methods: { | ||
handleClose(done) { | ||
this.dialogVisible = false; | ||
done(); | ||
this.reject('用户关闭'); | ||
}, | ||
handleCancel() { | ||
this.dialogVisible = false; | ||
this.reject('用户取消'); | ||
}, | ||
handleConfirm() { | ||
if (this.chsType) { | ||
this.dialogVisible = false; | ||
this.resolve(this.chsType); | ||
} else { | ||
this.$toast({ | ||
message: '请选择医保类型!', | ||
}); | ||
} | ||
}, | ||
}, | ||
}; | ||
function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) { | ||
if (typeof shadowMode !== 'boolean') { | ||
createInjectorSSR = createInjector; | ||
createInjector = shadowMode; | ||
shadowMode = false; | ||
} | ||
// Vue.extend constructor export interop. | ||
const options = typeof script === 'function' ? script.options : script; | ||
// render functions | ||
if (template && template.render) { | ||
options.render = template.render; | ||
options.staticRenderFns = template.staticRenderFns; | ||
options._compiled = true; | ||
// functional template | ||
if (isFunctionalTemplate) { | ||
options.functional = true; | ||
} | ||
} | ||
// scopedId | ||
if (scopeId) { | ||
options._scopeId = scopeId; | ||
} | ||
let hook; | ||
if (moduleIdentifier) { | ||
// server build | ||
hook = function (context) { | ||
// 2.3 injection | ||
context = | ||
context || // cached call | ||
(this.$vnode && this.$vnode.ssrContext) || // stateful | ||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional | ||
// 2.2 with runInNewContext: true | ||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { | ||
context = __VUE_SSR_CONTEXT__; | ||
} | ||
// inject component styles | ||
if (style) { | ||
style.call(this, createInjectorSSR(context)); | ||
} | ||
// register component module identifier for async chunk inference | ||
if (context && context._registeredComponents) { | ||
context._registeredComponents.add(moduleIdentifier); | ||
} | ||
}; | ||
// used by ssr in case component is cached and beforeCreate | ||
// never gets called | ||
options._ssrRegister = hook; | ||
} | ||
else if (style) { | ||
hook = shadowMode | ||
? function (context) { | ||
style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot)); | ||
} | ||
: function (context) { | ||
style.call(this, createInjector(context)); | ||
}; | ||
} | ||
if (hook) { | ||
if (options.functional) { | ||
// register for functional component in vue file | ||
const originalRender = options.render; | ||
options.render = function renderWithStyleInjection(h, context) { | ||
hook.call(context); | ||
return originalRender(h, context); | ||
}; | ||
} | ||
else { | ||
// inject component registration as beforeCreate hook | ||
const existing = options.beforeCreate; | ||
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]; | ||
} | ||
} | ||
return script; | ||
} | ||
const isOldIE = typeof navigator !== 'undefined' && | ||
/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase()); | ||
function createInjector(context) { | ||
return (id, style) => addStyle(id, style); | ||
} | ||
let HEAD; | ||
const styles = {}; | ||
function addStyle(id, css) { | ||
const group = isOldIE ? css.media || 'default' : id; | ||
const style = styles[group] || (styles[group] = { ids: new Set(), styles: [] }); | ||
if (!style.ids.has(id)) { | ||
style.ids.add(id); | ||
let code = css.source; | ||
if (css.map) { | ||
// https://developer.chrome.com/devtools/docs/javascript-debugging | ||
// this makes source maps inside style tags work properly in Chrome | ||
code += '\n/*# sourceURL=' + css.map.sources[0] + ' */'; | ||
// http://stackoverflow.com/a/26603875 | ||
code += | ||
'\n/*# sourceMappingURL=data:application/json;base64,' + | ||
btoa(unescape(encodeURIComponent(JSON.stringify(css.map)))) + | ||
' */'; | ||
} | ||
if (!style.element) { | ||
style.element = document.createElement('style'); | ||
style.element.type = 'text/css'; | ||
if (css.media) | ||
style.element.setAttribute('media', css.media); | ||
if (HEAD === undefined) { | ||
HEAD = document.head || document.getElementsByTagName('head')[0]; | ||
} | ||
HEAD.appendChild(style.element); | ||
} | ||
if ('styleSheet' in style.element) { | ||
style.styles.push(code); | ||
style.element.styleSheet.cssText = style.styles | ||
.filter(Boolean) | ||
.join('\n'); | ||
} | ||
else { | ||
const index = style.ids.size - 1; | ||
const textNode = document.createTextNode(code); | ||
const nodes = style.element.childNodes; | ||
if (nodes[index]) | ||
style.element.removeChild(nodes[index]); | ||
if (nodes.length) | ||
style.element.insertBefore(textNode, nodes[index]); | ||
else | ||
style.element.appendChild(textNode); | ||
} | ||
} | ||
} | ||
/* script */ | ||
const __vue_script__ = script; | ||
/* template */ | ||
var __vue_render__ = function() { | ||
var _vm = this; | ||
var _h = _vm.$createElement; | ||
var _c = _vm._self._c || _h; | ||
return _c( | ||
"ics-dialog", | ||
{ | ||
attrs: { | ||
title: "请选择医保类型", | ||
visible: _vm.dialogVisible, | ||
width: "500px", | ||
"before-close": _vm.handleClose | ||
}, | ||
on: { | ||
"update:visible": function($event) { | ||
_vm.dialogVisible = $event; | ||
} | ||
} | ||
}, | ||
[ | ||
_c( | ||
"ics-radio-group", | ||
{ | ||
model: { | ||
value: _vm.chsType, | ||
callback: function($$v) { | ||
_vm.chsType = $$v; | ||
}, | ||
expression: "chsType" | ||
} | ||
}, | ||
_vm._l(_vm.chsTypeList, function(item) { | ||
return _c( | ||
"ics-radio", | ||
{ key: item.id, attrs: { label: item.code, card: "", border: "" } }, | ||
[ | ||
_c("span", { staticClass: "chs-name" }, [ | ||
_vm._v("【" + _vm._s(item.id || "") + "】" + _vm._s(item.name)) | ||
]), | ||
_c("span", { staticClass: "chs-kind" }, [ | ||
_vm._v(_vm._s(item.chsKindName)) | ||
]) | ||
] | ||
) | ||
}), | ||
1 | ||
), | ||
_vm._v(" "), | ||
_c( | ||
"span", | ||
{ | ||
staticClass: "dialog-footer", | ||
attrs: { slot: "footer" }, | ||
slot: "footer" | ||
}, | ||
[ | ||
_c("ics-button", { on: { click: _vm.handleCancel } }, [ | ||
_vm._v("取 消") | ||
]), | ||
_vm._v(" "), | ||
_c( | ||
"ics-button", | ||
{ attrs: { type: "primary" }, on: { click: _vm.handleConfirm } }, | ||
[_vm._v("确 定")] | ||
) | ||
], | ||
1 | ||
) | ||
], | ||
1 | ||
) | ||
}; | ||
var __vue_staticRenderFns__ = []; | ||
__vue_render__._withStripped = true; | ||
/* style */ | ||
const __vue_inject_styles__ = function (inject) { | ||
if (!inject) return | ||
inject("data-v-28c67d70_0", { source: "[data-v-28c67d70] .el-radio-group {\n width: 100%;\n}\n[data-v-28c67d70] .el-radio {\n display: block;\n margin: 10px 0;\n width: 100%;\n}\n[data-v-28c67d70] .el-radio.is-bordered + .el-radio.is-bordered {\n margin-left: 0px;\n}\n[data-v-28c67d70] .el-radio .chs-name {\n color: #182140;\n}\n[data-v-28c67d70] .el-radio .chs-kind {\n float: right;\n color: rgba(24, 33, 64, 0.7);\n}\n\n/*# sourceMappingURL=ChsTypeDialog.vue.map */", map: {"version":3,"sources":["D:\\Work\\Src\\V7\\Program\\接口管理\\js\\ics-imedx-intf-chs-js-sdk\\src\\components\\chs-type-dialog\\ChsTypeDialog.vue","ChsTypeDialog.vue"],"names":[],"mappings":"AAqEA;EACA,WAAA;ACpEA;ADsEA;EACA,cAAA;EACA,cAAA;EACA,WAAA;ACnEA;ADoEA;EACA,gBAAA;AClEA;ADoEA;EACA,cAAA;AClEA;ADoEA;EACA,YAAA;EACA,4BAAA;AClEA;;AAEA,4CAA4C","file":"ChsTypeDialog.vue","sourcesContent":["\n<template>\n <ics-dialog\n title=\"请选择医保类型\"\n :visible.sync=\"dialogVisible\"\n width=\"500px\"\n :before-close=\"handleClose\"\n >\n <ics-radio-group v-model=\"chsType\">\n <ics-radio v-for=\"(item) in chsTypeList\" :key=\"item.id\" :label=\"item.code\" card border\n ><span class=\"chs-name\">【{{ item.id || '' }}】{{ item.name }}</span\n ><span class=\"chs-kind\">{{ item.chsKindName }}</span></ics-radio\n >\n </ics-radio-group>\n <span slot=\"footer\" class=\"dialog-footer\">\n <ics-button @click=\"handleCancel\">取 消</ics-button>\n <ics-button type=\"primary\" @click=\"handleConfirm\">确 定</ics-button>\n </span>\n </ics-dialog>\n</template>\n<script>\nexport default {\n data() {\n return {\n dialogVisible: false,\n chsType: null,\n }\n },\n props: {\n resolve: {\n type: Function,\n required: true,\n },\n reject: {\n type: Function,\n required: true,\n },\n chsTypeList: {\n type: Object,\n required: true,\n },\n },\n mounted() {\n this.dialogVisible = true\n },\n methods: {\n handleClose(done) {\n this.dialogVisible = false\n done()\n this.reject('用户关闭')\n },\n handleCancel() {\n this.dialogVisible = false\n this.reject('用户取消')\n },\n handleConfirm() {\n if (this.chsType) {\n this.dialogVisible = false\n this.resolve(this.chsType)\n } else {\n this.$toast({\n message: '请选择医保类型!',\n })\n }\n },\n },\n}\n</script>\n<style lang=\"scss\" scoped>\n::v-deep .el-radio-group {\n width: 100%;\n}\n::v-deep .el-radio {\n display: block;\n margin: 10px 0;\n width: 100%;\n &.is-bordered + .el-radio.is-bordered {\n margin-left: 0px;\n }\n .chs-name {\n color: #182140;\n }\n .chs-kind {\n float: right;\n color: rgba(24, 33, 64, 0.7);\n }\n}\n</style>\n","::v-deep .el-radio-group {\n width: 100%;\n}\n\n::v-deep .el-radio {\n display: block;\n margin: 10px 0;\n width: 100%;\n}\n::v-deep .el-radio.is-bordered + .el-radio.is-bordered {\n margin-left: 0px;\n}\n::v-deep .el-radio .chs-name {\n color: #182140;\n}\n::v-deep .el-radio .chs-kind {\n float: right;\n color: rgba(24, 33, 64, 0.7);\n}\n\n/*# sourceMappingURL=ChsTypeDialog.vue.map */"]}, media: undefined }); | ||
// @ts-ignore | ||
var IcsImedxIntfChsPlatformJsSdk = /** @class */ (function () { | ||
/** | ||
* | ||
* @param mode 参数 | ||
*/ | ||
function IcsImedxIntfChsPlatformJsSdk(mode) { | ||
this._mode = mode; | ||
} | ||
/** | ||
* 医保初始化接口 | ||
* @param param 医保初始化入参 | ||
* @param param.visitId 患者就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.Init = function (_a) { | ||
var visitId = _a.visitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode; | ||
return icsImedxChromelyPluginIntfPlatform.IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.Init, { visitId: visitId, businessCode: businessCode, oPFlag: oPFlag, serviceMode: serviceMode }); | ||
}; | ||
/* scoped */ | ||
const __vue_scope_id__ = "data-v-28c67d70"; | ||
/* module identifier */ | ||
const __vue_module_identifier__ = undefined; | ||
/* functional template */ | ||
const __vue_is_functional_template__ = false; | ||
/* style inject SSR */ | ||
/* style inject shadow dom */ | ||
/** | ||
* 医保读卡接口 | ||
* @param param 医保读卡入参 | ||
* @param param.visitId 患者就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.ReadCard = function (_a) { | ||
var visitId = _a.visitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode; | ||
return icsImedxChromelyPluginIntfPlatform.IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.ReadCard, { visitId: visitId, businessCode: businessCode, oPFlag: oPFlag, serviceMode: serviceMode }); | ||
}; | ||
/** | ||
* 医保登记接口 | ||
* @param param 医保读卡入参 | ||
* @param param.visitId 患者就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.Register = function (_a) { | ||
var visitId = _a.visitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode; | ||
return icsImedxChromelyPluginIntfPlatform.IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.Register, { visitId: visitId, businessCode: businessCode, oPFlag: oPFlag, serviceMode: serviceMode }); | ||
}; | ||
/** | ||
* 医保登记修改接口 | ||
* @param param 医保登记修改入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.RegisterUpdate = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode; | ||
return icsImedxChromelyPluginIntfPlatform.IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.RegisterUpdate, { chsTypeId: chsTypeId, visitId: visitId, chsVisitId: chsVisitId, businessCode: businessCode, oPFlag: oPFlag, serviceMode: serviceMode }); | ||
}; | ||
/** | ||
* 医保登记撤销接口 | ||
* @param param 医保登记撤销入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.RegisterCancel = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode; | ||
return icsImedxChromelyPluginIntfPlatform.IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.RegisterCancel, { chsTypeId: chsTypeId, visitId: visitId, chsVisitId: chsVisitId, businessCode: businessCode, oPFlag: oPFlag, serviceMode: serviceMode }); | ||
}; | ||
/** | ||
* 医保费用上传接口 | ||
* @param param 医保费用上传入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
* @param param.chargeSettleId his费用结算id | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.FeeTransfer = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode, chargeSettleId = _a.chargeSettleId; | ||
return icsImedxChromelyPluginIntfPlatform.IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.FeeTransfer, { chsTypeId: chsTypeId, visitId: visitId, chsVisitId: chsVisitId, businessCode: businessCode, oPFlag: oPFlag, serviceMode: serviceMode, chargeSettleId: chargeSettleId }); | ||
}; | ||
/** | ||
* 医保费用上传撤销接口 | ||
* @param param 医保费用上传撤销入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
* @param param.chargeSettleId his费用结算id | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.FeeTransferCancel = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode, chargeSettleId = _a.chargeSettleId; | ||
return icsImedxChromelyPluginIntfPlatform.IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.FeeTransferCancel, { chsTypeId: chsTypeId, visitId: visitId, chsVisitId: chsVisitId, businessCode: businessCode, oPFlag: oPFlag, serviceMode: serviceMode, chargeSettleId: chargeSettleId }); | ||
}; | ||
/** | ||
* 医保预结算接口 | ||
* @param param 医保预结算入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
* @param param.chargeSettleId his费用结算id | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.PreSettle = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode, chargeSettleId = _a.chargeSettleId; | ||
return icsImedxChromelyPluginIntfPlatform.IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.PreSettle, { chsTypeId: chsTypeId, visitId: visitId, chsVisitId: chsVisitId, businessCode: businessCode, oPFlag: oPFlag, serviceMode: serviceMode, chargeSettleId: chargeSettleId }); | ||
}; | ||
/** | ||
* 医保预结算撤销接口 | ||
* @param param 医保预结算撤销入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
* @param param.chargeSettleId his费用结算id | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.PreSettleCancel = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode, chargeSettleId = _a.chargeSettleId; | ||
return icsImedxChromelyPluginIntfPlatform.IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.PreSettleCancel, { chsTypeId: chsTypeId, visitId: visitId, chsVisitId: chsVisitId, businessCode: businessCode, oPFlag: oPFlag, serviceMode: serviceMode, chargeSettleId: chargeSettleId }); | ||
}; | ||
/** | ||
* 医保结算接口 | ||
* @param param 医保结算入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
* @param param.chargeSettleId his费用结算id | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.Settle = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode, chargeSettleId = _a.chargeSettleId; | ||
return icsImedxChromelyPluginIntfPlatform.IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.Settle, { chsTypeId: chsTypeId, visitId: visitId, chsVisitId: chsVisitId, businessCode: businessCode, oPFlag: oPFlag, serviceMode: serviceMode, chargeSettleId: chargeSettleId }); | ||
}; | ||
/** | ||
* 医保结算撤销接口 | ||
* @param param 医保结算撤销入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
* @param param.chargeSettleId his费用结算id | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.SettleCancel = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode, chargeSettleId = _a.chargeSettleId; | ||
return icsImedxChromelyPluginIntfPlatform.IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.SettleCancel, { chsTypeId: chsTypeId, visitId: visitId, chsVisitId: chsVisitId, businessCode: businessCode, oPFlag: oPFlag, serviceMode: serviceMode, chargeSettleId: chargeSettleId }); | ||
}; | ||
/** | ||
* 医保出院登记接口 | ||
* @param param 出院登记入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.LeaveRegister = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode; | ||
return icsImedxChromelyPluginIntfPlatform.IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.LeaveRegister, { chsTypeId: chsTypeId, visitId: visitId, chsVisitId: chsVisitId, businessCode: businessCode, oPFlag: oPFlag, serviceMode: serviceMode }); | ||
}; | ||
/** | ||
* 医保出院登记撤销接口 | ||
* @param param 出院登记撤销入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.LeaveRegisterCancel = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode; | ||
return icsImedxChromelyPluginIntfPlatform.IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.LeaveRegisterCancel, { chsTypeId: chsTypeId, visitId: visitId, chsVisitId: chsVisitId, businessCode: businessCode, oPFlag: oPFlag, serviceMode: serviceMode }); | ||
}; | ||
return IcsImedxIntfChsPlatformJsSdk; | ||
}()); | ||
const __vue_component__ = /*#__PURE__*/normalizeComponent( | ||
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ }, | ||
__vue_inject_styles__, | ||
__vue_script__, | ||
__vue_scope_id__, | ||
__vue_is_functional_template__, | ||
__vue_module_identifier__, | ||
false, | ||
createInjector, | ||
undefined, | ||
undefined | ||
); | ||
return IcsImedxIntfChsPlatformJsSdk; | ||
/** | ||
* 弹出医保类型对话框 | ||
*/ | ||
function showChsTypeDialog(chsTypeList) { | ||
return new Promise(function (resolve, reject) { | ||
var chsTypeDialog = Vue__default["default"].extend(__vue_component__); | ||
// 创建一个Vue实例 | ||
new chsTypeDialog({ | ||
propsData: { resolve: resolve, reject: reject, chsTypeList: chsTypeList } | ||
}).$mount(); | ||
}); | ||
} | ||
var IcsImedxIntfChsPlatformJsSdk = /** @class */ (function () { | ||
/** | ||
* | ||
* @param mode 参数 | ||
*/ | ||
function IcsImedxIntfChsPlatformJsSdk(mode) { | ||
this._mode = mode; | ||
} | ||
IcsImedxIntfChsPlatformJsSdk.use = function (_a) { | ||
var request = _a.request; | ||
this.Request = request; | ||
}; | ||
/** | ||
* 医保初始化接口 | ||
* @param param 医保初始化入参 | ||
* @param param.visitId 患者就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.Init = function (_a) { | ||
var visitId = _a.visitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode; | ||
return icsImedxChromelyPluginIntfPlatform.IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.Init, { | ||
visitId: visitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode | ||
}); | ||
}; | ||
/** | ||
* 医保读卡接口 | ||
* @param param 医保读卡入参 | ||
* @param param.visitId 患者就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.ReadCard = function (_a) { | ||
var visitId = _a.visitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode; | ||
return __awaiter(this, void 0, void 0, function () { | ||
var res, chsTypeId; | ||
return __generator(this, function (_b) { | ||
switch (_b.label) { | ||
case 0: return [4 /*yield*/, IcsImedxIntfChsPlatformJsSdk.Request({ | ||
url: 'chs-basic/chs-type/list/by/status', | ||
method: 'post', | ||
data: {} | ||
})]; | ||
case 1: | ||
res = _b.sent(); | ||
return [4 /*yield*/, showChsTypeDialog(res.data)]; | ||
case 2: | ||
chsTypeId = _b.sent(); | ||
return [2 /*return*/, icsImedxChromelyPluginIntfPlatform.IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.ReadCard, { | ||
visitId: visitId, | ||
chsTypeId: chsTypeId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode | ||
})]; | ||
} | ||
}); | ||
}); | ||
}; | ||
/** | ||
* 医保登记接口 | ||
* @param param 医保读卡入参 | ||
* @param param.visitId 患者就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.Register = function (_a) { | ||
var visitId = _a.visitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode; | ||
return icsImedxChromelyPluginIntfPlatform.IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.Register, { | ||
visitId: visitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode | ||
}); | ||
}; | ||
/** | ||
* 医保登记修改接口 | ||
* @param param 医保登记修改入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.RegisterUpdate = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode; | ||
return icsImedxChromelyPluginIntfPlatform.IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.RegisterUpdate, { | ||
chsTypeId: chsTypeId, | ||
visitId: visitId, | ||
chsVisitId: chsVisitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode | ||
}); | ||
}; | ||
/** | ||
* 医保登记撤销接口 | ||
* @param param 医保登记撤销入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.RegisterCancel = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode; | ||
return icsImedxChromelyPluginIntfPlatform.IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.RegisterCancel, { | ||
chsTypeId: chsTypeId, | ||
visitId: visitId, | ||
chsVisitId: chsVisitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode | ||
}); | ||
}; | ||
/** | ||
* 医保费用上传接口 | ||
* @param param 医保费用上传入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
* @param param.chargeSettleId his费用结算id | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.FeeTransfer = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode, chargeSettleId = _a.chargeSettleId; | ||
return icsImedxChromelyPluginIntfPlatform.IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.FeeTransfer, { | ||
chsTypeId: chsTypeId, | ||
visitId: visitId, | ||
chsVisitId: chsVisitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode, | ||
chargeSettleId: chargeSettleId | ||
}); | ||
}; | ||
/** | ||
* 医保费用上传撤销接口 | ||
* @param param 医保费用上传撤销入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
* @param param.chargeSettleId his费用结算id | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.FeeTransferCancel = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode, chargeSettleId = _a.chargeSettleId; | ||
return icsImedxChromelyPluginIntfPlatform.IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.FeeTransferCancel, { | ||
chsTypeId: chsTypeId, | ||
visitId: visitId, | ||
chsVisitId: chsVisitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode, | ||
chargeSettleId: chargeSettleId | ||
}); | ||
}; | ||
/** | ||
* 医保预结算接口 | ||
* @param param 医保预结算入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
* @param param.chargeSettleId his费用结算id | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.PreSettle = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode, chargeSettleId = _a.chargeSettleId; | ||
return icsImedxChromelyPluginIntfPlatform.IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.PreSettle, { | ||
chsTypeId: chsTypeId, | ||
visitId: visitId, | ||
chsVisitId: chsVisitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode, | ||
chargeSettleId: chargeSettleId | ||
}); | ||
}; | ||
/** | ||
* 医保预结算撤销接口 | ||
* @param param 医保预结算撤销入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
* @param param.chargeSettleId his费用结算id | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.PreSettleCancel = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode, chargeSettleId = _a.chargeSettleId; | ||
return icsImedxChromelyPluginIntfPlatform.IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.PreSettleCancel, { | ||
chsTypeId: chsTypeId, | ||
visitId: visitId, | ||
chsVisitId: chsVisitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode, | ||
chargeSettleId: chargeSettleId | ||
}); | ||
}; | ||
/** | ||
* 医保结算接口 | ||
* @param param 医保结算入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
* @param param.chargeSettleId his费用结算id | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.Settle = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode, chargeSettleId = _a.chargeSettleId; | ||
return icsImedxChromelyPluginIntfPlatform.IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.Settle, { | ||
chsTypeId: chsTypeId, | ||
visitId: visitId, | ||
chsVisitId: chsVisitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode, | ||
chargeSettleId: chargeSettleId | ||
}); | ||
}; | ||
/** | ||
* 医保结算撤销接口 | ||
* @param param 医保结算撤销入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
* @param param.chargeSettleId his费用结算id | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.SettleCancel = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode, chargeSettleId = _a.chargeSettleId; | ||
return icsImedxChromelyPluginIntfPlatform.IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.SettleCancel, { | ||
chsTypeId: chsTypeId, | ||
visitId: visitId, | ||
chsVisitId: chsVisitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode, | ||
chargeSettleId: chargeSettleId | ||
}); | ||
}; | ||
/** | ||
* 医保出院登记接口 | ||
* @param param 出院登记入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.LeaveRegister = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode; | ||
return icsImedxChromelyPluginIntfPlatform.IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.LeaveRegister, { | ||
chsTypeId: chsTypeId, | ||
visitId: visitId, | ||
chsVisitId: chsVisitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode | ||
}); | ||
}; | ||
/** | ||
* 医保出院登记撤销接口 | ||
* @param param 出院登记撤销入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.LeaveRegisterCancel = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode; | ||
return icsImedxChromelyPluginIntfPlatform.IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.LeaveRegisterCancel, { | ||
chsTypeId: chsTypeId, | ||
visitId: visitId, | ||
chsVisitId: chsVisitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode | ||
}); | ||
}; | ||
/** | ||
* 安装Vue | ||
* @param Vue Vue对象 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.install = function (Vue) { }; | ||
return IcsImedxIntfChsPlatformJsSdk; | ||
}()); | ||
return IcsImedxIntfChsPlatformJsSdk; | ||
})); | ||
}))); | ||
//# sourceMappingURL=ics-imedx-Intf-chs-js-sdk.umd.js.map |
@@ -17,4 +17,5 @@ "use strict"; | ||
LeaveRegister: '2601', | ||
LeaveRegisterCancel: '2650' | ||
LeaveRegisterCancel: '2650', | ||
DataProcess: '2701' | ||
}; | ||
//# sourceMappingURL=constants.js.map |
@@ -58,3 +58,3 @@ "use strict"; | ||
res = _b.sent(); | ||
return [4 /*yield*/, (0, chs_type_dialog_1.showChsTypeDialog)(res.data)]; | ||
return [4 /*yield*/, chs_type_dialog_1.showChsTypeDialog(res.data)]; | ||
case 2: | ||
@@ -313,2 +313,15 @@ chsTypeId = _b.sent(); | ||
/** | ||
* 医保目录数据下载接口 | ||
* @param param 医保录数据下载入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.businessCode 交易码 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.DataProcess = function (_a) { | ||
var chsTypeId = _a.chsTypeId, businessCode = _a.businessCode; | ||
return ics_imedx_chromely_plugin_intf_platform_1.IntfPlatform.bussiness(constants_1.default.CHS_INTERFACE_CORE, constants_1.default.DataProcess, { | ||
chsTypeId: chsTypeId, | ||
businessCode: businessCode | ||
}); | ||
}; | ||
/** | ||
* 安装Vue | ||
@@ -315,0 +328,0 @@ * @param Vue Vue对象 |
@@ -16,3 +16,4 @@ declare const _default: { | ||
LeaveRegisterCancel: string; | ||
DataProcess: string; | ||
}; | ||
export default _default; |
@@ -250,2 +250,12 @@ export default class IcsImedxIntfChsPlatformJsSdk { | ||
/** | ||
* 医保目录数据下载接口 | ||
* @param param 医保录数据下载入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.businessCode 交易码 | ||
*/ | ||
DataProcess({ chsTypeId, businessCode }: { | ||
chsTypeId: string; | ||
businessCode: string; | ||
}): Promise<any>; | ||
/** | ||
* 安装Vue | ||
@@ -252,0 +262,0 @@ * @param Vue Vue对象 |
{ | ||
"name": "@imedx/ics-imedx-intf-chs-js-sdk", | ||
"version": "0.0.1-beta.6", | ||
"version": "0.0.1-beta.7", | ||
"description": "两定医保接口js-sdk", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
1
104367
16
1089