Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes-pad
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
ximai
mes-pad
Commits
18c4698d
Commit
18c4698d
authored
Aug 26, 2024
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
外协增加是否关单
parent
3eb55e28
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
13 deletions
+19
-13
index.vue
pages/mes/prodReport/index.vue
+18
-12
zb-table.vue
uni_modules/zb-table/components/zb-table/zb-table.vue
+1
-1
No files found.
pages/mes/prodReport/index.vue
View file @
18c4698d
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
<view
class=
"prod-body-left-task"
>
<view
class=
"prod-body-left-task"
>
<zb-table
ref=
"zbtable"
:columns=
"tableColumn"
:stripe=
"true"
rowKey=
"taskWorkunitId"
:cellStyle=
"cellStyle"
<zb-table
ref=
"zbtable"
:columns=
"tableColumn"
:stripe=
"true"
rowKey=
"taskWorkunitId"
:cellStyle=
"cellStyle"
:isTrClassStyle=
"isTrClassStyle"
@
rowClick=
"rowClick"
@
toggleRowSelection=
"toggleRowSelection"
:isTrClassStyle=
"isTrClassStyle"
@
rowClick=
"rowClick"
@
toggleRowSelection=
"toggleRowSelection"
@
toggleAllSelection=
"toggleAllSelection"
:border=
"true"
:data=
"tableData"
></zb-table>
:border=
"true"
:data=
"tableData"
></zb-table>
</view>
</view>
<view
class=
"prod-body-left-num"
>
可选订单数:
{{
tableData
.
length
}}
</view>
<view
class=
"prod-body-left-num"
>
可选订单数:
{{
tableData
.
length
}}
</view>
</view>
</view>
...
@@ -277,12 +277,12 @@
...
@@ -277,12 +277,12 @@
{{
feedback
.
workorderCode
}}
{{
feedback
.
workorderCode
}}
</u-form-item>
</u-form-item>
</u-col>
</u-col>
<u-col
span=
"
4
"
>
<u-col
span=
"
3
"
>
<u-form-item
label=
"采购单号:"
prop=
"quantity"
>
<u-form-item
label=
"采购单号:"
prop=
"quantity"
>
{{
feedback
.
assistProcessCode
}}
{{
feedback
.
assistProcessCode
}}
</u-form-item>
</u-form-item>
</u-col>
</u-col>
<u-col
span=
"
4
"
>
<u-col
span=
"
5
"
>
<u-form-item
label=
"工序:"
prop=
"nickName"
>
<u-form-item
label=
"工序:"
prop=
"nickName"
>
{{
feedback
.
processName
}}
{{
feedback
.
processName
}}
</u-form-item>
</u-form-item>
...
@@ -432,6 +432,16 @@
...
@@ -432,6 +432,16 @@
</u-radio-group>
</u-radio-group>
</view>
</view>
</u-form-item>
</u-form-item>
</u-col>
<u-col
span=
"6"
v-if=
"isWaiXie"
>
<u-form-item
label=
"是否关单:"
prop=
"whether"
>
<view
class=
"uni-list-item__extra"
>
<u-radio-group
v-model=
"feedback.closeType"
>
<u-radio
:name=
"1"
>
是
</u-radio>
<u-radio
:name=
"0"
>
否
</u-radio>
</u-radio-group>
</view>
</u-form-item>
</u-col>
</u-col>
<u-col
span=
"6"
v-if=
"!isWaiXie"
v-show=
"!buttonShow || buttonShow.MaterialReturnView === '1'"
>
<u-col
span=
"6"
v-if=
"!isWaiXie"
v-show=
"!buttonShow || buttonShow.MaterialReturnView === '1'"
>
<u-form-item
label=
"退料:"
prop=
"returnMa"
>
<u-form-item
label=
"退料:"
prop=
"returnMa"
>
...
@@ -1278,7 +1288,7 @@ export default {
...
@@ -1278,7 +1288,7 @@ export default {
],
],
tableColumn
:
[
tableColumn
:
[
{
{
type
:
'
selection
'
,
type
:
'
radio
'
,
width
:
60
width
:
60
},
},
{
{
...
@@ -1581,7 +1591,7 @@ export default {
...
@@ -1581,7 +1591,7 @@ export default {
if
(
this
.
isWaiXie
)
{
if
(
this
.
isWaiXie
)
{
this
.
tableColumn
=
[
this
.
tableColumn
=
[
{
{
type
:
'
selection
'
,
type
:
'
radio
'
,
width
:
60
width
:
60
},
},
{
{
...
@@ -1636,7 +1646,7 @@ export default {
...
@@ -1636,7 +1646,7 @@ export default {
}
else
{
}
else
{
this
.
tableColumn
=
[
this
.
tableColumn
=
[
{
{
type
:
'
selection
'
,
type
:
'
radio
'
,
width
:
60
width
:
60
},
},
{
{
...
@@ -2153,19 +2163,15 @@ export default {
...
@@ -2153,19 +2163,15 @@ export default {
});
});
},
},
rowClick
(
row
,
index
)
{
rowClick
(
row
,
index
)
{
this
.
$refs
.
zbtable
.
toggleRowSelection
(
row
);
this
.
$refs
.
zbtable
.
handleRadio
({
target
:{
value
:
row
.
taskWorkunitId
}}
);
this
.
curTaskInfo
=
row
;
this
.
curTaskInfo
=
row
;
},
},
getCode
(
row
)
{
getCode
(
row
)
{
this
.
usePersonData
=
row
;
this
.
usePersonData
=
row
;
this
.
userTempVisible
=
true
;
this
.
userTempVisible
=
true
;
},
},
toggleAllSelection
(
checked
,
arr
)
{
// console.log(arr, 'this.tableSelectData');
this
.
tableSelectData
=
arr
;
},
toggleRowSelection
(
checked
,
arr
)
{
toggleRowSelection
(
checked
,
arr
)
{
//
console.log(arr, 'this.tableSelectData');
console
.
log
(
arr
,
'this.tableSelectData'
);
this
.
tableSelectData
=
arr
;
this
.
tableSelectData
=
arr
;
if
(
this
.
tableSelectData
.
length
>
0
)
{
if
(
this
.
tableSelectData
.
length
>
0
)
{
...
...
uni_modules/zb-table/components/zb-table/zb-table.vue
View file @
18c4698d
...
@@ -137,7 +137,7 @@
...
@@ -137,7 +137,7 @@
</
template
>
</
template
>
<
template
v-else-if=
"ite.type === 'radio'"
>
<
template
v-else-if=
"ite.type === 'radio'"
>
<view
class=
"checkbox-item"
>
<view
class=
"checkbox-item"
>
<radio
:value=
"item[rowKey] + ''"
/>
<radio
:value=
"item[rowKey] + ''"
:checked=
"selectArr && selectArr[0] && selectArr[0][rowKey] === item[rowKey]"
/>
</view>
</view>
</
template
>
</
template
>
<
template
v-else-if=
"ite.type === 'index'"
>
<
template
v-else-if=
"ite.type === 'index'"
>
...
...
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