Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
A
admin
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
华润手术跟台
admin
Commits
48512367
提交
48512367
authored
11月 07, 2022
作者:
leon
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
用户管理fix
上级
8d6fce93
全部展开
显示空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
76 行增加
和
40 行删除
+76
-40
.env.development
.env.development
+1
-1
index.ts
src/commonSchemaProperty/index.ts
+33
-1
BasicForm.vue
src/components/Form/src/BasicForm.vue
+0
-3
drawer.vue
src/views/order/operation-order/drawer.vue
+12
-7
index.vue
src/views/order/operation-order/index.vue
+17
-13
schema.ts
src/views/order/operation-order/schema.ts
+0
-0
index.vue
src/views/system/doctor/index.vue
+1
-1
drawer.vue
src/views/system/user/drawer.vue
+12
-14
没有找到文件。
.env.development
浏览文件 @
48512367
...
...
@@ -13,7 +13,7 @@ VITE_PUBLIC_PATH=/
VITE_DROP_CONSOLE=false
# Basic interface address SPA
VITE_GLOB_API_URL=http://1
01.34.156.75:8101
VITE_GLOB_API_URL=http://1
92.168.101.69:8087
# File upload address, optional
VITE_GLOB_UPLOAD_URL=http://192.168.101.69:8087/v1/sys/upload
...
...
src/commonSchemaProperty/index.ts
浏览文件 @
48512367
...
...
@@ -4,6 +4,7 @@
import
*
as
DistributorApi
from
'/@/api/system/distributorApi'
;
import
get
from
'lodash.get'
;
import
*
as
HospitalApi
from
'/@/api/system/hospitalApi'
;
import
*
as
DoctorApi
from
'/@/api/system/doctorApi'
;
export
const
getDistributorText
=
(
text
)
=>
{
if
(
text
===
0
)
{
...
...
@@ -76,4 +77,35 @@ const getHospitalId = ({ colProps }) => {
};
};
export
{
getDistributorId
,
getHospitalId
};
const
getDoctorId
=
({
colProps
})
=>
{
return
{
field
:
'doctorId'
,
label
:
'医生'
,
defaultValue
:
undefined
,
form
:
{
itemProps
:
{
validateTrigger
:
'blur'
,
},
componentProps
:
{
labelInValue
:
true
,
api
:
DoctorApi
.
all
,
params
:
{},
resultField
:
'records'
,
labelField
:
'name'
,
valueField
:
'id'
,
allowClear
:
false
,
placeholder
:
'医生'
,
optionFilterProp
:
'label'
,
showSearch
:
true
,
},
colProps
,
component
:
'ApiSelect'
,
rules
:
[{
required
:
true
,
type
:
'object'
,
message
:
'请选择医生!'
}],
},
table
:
{
customRender
:
({
record
})
=>
get
(
record
,
'hospital.name'
)
||
'(已删除/不存在)'
,
},
};
};
export
{
getDistributorId
,
getHospitalId
,
getDoctorId
};
src/components/Form/src/BasicForm.vue
浏览文件 @
48512367
...
...
@@ -203,9 +203,6 @@
(
schemas
)
=>
{
resetSchema
(
schemas
??
[]);
},
{
deep
:
true
,
},
);
watch
(
...
...
src/views/order/operation-order/drawer.vue
浏览文件 @
48512367
<
template
>
<BasicDrawer
v-bind=
"$attrs"
@
register=
"registerDrawer"
showFooter
:confirmDisabled=
"getConfirmDisabled"
:title=
"getTitle"
width=
"600px"
@
ok=
"handleSubmit"
>
<BasicDrawer
v-bind=
"$attrs"
@
register=
"registerDrawer"
showFooter
:confirmDisabled=
"getConfirmDisabled"
:title=
"getTitle"
width=
"1000px"
@
ok=
"handleSubmit"
>
<a-spin
:spinning=
"isLoading"
>
<BasicForm
@
register=
"registerForm"
/>
</a-spin>
...
...
@@ -65,17 +73,13 @@
return
false
;
}
});
const
getTitle
=
computed
(()
=>
(
!
unref
(
isUpdate
)
?
'新增'
:
'编辑'
));
async
function
handleSubmit
()
{
try
{
const
values
=
await
validate
();
setDrawerProps
({
confirmLoading
:
true
});
const
{
hospitalId
,
...
rest
}
=
values
;
const
{
hospitalId
,
...
rest
}
=
values
;
const
action
=
!
unref
(
isUpdate
)
?
OperationOrderApi
.
add
:
OperationOrderApi
.
update
;
const
data
=
!
unref
(
isUpdate
)
?
{
...
...
@@ -83,7 +87,8 @@
hospitalId
:
hospitalId
.
value
,
hospitalName
:
hospitalId
.
label
,
}
:
Object
.
assign
({},
:
Object
.
assign
(
{},
{
...
rest
,
id
:
unref
(
entityId
),
...
...
src/views/order/operation-order/index.vue
浏览文件 @
48512367
...
...
@@ -76,23 +76,19 @@
import
componentSetting
from
'/@/settings/componentSetting'
;
import
OperationOrderDrawer
from
'./drawer.vue'
;
import
{
columns
,
searchFormSchema
}
from
'./schema'
;
import
{
useUserStore
}
from
'/@/store/modules/user'
;
const
userStore
=
useUserStore
();
const
{
hasPermission
}
=
usePermission
();
const
go
=
useGo
();
const
{
formConfig
,
showTableSetting
,
bordered
,
showIndexColumn
,
}
=
componentSetting
.
table
;
const
{
formConfig
,
showTableSetting
,
bordered
,
showIndexColumn
}
=
componentSetting
.
table
;
const
checkedKeys
=
ref
<
Array
<
string
|
number
>>
([]);
const
onSelectChange
=
(
selectedRowKeys
:
(
string
|
number
)[])
=>
{
checkedKeys
.
value
=
selectedRowKeys
;
}
}
;
const
[
registerDrawer
,
{
openDrawer
}]
=
useDrawer
();
const
[
registerTable
,
{
reload
,
setLoading
}]
=
useTable
({
const
[
registerTable
,
{
reload
,
setLoading
}]
=
useTable
({
title
:
'手术订单管理'
,
api
:
(
params
)
=>
OperationOrderApi
.
search
(
handleParams
(
params
)),
columns
,
...
...
@@ -142,6 +138,10 @@
}
}
});
// 如果是经销商,只能看到自己的数据
if
(
userStore
.
getIsDistributor
)
{
handledParams
.
distributorId
=
userStore
.
getDistributorId
;
}
return
handledParams
;
};
...
...
@@ -160,18 +160,22 @@
const
handleDelete
=
(
record
:
Recordable
)
=>
{
setLoading
(
true
);
OperationOrderApi
.
remove
(
record
.
id
).
then
((
_
)
=>
{
OperationOrderApi
.
remove
(
record
.
id
)
.
then
((
_
)
=>
{
reload
();
}).
catch
(()
=>
{
})
.
catch
(()
=>
{
setLoading
(
false
);
});
};
const
handleBatchDelete
=
()
=>
{
setLoading
(
true
);
OperationOrderApi
.
batchRemove
(
checkedKeys
.
value
).
then
((
_
)
=>
{
OperationOrderApi
.
batchRemove
(
checkedKeys
.
value
)
.
then
((
_
)
=>
{
reload
();
}).
catch
(()
=>
{
})
.
catch
(()
=>
{
setLoading
(
false
);
});
};
...
...
src/views/order/operation-order/schema.ts
浏览文件 @
48512367
差异被折叠。
点击展开。
src/views/system/doctor/index.vue
浏览文件 @
48512367
...
...
@@ -142,7 +142,7 @@
const
userStore
=
useUserStore
();
const
[
registerDrawer
,
{
openDrawer
}]
=
useDrawer
();
const
[
registerTable
,
{
reload
,
setLoading
,
getLoading
}]
=
useTable
({
const
[
registerTable
,
{
reload
,
setLoading
}]
=
useTable
({
title
:
'医生管理'
,
api
:
(
params
)
=>
DoctorApi
.
search
(
handleParams
(
params
)),
columns
,
...
...
src/views/system/user/drawer.vue
浏览文件 @
48512367
...
...
@@ -33,18 +33,7 @@
showActionButtonGroup
:
false
,
});
const
[
registerForm
,
{
resetFields
,
setFieldsValue
,
validate
}]
=
useForm
(
useFormProps
.
value
);
/**
* @description: 编辑时候影藏密码表单项 , 创建时候显示
*/
const
handlePwdFiled
=
()
=>
{
useFormProps
.
value
.
schemas
?.
forEach
((
item
:
any
)
=>
{
if
(
item
.
field
===
PASSWORD
)
{
item
.
show
=
!
unref
(
isUpdate
);
}
});
};
const
[
registerForm
,
{
resetFields
,
setFieldsValue
,
validate
,
updateSchema
}]
=
useForm
(
useFormProps
.
value
);
// id 查询
const
{
...
...
@@ -68,9 +57,12 @@
isUpdate
.
value
=
!!
data
?.
isUpdate
;
entityId
.
value
=
data
?.
record
?.
id
;
handlePwdFiled
();
if
(
unref
(
isUpdate
))
{
// 更新时,不显示密码
await
updateSchema
({
field
:
PASSWORD
,
show
:
false
,
});
await
execute
();
if
(
detail
.
value
)
{
const
formData
:
any
=
{
...
detail
.
value
};
...
...
@@ -90,6 +82,12 @@
formData
.
roleList
=
roleObj
;
await
setFieldsValue
(
formData
);
}
}
else
{
// 新增时,显示密码
await
updateSchema
({
field
:
PASSWORD
,
show
:
true
,
});
}
});
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论