Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
weiqiao-vue
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
金民
weiqiao-vue
Commits
592f830c
Commit
592f830c
authored
Feb 24, 2026
by
sunhaiwei
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/hongshun' into hongshun
parents
a44a3de4
6fab0c74
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
274 additions
and
57 deletions
+274
-57
xjrsoft-vue3/src/api/chaiche/ccbg/index.ts
+15
-2
xjrsoft-vue3/src/api/chaiche/ccbg/model/CcbgModel.ts
+3
-3
xjrsoft-vue3/src/api/chaiche/pybg/model/PybgModel.ts
+4
-6
xjrsoft-vue3/src/api/scgl/qclywccmx/index.ts
+30
-0
xjrsoft-vue3/src/views/chaiche/ccbg/components/CcbgModal.vue
+0
-2
xjrsoft-vue3/src/views/chaiche/ccbg/components/InWarehouse.vue
+128
-0
xjrsoft-vue3/src/views/chaiche/ccbg/components/config.ts
+0
-0
xjrsoft-vue3/src/views/chaiche/ccbg/components/workflowPermission.ts
+13
-13
xjrsoft-vue3/src/views/chaiche/ccbg/index.vue
+18
-4
xjrsoft-vue3/src/views/chaiche/pybg/components/config.ts
+0
-0
xjrsoft-vue3/src/views/chaiche/pybg/components/workflowPermission.ts
+9
-25
xjrsoft-vue3/src/views/scgl/qclywccmx/index.vue
+54
-2
No files found.
xjrsoft-vue3/src/api/chaiche/ccbg/index.ts
View file @
592f830c
...
@@ -8,7 +8,7 @@ enum Api {
...
@@ -8,7 +8,7 @@ enum Api {
List
=
'/chaiche/ccbg/list'
,
List
=
'/chaiche/ccbg/list'
,
Info
=
'/chaiche/ccbg/info'
,
Info
=
'/chaiche/ccbg/info'
,
MesCheliangBg
=
'/chaiche/ccbg'
,
MesCheliangBg
=
'/chaiche/ccbg'
,
InWarehouse
=
'/chaiche/ccbg/in-warehouse'
,
}
}
...
@@ -88,6 +88,19 @@ export async function deleteMesCheliangBg(ids: string[], mode: ErrorMessageMode
...
@@ -88,6 +88,19 @@ export async function deleteMesCheliangBg(ids: string[], mode: ErrorMessageMode
);
);
}
}
/**
* @description: 拆车物料入库
*/
export
async
function
inWarehouse
(
wlList
:
Recordable
[],
mode
:
ErrorMessageMode
=
'modal'
)
{
return
defHttp
.
post
<
boolean
>
(
{
url
:
Api
.
InWarehouse
,
params
:
wlList
,
},
{
errorMessageMode
:
mode
,
},
);
}
xjrsoft-vue3/src/api/chaiche/ccbg/model/CcbgModel.ts
View file @
592f830c
...
@@ -6,7 +6,7 @@ import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel';
...
@@ -6,7 +6,7 @@ import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel';
export
interface
MesCheliangBgPageParams
extends
BasicPageParams
{
export
interface
MesCheliangBgPageParams
extends
BasicPageParams
{
banzu
:
string
;
banzu
:
string
;
c
llx
:
string
;
c
phm
:
string
;
clys
:
string
;
clys
:
string
;
...
@@ -14,12 +14,12 @@ export interface MesCheliangBgPageParams extends BasicPageParams {
...
@@ -14,12 +14,12 @@ export interface MesCheliangBgPageParams extends BasicPageParams {
gzr
:
string
;
gzr
:
string
;
cllx
:
string
;
wlzt
:
string
;
wlzt
:
string
;
gzxm
:
string
;
gzxm
:
string
;
cphm
:
string
;
clppxh
:
string
;
clppxh
:
string
;
gzkssj
:
string
;
gzkssj
:
string
;
...
...
xjrsoft-vue3/src/api/chaiche/pybg/model/PybgModel.ts
View file @
592f830c
...
@@ -4,17 +4,17 @@ import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel';
...
@@ -4,17 +4,17 @@ import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel';
* @description: MesCheliangBg分页参数 模型
* @description: MesCheliangBg分页参数 模型
*/
*/
export
interface
MesCheliangBgPageParams
extends
BasicPageParams
{
export
interface
MesCheliangBgPageParams
extends
BasicPageParams
{
banzu
:
string
;
cphm
:
string
;
gzr
:
string
;
gzkssj
:
string
;
gzkssj
:
string
;
cllx
:
string
;
cllx
:
string
;
gz
r
:
string
;
gz
xm
:
string
;
gzjssj
:
string
;
gzjssj
:
string
;
gzxm
:
string
;
}
}
/**
/**
...
@@ -38,8 +38,6 @@ export interface MesCheliangBgPageModel {
...
@@ -38,8 +38,6 @@ export interface MesCheliangBgPageModel {
gzjssj
:
string
;
gzjssj
:
string
;
clls
:
string
;
clls
:
string
;
banzu
:
string
;
}
}
/**
/**
...
...
xjrsoft-vue3/src/api/scgl/qclywccmx/index.ts
View file @
592f830c
...
@@ -8,6 +8,8 @@ enum Api {
...
@@ -8,6 +8,8 @@ enum Api {
List
=
'/scgl/qclywccmx/list'
,
List
=
'/scgl/qclywccmx/list'
,
Info
=
'/scgl/qclywccmx/info'
,
Info
=
'/scgl/qclywccmx/info'
,
MesQclbgRecordOutput
=
'/scgl/qclywccmx'
,
MesQclbgRecordOutput
=
'/scgl/qclywccmx'
,
Rksq
=
'/scgl/qclywccmx/commitRk'
,
Zjsq
=
'/scgl/qclywccmx/commitZj'
,
...
@@ -88,6 +90,34 @@ export async function deleteMesQclbgRecordOutput(ids: string[], mode: ErrorMessa
...
@@ -88,6 +90,34 @@ export async function deleteMesQclbgRecordOutput(ids: string[], mode: ErrorMessa
);
);
}
}
/**
* @description: 入库
*/
export
async
function
rksqMesProductOutput
(
params
:
Recordable
,
mode
:
ErrorMessageMode
=
'modal'
)
{
return
defHttp
.
post
<
boolean
>
(
{
url
:
Api
.
Rksq
,
params
,
},
{
errorMessageMode
:
mode
,
},
);
}
/**
* @description: 质检
*/
export
async
function
zjsqMesProductOutput
(
params
:
Recordable
,
mode
:
ErrorMessageMode
=
'modal'
)
{
return
defHttp
.
post
<
boolean
>
(
{
url
:
Api
.
Zjsq
,
params
,
},
{
errorMessageMode
:
mode
,
},
);
}
xjrsoft-vue3/src/views/chaiche/ccbg/components/CcbgModal.vue
View file @
592f830c
...
@@ -135,4 +135,3 @@
...
@@ -135,4 +135,3 @@
</
script
>
</
script
>
\ No newline at end of file
xjrsoft-vue3/src/views/chaiche/ccbg/components/InWarehouse.vue
0 → 100644
View file @
592f830c
<
template
>
<BasicModal
:height=
"600"
:width=
"900"
v-bind=
"$attrs"
@
register=
"registerModal"
:title=
"getTitle"
@
ok=
"handleSubmit"
@
cancel=
"handleClose"
>
<div
style=
"margin: 20px;"
>
<a-button
type=
"primary"
style=
"margin-bottom: 10px; margin-right: 10px;"
@
click=
"handleAllInWarehouse"
>
全部入库
</a-button>
<a-button
type=
"primary"
style=
"margin-bottom: 10px;"
@
click=
"handleCancelInWarehouse"
>
取消全部入库
</a-button>
<a-table
bordered
:data-source=
"dataSource"
:columns=
"columns"
:pagination=
"false"
>
<template
#
bodyCell=
"
{ column, text, record, index }">
<template
v-if=
"column.key === 'index'"
>
{{
index
+
1
}}
</
template
>
<
template
v-if=
"column.dataIndex === 'bcrksl'"
>
<a-input-number
v-model:value=
"record.bcrksl"
:min=
"0"
:max=
"record.sl - record.yrlsl"
/>
</
template
>
</template>
</a-table>
</div>
</BasicModal>
</template>
<
script
lang=
"ts"
setup
>
import
{
ref
,
computed
,
onMounted
,
reactive
,
provide
,
Ref
}
from
'vue'
;
import
{
BasicModal
,
useModalInner
}
from
'/@/components/Modal'
;
import
{
useMessage
}
from
'/@/hooks/web/useMessage'
;
import
{
getMesCheliangBg
,
inWarehouse
}
from
'/@/api/chaiche/ccbg'
;
const
emit
=
defineEmits
([
'success'
,
'register'
]);
const
{
notification
}
=
useMessage
();
const
formRef
=
ref
();
const
isCopy
=
ref
<
boolean
>
(
false
)
const
state
=
reactive
({
formModel
:
{},
isUpdate
:
true
,
isView
:
false
,
rowId
:
''
,
});
provide
<
Ref
<
boolean
>>
(
'isCopy'
,
isCopy
);
const
[
registerModal
,
{
closeModal
}]
=
useModalInner
(
async
()
=>
{
});
const
props
=
defineProps
([
'recordId'
])
const
getTitle
=
computed
(()
=>
(
'拆车物料入库'
));
const
dataSource
=
ref
([]);
const
columns
=
reactive
([
{
title
:
'序号'
,
dataIndex
:
'index'
,
key
:
'index'
,
align
:
'center'
,
},
{
title
:
'物料名称'
,
dataIndex
:
'cpmc'
,
key
:
'cpmc'
,
},
{
title
:
'物料编码'
,
dataIndex
:
'cpbh'
,
key
:
'cpbh'
,
},
{
title
:
'单位'
,
dataIndex
:
'dw'
,
key
:
'dw'
,
},
{
title
:
'总数量'
,
dataIndex
:
'sl'
,
key
:
'sl'
,
},
{
title
:
'已入库数量'
,
dataIndex
:
'yrlsl'
,
key
:
'yrlsl'
,
},
{
title
:
'本次入库数量'
,
dataIndex
:
'bcrksl'
,
key
:
'bcrksl'
,
},
]);
onMounted
(
async
()
=>
{
const
recordInfo
=
await
getMesCheliangBg
(
props
.
recordId
);
recordInfo
.
mesCheliangBgCpList
.
forEach
(
item
=>
{
item
.
bcrksl
=
0
;
})
dataSource
.
value
=
recordInfo
.
mesCheliangBgCpList
;
})
function
handleAllInWarehouse
()
{
dataSource
.
value
.
forEach
(
item
=>
{
item
.
bcrksl
=
item
.
sl
-
item
.
yrlsl
;
});
}
function
handleCancelInWarehouse
()
{
dataSource
.
value
.
forEach
(
item
=>
{
item
.
bcrksl
=
0
;
});
}
async
function
handleSubmit
()
{
await
inWarehouse
(
dataSource
.
value
);
notification
.
success
({
message
:
'Tip'
,
description
:
'入库成功'
,
});
handleClose
();
}
function
handleClose
()
{
emit
(
'success'
)
}
</
script
>
xjrsoft-vue3/src/views/chaiche/ccbg/components/config.ts
View file @
592f830c
This diff is collapsed.
Click to expand it.
xjrsoft-vue3/src/views/chaiche/ccbg/components/workflowPermission.ts
View file @
592f830c
...
@@ -39,12 +39,12 @@ export const permissionList = [
...
@@ -39,12 +39,12 @@ export const permissionList = [
disabled
:
false
,
disabled
:
false
,
isSaveTable
:
false
,
isSaveTable
:
false
,
tableName
:
''
,
tableName
:
''
,
fieldName
:
'车
辆类型
'
,
fieldName
:
'车
牌号码
'
,
fieldId
:
'c
llx
'
,
fieldId
:
'c
phm
'
,
isSubTable
:
false
,
isSubTable
:
false
,
showChildren
:
true
,
showChildren
:
true
,
type
:
'
select
'
,
type
:
'
associate-popup
'
,
key
:
'
e17f3687f30f4a2995ea2b07348150b5
'
,
key
:
'
f89a9cedaa7a4f98958d46860ac84ad6
'
,
children
:
[],
children
:
[],
options
:
{},
options
:
{},
},
},
...
@@ -123,15 +123,14 @@ export const permissionList = [
...
@@ -123,15 +123,14 @@ export const permissionList = [
disabled
:
false
,
disabled
:
false
,
isSaveTable
:
false
,
isSaveTable
:
false
,
tableName
:
''
,
tableName
:
''
,
fieldName
:
'车辆
重量(kg)
'
,
fieldName
:
'车辆
类型
'
,
fieldId
:
'cl
zl
'
,
fieldId
:
'cl
lx
'
,
isSubTable
:
false
,
isSubTable
:
false
,
showChildren
:
true
,
showChildren
:
true
,
type
:
'
number
'
,
type
:
'
select
'
,
key
:
'
059de967d74b44bba170351aff279c63
'
,
key
:
'
e17f3687f30f4a2995ea2b07348150b5
'
,
children
:
[],
children
:
[],
options
:
{},
options
:
{},
defaultValue
:
''
,
},
},
{
{
required
:
false
,
required
:
false
,
...
@@ -223,14 +222,15 @@ export const permissionList = [
...
@@ -223,14 +222,15 @@ export const permissionList = [
disabled
:
false
,
disabled
:
false
,
isSaveTable
:
false
,
isSaveTable
:
false
,
tableName
:
''
,
tableName
:
''
,
fieldName
:
'车
牌号码
'
,
fieldName
:
'车
辆重量(kg)
'
,
fieldId
:
'c
phm
'
,
fieldId
:
'c
lzl
'
,
isSubTable
:
false
,
isSubTable
:
false
,
showChildren
:
true
,
showChildren
:
true
,
type
:
'
associate-popup
'
,
type
:
'
number
'
,
key
:
'
f89a9cedaa7a4f98958d46860ac84ad6
'
,
key
:
'
059de967d74b44bba170351aff279c63
'
,
children
:
[],
children
:
[],
options
:
{},
options
:
{},
defaultValue
:
''
,
},
},
{
{
required
:
false
,
required
:
false
,
...
...
xjrsoft-vue3/src/views/chaiche/ccbg/index.vue
View file @
592f830c
...
@@ -50,6 +50,8 @@
...
@@ -50,6 +50,8 @@
<CcbgModal
@
register=
"registerModal"
@
success=
"handleFormSuccess"
@
cancel=
"handleFormCancel"
/>
<CcbgModal
@
register=
"registerModal"
@
success=
"handleFormSuccess"
@
cancel=
"handleFormCancel"
/>
<InWarehouse
v-if=
"showInWarehouse"
:visible=
"showInWarehouse"
:recordId=
"recordId"
@
success=
"handleInWarehouseSuccess"
@
cancel=
"handleInWarehouseCancel"
/>
...
@@ -84,6 +86,7 @@
...
@@ -84,6 +86,7 @@
import
CcbgModal
from
'./components/CcbgModal.vue'
;
import
CcbgModal
from
'./components/CcbgModal.vue'
;
import
InWarehouse
from
'./components/InWarehouse.vue'
;
...
@@ -103,7 +106,8 @@
...
@@ -103,7 +106,8 @@
const
showInWarehouse
=
ref
(
false
);
const
recordId
=
ref
(
null
);
const
listSpliceNum
=
ref
(
3
);
//操作列最先展示几个
const
listSpliceNum
=
ref
(
3
);
//操作列最先展示几个
...
@@ -133,7 +137,7 @@
...
@@ -133,7 +137,7 @@
//展示在列表内的按钮
//展示在列表内的按钮
const
actionButtons
=
ref
<
string
[]
>
([
"view"
,
"inWarehouse"
,
"delete"
]);
const
actionButtons
=
ref
<
string
[]
>
([
"view"
,
"inWarehouse"
,
"delete"
]);
const
buttonConfigs
=
computed
(()
=>
{
const
buttonConfigs
=
computed
(()
=>
{
const
list
=
[{
"buttonId"
:
"2018972431831822336"
,
"name"
:
"查看"
,
"code"
:
"view"
,
"icon"
:
"ant-design:eye-outlined"
,
"isDefault"
:
true
,
"isUse"
:
true
},{
"buttonId"
:
"2018972431831822337"
,
"name"
:
"新增"
,
"code"
:
"add"
,
"icon"
:
"ant-design:plus-outlined"
,
"isDefault"
:
true
,
"isUse"
:
true
},{
"buttonId"
:
"2019669737161912320"
,
"name"
:
"入库"
,
"code"
:
"inWarehouse"
,
"icon"
:
"ant-design:home-twotone"
,
"isDefault"
:
false
,
"isUse"
:
true
,
"setting"
:[],
"showType"
:
"inline"
,
"buttonType"
:
"
modal
"
},{
"buttonId"
:
"2018972431831822339"
,
"name"
:
"删除"
,
"code"
:
"delete"
,
"icon"
:
"ant-design:delete-outlined"
,
"isDefault"
:
true
,
"isUse"
:
true
}]
const
list
=
[{
"buttonId"
:
"2018972431831822336"
,
"name"
:
"查看"
,
"code"
:
"view"
,
"icon"
:
"ant-design:eye-outlined"
,
"isDefault"
:
true
,
"isUse"
:
true
},{
"buttonId"
:
"2018972431831822337"
,
"name"
:
"新增"
,
"code"
:
"add"
,
"icon"
:
"ant-design:plus-outlined"
,
"isDefault"
:
true
,
"isUse"
:
true
},{
"buttonId"
:
"2019669737161912320"
,
"name"
:
"入库"
,
"code"
:
"inWarehouse"
,
"icon"
:
"ant-design:home-twotone"
,
"isDefault"
:
false
,
"isUse"
:
true
,
"setting"
:[],
"showType"
:
"inline"
,
"buttonType"
:
"
primary
"
},{
"buttonId"
:
"2018972431831822339"
,
"name"
:
"删除"
,
"code"
:
"delete"
,
"icon"
:
"ant-design:delete-outlined"
,
"isDefault"
:
true
,
"isUse"
:
true
}]
return
filterButtonAuth
(
list
);
return
filterButtonAuth
(
list
);
})
})
...
@@ -145,7 +149,7 @@
...
@@ -145,7 +149,7 @@
return
buttonConfigs
.
value
?.
filter
((
x
)
=>
actionButtons
.
value
.
includes
(
x
.
code
));
return
buttonConfigs
.
value
?.
filter
((
x
)
=>
actionButtons
.
value
.
includes
(
x
.
code
));
});
});
const
btnEvent
=
{
view
:
handleView
,
add
:
handleAdd
,
delete
:
handleDelete
,}
const
btnEvent
=
{
view
:
handleView
,
add
:
handleAdd
,
delete
:
handleDelete
,
inWarehouse
:
handleInWarehouse
}
const
{
currentRoute
}
=
useRouter
();
const
{
currentRoute
}
=
useRouter
();
...
@@ -262,7 +266,10 @@
...
@@ -262,7 +266,10 @@
});
});
}
}
function
handleInWarehouse
(
record
:
Recordable
)
{
showInWarehouse
.
value
=
true
;
recordId
.
value
=
record
.
id
;
}
...
@@ -310,6 +317,13 @@
...
@@ -310,6 +317,13 @@
handleCloseFormEnableLocke
(
buttonConfigs
.
value
,
'edit'
);
handleCloseFormEnableLocke
(
buttonConfigs
.
value
,
'edit'
);
}
}
function
handleInWarehouseSuccess
()
{
showInWarehouse
.
value
=
false
;
}
function
handleInWarehouseCancel
()
{
showInWarehouse
.
value
=
false
;
}
function
handleView
(
record
:
Recordable
)
{
function
handleView
(
record
:
Recordable
)
{
let
info
=
{
let
info
=
{
...
...
xjrsoft-vue3/src/views/chaiche/pybg/components/config.ts
View file @
592f830c
This diff is collapsed.
Click to expand it.
xjrsoft-vue3/src/views/chaiche/pybg/components/workflowPermission.ts
View file @
592f830c
...
@@ -39,14 +39,15 @@ export const permissionList = [
...
@@ -39,14 +39,15 @@ export const permissionList = [
disabled
:
false
,
disabled
:
false
,
isSaveTable
:
false
,
isSaveTable
:
false
,
tableName
:
''
,
tableName
:
''
,
fieldName
:
'
班组
'
,
fieldName
:
'
排液人
'
,
fieldId
:
'
banzu
'
,
fieldId
:
'
gzr
'
,
isSubTable
:
false
,
isSubTable
:
false
,
showChildren
:
true
,
showChildren
:
true
,
type
:
'
radio
'
,
type
:
'
user
'
,
key
:
'
362f762c817749469f47af55832b3363
'
,
key
:
'
b8e63f39708d46cdb64fd9b5e9079dd4
'
,
children
:
[],
children
:
[],
options
:
{},
options
:
{},
defaultValue
:
''
,
},
},
{
{
required
:
false
,
required
:
false
,
...
@@ -105,15 +106,14 @@ export const permissionList = [
...
@@ -105,15 +106,14 @@ export const permissionList = [
disabled
:
false
,
disabled
:
false
,
isSaveTable
:
false
,
isSaveTable
:
false
,
tableName
:
''
,
tableName
:
''
,
fieldName
:
'
排液人
'
,
fieldName
:
'
工作项目
'
,
fieldId
:
'gz
r
'
,
fieldId
:
'gz
xm
'
,
isSubTable
:
false
,
isSubTable
:
false
,
showChildren
:
true
,
showChildren
:
true
,
type
:
'
user
'
,
type
:
'
associate-popup
'
,
key
:
'
b8e63f39708d46cdb64fd9b5e9079dd4
'
,
key
:
'
16549fa420014b3f871e74e4274df5b3
'
,
children
:
[],
children
:
[],
options
:
{},
options
:
{},
defaultValue
:
''
,
},
},
{
{
required
:
false
,
required
:
false
,
...
@@ -156,22 +156,6 @@ export const permissionList = [
...
@@ -156,22 +156,6 @@ export const permissionList = [
disabled
:
false
,
disabled
:
false
,
isSaveTable
:
false
,
isSaveTable
:
false
,
tableName
:
''
,
tableName
:
''
,
fieldName
:
'工作项目'
,
fieldId
:
'gzxm'
,
isSubTable
:
false
,
showChildren
:
true
,
type
:
'associate-popup'
,
key
:
'16549fa420014b3f871e74e4274df5b3'
,
children
:
[],
options
:
{},
},
{
required
:
false
,
view
:
true
,
edit
:
true
,
disabled
:
false
,
isSaveTable
:
false
,
tableName
:
''
,
fieldName
:
'处理辆数'
,
fieldName
:
'处理辆数'
,
fieldId
:
'clls'
,
fieldId
:
'clls'
,
isSubTable
:
false
,
isSubTable
:
false
,
...
...
xjrsoft-vue3/src/views/scgl/qclywccmx/index.vue
View file @
592f830c
...
@@ -66,7 +66,7 @@
...
@@ -66,7 +66,7 @@
import
{
Modal
}
from
'ant-design-vue'
;
import
{
Modal
}
from
'ant-design-vue'
;
import
{
ExclamationCircleOutlined
}
from
'@ant-design/icons-vue'
;
import
{
ExclamationCircleOutlined
}
from
'@ant-design/icons-vue'
;
import
{
BasicTable
,
useTable
,
TableAction
,
ActionItem
}
from
'/@/components/Table'
;
import
{
BasicTable
,
useTable
,
TableAction
,
ActionItem
}
from
'/@/components/Table'
;
import
{
getMesQclbgRecordOutputPage
,
deleteMesQclbgRecordOutput
}
from
'/@/api/scgl/qclywccmx'
;
import
{
getMesQclbgRecordOutputPage
,
deleteMesQclbgRecordOutput
,
rksqMesProductOutput
,
zjsqMesProductOutput
}
from
'/@/api/scgl/qclywccmx'
;
import
{
ResizePageWrapper
}
from
'/@/components/Page'
;
import
{
ResizePageWrapper
}
from
'/@/components/Page'
;
import
{
useMessage
}
from
'/@/hooks/web/useMessage'
;
import
{
useMessage
}
from
'/@/hooks/web/useMessage'
;
import
{
useI18n
}
from
'/@/hooks/web/useI18n'
;
import
{
useI18n
}
from
'/@/hooks/web/useI18n'
;
...
@@ -145,7 +145,7 @@
...
@@ -145,7 +145,7 @@
return
buttonConfigs
.
value
?.
filter
((
x
)
=>
actionButtons
.
value
.
includes
(
x
.
code
));
return
buttonConfigs
.
value
?.
filter
((
x
)
=>
actionButtons
.
value
.
includes
(
x
.
code
));
});
});
const
btnEvent
=
{
view
:
handleView
,
delete
:
handleDelete
,}
const
btnEvent
=
{
view
:
handleView
,
delete
:
handleDelete
,
ruku
:
handleRksq
,
zhijian
:
handleZjsq
}
const
{
currentRoute
}
=
useRouter
();
const
{
currentRoute
}
=
useRouter
();
...
@@ -226,7 +226,59 @@
...
@@ -226,7 +226,59 @@
/**
* @description: 入库
*/
async
function
handleRksq
(
record
:
Recordable
)
{
try
{
Modal
.
confirm
({
title
:
t
(
'提示信息'
),
icon
:
createVNode
(
ExclamationCircleOutlined
),
content
:
t
(
'是否提交入库申请?'
),
okText
:
t
(
'确认'
),
cancelText
:
t
(
'取消'
),
async
onOk
()
{
await
rksqMesProductOutput
({
id
:
record
.
id
});
notification
.
success
({
message
:
t
(
'成功'
),
description
:
'入库申请成功'
,
});
handleSuccess
();
reload
();
},
onCancel
()
{},
});
}
catch
(
error
)
{
console
.
error
(
'入库申请失败:'
,
error
);
}
}
/**
* @description: 质检
*/
async
function
handleZjsq
(
record
:
Recordable
)
{
try
{
Modal
.
confirm
({
title
:
t
(
'提示信息'
),
icon
:
createVNode
(
ExclamationCircleOutlined
),
content
:
t
(
'是否提交质检申请?'
),
okText
:
t
(
'确认'
),
cancelText
:
t
(
'取消'
),
async
onOk
()
{
await
zjsqMesProductOutput
({
id
:
record
.
id
});
notification
.
success
({
message
:
t
(
'成功'
),
description
:
'质检申请成功'
,
});
handleSuccess
();
reload
();
},
onCancel
()
{},
});
}
catch
(
error
)
{
console
.
error
(
'质检申请失败:'
,
error
);
}
}
...
...
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