Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
pda-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
pda
pda-ui
Commits
c77ea145
Commit
c77ea145
authored
Jan 17, 2024
by
鲁鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
产品管理页面-产品参数配置
parent
7dfb5043
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
264 additions
and
15 deletions
+264
-15
faceColor.js
src/api/mes/md/faceColor.js
+44
-0
publishedConf.js
src/api/mes/md/publishedConf.js
+44
-0
baseInfo.vue
src/views/mes/md/product/components/baseInfo.vue
+1
-2
look.vue
src/views/mes/md/product/components/look.vue
+12
-12
publishedConf.vue
src/views/mes/md/product/components/publishedConf.vue
+157
-0
index.vue
src/views/mes/md/product/index.vue
+6
-1
No files found.
src/api/mes/md/faceColor.js
View file @
c77ea145
import
request
from
'@/utils/request'
// 查询产品颜色列表
export
function
listFaceColor
(
query
)
{
return
request
({
url
:
'/mes/md/faceColor/list'
,
method
:
'get'
,
params
:
query
})
}
// 查询产品颜色详细
export
function
getFaceColor
(
faceColorId
)
{
return
request
({
url
:
'/mes/md/faceColor/'
+
faceColorId
,
method
:
'get'
})
}
// 新增产品颜色
export
function
addFaceColor
(
data
)
{
return
request
({
url
:
'/mes/md/faceColor'
,
method
:
'post'
,
data
:
data
})
}
// 修改产品颜色
export
function
updateFaceColor
(
data
)
{
return
request
({
url
:
'/mes/md/faceColor'
,
method
:
'put'
,
data
:
data
})
}
// 删除产品颜色
export
function
delFaceColor
(
mdFaceColorIds
)
{
return
request
({
url
:
'/mes/md/faceColor/'
+
mdFaceColorIds
,
method
:
'delete'
})
}
src/api/mes/md/publishedConf.js
0 → 100644
View file @
c77ea145
import
request
from
'@/utils/request'
// 查询产品打样排版参数配置列表
export
function
listConf
(
query
)
{
return
request
({
url
:
'/md/conf/list'
,
method
:
'get'
,
params
:
query
})
}
// 查询产品打样排版参数配置详细
export
function
getConf
(
productPublishedConfId
)
{
return
request
({
url
:
'/md/conf/'
+
productPublishedConfId
,
method
:
'get'
})
}
// 新增产品打样排版参数配置
export
function
addConf
(
data
)
{
return
request
({
url
:
'/md/conf'
,
method
:
'post'
,
data
:
data
})
}
// 修改产品打样排版参数配置
export
function
updateConf
(
data
)
{
return
request
({
url
:
'/md/conf'
,
method
:
'put'
,
data
:
data
})
}
// 删除产品打样排版参数配置
export
function
delConf
(
productPublishedConfId
)
{
return
request
({
url
:
'/md/conf/'
+
productPublishedConfId
,
method
:
'delete'
})
}
src/views/mes/md/product/components/baseInfo.vue
View file @
c77ea145
...
...
@@ -11,8 +11,7 @@
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"产品有效起始日期"
prop=
"productStartDate"
>
<el-input
v-model=
"form.productStartDate"
maxlength=
"64"
v-if=
"optType == 'view'"
/>
<el-input
v-model=
"form.productStartDate"
placeholder=
"请输入产品有效起始日期"
maxlength=
"64"
v-else
/>
<el-input
v-model=
"form.productStartDate"
type=
"date"
placeholder=
"请输入产品有效起始日期"
/>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
...
...
src/views/mes/md/product/components/look.vue
View file @
c77ea145
...
...
@@ -6,29 +6,29 @@
<el-row>
<el-col
:span=
"8"
>
<el-form-item
label=
"长度cm"
prop=
"productLength"
>
<el-input
v-model=
"form.productLength"
placeholder=
"请输入长度"
/>
<el-input
v-model=
"form.productLength"
type=
"number"
:precision=
"2"
placeholder=
"请输入长度"
/>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"宽度cm"
prop=
"productWidth"
>
<el-input
v-model=
"form.productWidth"
placeholder=
"请输入宽度"
/>
<el-input
v-model=
"form.productWidth"
type=
"number"
:precision=
"2"
placeholder=
"请输入宽度"
/>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"高度cm"
prop=
"productHeight"
>
<el-input
v-model=
"form.productHeight"
placeholder=
"请输入高度"
/>
<el-input
v-model=
"form.productHeight"
type=
"number"
:precision=
"2"
placeholder=
"请输入高度"
/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"8"
>
<el-form-item
label=
"厚度mm"
prop=
"productThick"
>
<el-input
v-model=
"form.productThick"
placeholder=
"请输入厚度"
/>
<el-input
v-model=
"form.productThick"
type=
"number"
:precision=
"2"
placeholder=
"请输入厚度"
/>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"成品克重g"
prop=
"productWeight"
>
<el-input
v-model=
"form.productWeight"
placeholder=
"请输入成品克重"
/>
<el-input
v-model=
"form.productWeight"
type=
"number"
:precision=
"2"
placeholder=
"请输入成品克重"
/>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
...
...
@@ -47,29 +47,29 @@
<el-row>
<el-col
:span=
"8"
>
<el-form-item
label=
"角度(mm)"
prop=
"productAngle"
>
<el-input
v-model=
"form.productAngle"
placeholder=
"请输入角度"
/>
<el-input
v-model=
"form.productAngle"
type=
"number"
:precision=
"2"
placeholder=
"请输入角度"
/>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"孔径(mm)"
prop=
"productAperture"
>
<el-input
v-model=
"form.productAperture"
placeholder=
"请输入孔径"
/>
<el-input
v-model=
"form.productAperture"
type=
"number"
:precision=
"2"
placeholder=
"请输入孔径"
/>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"单层厚(丝)"
prop=
"productSingleLayer"
>
<el-input
v-model=
"form.productSingleLayer"
placeholder=
"请输入单层厚(单位丝)"
/>
<el-input
v-model=
"form.productSingleLayer"
type=
"number"
:precision=
"2"
placeholder=
"请输入单层厚(单位丝)"
/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"8"
>
<el-form-item
label=
"单重(KG)"
prop=
"productSingleWeight"
>
<el-input
v-model=
"form.productSingleWeight"
placeholder=
"请输入单重"
/>
<el-input
v-model=
"form.productSingleWeight"
type=
"number"
:precision=
"2"
placeholder=
"请输入单重"
/>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"层数"
prop=
"productLayerNum"
>
<el-input
v-model=
"form.productLayerNum"
placeholder=
"请输入层数"
/>
<el-input
v-model=
"form.productLayerNum"
type=
"number"
:precision=
"2"
placeholder=
"请输入层数"
/>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
...
...
@@ -124,12 +124,12 @@
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"样品形状大小"
prop=
"productShapeSize"
>
<el-input
v-model=
"form.productShapeSize"
placeholder=
"请输入样品形状大小"
/>
<el-input
v-model=
"form.productShapeSize"
type=
"number"
:precision=
"4"
placeholder=
"请输入样品形状大小"
/>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"换算值"
prop=
"purchaseConversionValue"
>
<el-input
v-model=
"form.purchaseConversionValue"
placeholder=
"请输入采购换算值"
/>
<el-input
v-model=
"form.purchaseConversionValue"
type=
"number"
:precision=
"4"
placeholder=
"请输入采购换算值"
/>
</el-form-item>
</el-col>
</el-row>
...
...
src/views/mes/md/product/components/publishedConf.vue
View file @
c77ea145
<!--排版参数-->
<!--产品外观-->
<
template
>
<div
class=
"app-container"
>
<!-- 添加或修改产品外观对话框 -->
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"80px"
>
<el-row>
<el-col
:span=
"8"
>
<el-form-item
label=
"模数"
prop=
"modulus"
>
<el-input
v-model=
"form.modulus"
type=
"number"
:precision=
"2"
placeholder=
"请输入模数"
/>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"行数"
prop=
"rowNum"
>
<el-input
v-model=
"form.rowNum"
type=
"number"
:precision=
"2"
placeholder=
"请输入行数"
/>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"列数"
prop=
"columnNum"
>
<el-input
v-model=
"form.columnNum"
type=
"number"
:precision=
"2"
placeholder=
"请输入列数"
/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"8"
>
<el-form-item
label=
"搭版数"
prop=
"contactNum"
>
<el-input
v-model=
"form.contactNum"
type=
"number"
:precision=
"2"
placeholder=
"请输入搭版数"
/>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"行双刀位(mm)"
prop=
"rowDoubleBlade"
>
<el-input
v-model=
"form.rowDoubleBlade"
type=
"number"
:precision=
"2"
placeholder=
"请输入行双刀位(单位mm)"
/>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"列双刀位(mm)"
prop=
"columnDoubleBlade"
>
<el-input
v-model=
"form.columnDoubleBlade"
type=
"number"
:precision=
"2"
placeholder=
"请输入列双刀位(单位mm)"
/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"8"
>
<el-form-item
label=
"派工倍数"
prop=
"dispatchMultiple"
>
<el-input
v-model=
"form.dispatchMultiple"
type=
"number"
:precision=
"2"
placeholder=
"请输入派工倍数"
/>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"印张长度(cm)"
prop=
"sheetLength"
>
<!--
<el-input
v-model=
"form.sheetLength"
placeholder=
"请输入印张长度(单位cm)"
/>
-->
<el-input
v-model=
"form.sheetLength"
type=
"number"
:precision=
"2"
placeholder=
"请输入印张长度(单位cm)"
/>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"印张宽度(cm)"
prop=
"sheetWidth"
>
<el-input
v-model=
"form.sheetWidth"
type=
"number"
:precision=
"2"
placeholder=
"请输入印张宽度(单位cm)"
/>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
</
template
>
<
script
>
import
{
getConf
}
from
"@/api/mes/md/publishedConf"
;
export
default
{
name
:
"Conf"
,
dicts
:
[
'sys_yes_no'
,
'product_shape'
],
data
()
{
return
{
// 遮罩层
loading
:
true
,
// 选中数组
ids
:
[],
// 非单个禁用
single
:
true
,
// 非多个禁用
multiple
:
true
,
// 显示搜索条件
showSearch
:
true
,
// 总条数
total
:
0
,
// 弹出层标题
title
:
""
,
// 是否显示弹出层
open
:
false
,
// 查询参数
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
itemId
:
this
.
itemId
},
// 表单参数
form
:
{
modulus
:
''
,
rowNum
:
''
,
columnNum
:
''
,
contactNum
:
''
,
rowDoubleBlade
:
''
,
columnDoubleBlade
:
''
,
dispatchMultiple
:
''
,
sheetLength
:
''
,
sheetWidth
:
''
},
// 表单校验
rules
:
{
}
};
},
props
:
{
optType
:
undefined
,
itemId
:
undefined
},
created
()
{
this
.
getPublishedConf
();
},
methods
:
{
//获取产品参数配置表单数据
async
getPublishedConfData
(){
await
this
.
submitForm
()
return
this
.
form
},
//回显参数配置数据
getPublishedConf
(){
getConf
(
this
.
itemId
).
then
(
res
=>
{
Object
.
assign
(
this
.
form
,
res
.
data
)
})
},
// 取消按钮
cancel
()
{
this
.
open
=
false
;
this
.
reset
();
},
// 表单重置
reset
()
{
this
.
form
=
{
itemId
:
this
.
itemId
,
modulus
:
null
,
rowNum
:
null
,
columnNum
:
null
,
contactNum
:
null
,
rowDoubleBlade
:
null
,
columnDoubleBlade
:
null
,
dispatchMultiple
:
null
,
sheetLength
:
null
,
sheetWidth
:
null
};
this
.
resetForm
(
"form"
);
},
/** 提交按钮 */
async
submitForm
()
{
return
await
this
.
$refs
[
"form"
].
validate
();
},
}
};
</
script
>
src/views/mes/md/product/index.vue
View file @
c77ea145
...
...
@@ -328,7 +328,7 @@
<Look
ref=
"look"
:optType=
"optType"
:itemId=
"form.itemId"
></Look>
</el-tab-pane>
<el-tab-pane
label=
"排版参数"
>
<PublishedConf
:optType=
"optType"
:itemId=
"form.itemId"
></PublishedConf>
<PublishedConf
ref=
"publishedConf"
:optType=
"optType"
:itemId=
"form.itemId"
></PublishedConf>
</el-tab-pane>
<el-tab-pane
label=
"正反面颜色"
>
<FaceColor
:optType=
"optType"
:itemId=
"form.itemId"
></FaceColor>
...
...
@@ -632,10 +632,15 @@ export default {
//产品外观保存
const
lookData
=
await
this
.
$refs
[
'look'
].
getLookFormData
()
lookData
.
itemId
=
this
.
form
.
itemId
;
//产品参数配置保存 publishedConf
const
publishedConfData
=
await
this
.
$refs
[
'publishedConf'
].
getPublishedConfData
()
publishedConfData
.
itemId
=
this
.
form
.
itemId
;
const
params
=
{
...
this
.
form
,
baseInfo
:
baseInfoData
,
look
:
lookData
,
publishedConf
:
publishedConfData
}
updateMdItem
(
params
).
then
(
response
=>
{
this
.
$modal
.
msgSuccess
(
"修改成功"
);
...
...
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