Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
template_vue
Project
Project
Details
Activity
Releases
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
胡宝山
template_vue
Commits
83d92631
Commit
83d92631
authored
Sep 20, 2023
by
shifangwuji
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
9/20
parent
ede52623
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
69 additions
and
33 deletions
+69
-33
gfual.js
src/api/production/gfual.js
+1
-18
index.vue
src/views/production/gfual/index.vue
+68
-15
No files found.
src/api/production/gfual.js
View file @
83d92631
...
...
@@ -3,7 +3,7 @@ import request from '@/utils/request'
// 查询列表
export
function
queryList
(
params
)
{
return
request
({
url
:
'/ysgxlog/
queryYsGxLogByPagination
'
,
url
:
'/ysgxlog/
select
'
,
method
:
'get'
,
params
})
...
...
@@ -39,23 +39,6 @@ export function updataInfo(data) {
})
}
// 逻辑删除基础信息接口
export
function
deleteLogical
(
id
)
{
return
request
({
url
:
'/ysgxlog/deleteLogical/'
+
id
,
method
:
'delete'
})
}
// 导出信息接口
export
function
exporTable
(
params
)
{
return
request
({
url
:
'/wbchemistrybaseinfo/export'
,
method
:
'get'
,
params
,
responseType
:
'blob'
})
}
// 根据key值查询数据字典数据
export
function
getDictData
(
params
)
{
return
request
({
...
...
src/views/production/gfual/index.vue
View file @
83d92631
...
...
@@ -52,13 +52,14 @@
<hr
style=
"margin: 0 0 20px 0; width: 81%;"
>
<el-row
:gutter=
"40"
>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"jbcode:"
style=
"flex-basis: 50%;"
prop=
"jbcode"
>
<el-input
ref=
"input5"
v-model=
"form.jbcode"
placeholder=
"请输入jbcode"
:minlength=
"3"
style=
"width: 868px"
:maxlength=
"100"
@
keyup
.
enter
.
native=
"handleTab(4, $event)"
/>
</el-form-item>
</el-col>
</el-row>
<!-- 提取 jbtype、jbrank 和 jbLot -->
<el-row
:gutter=
"0"
style=
"display: flex; width: 81%;"
>
<el-col
:span=
"8"
>
<el-form
:model=
"form"
ref=
"form"
:rules=
"rules"
label-width=
"80px"
>
...
...
@@ -85,6 +86,7 @@
</el-col>
</el-row>
<el-row
:gutter=
"40"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"wbcode:"
style=
"flex-basis: 50%;"
prop=
"wbcode"
>
...
...
@@ -104,16 +106,17 @@
<el-row
:gutter=
"40"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"jlcod:"
style=
"flex-basis: 50%;"
prop=
"jlcod"
>
<el-input
ref=
"input8"
v-model=
"form.jl
bcod"
placeholder=
"请输入jlb
cod"
:minlength=
"3"
style=
"width: 868px"
:maxlength=
"100"
@
keyup
.
enter
.
native=
"handleTab(7, $event)"
/>
<el-input
ref=
"input8"
v-model=
"form.jl
cod"
placeholder=
"请输入jl
cod"
:minlength=
"3"
style=
"width: 868px"
:maxlength=
"100"
@
keyup
.
enter
.
native=
"handleTab(7, $event)"
/>
</el-form-item>
</el-col>
</el-row>
<!-- 提取 jltype、jllot 和 jlbzq -->
<el-row
:gutter=
"0"
style=
"display: flex; width: 81%;"
>
<el-col
:span=
"8"
>
<el-form
:model=
"form"
ref=
"form"
:rules=
"rules"
label-width=
"80px"
>
<el-form-item
label=
"jltype:"
prop=
"jltype"
>
<el-input
v-model=
"form.j
b
type"
placeholder=
"jltype"
:disabled=
"true"
style=
"width: 100%;"
/>
<el-input
v-model=
"form.j
l
type"
placeholder=
"jltype"
:disabled=
"true"
style=
"width: 100%;"
/>
</el-form-item>
</el-form>
</el-col>
...
...
@@ -121,7 +124,7 @@
<el-col
:span=
"8"
>
<el-form
:model=
"form"
ref=
"form"
:rules=
"rules"
label-width=
"80px"
>
<el-form-item
label=
"jllot:"
prop=
"jllot"
>
<el-input
v-model=
"form.j
brank
"
placeholder=
"jllot"
:disabled=
"true"
style=
"width: 100%;"
/>
<el-input
v-model=
"form.j
llot
"
placeholder=
"jllot"
:disabled=
"true"
style=
"width: 100%;"
/>
</el-form-item>
</el-form>
</el-col>
...
...
@@ -129,7 +132,7 @@
<el-col
:span=
"8"
>
<el-form
:model=
"form"
ref=
"form"
:rules=
"rules"
label-width=
"80px"
>
<el-form-item
label=
"jlbzq:"
prop=
"jlbzq"
>
<el-input
v-model=
"form.j
bLot
"
placeholder=
"jlbzq"
:disabled=
"true"
style=
"width: 100%;"
/>
<el-input
v-model=
"form.j
lbzq
"
placeholder=
"jlbzq"
:disabled=
"true"
style=
"width: 100%;"
/>
</el-form-item>
</el-form>
</el-col>
...
...
@@ -166,12 +169,6 @@ export default {
name
:
'Role'
,
data
()
{
return
{
form
:
{
jbcode
:
''
,
// 输入的jbcode
jbtype
:
''
,
// 从jbcode中提取的jbtype
jbrank
:
''
,
// 从jbcode中提取的jbrank
jbLot
:
''
,
// 从jbcode中提取的jbLot
},
isRequired
:
false
,
// 对应后端配置文件cy.init.pgxList的的内容
phdList
:
[
'003'
],
...
...
@@ -185,7 +182,11 @@ export default {
jbcode
:
''
,
jbtype
:
''
,
jbrank
:
''
,
jbLot
:
''
jbLot
:
''
,
jlcod
:
''
,
jltype
:
''
,
jllot
:
''
,
jlbzq
:
''
},
rule
:
{
pn
:
[{
required
:
true
,
message
:
'请输入pn'
,
trigger
:
'blur'
}],
...
...
@@ -234,9 +235,51 @@ export default {
},
/** 查询按钮操作 */
handleQuery
()
{
this
.
form
.
page
=
1
this
.
getList
()
// 先触发表单验证
this
.
$refs
.
form
.
validate
(
valid
=>
{
if
(
valid
)
{
// 表单验证通过,执行查询操作
queryList
({
pn
:
this
.
form
.
pn
,
lot
:
this
.
form
.
lot
,
gx
:
this
.
form
.
gx
,
machine
:
this
.
form
.
machine
,
})
.
then
(
response
=>
{
if
(
response
.
data
.
success
)
{
// 如果后端返回成功信息,显示成功提示
MessageBox
.
alert
(
'查询成功'
,
'成功'
,
{
confirmButtonText
:
'确定'
,
type
:
'success'
,
});
// 执行下一步操作
this
.
doNextAction
();
}
else
{
// 如果后端返回错误信息,显示错误提示
MessageBox
.
alert
(
response
.
data
.
message
,
'错误'
,
{
confirmButtonText
:
'确定'
,
type
:
'error'
,
});
}
})
.
catch
(
error
=>
{
// 处理请求错误
console
.
error
(
error
);
});
}
else
{
// 表单验证失败,显示错误信息
MessageBox
.
alert
(
'请完整填写所有字段'
,
'错误'
,
{
confirmButtonText
:
'确定'
,
type
:
'error'
,
});
}
});
},
doNextAction
()
{
// 执行下一步操作的逻辑
},
/** 查询基础信息列表 */
getList
()
{
this
.
loading
=
true
...
...
@@ -281,7 +324,7 @@ export default {
init
()
{
this
.
getDict
()
},
//
提价
时要调的接口
//
保存
时要调的接口
submitForm
()
{
this
.
$confirm
(
'是否确认保存?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
...
...
@@ -348,6 +391,16 @@ export default {
},
immediate
:
true
,
// 立即执行一次以处理初始值
},
'form.jlcod'
:
{
handler
(
newJlcod
)
{
// 当 jlcod 字段发生变化时,解析它并更新相关字段的值
const
parts
=
newJlcod
.
split
(
','
);
this
.
form
.
jltype
=
parts
[
0
]
||
''
;
this
.
form
.
jllot
=
parts
[
1
]
||
''
;
this
.
form
.
jlbzq
=
parts
[
2
]
||
''
;
},
immediate
:
true
,
// 立即执行一次以处理初始值
},
},
};
</
script
>
...
...
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