Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mes
mes-ui
Commits
6b1a1117
Commit
6b1a1117
authored
Feb 12, 2025
by
tanjunxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 1.生产工单size计算优化; 2.角色管理表格增加角色字段显示; 3.刀模版台账弹窗细节优化
parent
e717dffe
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
157 additions
and
83 deletions
+157
-83
.env.development
.env.development
+2
-2
index.vue
src/views/mes/md/workunit/index.vue
+23
-6
proofingInfo.vue
src/views/mes/pro/workorder/proofingInfo.vue
+1
-2
index.vue
src/views/mes/tm/tool/index.vue
+2
-2
index.vue
src/views/system/user/index.vue
+127
-69
vue.config.js
vue.config.js
+2
-2
No files found.
.env.development
View file @
6b1a1117
...
...
@@ -5,8 +5,8 @@ VUE_APP_TITLE = 宝绅-生产执行系统
ENV = 'development'
# 若依管理系统/开发环境
#
VUE_APP_BASE_API = 'http://192.168.3.181:8100'
VUE_APP_BASE_API = 'http://192.168.3.181:8101'
VUE_APP_BASE_API = 'http://192.168.3.181:8100'
#
VUE_APP_BASE_API = 'http://192.168.3.181:8101'
# 路由懒加载
VUE_CLI_BABEL_TRANSPILE_MODULES = true
src/views/mes/md/workunit/index.vue
View file @
6b1a1117
...
...
@@ -159,6 +159,14 @@
/>
</
template
>
</el-table-column>
<!-- <el-table-column label="是否配送刀模版" align="center" prop="toolDelivery">
<template slot-scope="scope">
<dict-tag
:options="dict.type.sys_yes_no_number"
:value="scope.row.toolDelivery"
/>
</template>
</el-table-column> -->
<el-table-column
label=
"固化时间"
align=
"center"
prop=
"solidifyTime"
/>
<el-table-column
label=
"加工处理最小厚度"
...
...
@@ -489,12 +497,16 @@
:rules=
"rules"
label-width=
"120px"
>
<el-form-item
label=
"配送刀模版"
>
<el-radio-group
v-model=
"form.toolDelivery"
>
<el-radio
:label=
"1"
>
是
</el-radio>
<el-radio
:label=
"0"
>
否
</el-radio>
<!-- <el-form-item label="是否配送刀模版">
<el-radio-group v-model="form.toolDelivery" @input="handleToolDeliveryChange">
<el-radio
v-for="dict in dict.type.sys_yes_no_number"
:key="dict.value"
:label="Number(dict.value)"
>{{ dict.label }}</el-radio
>
</el-radio-group>
</el-form-item>
</el-form-item>
-->
</el-form>
</el-col>
</el-row>
...
...
@@ -600,7 +612,7 @@ import { genCode } from "@/api/system/autocode/rule";
export
default
{
name
:
"Workunit"
,
components
:
{
WorkstationSelect
},
dicts
:
[
"sys_yes_no"
],
dicts
:
[
"sys_yes_no"
,
"sys_yes_no_number"
],
data
()
{
return
{
optType
:
undefined
,
...
...
@@ -836,6 +848,11 @@ export default {
this
.
form
.
workunitCode
=
null
;
}
},
handleToolDeliveryChange
(
val
)
{
updateWorkunit
(
this
.
form
).
then
((
response
)
=>
{
this
.
$modal
.
msgSuccess
(
"修改成功"
);
});
}
},
};
</
script
>
src/views/mes/pro/workorder/proofingInfo.vue
View file @
6b1a1117
...
...
@@ -321,7 +321,6 @@
</el-col> -->
</el-row>
</el-form>
<el-tabs
type=
"border-card"
@
tab-click=
"tabClick"
>
<el-tab-pane
label=
"BOM"
>
<ProogingBom
ref=
"ProogingBomRef"
/>
...
...
@@ -554,10 +553,10 @@ export default {
console
.
log
(
'this.currentData'
,
this
.
currentData
)
this
.
currentData
.
saleDirectiveList
=
this
.
$refs
[
"WorkOrderSaleRef"
].
tableData
this
.
form
.
quantity
=
quantity
this
.
handleChangeQuantity
()
}
},
handleChangeQuantity
()
{
// console.log(quantity);
// 计算补单的时候 数量变更修改
if
(
this
.
mode
===
'make'
)
{
// this.form.quantity
...
...
src/views/mes/tm/tool/index.vue
View file @
6b1a1117
...
...
@@ -362,7 +362,7 @@
label
-
width
=
"120px"
>
<
el
-
row
>
<
el
-
col
:
span
=
"12"
>
<
!--
<
el
-
col
:
span
=
"12"
>
<
el
-
form
-
item
label
=
"刀模版具类型"
prop
=
"toolTypeId"
>
<
el
-
select
style
=
"width: 100%"
...
...
@@ -378,7 +378,7 @@
><
/el-option
>
<
/el-select
>
<
/el-form-item
>
<
/el-col
>
<
/el-col>
--
>
<
el
-
col
:
span
=
"12"
>
<
el
-
form
-
item
label
=
"物料编码"
prop
=
"sapItemCode"
>
<
el
-
input
v
-
model
=
"form.sapItemCode"
placeholder
=
"请选择物料编码"
>
...
...
src/views/system/user/index.vue
View file @
6b1a1117
...
...
@@ -152,13 +152,22 @@
</el-col>
<right-toolbar
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
:columns=
"columns"
></right-toolbar>
</el-row>
<workunitSelect
:userId=
"form.userId"
:id=
"id"
ref=
"workunitSelectRef"
@
reflash=
"workerFlash"
/>
<workunitSelect
:userId=
"form.userId"
ref=
"workunitSelectRef"
@
reflash=
"workerFlash"
/>
<el-table
v-loading=
"loading"
:data=
"userList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"50"
align=
"center"
/>
<el-table-column
label=
"用户名称"
align=
"center"
key=
"userName"
prop=
"userName"
v-if=
"columns[1].visible"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"用户昵称"
align=
"center"
key=
"nickName"
prop=
"nickName"
v-if=
"columns[2].visible"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"部门"
align=
"center"
key=
"deptName"
prop=
"dept.deptName"
v-if=
"columns[3].visible"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"手机号码"
align=
"center"
key=
"phonenumber"
prop=
"phonenumber"
v-if=
"columns[4].visible"
width=
"120"
/>
<el-table-column
label=
"角色"
align=
"center"
key=
"roleListStr"
prop=
"roleListStr"
v-if=
"columns[7].visible"
width=
"120"
/>
<!--
<el-table-column
label=
"刀模版管理员"
align=
"center"
key=
"toolIdentity"
prop=
"toolIdentity"
v-if=
"columns[7].visible"
width=
"120"
>
<template
slot-scope=
"scope"
>
<dict-tag
:options=
"dict.type.sys_yes_no_number"
:value=
"scope.row.toolIdentity"
/>
</
template
>
</el-table-column>
-->
<el-table-column
label=
"状态"
align=
"center"
key=
"status"
v-if=
"columns[5].visible"
>
<
template
slot-scope=
"scope"
>
<el-switch
...
...
@@ -298,14 +307,18 @@
</el-radio-group>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<
!-- <
el-col :span="12">
<el-form-item label="刀模版管理员" label-width="120px">
<el-radio-group v-model="form.toolIdentity">
<el-radio
:label=
"1"
>
是
</el-radio>
<el-radio
:label=
"0"
>
否
</el-radio>
<el-radio
v-for="dict in dict.type.sys_yes_no_number"
:key="dict.value"
:label="Number(dict.value)"
>{{ dict.label }}</el-radio
>
</el-radio-group>
</el-form-item>
</el-col>
</el-col>
-->
</el-row>
<el-row>
<el-col
:span=
"12"
>
...
...
@@ -390,17 +403,26 @@
</template>
<
script
>
import
{
listUser
,
getUser
,
delUser
,
addUser
,
updateUser
,
resetUserPwd
,
changeUserStatus
,
getBpmUser
}
from
"@/api/system/user"
;
import
{
listUser
,
getUser
,
delUser
,
addUser
,
updateUser
,
resetUserPwd
,
changeUserStatus
,
getBpmUser
,
}
from
"@/api/system/user"
;
import
{
getToken
}
from
"@/utils/auth"
;
import
{
treeselect
}
from
"@/api/system/dept"
;
import
Treeselect
from
"@riophae/vue-treeselect"
;
import
"@riophae/vue-treeselect/dist/vue-treeselect.css"
;
import
Workstationworker
from
"./profile/worker"
;
import
workunitSelect
from
"./profile/workunitSelect.vue"
import
workunitSelect
from
"./profile/workunitSelect.vue"
;
export
default
{
name
:
"User"
,
dicts
:
[
'sys_normal_disable'
,
'sys_user_sex'
],
components
:
{
Treeselect
,
Workstationworker
,
workunitSelect
},
dicts
:
[
"sys_normal_disable"
,
"sys_user_sex"
,
"sys_yes_no_number"
],
components
:
{
Treeselect
,
Workstationworker
,
workunitSelect
},
data
()
{
return
{
// 遮罩层
...
...
@@ -437,11 +459,11 @@ export default {
roleOptions
:
[],
// 表单参数
form
:
{
userId
:
null
userId
:
null
,
},
defaultProps
:
{
children
:
"children"
,
label
:
"label"
label
:
"label"
,
},
// 用户导入参数
upload
:
{
...
...
@@ -456,7 +478,7 @@ export default {
// 设置上传的请求头部
headers
:
{
Authorization
:
"Bearer "
+
getToken
()
},
// 上传的地址
url
:
process
.
env
.
VUE_APP_BASE_API
+
"/system/user/importData"
url
:
process
.
env
.
VUE_APP_BASE_API
+
"/system/user/importData"
,
},
// 查询参数
queryParams
:
{
...
...
@@ -465,7 +487,7 @@ export default {
userName
:
undefined
,
phonenumber
:
undefined
,
status
:
undefined
,
deptId
:
undefined
deptId
:
undefined
,
},
// 列信息
columns
:
[
...
...
@@ -475,48 +497,60 @@ export default {
{
key
:
3
,
label
:
`部门`
,
visible
:
true
},
{
key
:
4
,
label
:
`手机号码`
,
visible
:
true
},
{
key
:
5
,
label
:
`状态`
,
visible
:
true
},
{
key
:
6
,
label
:
`创建时间`
,
visible
:
true
}
{
key
:
6
,
label
:
`创建时间`
,
visible
:
true
},
{
key
:
7
,
label
:
`角色`
,
visible
:
true
},
// { key: 7, label: `刀模版管理员`, visible: true },
],
// 表单校验
rules
:
{
userName
:
[
{
required
:
true
,
message
:
"用户名称不能为空"
,
trigger
:
"blur"
},
{
min
:
2
,
max
:
20
,
message
:
'用户名称长度必须介于 2 和 20 之间'
,
trigger
:
'blur'
}
{
min
:
2
,
max
:
20
,
message
:
"用户名称长度必须介于 2 和 20 之间"
,
trigger
:
"blur"
,
},
],
nickName
:
[
{
required
:
true
,
message
:
"用户昵称不能为空"
,
trigger
:
"blur"
}
{
required
:
true
,
message
:
"用户昵称不能为空"
,
trigger
:
"blur"
}
,
],
password
:
[
{
required
:
true
,
message
:
"用户密码不能为空"
,
trigger
:
"blur"
},
{
min
:
5
,
max
:
20
,
message
:
'用户密码长度必须介于 5 和 20 之间'
,
trigger
:
'blur'
}
{
min
:
5
,
max
:
20
,
message
:
"用户密码长度必须介于 5 和 20 之间"
,
trigger
:
"blur"
,
},
],
email
:
[
{
type
:
"email"
,
message
:
"请输入正确的邮箱地址"
,
trigger
:
[
"blur"
,
"change"
]
}
trigger
:
[
"blur"
,
"change"
]
,
}
,
],
phonenumber
:
[
{
pattern
:
/^1
[
3|4|5|6|7|8|9
][
0-9
]\d{8}
$/
,
message
:
"请输入正确的手机号码"
,
trigger
:
"blur"
}
]
}
trigger
:
"blur"
,
}
,
]
,
}
,
};
},
watch
:
{
// 根据名称筛选部门树
deptName
(
val
)
{
this
.
$refs
.
tree
.
filter
(
val
);
}
}
,
},
created
()
{
this
.
getList
();
this
.
getTreeselect
();
this
.
getConfigKey
(
"sys.user.initPassword"
).
then
(
response
=>
{
this
.
getConfigKey
(
"sys.user.initPassword"
).
then
(
(
response
)
=>
{
this
.
initPassword
=
response
.
msg
;
});
},
...
...
@@ -527,31 +561,32 @@ export default {
/** 查询用户列表 */
getList
()
{
this
.
loading
=
true
;
listUser
(
this
.
addDateRange
(
this
.
queryParams
,
this
.
dateRange
)).
then
(
response
=>
{
listUser
(
this
.
addDateRange
(
this
.
queryParams
,
this
.
dateRange
)).
then
(
(
response
)
=>
{
this
.
userList
=
response
.
rows
;
this
.
total
=
response
.
total
;
this
.
loading
=
false
;
}
);
},
workerFlash
(){
workerFlash
()
{
this
.
$refs
.
postList
.
getList
();
},
/** 查询部门下拉树结构 */
getTreeselect
()
{
treeselect
().
then
(
response
=>
{
treeselect
().
then
(
(
response
)
=>
{
this
.
deptOptions
=
response
.
data
;
});
},
onworkunitSelectRefs
(){
this
.
$refs
[
'workunitSelectRef'
].
showFlag
=
true
onworkunitSelectRefs
()
{
this
.
$refs
[
"workunitSelectRef"
].
showFlag
=
true
;
},
/** 同步bpm人员管理 */
handleSynchronism
()
{
this
.
syncLoading
=
true
;
this
.
reset
();
getBpmUser
().
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
getBpmUser
().
then
(
(
res
)
=>
{
if
(
res
.
code
===
200
)
{
this
.
$modal
.
msgSuccess
(
"同步成功"
);
this
.
getList
();
}
...
...
@@ -571,11 +606,15 @@ export default {
// 用户状态修改
handleStatusChange
(
row
)
{
let
text
=
row
.
status
===
"0"
?
"启用"
:
"停用"
;
this
.
$modal
.
confirm
(
'确认要"'
+
text
+
'""'
+
row
.
userName
+
'"用户吗?'
).
then
(
function
()
{
this
.
$modal
.
confirm
(
'确认要"'
+
text
+
'""'
+
row
.
userName
+
'"用户吗?'
)
.
then
(
function
()
{
return
changeUserStatus
(
row
.
userId
,
row
.
status
);
}).
then
(()
=>
{
})
.
then
(()
=>
{
this
.
$modal
.
msgSuccess
(
text
+
"成功"
);
}).
catch
(
function
()
{
})
.
catch
(
function
()
{
row
.
status
=
row
.
status
===
"0"
?
"1"
:
"0"
;
});
},
...
...
@@ -599,7 +638,7 @@ export default {
toolIdentity
:
0
,
remark
:
undefined
,
postIds
:
[],
roleIds
:
[]
roleIds
:
[]
,
};
this
.
resetForm
(
"form"
);
},
...
...
@@ -616,7 +655,7 @@ export default {
},
// 多选框选中数据
handleSelectionChange
(
selection
)
{
this
.
ids
=
selection
.
map
(
item
=>
item
.
userId
);
this
.
ids
=
selection
.
map
(
(
item
)
=>
item
.
userId
);
this
.
single
=
selection
.
length
!=
1
;
this
.
multiple
=
!
selection
.
length
;
},
...
...
@@ -637,7 +676,7 @@ export default {
handleAdd
()
{
this
.
reset
();
this
.
getTreeselect
();
getUser
().
then
(
response
=>
{
getUser
().
then
(
(
response
)
=>
{
this
.
postOptions
=
response
.
posts
;
this
.
roleOptions
=
response
.
roles
;
this
.
open
=
true
;
...
...
@@ -650,7 +689,7 @@ export default {
this
.
reset
();
this
.
getTreeselect
();
const
userId
=
row
.
userId
||
this
.
ids
;
getUser
(
userId
).
then
(
response
=>
{
getUser
(
userId
).
then
(
(
response
)
=>
{
this
.
form
=
response
.
data
;
this
.
postOptions
=
response
.
posts
;
this
.
roleOptions
=
response
.
roles
;
...
...
@@ -668,30 +707,32 @@ export default {
cancelButtonText
:
"取消"
,
closeOnClickModal
:
false
,
inputPattern
:
/^.
{5,20}
$/
,
inputErrorMessage
:
"用户密码长度必须介于 5 和 20 之间"
}).
then
(({
value
})
=>
{
resetUserPwd
(
row
.
userId
,
value
).
then
(
response
=>
{
inputErrorMessage
:
"用户密码长度必须介于 5 和 20 之间"
,
})
.
then
(({
value
})
=>
{
resetUserPwd
(
row
.
userId
,
value
).
then
((
response
)
=>
{
this
.
$modal
.
msgSuccess
(
"修改成功,新密码是:"
+
value
);
});
}).
catch
(()
=>
{});
})
.
catch
(()
=>
{});
},
/** 分配角色操作 */
handleAuthRole
:
function
(
row
)
{
handleAuthRole
:
function
(
row
)
{
const
userId
=
row
.
userId
;
this
.
$router
.
push
(
"/system/user-auth/role/"
+
userId
);
},
/** 提交按钮 */
submitForm
:
function
()
{
this
.
$refs
[
"form"
].
validate
(
valid
=>
{
submitForm
:
function
()
{
this
.
$refs
[
"form"
].
validate
(
(
valid
)
=>
{
if
(
valid
)
{
if
(
this
.
form
.
userId
!=
undefined
)
{
updateUser
(
this
.
form
).
then
(
response
=>
{
updateUser
(
this
.
form
).
then
(
(
response
)
=>
{
this
.
$modal
.
msgSuccess
(
"修改成功"
);
this
.
open
=
false
;
this
.
getList
();
});
}
else
{
addUser
(
this
.
form
).
then
(
response
=>
{
addUser
(
this
.
form
).
then
(
(
response
)
=>
{
this
.
$modal
.
msgSuccess
(
"新增成功"
);
this
.
open
=
false
;
this
.
getList
();
...
...
@@ -703,18 +744,26 @@ export default {
/** 删除按钮操作 */
handleDelete
(
row
)
{
const
userIds
=
row
.
userId
||
this
.
ids
;
this
.
$modal
.
confirm
(
'是否确认删除用户编号为"'
+
userIds
+
'"的数据项?'
).
then
(
function
()
{
this
.
$modal
.
confirm
(
'是否确认删除用户编号为"'
+
userIds
+
'"的数据项?'
)
.
then
(
function
()
{
return
delUser
(
userIds
);
}).
then
(()
=>
{
})
.
then
(()
=>
{
this
.
getList
();
this
.
$modal
.
msgSuccess
(
"删除成功"
);
}).
catch
(()
=>
{});
})
.
catch
(()
=>
{});
},
/** 导出按钮操作 */
handleExport
()
{
this
.
download
(
'system/user/export'
,
{
...
this
.
queryParams
},
`user_
${
new
Date
().
getTime
()}
.xlsx`
)
this
.
download
(
"system/user/export"
,
{
...
this
.
queryParams
,
},
`user_
${
new
Date
().
getTime
()}
.xlsx`
);
},
/** 导入按钮操作 */
handleImport
()
{
...
...
@@ -723,8 +772,11 @@ export default {
},
/** 下载模板操作 */
importTemplate
()
{
this
.
download
(
'system/user/importTemplate'
,
{
},
`user_template_
${
new
Date
().
getTime
()}
.xlsx`
)
this
.
download
(
"system/user/importTemplate"
,
{},
`user_template_
${
new
Date
().
getTime
()}
.xlsx`
);
},
// 文件上传中处理
handleFileUploadProgress
(
event
,
file
,
fileList
)
{
...
...
@@ -735,13 +787,19 @@ export default {
this
.
upload
.
open
=
false
;
this
.
upload
.
isUploading
=
false
;
this
.
$refs
.
upload
.
clearFiles
();
this
.
$alert
(
"<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>"
+
response
.
msg
+
"</div>"
,
"导入结果"
,
{
dangerouslyUseHTMLString
:
true
});
this
.
$alert
(
"<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>"
+
response
.
msg
+
"</div>"
,
"导入结果"
,
{
dangerouslyUseHTMLString
:
true
}
);
this
.
getList
();
},
// 提交上传文件
submitFileForm
()
{
this
.
$refs
.
upload
.
submit
();
}
}
}
,
}
,
};
</
script
>
vue.config.js
View file @
6b1a1117
...
...
@@ -37,8 +37,8 @@ module.exports = {
// detail: https://cli.vuejs.org/config/#devserver-proxy
[
process
.
env
.
VUE_APP_BASE_API
]:
{
// target: `http://localhost:8080`,
//
target: `http://192.168.3.181:8100`,
target
:
`http://192.168.3.181:8101`
,
target
:
`http://192.168.3.181:8100`
,
//
target: `http://192.168.3.181:8101`,
// target: `http://192.168.4.122:8080`,
changeOrigin
:
true
,
pathRewrite
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment