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
bfc8afc1
Commit
bfc8afc1
authored
Jan 28, 2024
by
何远江
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面样式调整
parent
130d00b5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
729 additions
and
496 deletions
+729
-496
brandquotationApply.vue
src/views/mes/dv/brandquotation/brandquotationApply.vue
+35
-18
brandquotationInfo.vue
src/views/mes/dv/brandquotation/brandquotationInfo.vue
+50
-64
ProogingProcess.vue
...iews/mes/dv/brandquotation/components/ProogingProcess.vue
+2
-3
index.vue
src/views/mes/order/purchase/index.vue
+277
-98
ProogingProcess.vue
...s/mes/pro/productiorequest/components/ProogingProcess.vue
+2
-5
requestApply.vue
src/views/mes/pro/productiorequest/requestApply.vue
+290
-262
ProogingProcess.vue
...iews/mes/pro/prototypeMake/components/ProogingProcess.vue
+2
-6
indexApply.vue
src/views/mes/pro/workorder/indexApply.vue
+62
-31
index.vue
src/views/mes/qt/factoryQuote/index.vue
+9
-9
No files found.
src/views/mes/dv/brandquotation/brandquotationApply.vue
View file @
bfc8afc1
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
@
keyup
.
enter
.
native=
"handleQuery"
@
keyup
.
enter
.
native=
"handleQuery"
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"品牌名称"
prop=
"brandName"
>
<el-form-item
label=
"品牌名称"
prop=
"brandName"
>
<el-input
<el-input
v-model=
"queryParams.brandName"
v-model=
"queryParams.brandName"
placeholder=
"请输入品牌名称"
placeholder=
"请输入品牌名称"
...
@@ -136,7 +136,11 @@
...
@@ -136,7 +136,11 @@
row-key=
"brandQuotationId"
row-key=
"brandQuotationId"
default-expand-all
default-expand-all
>
>
<el-table-column
label=
"品牌报价单编码"
width=
"180"
prop=
"brandQuotationCode"
>
<el-table-column
label=
"品牌报价单编码"
width=
"140"
prop=
"brandQuotationCode"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<el-button
<el-button
size=
"mini"
size=
"mini"
...
@@ -149,13 +153,18 @@
...
@@ -149,13 +153,18 @@
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
label=
"品牌报价名称"
label=
"品牌报价名称"
width=
"180"
align=
"center"
align=
"center"
prop=
"brandQuotationName"
prop=
"brandQuotationName"
:show-overflow-tooltip=
"true"
:show-overflow-tooltip=
"true"
/>
/>
<el-table-column
label=
"金额"
width=
"180"
align=
"center"
prop=
"amount"
:formatter=
"r => this.formatMoney(r.amount)"
/>
<el-table-column
<el-table-column
label=
"金额"
width=
"120"
align=
"center"
prop=
"amount"
:formatter=
"(r) => this.formatMoney(r.amount)"
/>
<el-table-column
label=
"品牌名称"
label=
"品牌名称"
width=
"120"
width=
"120"
align=
"center"
align=
"center"
...
@@ -169,12 +178,13 @@
...
@@ -169,12 +178,13 @@
prop=
"itemName"
prop=
"itemName"
:show-overflow-tooltip=
"true"
:show-overflow-tooltip=
"true"
/>
/>
<el-table-column
label=
"工艺路线名称"
align=
"center"
prop=
"routeName"
>
<el-table-column
show-overflow-tooltip
label=
"工艺路线名称"
align=
"center"
prop=
"routeName"
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"备注"
align=
"center"
prop=
"remark"
/>
<el-table-column
show-overflow-tooltip
label=
"备注"
align=
"center"
prop=
"remark"
/>
<el-table-column
<el-table-column
label=
"操作"
label=
"操作"
width=
"200px"
width=
"200px"
fixed=
"right"
align=
"center"
align=
"center"
class-name=
"small-padding fixed-width"
class-name=
"small-padding fixed-width"
>
>
...
@@ -241,7 +251,13 @@ import Treeselect from "@riophae/vue-treeselect";
...
@@ -241,7 +251,13 @@ import Treeselect from "@riophae/vue-treeselect";
import
"@riophae/vue-treeselect/dist/vue-treeselect.css"
;
import
"@riophae/vue-treeselect/dist/vue-treeselect.css"
;
//导入品牌报价js
//导入品牌报价js
import
{
listBrandQuotation
,
getBrandQuotation
,
delBrandQuotation
,
addBrandQuotation
,
updateBrandQuotation
}
from
"@/api/mes/dv/brandquotation"
;
import
{
listBrandQuotation
,
getBrandQuotation
,
delBrandQuotation
,
addBrandQuotation
,
updateBrandQuotation
,
}
from
"@/api/mes/dv/brandquotation"
;
export
default
{
export
default
{
name
:
"PrototypeRequest"
,
name
:
"PrototypeRequest"
,
...
@@ -412,7 +428,9 @@ export default {
...
@@ -412,7 +428,9 @@ export default {
/** 删除按钮操作 */
/** 删除按钮操作 */
handleDelete
(
row
)
{
handleDelete
(
row
)
{
this
.
$modal
this
.
$modal
.
confirm
(
'是否确认删除编号为"'
+
row
.
brandQuotationId
+
'"的品牌报价单?'
)
.
confirm
(
'是否确认删除编号为"'
+
row
.
brandQuotationId
+
'"的品牌报价单?'
)
.
then
(
function
()
{
.
then
(
function
()
{
return
delBrandQuotation
(
row
.
brandQuotationId
);
return
delBrandQuotation
(
row
.
brandQuotationId
);
})
})
...
@@ -455,15 +473,14 @@ export default {
...
@@ -455,15 +473,14 @@ export default {
.
catch
(()
=>
{});
.
catch
(()
=>
{});
},
},
// 生成制作单
// 生成制作单
generatea
(
row
)
{
generatea
(
row
)
{
// 跳转到制作单界面
// 跳转到制作单界面
const
prototypeRequestId
=
row
.
prototypeRequestId
||
this
.
ids
;
const
prototypeRequestId
=
row
.
prototypeRequestId
||
this
.
ids
;
this
.
$router
.
push
(
this
.
$router
.
push
(
"/mes/pro/prototypeMake/apply?prototypeRequestId="
+
prototypeRequestId
"/mes/pro/prototypeMake/apply?prototypeRequestId="
+
prototypeRequestId
);
);
return
;
return
;
},
},
},
},
};
};
</
script
>
</
script
>
src/views/mes/dv/brandquotation/brandquotationInfo.vue
View file @
bfc8afc1
<
template
>
<
template
>
<div
class=
"form-page"
v-loading=
"loading"
>
<div
v-loading=
"loading"
>
<PageTitle>
<PageTitle>
{{
pageTitle
}}
{{
pageTitle
}}
<!-- 申请按钮显示 -->
<!-- 申请按钮显示 -->
...
@@ -24,9 +24,8 @@
...
@@ -24,9 +24,8 @@
label-width=
"100px"
label-width=
"100px"
>
>
<el-row>
<el-row>
<el-col
:md=
"6"
:sm=
"12"
:xs=
"12"
>
<el-col
:lg=
"6"
:md=
"8"
:sm=
"12"
:xs=
"12"
>
<el-form-item
prop=
"brandQuotationCode"
>
<el-form-item
label=
"编码"
prop=
"brandQuotationCode"
>
<
template
slot=
"label"
>
编码
</
template
>
<el-input
<el-input
disabled
disabled
v-model=
"form.brandQuotationCode"
v-model=
"form.brandQuotationCode"
...
@@ -35,7 +34,7 @@
...
@@ -35,7 +34,7 @@
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:
md=
"6
"
:sm=
"12"
:xs=
"12"
>
<el-col
:
lg=
"6"
:md=
"8
"
:sm=
"12"
:xs=
"12"
>
<el-form-item
label=
"名称"
prop=
"brandQuotationName"
>
<el-form-item
label=
"名称"
prop=
"brandQuotationName"
>
<el-input
<el-input
v-model=
"form.brandQuotationName"
v-model=
"form.brandQuotationName"
...
@@ -43,53 +42,17 @@
...
@@ -43,53 +42,17 @@
></el-input>
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:
md=
"6
"
:sm=
"12"
:xs=
"12"
>
<el-col
:
lg=
"6"
:md=
"8
"
:sm=
"12"
:xs=
"12"
>
<el-form-item
label=
"总金额"
prop=
"amount"
>
<el-form-item
label=
"总金额"
prop=
"amount"
>
<el-input-money
<el-input-money
v-model=
"form.amount"
v-model=
"form.amount"
v-bind:disabled=
"form.brandQuotationId==0"
v-bind:disabled=
"form.brandQuotationId == 0"
placeholder=
"新增时不可输入,请修改时操作"
/>
placeholder=
"新增时不可输入,请修改时操作"
/>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<!-- <el-col :span="6">
<el-form-item label="品牌" prop="brandCode">
<el-input v-model="form.brandName" readonly="readonly">
<el-button
slot="append"
icon="el-icon-search"
@click="handleBrandSelect"
placeholder="请选择品牌"
></el-button>
</el-input>
</el-form-item>
<BrandSelect
ref="brSelect"
@onSelected="onBrandSelected"
></BrandSelect>
</el-col> -->
<!-- <el-col :span="6">
<el-form-item label="品牌名称" prop="brandName">
<el-input v-model="form.brandName" readonly="readonly" />
</el-form-item>
</el-col> -->
<!-- <el-col :span="8">
<el-form-item label="品牌编码" prop="brandCode">
<el-input v-model="form.brandCode" readonly="readonly">
<el-button
slot="append"
icon="el-icon-search"
@click="handleBrandSelect"
:disabled="form.brandContactId"
></el-button>
</el-input>
</el-form-item>
<BrandSelect
ref="brSelect"
@onSelected="onBrandSelected"
></BrandSelect>
</el-col> -->
<el-col
:
md=
"6
"
:sm=
"12"
:xs=
"12"
>
<el-col
:
lg=
"6"
:md=
"8
"
:sm=
"12"
:xs=
"12"
>
<el-form-item
label=
"产品"
prop=
"itemId"
>
<el-form-item
label=
"产品"
prop=
"itemId"
>
<el-input
<el-input
v-model=
"form.itemName"
v-model=
"form.itemName"
...
@@ -106,13 +69,17 @@
...
@@ -106,13 +69,17 @@
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"8"
>
<el-col
:lg=
"6"
:md=
"8"
:sm=
"12"
:xs=
"12"
>
<el-form-item
label=
"品牌名称"
prop=
"brandName"
>
<el-form-item
label=
"品牌名称"
prop=
"brandName"
>
<el-input
v-model=
"form.brandName"
placeholder=
"请先将所选产品绑定品牌"
disabled
/>
<el-input
</el-form-item>
v-model=
"form.brandName"
</el-col>
placeholder=
"请先将所选产品绑定品牌"
disabled
/>
</el-form-item>
</el-col>
<el-col
:
md=
"6
"
:sm=
"12"
:xs=
"12"
>
<el-col
:
lg=
"6"
:md=
"8
"
:sm=
"12"
:xs=
"12"
>
<el-form-item
label=
"工艺路线"
prop=
"routeId"
>
<el-form-item
label=
"工艺路线"
prop=
"routeId"
>
<el-input
<el-input
v-model=
"form.routeName"
v-model=
"form.routeName"
...
@@ -133,7 +100,7 @@
...
@@ -133,7 +100,7 @@
</el-col>
</el-col>
</el-row>
</el-row>
<el-row>
<el-row>
<el-col
:
md=
"24
"
:sm=
"12"
:xs=
"12"
>
<el-col
:
lg=
"6"
:md=
"8
"
:sm=
"12"
:xs=
"12"
>
<el-form-item
label=
"备注"
prop=
"remark"
>
<el-form-item
label=
"备注"
prop=
"remark"
>
<el-input
<el-input
type=
"textarea"
type=
"textarea"
...
@@ -174,10 +141,22 @@ import {
...
@@ -174,10 +141,22 @@ import {
// 导入品牌选择框
// 导入品牌选择框
import
BrandSelect
from
"@/components/brandSelect/single.vue"
;
import
BrandSelect
from
"@/components/brandSelect/single.vue"
;
//导入品牌报价js
//导入品牌报价js
import
{
listBrandQuotation
,
getBrandQuotation
,
delBrandQuotation
,
addBrandQuotation
,
updateBrandQuotation
}
from
"@/api/mes/dv/brandquotation"
;
import
{
listBrandQuotation
,
getBrandQuotation
,
delBrandQuotation
,
addBrandQuotation
,
updateBrandQuotation
,
}
from
"@/api/mes/dv/brandquotation"
;
export
default
{
export
default
{
components
:
{
ProogingBom
,
ProogingProcess
,
ItemSelect
,
RoutesProcessSelect
,
BrandSelect
},
components
:
{
ProogingBom
,
ProogingProcess
,
ItemSelect
,
RoutesProcessSelect
,
BrandSelect
,
},
dicts
:
[],
dicts
:
[],
provide
()
{
provide
()
{
return
{
return
{
...
@@ -205,9 +184,13 @@ export default {
...
@@ -205,9 +184,13 @@ export default {
// 表单校验
// 表单校验
rules
:
{
rules
:
{
brandId
:
[
brandId
:
[
{
required
:
true
,
message
:
"品牌不能为空,请先查验所选产品是否已绑定品牌"
,
trigger
:
"blur"
}
{
],
required
:
true
,
}
message
:
"品牌不能为空,请先查验所选产品是否已绑定品牌"
,
trigger
:
"blur"
,
},
],
},
};
};
},
},
computed
:
{
computed
:
{
...
@@ -229,11 +212,11 @@ export default {
...
@@ -229,11 +212,11 @@ export default {
created
()
{
created
()
{
this
.
getFormInfo
();
this
.
getFormInfo
();
if
(
this
.
mode
==
"apply"
)
{
if
(
this
.
mode
==
"apply"
)
{
this
.
gCode
();
this
.
gCode
();
}
}
},
},
methods
:
{
methods
:
{
//选择品牌
//选择品牌
handleBrandSelect
()
{
handleBrandSelect
()
{
this
.
$refs
.
brSelect
.
showFlag
=
true
;
this
.
$refs
.
brSelect
.
showFlag
=
true
;
},
},
...
@@ -322,8 +305,11 @@ export default {
...
@@ -322,8 +305,11 @@ export default {
this
.
loading
=
false
;
this
.
loading
=
false
;
this
.
$modal
.
msgSuccess
(
"提交成功!"
);
this
.
$modal
.
msgSuccess
(
"提交成功!"
);
// 关闭页签
this
.
$nextTick
(()
=>
{
tabPlugins
.
closeOpenPage
();
// 关闭页签
tabPlugins
.
closeOpenPage
();
this
.
$router
.
replace
({
path
:
"/mes/dv/brandquotation/query"
});
});
})
})
.
catch
(()
=>
{
.
catch
(()
=>
{
this
.
loading
=
false
;
this
.
loading
=
false
;
...
...
src/views/mes/dv/brandquotation/components/ProogingProcess.vue
View file @
bfc8afc1
...
@@ -15,12 +15,12 @@
...
@@ -15,12 +15,12 @@
v-if=
"mode != 'info'"
v-if=
"mode != 'info'"
label=
"操作"
label=
"操作"
align=
"center"
align=
"center"
width=
"150"
width=
"300"
fixed=
"right"
>
>
<template
slot-scope=
"
{ row, $index }">
<template
slot-scope=
"
{ row, $index }">
<el-button
<el-button
type=
"text"
type=
"text"
icon=
"el-icon-edit"
size=
"small"
size=
"small"
@
click=
"openSetProd(row, $index)"
@
click=
"openSetProd(row, $index)"
>
>
...
@@ -42,7 +42,6 @@
...
@@ -42,7 +42,6 @@
</el-button>
</el-button>
<el-button
<el-button
type=
"text"
type=
"text"
icon=
"el-icon-edit"
size=
"small"
size=
"small"
@
click=
"updateRow(row, $index)"
@
click=
"updateRow(row, $index)"
>
修改
</el-button
>
修改
</el-button
...
...
src/views/mes/order/purchase/index.vue
View file @
bfc8afc1
This diff is collapsed.
Click to expand it.
src/views/mes/pro/productiorequest/components/ProogingProcess.vue
View file @
bfc8afc1
...
@@ -15,12 +15,12 @@
...
@@ -15,12 +15,12 @@
v-if=
"mode != 'info'"
v-if=
"mode != 'info'"
label=
"操作"
label=
"操作"
align=
"center"
align=
"center"
width=
"150"
width=
"300"
fixed=
"right"
>
>
<template
slot-scope=
"
{ row, $index }">
<template
slot-scope=
"
{ row, $index }">
<el-button
<el-button
type=
"text"
type=
"text"
icon=
"el-icon-edit"
size=
"small"
size=
"small"
@
click=
"openSetProd(row, $index)"
@
click=
"openSetProd(row, $index)"
>
>
...
@@ -28,7 +28,6 @@
...
@@ -28,7 +28,6 @@
</el-button>
</el-button>
<el-button
<el-button
type=
"text"
type=
"text"
icon=
"el-icon-edit"
size=
"small"
size=
"small"
@
click=
"openSetQrindex(row, $index)"
@
click=
"openSetQrindex(row, $index)"
>
>
...
@@ -36,7 +35,6 @@
...
@@ -36,7 +35,6 @@
</el-button>
</el-button>
<el-button
<el-button
type=
"text"
type=
"text"
icon=
"el-icon-edit"
size=
"small"
size=
"small"
@
click=
"openSetTool(row, $index)"
@
click=
"openSetTool(row, $index)"
>
>
...
@@ -44,7 +42,6 @@
...
@@ -44,7 +42,6 @@
</el-button>
</el-button>
<el-button
<el-button
type=
"text"
type=
"text"
icon=
"el-icon-edit"
size=
"small"
size=
"small"
@
click=
"updateRow(row, $index)"
@
click=
"updateRow(row, $index)"
>
修改
</el-button
>
修改
</el-button
...
...
src/views/mes/pro/productiorequest/requestApply.vue
View file @
bfc8afc1
This diff is collapsed.
Click to expand it.
src/views/mes/pro/prototypeMake/components/ProogingProcess.vue
View file @
bfc8afc1
...
@@ -15,12 +15,12 @@
...
@@ -15,12 +15,12 @@
v-if=
"mode != 'info'"
v-if=
"mode != 'info'"
label=
"操作"
label=
"操作"
align=
"center"
align=
"center"
width=
"150"
width=
"300"
fixed=
"right"
>
>
<template
slot-scope=
"
{ row, $index }">
<template
slot-scope=
"
{ row, $index }">
<el-button
<el-button
type=
"text"
type=
"text"
icon=
"el-icon-edit"
size=
"small"
size=
"small"
@
click=
"openSetProd(row, $index)"
@
click=
"openSetProd(row, $index)"
>
>
...
@@ -28,7 +28,6 @@
...
@@ -28,7 +28,6 @@
</el-button>
</el-button>
<el-button
<el-button
type=
"text"
type=
"text"
icon=
"el-icon-edit"
size=
"small"
size=
"small"
@
click=
"openSetQrindex(row, $index)"
@
click=
"openSetQrindex(row, $index)"
>
>
...
@@ -36,7 +35,6 @@
...
@@ -36,7 +35,6 @@
</el-button>
</el-button>
<el-button
<el-button
type=
"text"
type=
"text"
icon=
"el-icon-edit"
size=
"small"
size=
"small"
@
click=
"openSetTool(row, $index)"
@
click=
"openSetTool(row, $index)"
>
>
...
@@ -44,7 +42,6 @@
...
@@ -44,7 +42,6 @@
</el-button>
</el-button>
<el-button
<el-button
type=
"text"
type=
"text"
icon=
"el-icon-edit"
size=
"small"
size=
"small"
@
click=
"updateRow(row, $index)"
@
click=
"updateRow(row, $index)"
>
修改
</el-button
>
修改
</el-button
...
@@ -59,7 +56,6 @@
...
@@ -59,7 +56,6 @@
ref=
"ProcessProdRef"
ref=
"ProcessProdRef"
@
updateItem=
"updateItem"
@
updateItem=
"updateItem"
/>
/>
/>
<ProcessQcindex
<ProcessQcindex
:process=
"currentRow"
:process=
"currentRow"
ref=
"ProcessQcindexRef"
ref=
"ProcessQcindexRef"
...
...
src/views/mes/pro/workorder/indexApply.vue
View file @
bfc8afc1
<
template
>
<
template
>
<div
class=
"app-container"
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<!--
<el-form-item
label=
"工单编码"
prop=
"workorderCode"
>
<!--
<el-form-item
label=
"工单编码"
prop=
"workorderCode"
>
<el-input
<el-input
v-model=
"queryParams.workorderCode"
v-model=
"queryParams.workorderCode"
...
@@ -172,7 +179,8 @@
...
@@ -172,7 +179,8 @@
size=
"mini"
size=
"mini"
@
click=
"handleImport"
@
click=
"handleImport"
v-hasPermi=
"['mes:pro:workorder:edit']"
v-hasPermi=
"['mes:pro:workorder:edit']"
>
导入工单
</el-button>
>
导入工单
</el-button
>
</el-col>
</el-col>
<right-toolbar
<right-toolbar
:showSearch
.
sync=
"showSearch"
:showSearch
.
sync=
"showSearch"
...
@@ -180,7 +188,6 @@
...
@@ -180,7 +188,6 @@
></right-toolbar>
></right-toolbar>
</el-row>
</el-row>
<!-- 用户导入对话框 -->
<!-- 用户导入对话框 -->
<el-dialog
title=
"导入工单"
:visible
.
sync=
"upload.open"
width=
"400px"
>
<el-dialog
title=
"导入工单"
:visible
.
sync=
"upload.open"
width=
"400px"
>
<el-upload
<el-upload
...
@@ -199,7 +206,13 @@
...
@@ -199,7 +206,13 @@
<div
class=
"el-upload__text"
>
将文件拖到此处,或
<em>
点击上传
</em></div>
<div
class=
"el-upload__text"
>
将文件拖到此处,或
<em>
点击上传
</em></div>
<div
class=
"el-upload__tip text-center"
slot=
"tip"
>
<div
class=
"el-upload__tip text-center"
slot=
"tip"
>
<span>
仅允许导入xls、xlsx格式文件。
</span>
<span>
仅允许导入xls、xlsx格式文件。
</span>
<el-link
type=
"primary"
:underline=
"false"
style=
"font-size:12px;vertical-align: baseline;"
@
click=
"importTemplate"
>
下载模板
</el-link>
<el-link
type=
"primary"
:underline=
"false"
style=
"font-size: 12px; vertical-align: baseline"
@
click=
"importTemplate"
>
下载模板
</el-link
>
</div>
</div>
</el-upload>
</el-upload>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
...
@@ -254,9 +267,10 @@
...
@@ -254,9 +267,10 @@
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
label=
"工艺名称"
label=
"工艺名称"
width=
"1
4
0"
width=
"1
6
0"
align=
"center"
align=
"center"
prop=
"routeName"
prop=
"routeName"
show-overflow-tooltip
/>
/>
<el-table-column
<el-table-column
label=
"订单编号"
label=
"订单编号"
...
@@ -338,15 +352,17 @@
...
@@ -338,15 +352,17 @@
v
-
if
=
"scope.row.status == 'PREPARE'"
v
-
if
=
"scope.row.status == 'PREPARE'"
@
click
=
"handleUpdate(scope.row)"
@
click
=
"handleUpdate(scope.row)"
v
-
hasPermi
=
"['mes:pro:workorder:edit']"
v
-
hasPermi
=
"['mes:pro:workorder:edit']"
>
修改
<
/el-button>
>
修改
<
/el-butto
n
<
el
-
button
>
<
el
-
button
size
=
"mini"
size
=
"mini"
type
=
"text"
type
=
"text"
icon
=
"el-icon-delete"
icon
=
"el-icon-delete"
v
-
if
=
"scope.row.status == 'PREPARE'"
v
-
if
=
"scope.row.status == 'PREPARE'"
@
click
=
"handleDelete(scope.row)"
@
click
=
"handleDelete(scope.row)"
v
-
hasPermi
=
"['mes:pro:workorder:remove']"
v
-
hasPermi
=
"['mes:pro:workorder:remove']"
>
删除
<
/el-button
>
>
删除
<
/el-butto
n
>
<!--
<
el
-
button
<!--
<
el
-
button
size
=
"mini"
size
=
"mini"
type
=
"text"
type
=
"text"
...
@@ -368,7 +384,7 @@
...
@@ -368,7 +384,7 @@
v
-
hasPermi
=
"['mes:pro:workorder:update']"
v
-
hasPermi
=
"['mes:pro:workorder:update']"
>
完成
<
/el-butto
n
>
完成
<
/el-butto
n
>
-->
>
-->
<!--
<
el
-
button
<!--
<
el
-
button
size
=
"mini"
size
=
"mini"
type
=
"text"
type
=
"text"
...
@@ -679,7 +695,7 @@ import VendorSelect from "@/components/vendorSelect/single.vue";
...
@@ -679,7 +695,7 @@ import VendorSelect from "@/components/vendorSelect/single.vue";
import
{
genCode
}
from
"@/api/system/autocode/rule"
;
import
{
genCode
}
from
"@/api/system/autocode/rule"
;
import
Treeselect
from
"@riophae/vue-treeselect"
;
import
Treeselect
from
"@riophae/vue-treeselect"
;
import
"@riophae/vue-treeselect/dist/vue-treeselect.css"
;
import
"@riophae/vue-treeselect/dist/vue-treeselect.css"
;
import
{
getToken
}
from
'@/utils/auth'
import
{
getToken
}
from
"@/utils/auth"
;
export
default
{
export
default
{
name
:
"Workorder"
,
name
:
"Workorder"
,
...
@@ -728,7 +744,7 @@ export default {
...
@@ -728,7 +744,7 @@ export default {
// 设置上传的请求头部
// 设置上传的请求头部
headers
:
{
Authorization
:
"Bearer "
+
getToken
()
}
,
headers
:
{
Authorization
:
"Bearer "
+
getToken
()
}
,
// 上传的地址
// 上传的地址
url
:
process
.
env
.
VUE_APP_BASE_API
+
"/mes/pro/workorder/importData"
url
:
process
.
env
.
VUE_APP_BASE_API
+
"/mes/pro/workorder/importData"
,
}
,
}
,
// 查询参数
// 查询参数
queryParams
:
{
queryParams
:
{
...
@@ -754,19 +770,19 @@ export default {
...
@@ -754,19 +770,19 @@ export default {
requestDate
:
null
,
requestDate
:
null
,
parentId
:
null
,
parentId
:
null
,
ancestors
:
null
,
ancestors
:
null
,
status
:
'PREPARE'
,
status
:
"PREPARE"
,
}
,
}
,
// 表单状态
// 表单状态
options
:
[
options
:
[
{
value
:
"PREPARE"
,
label
:
"待确认"
}
,
{
value
:
"PREPARE"
,
label
:
"待确认"
}
,
{
value
:
"CONFIRMED"
,
label
:
"已确认"
}
,
{
value
:
"CONFIRMED"
,
label
:
"已确认"
}
,
{
value
:
"APPROVING"
,
label
:
"审批中"
}
,
{
value
:
"APPROVING"
,
label
:
"审批中"
}
,
{
value
:
"APPROVED"
,
label
:
"已审批"
}
,
{
value
:
"APPROVED"
,
label
:
"已审批"
}
,
{
value
:
"FINISHED"
,
label
:
"已完成"
}
,
{
value
:
"FINISHED"
,
label
:
"已完成"
}
,
{
value
:
"TASKGENERATED"
,
label
:
"已生成任务单"
}
,
{
value
:
"TASKGENERATED"
,
label
:
"已生成任务单"
}
,
{
value
:
"ISSUEGENERATED"
,
label
:
"已生成领料单"
}
,
{
value
:
"ISSUEGENERATED"
,
label
:
"已生成领料单"
}
,
{
value
:
"PRODUCIONG"
,
label
:
"生产中"
}
,
{
value
:
"PRODUCIONG"
,
label
:
"生产中"
}
,
],
],
// 表单参数
// 表单参数
form
:
{
}
,
form
:
{
}
,
// 表单校验
// 表单校验
...
@@ -819,8 +835,11 @@ export default {
...
@@ -819,8 +835,11 @@ export default {
}
);
}
);
}
,
}
,
importTemplate
()
{
importTemplate
()
{
this
.
download
(
'mes/pro/workorder/importTemplate'
,
{
this
.
download
(
}
,
`work_order_template_${new Date().getTime()
}
.xlsx`
)
"mes/pro/workorder/importTemplate"
,
{
}
,
`work_order_template_${new Date().getTime()
}
.xlsx`
);
}
,
}
,
/** 导入按钮操作 */
/** 导入按钮操作 */
handleImport
()
{
handleImport
()
{
...
@@ -835,7 +854,13 @@ export default {
...
@@ -835,7 +854,13 @@ export default {
this
.
upload
.
open
=
false
;
this
.
upload
.
open
=
false
;
this
.
upload
.
isUploading
=
false
;
this
.
upload
.
isUploading
=
false
;
this
.
$refs
.
upload
.
clearFiles
();
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
();
this
.
getList
();
}
,
}
,
// 提交上传文件
// 提交上传文件
...
@@ -1123,12 +1148,18 @@ export default {
...
@@ -1123,12 +1148,18 @@ export default {
}
,
}
,
/** 完成任务单操作 */
/** 完成任务单操作 */
confirmWorkorder
(
row
)
{
confirmWorkorder
(
row
)
{
this
.
$modal
.
confirm
(
'是否将工单编号"'
+
row
.
workorderCode
+
'"的草稿数据项改为已确认?'
).
then
(
function
()
{
this
.
$modal
return
confirmedWorkorder
(
row
.
workorderId
);
.
confirm
(
}
).
then
(()
=>
{
'是否将工单编号"'
+
row
.
workorderCode
+
'"的草稿数据项改为已确认?'
this
.
getList
();
)
this
.
$modal
.
msgSuccess
(
"已确认成功"
);
.
then
(
function
()
{
}
).
catch
(()
=>
{
}
);
return
confirmedWorkorder
(
row
.
workorderId
);
}
)
.
then
(()
=>
{
this
.
getList
();
this
.
$modal
.
msgSuccess
(
"已确认成功"
);
}
)
.
catch
(()
=>
{
}
);
}
,
}
,
//自动生成编码
//自动生成编码
handleAutoGenChange
(
autoGenFlag
)
{
handleAutoGenChange
(
autoGenFlag
)
{
...
...
src/views/mes/qt/factoryQuote/index.vue
View file @
bfc8afc1
...
@@ -85,27 +85,27 @@
...
@@ -85,27 +85,27 @@
<el-table
v-loading=
"loading"
:data=
"factoryQuoteList"
@
selection-change=
"handleSelectionChange"
>
<el-table
v-loading=
"loading"
:data=
"factoryQuoteList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
/>
<el-table-column
type=
"selection"
width=
"55"
/>
<el-table-column
label=
"客户编号"
prop=
"clientCode"
/>
<el-table-column
label=
"客户编号"
width=
"120"
prop=
"clientCode"
/>
<el-table-column
label=
"客户名称"
prop=
"clientName"
/>
<el-table-column
label=
"客户名称"
width=
"180"
prop=
"clientName"
/>
<el-table-column
label=
"产品编号"
prop=
"itemCode"
/>
<el-table-column
label=
"产品编号"
width=
"160"
prop=
"itemCode"
/>
<el-table-column
label=
"产品名称"
prop=
"itemName"
/>
<el-table-column
label=
"产品名称"
min-width=
"200"
show-overflow-tooltip
prop=
"itemName"
/>
<el-table-column
label=
"价格"
prop=
"price"
/>
<el-table-column
label=
"价格"
width=
"100"
prop=
"price"
/>
<el-table-column
label=
"有效期起"
prop=
"validFrom"
width=
"1
8
0"
>
<el-table-column
label=
"有效期起"
prop=
"validFrom"
width=
"1
4
0"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
validFrom
,
'{y
}
-{m
}
-{d
}
'
)
}}
<
/span
>
<span>
{{
parseTime
(
scope
.
row
.
validFrom
,
'{y
}
-{m
}
-{d
}
'
)
}}
<
/span
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"有效期至"
prop
=
"validTo"
width
=
"1
8
0"
>
<
el
-
table
-
column
label
=
"有效期至"
prop
=
"validTo"
width
=
"1
4
0"
>
<
template
slot
-
scope
=
"scope"
>
<
template
slot
-
scope
=
"scope"
>
<
span
>
{{
parseTime
(
scope
.
row
.
validTo
,
'{y
}
-{m
}
-{d
}
'
)
}}
<
/span
>
<
span
>
{{
parseTime
(
scope
.
row
.
validTo
,
'{y
}
-{m
}
-{d
}
'
)
}}
<
/span
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"状态"
prop
=
"state"
>
<
el
-
table
-
column
label
=
"状态"
prop
=
"state"
width
=
"100"
>
<
template
slot
-
scope
=
"{row
}
"
>
<
template
slot
-
scope
=
"{row
}
"
>
{{
row
.
state
===
'0'
?
'草稿'
:
row
.
state
===
'1'
?
'审批中'
:
row
.
state
===
'2'
?
'发布中'
:
'已发布'
}}
{{
row
.
state
===
'0'
?
'草稿'
:
row
.
state
===
'1'
?
'审批中'
:
row
.
state
===
'2'
?
'发布中'
:
'已发布'
}}
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"操作"
class
-
name
=
"small-padding fixed-width"
>
<
el
-
table
-
column
width
=
"120"
fixed
=
"right"
label
=
"操作"
class
-
name
=
"small-padding fixed-width"
>
<
template
slot
-
scope
=
"scope"
>
<
template
slot
-
scope
=
"scope"
>
<
el
-
button
<
el
-
button
v
-
if
=
"scope.row.state === '0' || scope.row.state === '2'"
v
-
if
=
"scope.row.state === '0' || scope.row.state === '2'"
...
...
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