|
|
@@ -14,6 +14,7 @@
|
|
|
:value="formModel.formData"
|
|
|
:disabled="formModel.disabled"
|
|
|
:config="formModel.config"
|
|
|
+ :fieldMap="fieldMap"
|
|
|
@change="change"
|
|
|
:dynamicData="dynamicData"
|
|
|
@btn-click="btnClick"
|
|
|
@@ -397,40 +398,10 @@ const {
|
|
|
} =
|
|
|
useActions();
|
|
|
onBeforeMount(() => {
|
|
|
- console.log(route, 'markRoute1')
|
|
|
if (route.query.isMobile) {
|
|
|
isMobile.value = route.query.isMobile
|
|
|
}
|
|
|
-
|
|
|
- // const loginName = route.query.loginName;
|
|
|
- // const redirect_uri = route.query.url
|
|
|
- // // 单点登录
|
|
|
- // useUserStore().autoLogin(loginName).then((res) => {
|
|
|
-
|
|
|
- // localSave(LocalStorageKeyConst.USER_TOKEN, res.data.token ? res.data.token : '');
|
|
|
- // SmartLoading.hide();
|
|
|
- // //更新用户信息到pinia
|
|
|
- // useUserStore().setUserLoginInfo(res.data);
|
|
|
- // //构建系统的路由
|
|
|
- // buildRoutes();
|
|
|
- // // 在单点登录成功后
|
|
|
- // checkUserToken(redirect_uri);
|
|
|
- // });
|
|
|
- // const checkUserToken = (redirect_uri) => {
|
|
|
- // const userToken = localRead(LocalStorageKeyConst.USER_TOKEN);
|
|
|
- // if (userToken === null || userToken === '') {
|
|
|
- // // 如果为空,等待 1 秒后继续判断
|
|
|
- // setTimeout(() => {
|
|
|
- // checkUserToken(redirect_uri)
|
|
|
- // }, 1000);
|
|
|
- // } else {
|
|
|
- // setTimeout(() => {
|
|
|
- // router.push(redirect_uri);
|
|
|
- // }, 1000);
|
|
|
- // }
|
|
|
- // }
|
|
|
-
|
|
|
-})
|
|
|
+ })
|
|
|
onMounted(async () => {
|
|
|
window.hiwebSocket = {
|
|
|
hasIo: function hasIo(t) {
|
|
|
@@ -1141,50 +1112,51 @@ const handleCancel = () => {
|
|
|
};
|
|
|
// 提交动作
|
|
|
const handleSubmit = () => {
|
|
|
- Modal.confirm({
|
|
|
- title: (tag.value == 'START' || taskObj.value.activityCode == 'Task2') ? "确认要提交吗?" : "确认审核通过吗?",
|
|
|
- onOk() {
|
|
|
- try {
|
|
|
- beforeSubmit(dynamicMethods).then(
|
|
|
- (res) => {
|
|
|
- const socketMap = {};
|
|
|
- socketMap.userId = userStore.employeeId;
|
|
|
- socketMap.type = 'REFRESH';
|
|
|
- socketMap.message = '提交';
|
|
|
- WebSocketStore.send(JSON.stringify(socketMap));
|
|
|
- submitService().then((s) => {
|
|
|
- if (s.success === true) {
|
|
|
- if (taskObj.value.activityCode == 'Task2') {
|
|
|
- //提交后 保持当前页面
|
|
|
- const routerAfter = router.resolve({
|
|
|
- path: '/MvcSheet/formWork',
|
|
|
- query: {
|
|
|
- flowCode: s.data.flowCode,
|
|
|
- flowVersion: s.data.flowVersion,
|
|
|
- bizObjectID: s.data.bizObjectid,
|
|
|
- taskID: s.data.taskid,
|
|
|
- retrieve: '1'//只有从已办列表查看时,才显示取回
|
|
|
- }
|
|
|
- })
|
|
|
- window.open(routerAfter.href, '_self')
|
|
|
- location.reload();
|
|
|
- } else {
|
|
|
- window.close();
|
|
|
+ stbRef.value.getData().then((res) => {
|
|
|
+ Modal.confirm({
|
|
|
+ title: (tag.value == 'START' || taskObj.value.activityCode == 'Task2') ? "确认要提交吗?" : "确认审核通过吗?",
|
|
|
+ onOk() {
|
|
|
+ try {
|
|
|
+ beforeSubmit(dynamicMethods).then(
|
|
|
+ (res) => {
|
|
|
+ const socketMap = {};
|
|
|
+ socketMap.userId = userStore.employeeId;
|
|
|
+ socketMap.type = 'REFRESH';
|
|
|
+ socketMap.message = '提交';
|
|
|
+ WebSocketStore.send(JSON.stringify(socketMap));
|
|
|
+ submitService().then((s) => {
|
|
|
+ if (s.success === true) {
|
|
|
+ if (taskObj.value.activityCode == 'Task2') {
|
|
|
+ //提交后 保持当前页面
|
|
|
+ const routerAfter = router.resolve({
|
|
|
+ path: '/MvcSheet/formWork',
|
|
|
+ query: {
|
|
|
+ flowCode: s.data.flowCode,
|
|
|
+ flowVersion: s.data.flowVersion,
|
|
|
+ bizObjectID: s.data.bizObjectid,
|
|
|
+ taskID: s.data.taskid,
|
|
|
+ retrieve: '1'//只有从已办列表查看时,才显示取回
|
|
|
+ }
|
|
|
+ })
|
|
|
+ window.open(routerAfter.href, '_self')
|
|
|
+ location.reload();
|
|
|
+ } else {
|
|
|
+ window.close();
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- });
|
|
|
- },
|
|
|
- (err) => {
|
|
|
- //message.error(err);
|
|
|
- }
|
|
|
- );
|
|
|
- } catch (e) {
|
|
|
- message.warning('提交/审核时报错' + e.toString());
|
|
|
- }
|
|
|
- },
|
|
|
- onCancel() {
|
|
|
- message.warning('已取消操作');
|
|
|
- },
|
|
|
+ });
|
|
|
+ },
|
|
|
+ (err) => {
|
|
|
+ }
|
|
|
+ );
|
|
|
+ } catch (e) {
|
|
|
+ message.warning('提交/审核时报错' + e.toString());
|
|
|
+ }
|
|
|
+ },
|
|
|
+ onCancel() {
|
|
|
+ message.warning('已取消操作');
|
|
|
+ },
|
|
|
+ });
|
|
|
});
|
|
|
};
|
|
|
// 提交和保存前的检查
|