Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
lxyl-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
李苏
lxyl-vue
Commits
c2ddcee2
Commit
c2ddcee2
authored
Jul 08, 2024
by
周毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改入库登记、出库登记
parent
c3e6b386
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
371 additions
and
376 deletions
+371
-376
index.vue
src/views/ccgl/ckgl/ckdj/index.vue
+30
-16
shd.vue
src/views/ccgl/rkgl/rkd/top/shd.vue
+22
-16
index.vue
src/views/ccgl/rkgl/rkdj/index.vue
+20
-6
mx.vue
src/views/ccgl/thgl/ckth/mx.vue
+16
-24
edit.vue
src/views/ccgl/thgl/ckth/top/edit.vue
+0
-39
index.vue
src/views/ccgl/thgl/ckth/top/index.vue
+283
-275
No files found.
src/views/ccgl/ckgl/ckdj/index.vue
View file @
c2ddcee2
...
@@ -94,7 +94,7 @@
...
@@ -94,7 +94,7 @@
],
],
queryParams
:
[
queryParams
:
[
[{
[{
label
:
'
出库
日期'
,
label
:
'日期'
,
startProp
:
"start"
,
startProp
:
"start"
,
endProp
:
"end"
,
endProp
:
"end"
,
span
:
6
,
span
:
6
,
...
@@ -117,26 +117,26 @@
...
@@ -117,26 +117,26 @@
}
}
}
}
},
},
{
"label"
:
"事务类型"
,
"prop"
:
"swlxid"
,
"span"
:
6
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"typeConfig"
:
{
"src"
:
"wms/ckgl/ckdj/init/swlx"
,
"match"
:
{
"value"
:
"id"
,
"label"
:
"name"
}
}
},
{
{
label
:
'出库单号'
,
label
:
'出库单号'
,
prop
:
'cktzDjid'
,
prop
:
'cktzDjid'
,
span
:
6
,
span
:
6
,
type
:
'input'
,
type
:
'input'
,
value
:
''
value
:
''
},
{
label
:
'过账状态'
,
prop
:
'gzzt'
,
span
:
6
,
type
:
"RelSelect"
,
value
:
""
,
typeConfig
:
{
src
:
"lxyl/common/init/gzzt"
,
match
:
{
"value"
:
"id"
,
"label"
:
"name"
}
}
}
}
],
],
[
[
...
@@ -146,7 +146,21 @@
...
@@ -146,7 +146,21 @@
span
:
8
,
span
:
8
,
type
:
'input'
,
type
:
'input'
,
value
:
''
value
:
''
}
},
{
label
:
"事务类型"
,
prop
:
"swlxid"
,
span
:
6
,
type
:
"RelSelect"
,
value
:
""
,
typeConfig
:
{
"src"
:
"wms/ckgl/ckdj/init/swlx"
,
match
:
{
value
:
"id"
,
label
:
"name"
}
}
},
]
]
],
],
/* 默认启停用 */
/* 默认启停用 */
...
...
src/views/ccgl/rkgl/rkd/top/shd.vue
View file @
c2ddcee2
...
@@ -59,7 +59,6 @@ this.$post('common/datetime',{}).then(res=>{
...
@@ -59,7 +59,6 @@ this.$post('common/datetime',{}).then(res=>{
span
:
24
,
span
:
24
,
type
:
'datetime'
,
type
:
'datetime'
,
value
:
''
,
value
:
''
,
"required"
:
true
,
},
},
{
{
label
:
'结束日期'
,
label
:
'结束日期'
,
...
@@ -67,7 +66,12 @@ this.$post('common/datetime',{}).then(res=>{
...
@@ -67,7 +66,12 @@ this.$post('common/datetime',{}).then(res=>{
span
:
24
,
span
:
24
,
type
:
'datetime'
,
type
:
'datetime'
,
value
:
''
,
value
:
''
,
"required"
:
true
,
},
{
label
:
'送货单号'
,
prop
:
'djid'
,
span
:
24
,
value
:
''
,
},
},
]
]
...
@@ -78,24 +82,26 @@ this.$post('common/datetime',{}).then(res=>{
...
@@ -78,24 +82,26 @@ this.$post('common/datetime',{}).then(res=>{
this
.
$refs
[
'form'
].
validate
((
valid
)
=>
{
this
.
$refs
[
'form'
].
validate
((
valid
)
=>
{
if
(
valid
){
if
(
valid
){
/* 判定开始参数不能大于30天*/
/* 判定开始参数不能大于30天*/
if
(
this
.
form
.
start
<
this
.
nowTime
-
30
*
24
*
60
*
60
*
1000
){
if
(
!
this
.
form
.
djid
){
this
.
$warning
(
'最早开始时间不得超过30天'
)
if
(
this
.
form
.
start
<
this
.
nowTime
-
30
*
24
*
60
*
60
*
1000
){
return
this
.
$warning
(
'最早开始时间不得超过30天'
)
}
return
/* 开始时间和结束时间不能大于120分钟*/
}
if
(
this
.
form
.
end
-
this
.
form
.
start
>
120
*
60
*
1000
){
/* 开始时间和结束时间不能大于120分钟*/
this
.
$warning
(
'开始时间与结束时间间隔不能大于120分钟'
)
if
(
this
.
form
.
end
-
this
.
form
.
start
>
120
*
60
*
1000
){
return
this
.
$warning
(
'开始时间与结束时间间隔不能大于120分钟'
)
}
return
if
(
this
.
form
.
start
>
this
.
form
.
end
){
}
this
.
$warning
(
'开始时间不得晚于结束时间'
)
if
(
this
.
form
.
start
>
this
.
form
.
end
){
return
this
.
$warning
(
'开始时间不得晚于结束时间'
)
return
}
}
}
/* 构建参数*/
/* 构建参数*/
let
params
=
{
let
params
=
{
start
:
this
.
form
.
start
,
start
:
this
.
form
.
start
,
end
:
this
.
form
.
end
end
:
this
.
form
.
end
,
djid
:
this
.
form
.
djid
}
}
this
.
isLoading
=
true
this
.
isLoading
=
true
this
.
$post
(
'lxyl/rkgl/rktz/scm/sync'
,
params
).
then
(
res
=>
{
this
.
$post
(
'lxyl/rkgl/rktz/scm/sync'
,
params
).
then
(
res
=>
{
...
...
src/views/ccgl/rkgl/rkdj/index.vue
View file @
c2ddcee2
...
@@ -94,7 +94,7 @@
...
@@ -94,7 +94,7 @@
label
:
'入库日期'
,
label
:
'入库日期'
,
startProp
:
"start"
,
startProp
:
"start"
,
endProp
:
"end"
,
endProp
:
"end"
,
span
:
8
,
span
:
6
,
type
:
'RelDaterangeV2'
,
type
:
'RelDaterangeV2'
,
startValue
:
new
Date
().
getTime
()
-
1000
*
60
*
60
*
24
*
30
,
startValue
:
new
Date
().
getTime
()
-
1000
*
60
*
60
*
24
*
30
,
endValue
:
new
Date
().
getTime
(),
endValue
:
new
Date
().
getTime
(),
...
@@ -102,11 +102,11 @@
...
@@ -102,11 +102,11 @@
{
{
"label"
:
"仓库"
,
"label"
:
"仓库"
,
"prop"
:
"ckid"
,
"prop"
:
"ckid"
,
"span"
:
8
,
"span"
:
6
,
"type"
:
"RelSelect"
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"value"
:
""
,
"typeConfig"
:
{
"typeConfig"
:
{
"src"
:
"
jcsj/common/ck/queryC
kid"
,
"src"
:
"
lxyl/jcsj/uck/ck/queryCjc
kid"
,
"match"
:
{
"match"
:
{
"value"
:
"id"
,
"value"
:
"id"
,
"label"
:
"name"
"label"
:
"name"
...
@@ -116,22 +116,36 @@
...
@@ -116,22 +116,36 @@
{
{
label
:
'入库单号'
,
label
:
'入库单号'
,
prop
:
'rktzDjid'
,
prop
:
'rktzDjid'
,
span
:
8
,
span
:
6
,
type
:
'input'
,
type
:
'input'
,
value
:
''
value
:
''
},
},
{
label
:
'过账状态'
,
prop
:
'gzzt'
,
span
:
6
,
type
:
"RelSelect"
,
value
:
""
,
typeConfig
:
{
src
:
"lxyl/common/init/gzzt"
,
match
:
{
"value"
:
"id"
,
"label"
:
"name"
}
}
}
],
],
[{
[{
label
:
'入库任务号'
,
label
:
'入库任务号'
,
prop
:
'lydjDjid'
,
prop
:
'lydjDjid'
,
span
:
8
,
span
:
6
,
type
:
'input'
,
type
:
'input'
,
value
:
''
value
:
''
},
},
{
{
"label"
:
"事务类型"
,
"label"
:
"事务类型"
,
"prop"
:
"swlxid"
,
"prop"
:
"swlxid"
,
"span"
:
8
,
"span"
:
6
,
"type"
:
"RelSelect"
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"value"
:
""
,
"typeConfig"
:
{
"typeConfig"
:
{
...
...
src/views/ccgl/thgl/ckth/mx.vue
View file @
c2ddcee2
...
@@ -37,7 +37,18 @@
...
@@ -37,7 +37,18 @@
/* 基本配置*/
/* 基本配置*/
url
:
'lxyl/rkgl/ckthtz/query/detail'
,
url
:
'lxyl/rkgl/ckthtz/query/detail'
,
queryUrl
:
'lxyl/rkgl/ckthtz/query/detail'
,
queryUrl
:
'lxyl/rkgl/ckthtz/query/detail'
,
tableTitle
:
[{
tableTitle
:
[
{
title
:
"状态"
,
field
:
"zt"
,
width
:
80
,
"transform"
:
{
"url"
:
"lxyl/rkgl/ckthtz/init/zt"
,
"label"
:
"name"
,
"value"
:
"id"
}
},
{
title
:
"物料编码"
,
title
:
"物料编码"
,
field
:
"wlxxCode"
,
field
:
"wlxxCode"
,
fieldType
:
"upper"
,
fieldType
:
"upper"
,
...
@@ -86,43 +97,24 @@
...
@@ -86,43 +97,24 @@
{
{
title
:
"数量"
,
title
:
"数量"
,
field
:
"yssl"
,
field
:
"yssl"
,
width
:
120
,
fieldType
:
"float"
},
{
title
:
"码盘数量"
,
field
:
"ztsl"
,
width
:
120
,
},
},
{
{
title
:
"包装数量"
,
title
:
"包装数量"
,
field
:
"zbsl"
,
field
:
"zbsl"
,
width
:
120
,
fieldType
:
"float"
},
},
{
{
title
:
"入库数量"
,
title
:
"入库数量"
,
field
:
"rksl"
,
field
:
"rksl"
,
width
:
100
,
fieldType
:
"float"
},
},
{
{
title
:
"制令号"
,
title
:
"制令号"
,
field
:
"zlh"
,
field
:
"zlh"
,
width
:
180
,
width
:
180
,
},
},
{
title
:
"状态"
,
field
:
"zt"
,
width
:
120
,
"transform"
:
{
"url"
:
"lxyl/rkgl/ckthtz/init/zt"
,
"label"
:
"name"
,
"value"
:
"id"
}
},
// {
// title: "来源单号",
// field: "lydjid",
// width: 120,
// },
// {
// {
// title: "关闭人",
// title: "关闭人",
// field: "gbr",
// field: "gbr",
...
...
src/views/ccgl/thgl/ckth/top/edit.vue
View file @
c2ddcee2
...
@@ -243,21 +243,6 @@
...
@@ -243,21 +243,6 @@
}
}
}
}
},
},
{
"label"
:
"部门"
,
"prop"
:
"bmid"
,
"span"
:
8
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"required"
:
true
,
"typeConfig"
:
{
"src"
:
"jcsj/common/bm/query"
,
"match"
:
{
"value"
:
"id"
,
"label"
:
"bmmc"
}
}
},
{
{
label
:
'工厂'
,
label
:
'工厂'
,
prop
:
'hzid'
,
prop
:
'hzid'
,
...
@@ -274,30 +259,6 @@
...
@@ -274,30 +259,6 @@
}
}
}
}
},
},
// {
// label: '供应商',
// prop: 'gysid',
// span: 8,
// type: 'input',
// readonly:true,
// show:this.type=='view'?true:false
// },
// {
// label: '入库人',
// prop: 'rkrid',
// span: 8,
// type: 'AuxInput',
// typeConfig: {
// code: 'USER',
// label: 'rkrName',
// transform: {
// value: 'id',
// label: 'username'
// }
// },
// },
{
{
label
:
'备注'
,
label
:
'备注'
,
prop
:
'bz'
,
prop
:
'bz'
,
...
...
src/views/ccgl/thgl/ckth/top/index.vue
View file @
c2ddcee2
<
template
>
<
template
>
<BasePage
@
getRow=
'getRow'
class=
"min_full"
style=
"height: 100%;"
:config=
"config"
>
<BasePage
<template
#
dialog=
"ctx"
>
@
getRow=
"getRow"
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
class=
"min_full"
<Sclltldb
v-if=
"ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='生产领料退料同步'"
:app=
'ctx.basePage'
/>
style=
"height: 100%"
<Wxtltb
v-if=
"ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='外协退料同步'"
:app=
'ctx.basePage'
/>
:config=
"config"
<Cbzxtltb
v-if=
"ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='成本中心退料同步'"
:app=
'ctx.basePage'
/>
>
<template
#
dialog=
"ctx"
>
</
template
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<
template
#
toolbar=
"ctx"
>
<Sclltldb
v-if=
"
<el-button
v-if=
"ctx.basePage.powerObj['21']"
@
click=
"sclltldb(ctx.basePage)"
size=
'mini'
type=
"primary"
>
生产领料退料同步
</el-button>
ctx.basePage.showDialog &&
<el-button
v-if=
"ctx.basePage.powerObj['22']"
@
click=
"wxtltb(ctx.basePage)"
size=
'mini'
type=
"primary"
>
外协退料同步
</el-button>
ctx.basePage.DialogTitle == '生产领料退料同步'
<el-button
v-if=
"ctx.basePage.powerObj['23']"
@
click=
"cbzxtltb(ctx.basePage)"
size=
'mini'
type=
"primary"
>
成本中心退料同步
</el-button>
"
<el-button
v-if=
"ctx.basePage.powerObj['24']"
@
click=
"qr(ctx.basePage)"
size=
'mini'
type=
"primary"
>
确认
</el-button>
:app=
"ctx.basePage"
<el-button
v-if=
"ctx.basePage.powerObj['24']"
@
click=
"qxqr(ctx.basePage)"
size=
'mini'
type=
"primary"
>
取消确认
</el-button>
/>
<Wxtltb
v-if=
"
</
template
>
ctx.basePage.showDialog && ctx.basePage.DialogTitle == '外协退料同步'
"
</BasePage>
:app=
"ctx.basePage"
/>
<Cbzxtltb
v-if=
"
ctx.basePage.showDialog &&
ctx.basePage.DialogTitle == '成本中心退料同步'
"
:app=
"ctx.basePage"
/>
</
template
>
<
template
#
toolbar=
"ctx"
>
<el-button
v-if=
"ctx.basePage.powerObj['21']"
@
click=
"sclltldb(ctx.basePage)"
size=
"mini"
type=
"primary"
>
生产领料退料同步
</el-button
>
<el-button
v-if=
"ctx.basePage.powerObj['22']"
@
click=
"wxtltb(ctx.basePage)"
size=
"mini"
type=
"primary"
>
外协退料同步
</el-button
>
<el-button
v-if=
"ctx.basePage.powerObj['23']"
@
click=
"cbzxtltb(ctx.basePage)"
size=
"mini"
type=
"primary"
>
成本中心退料同步
</el-button
>
<el-button
v-if=
"ctx.basePage.powerObj['24']"
@
click=
"qr(ctx.basePage)"
size=
"mini"
type=
"primary"
>
确认
</el-button
>
<el-button
v-if=
"ctx.basePage.powerObj['24']"
@
click=
"qxqr(ctx.basePage)"
size=
"mini"
type=
"primary"
>
取消确认
</el-button
>
</
template
>
</BasePage>
</template>
</template>
<
script
>
<
script
>
import
Edit
from
'./edit.vue'
import
Edit
from
"./edit.vue"
;
import
Shd
from
'./shd.vue'
import
Shd
from
"./shd.vue"
;
import
Sclltldb
from
'./sclltldb.vue'
import
Sclltldb
from
"./sclltldb.vue"
;
import
Wxtltb
from
'./wxtltb.vue'
import
Wxtltb
from
"./wxtltb.vue"
;
import
Cbzxtltb
from
'./cbzxtltb.vue'
import
Cbzxtltb
from
"./cbzxtltb.vue"
;
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
config
:
{
config
:
{
queryDetail
:
true
,
queryDetail
:
true
,
/* 基本配置*/
/* 基本配置*/
url
:
'lxyl/rkgl/ckthtz'
,
url
:
"lxyl/rkgl/ckthtz"
,
tableTitle
:
[{
tableTitle
:
[
title
:
"状态"
,
{
field
:
"zt"
,
title
:
"状态"
,
fieldType
:
"ftString"
,
field
:
"zt"
,
align
:
'center'
,
fieldType
:
"ftString"
,
width
:
80
,
align
:
"center"
,
"transform"
:
{
width
:
80
,
"url"
:
"lxyl/rkgl/ckthtz/init/zt"
,
transform
:
{
"label"
:
"name"
,
url
:
"lxyl/rkgl/ckthtz/init/zt"
,
"value"
:
"id"
label
:
"name"
,
}
value
:
"id"
,
},
{
title
:
"入库单号"
,
field
:
"djid"
,
width
:
140
},
{
title
:
"业务日期"
,
field
:
"ywrq"
,
fieldType
:
'ftDate'
},
// {
// title: "入库人",
// field: "rkr",
// width: 140
// },
{
title
:
"工厂"
,
field
:
"hzName"
,
width
:
140
},
{
title
:
"事务类型"
,
field
:
"swlxName"
,
width
:
100
},
{
title
:
"入库人"
,
field
:
"rkrName"
,
width
:
100
},
},
{
},
title
:
"仓库"
,
{
field
:
"ckid"
,
title
:
"入库单号"
,
width
:
140
,
field
:
"djid"
,
hidden
:
true
width
:
140
,
},
},
{
{
title
:
"仓库"
,
title
:
"业务日期"
,
field
:
"ckName"
,
field
:
"ywrq"
,
width
:
140
fieldType
:
"ftDate"
,
},
},
{
title
:
"工厂"
,
field
:
"hzName"
,
width
:
140
,
},
{
title
:
"事务类型"
,
field
:
"swlxName"
,
width
:
100
,
},
{
title
:
"仓库"
,
field
:
"ckid"
,
width
:
140
,
hidden
:
true
,
},
{
title
:
"仓库"
,
field
:
"ckName"
,
width
:
140
,
},
{
title
:
"包装状态"
,
field
:
"bzzt"
,
width
:
100
,
transform
:
{
url
:
"wms/rkgl/rktz/init/bzzt"
,
label
:
"name"
,
value
:
"id"
,
},
},
{
title
:
"单据来源"
,
field
:
"djly"
,
width
:
140
,
transform
:
{
url
:
"lxyl/rkgl/ckthtz/init/djly"
,
label
:
"name"
,
value
:
"id"
,
},
},
// {
// title: "来源单据号",
// field: "lydjDjid",
// width: 140
// },
{
title
:
"备注"
,
field
:
"bz"
,
width
:
240
,
},
{
title
:
"维护人"
,
field
:
"whr"
,
},
{
title
:
"维护时间"
,
field
:
"whsj"
,
fieldType
:
"ftDateTime"
,
},
],
queryParams
:
[
[
{
{
title
:
"码盘状态"
,
label
:
"日期"
,
field
:
"mpzt"
,
startProp
:
"start"
,
width
:
100
,
endProp
:
"end"
,
"transform"
:
{
span
:
8
,
"url"
:
"wms/rkgl/rktz/init/mpzt"
,
type
:
"RelDaterangeV2"
,
"label"
:
"name"
,
startValue
:
new
Date
().
getTime
()
-
1000
*
60
*
60
*
24
*
30
,
"value"
:
"id"
endValue
:
new
Date
().
getTime
(),
}
},
},
{
{
title
:
"包装状态"
,
label
:
"仓库"
,
field
:
"bzzt"
,
prop
:
"ckid"
,
width
:
100
,
span
:
8
,
"transform"
:
{
type
:
"RelSelect"
,
"url"
:
"wms/rkgl/rktz/init/bzzt"
,
value
:
""
,
"label"
:
"name"
,
typeConfig
:
{
"value"
:
"id"
src
:
"jcsj/common/ck/queryCkid"
,
}
match
:
{
value
:
"id"
,
label
:
"name"
,
},
},
},
},
{
{
title
:
"过账状态"
,
label
:
"单据编号"
,
field
:
"gzzt"
,
prop
:
"djid"
,
width
:
100
,
span
:
8
,
"transform"
:
{
type
:
"input"
,
"url"
:
"lxyl/common/init/gzzt"
,
value
:
""
,
"label"
:
"name"
,
"value"
:
"id"
}
},
},
{
],
title
:
"部门"
,
[
field
:
"bmName"
,
width
:
140
},
{
{
title
:
"单据来源"
,
label
:
"状态"
,
field
:
"djly"
,
prop
:
"zt"
,
width
:
140
,
span
:
8
,
"transform"
:
{
type
:
"RelSelect"
,
"url"
:
"lxyl/rkgl/ckthtz/init/djly"
,
typeConfig
:
{
"label"
:
"name"
,
src
:
"lxyl/rkgl/ckthtz/init/zt"
,
"value"
:
"id"
},
}
},
},
// {
{
// title: "来源单据号",
label
:
"事务类型"
,
// field: "lydjDjid",
prop
:
"swlxid"
,
// width: 140
span
:
8
,
// },
type
:
"RelSelect"
,
{
typeConfig
:
{
title
:
"备注"
,
src
:
"lxyl/rkgl/ckthtz/init/swlx"
,
field
:
"bz"
,
width
:
240
},
{
title
:
"维护人"
,
field
:
"whr"
},
{
title
:
"维护时间"
,
field
:
"whsj"
,
fieldType
:
'ftDateTime'
}
],
queryParams
:
[
[{
label
:
'日期'
,
startProp
:
"start"
,
endProp
:
"end"
,
span
:
8
,
type
:
'RelDaterangeV2'
,
startValue
:
new
Date
().
getTime
()
-
1000
*
60
*
60
*
24
*
30
,
endValue
:
new
Date
().
getTime
(),
},
{
"label"
:
"仓库"
,
"prop"
:
"ckid"
,
"span"
:
8
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"typeConfig"
:
{
"src"
:
"jcsj/common/ck/queryCkid"
,
"match"
:
{
"value"
:
"id"
,
"label"
:
"name"
}
}
},
{
label
:
'单据编号'
,
prop
:
'djid'
,
span
:
8
,
type
:
'input'
,
value
:
''
},
],[
{
label
:
'状态'
,
prop
:
'zt'
,
span
:
8
,
type
:
'RelSelect'
,
typeConfig
:
{
src
:
'lxyl/rkgl/ckthtz/init/zt'
}
},
{
label
:
'事务类型'
,
prop
:
'swlxid'
,
span
:
8
,
type
:
'RelSelect'
,
typeConfig
:
{
src
:
'lxyl/rkgl/ckthtz/init/swlx'
}
},
},
{
label
:
'来源单号'
,
prop
:
'lydh'
,
span
:
8
,
type
:
'input'
,
value
:
''
}
]
],
/* 默认启停用 */
}
}
},
methods
:
{
qr
(
ctx
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
this
.
$confirm
(
'是否继续操作, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
res
=>
{
this
.
$post
(
'lxyl/rkgl/ckthtz/confirm'
,
{
id
:
ctx
.
singleItem
.
id
}).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'操作成功'
)
ctx
.
refresh
()
}
})
})
}
else
{
this
.
$warning
(
'请选中一条数据'
)
}
},
},
qxqr
(
ctx
)
{
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
label
:
"来源单号"
,
this
.
$confirm
(
'是否继续操作, 是否继续?'
,
'提示'
,
{
prop
:
"lydh"
,
confirmButtonText
:
'确定'
,
span
:
8
,
cancelButtonText
:
'取消'
,
type
:
"input"
,
type
:
'warning'
value
:
""
,
}).
then
(
res
=>
{
this
.
$post
(
'lxyl/rkgl/ckthtz/unconfirm'
,
{
id
:
ctx
.
singleItem
.
id
}).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'操作成功'
)
ctx
.
refresh
()
}
})
})
}
else
{
this
.
$warning
(
'请选中一条数据'
)
}
},
},
sclltldb
(
ctx
){
],
ctx
.
DialogWidth
=
'35vw'
],
ctx
.
DialogTitle
=
'生产领料退料同步'
/* 默认启停用 */
ctx
.
showDialog
=
true
},
},
wxtltb
(
ctx
){
};
ctx
.
DialogWidth
=
'35vw'
},
ctx
.
DialogTitle
=
'外协退料同步'
methods
:
{
ctx
.
showDialog
=
true
qr
(
ctx
)
{
},
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
cbzxtltb
(
ctx
){
this
.
$confirm
(
"是否继续操作, 是否继续?"
,
"提示"
,
{
ctx
.
DialogWidth
=
'35vw'
confirmButtonText
:
"确定"
,
ctx
.
DialogTitle
=
'成本中心退料同步'
cancelButtonText
:
"取消"
,
ctx
.
showDialog
=
true
type
:
"warning"
,
},
}).
then
((
res
)
=>
{
this
.
$post
(
"lxyl/rkgl/ckthtz/confirm"
,
{
getRow
(
val
){
id
:
ctx
.
singleItem
.
id
,
this
.
$emit
(
'getRow'
,
val
)
}).
then
((
res
)
=>
{
},
if
(
res
.
success
)
{
this
.
$success
(
"操作成功"
);
},
ctx
.
refresh
();
components
:
{
}
Edit
,
});
Shd
,
});
Sclltldb
,
}
else
{
Wxtltb
,
this
.
$warning
(
"请选中一条数据"
);
Cbzxtltb
}
}
},
qxqr
(
ctx
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
this
.
$confirm
(
"是否继续操作, 是否继续?"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
,
}).
then
((
res
)
=>
{
this
.
$post
(
"lxyl/rkgl/ckthtz/unconfirm"
,
{
id
:
ctx
.
singleItem
.
id
,
}).
then
((
res
)
=>
{
if
(
res
.
success
)
{
this
.
$success
(
"操作成功"
);
ctx
.
refresh
();
}
});
});
}
else
{
this
.
$warning
(
"请选中一条数据"
);
}
},
sclltldb
(
ctx
)
{
ctx
.
DialogWidth
=
"35vw"
;
ctx
.
DialogTitle
=
"生产领料退料同步"
;
ctx
.
showDialog
=
true
;
},
wxtltb
(
ctx
)
{
ctx
.
DialogWidth
=
"35vw"
;
ctx
.
DialogTitle
=
"外协退料同步"
;
ctx
.
showDialog
=
true
;
},
cbzxtltb
(
ctx
)
{
ctx
.
DialogWidth
=
"35vw"
;
ctx
.
DialogTitle
=
"成本中心退料同步"
;
ctx
.
showDialog
=
true
;
},
}
getRow
(
val
)
{
this
.
$emit
(
"getRow"
,
val
);
},
},
components
:
{
Edit
,
Shd
,
Sclltldb
,
Wxtltb
,
Cbzxtltb
,
},
};
</
script
>
</
script
>
<
style
>
<
style
>
...
...
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