|
@@ -6,6 +6,7 @@ import { BizException, ExceptionEnum } from "@/utils/BizException";
|
|
|
import { hBoardSignV2 } from "@/api/ca/ca-api";
|
|
|
import { useDialog } from "@/components/cy/CyDialog/index";
|
|
|
import EmrCaSign from "@/views/hospitalization/zhu-yuan-yi-sheng/electronic-medical-record/emr-func/ca/EmrCaSign.vue";
|
|
|
+import { ElMessage } from "element-plus";
|
|
|
|
|
|
const { store } = inject(emrRootContextKey);
|
|
|
|
|
@@ -72,6 +73,7 @@ const 发送签名 = async (value: SignComp) => {
|
|
|
params: {
|
|
|
url: rst.result,
|
|
|
id: rst.id,
|
|
|
+ documentId,
|
|
|
},
|
|
|
showCancel: false,
|
|
|
}).then(res => {
|
|
@@ -85,10 +87,20 @@ const 发送签名 = async (value: SignComp) => {
|
|
|
|
|
|
view.setAttribute("thyySign", { ...rst, complete: true });
|
|
|
value.complete = true;
|
|
|
+ completeSignature();
|
|
|
});
|
|
|
};
|
|
|
|
|
|
-const completeSignature = () => {};
|
|
|
+const completeSignature = async () => {
|
|
|
+ for (let i = 0; i < selectList.value.length; i++) {
|
|
|
+ const item = selectList.value[i];
|
|
|
+ if (item.complete === false) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ ElMessage.success("完成签名。");
|
|
|
+};
|
|
|
|
|
|
defineExpose({
|
|
|
change,
|
|
@@ -111,8 +123,6 @@ defineExpose({
|
|
|
>发送
|
|
|
</el-button>
|
|
|
</div>
|
|
|
- <el-divider />
|
|
|
- <el-button @click="completeSignature">完成签名</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|