Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
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
周远喜
mes-ui
Commits
a571d877
Commit
a571d877
authored
Apr 15, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mesplan order handel
parent
3608078b
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
225 additions
and
163 deletions
+225
-163
orderSplit.vue
components/orderOperator/orderSplit.vue
+1
-1
index.vue
pages/handle/index.vue
+127
-140
index.vue
pages/mesPlan/index.vue
+81
-19
send.vue
pages/mesPlan/send.vue
+15
-2
split.vue
pages/mesPlan/split.vue
+1
-1
No files found.
components/orderOperator/orderSplit.vue
View file @
a571d877
...
...
@@ -61,7 +61,7 @@
type=
"daterange"
placeholder=
"请选择日期"
style=
"width:240px"
transfer=
"true"
:
transfer=
"true"
:options=
"optionsDate"
@
on-change=
"inputOrderCat(row,index)"
></DatePicker>
...
...
pages/handle/index.vue
View file @
a571d877
This diff is collapsed.
Click to expand it.
pages/mesPlan/index.vue
View file @
a571d877
...
...
@@ -18,6 +18,7 @@
<DataGrid
:action=
"action"
:columns=
"columns"
:conditions=
"easySearch"
ref=
"grid"
@
on-selection-change=
"onSelect"
:batch=
"true"
...
...
@@ -114,8 +115,10 @@ export default {
easySearch
:
{
keys
:
{
op
:
"mesCode,productName"
,
value
:
null
}
value
:
null
,
default
:
true
},
productId
:
{
op
:
"In"
,
value
:
""
}
},
addModal
:
false
,
editModal
:
false
,
...
...
@@ -303,7 +306,14 @@ export default {
{
attrs
:
{
oprate
:
"edit"
},
on
:
{
click
:
()
=>
this
.
edit
(
params
.
row
)
},
style
:
params
.
row
.
_disabled
||
params
.
row
.
id
!=
params
.
row
.
rootId
?
"display:none"
:
""
style
:
(
params
.
row
.
status
==
1
&&
params
.
row
.
id
==
params
.
row
.
rootId
&&
params
.
row
.
divideMark
!=
0
)
||
params
.
row
.
id
!=
params
.
row
.
rootId
||
params
.
row
.
status
!=
1
?
"display:none"
:
""
},
"编辑"
),
...
...
@@ -312,7 +322,14 @@ export default {
{
attrs
:
{
oprate
:
"remove"
},
on
:
{
click
:
()
=>
this
.
remove
(
params
.
row
)
},
style
:
params
.
row
.
_disabled
?
"display:none"
:
""
style
:
(
params
.
row
.
status
==
1
&&
params
.
row
.
id
==
params
.
row
.
rootId
&&
params
.
row
.
divideMark
!=
0
)
||
params
.
row
.
status
!=
1
// ||(params.row.id != params.row.rootId && this.sondeletecheck1(params.row.rootId)>0)
?
"display:none"
:
""
},
"删除"
),
...
...
@@ -321,7 +338,13 @@ export default {
{
attrs
:
{
oprate
:
"detail"
},
on
:
{
click
:
()
=>
this
.
split
(
params
.
row
)
},
style
:
params
.
row
.
_disabled
&&
params
.
row
.
status
!=
1
?
"display:none"
:
""
style
:
(
params
.
row
.
divideMark
!=
0
&&
params
.
row
.
id
==
params
.
row
.
rootId
)
||
params
.
row
.
status
!=
1
||
params
.
row
.
quantity
<=
1
?
"display:none"
:
""
},
"分解"
)
...
...
@@ -371,7 +394,8 @@ export default {
metCodesStrTxt
:
""
,
actIds
:
[],
//批量处理时ids
actMescodes
:
[],
delNum
:
0
delNum
:
0
,
//判断是否可以进行修改
arrayIds
:
[]
//选择列表后的ids
};
},
created
()
{
...
...
@@ -560,12 +584,35 @@ export default {
},
//确定派发
sendOk
()
{
this
.
$refs
.
orderS
plit
.
$refs
[
"formValidate"
].
validate
(
valid
=>
{
this
.
$refs
.
orderS
end
.
$refs
[
"formValidate"
].
validate
(
valid
=>
{
if
(
valid
)
{
let
objInfo
=
this
.
$refs
.
orderSplit
.
returnData
();
let
params
=
{
ids
:
this
.
delIds
};
let
objInfo
=
this
.
$refs
.
orderSend
.
returnData
();
let
ids
=
this
.
arrayIds
;
let
parms
=
[];
ids
.
forEach
(
e
=>
{
objInfo
.
id
=
e
;
parms
.
push
(
objInfo
);
});
Api
.
mesorderdistribute
(
parms
)
.
then
(
r
=>
{
if
(
r
.
success
)
{
if
(
r
.
result
)
{
this
.
$refs
.
grid
.
load
();
this
.
sendModal
=
false
;
this
.
$Message
.
success
(
"派发成功"
);
}
else
{
this
.
sendModal
=
false
;
this
.
$Message
.
error
(
"派发失败"
);
}
}
else
{
this
.
sendModal
=
false
;
this
.
$Message
.
error
(
"派发失败"
);
}
})
.
catch
(
err
=>
{
this
.
sendModal
=
false
;
this
.
$Message
.
error
(
"操作失败"
);
});
}
});
},
...
...
@@ -591,7 +638,7 @@ export default {
let
metCodesSingle
=
[];
//没有子订单的订单
let
metCodesFather
=
[];
//有子订单的原始订单
this
.
actIds
=
[];
alert
(
JSON
.
stringify
(
this
.
rowDataArry
))
//alert(JSON.stringify(this.rowDataArry));
if
(
this
.
rowDataArry
.
length
>
0
)
{
this
.
rowDataArry
.
forEach
(
data
=>
{
this
.
delNum
=
0
;
...
...
@@ -629,6 +676,19 @@ export default {
this
.
delNum
+=
1
;
}
});
},
//删除前判断子订单
sondeletecheck1
(
code
)
{
let
param
=
{
id
:
code
};
let
delStaut
=
0
Api
.
sondeletecheck
(
param
).
then
(
res
=>
{
if
(
res
.
result
==
1
)
{
//可以删除
delStaut
=
0
;
}
else
{
delStaut
=
1
;
}
});
return
delStaut
},
//删除确定
removeOk
()
{
...
...
@@ -694,7 +754,9 @@ export default {
this
.
orderSearchForm
.
productId
=
"-1"
;
this
.
orderSearchForm
.
productName
=
""
;
}
//this.$refs.CustomTable.easySearch(this.orderSearchForm);
this
.
easySearch
.
productId
.
value
=
this
.
orderSearchForm
.
productId
;
this
.
$refs
.
grid
.
easySearch
();
}
},
//得到此树节点下所有是产品的productId
...
...
@@ -750,11 +812,11 @@ export default {
//alert(JSON.stringify(a));
//批量选择
let
selectRows
=
a
;
this
.
arr
PartPkId
=
[];
this
.
arr
ayIds
=
[];
this
.
rowDataArry
=
a
;
//
selectRows.forEach(e => {
// this.arrPartPkId.push(e.part_task_pk
);
//
});
selectRows
.
forEach
(
e
=>
{
this
.
arrayIds
.
push
(
e
.
id
);
});
}
//list end
}
...
...
pages/mesPlan/send.vue
View file @
a571d877
...
...
@@ -169,10 +169,23 @@ export default {
return
objStr
;
},
getTimeProductPFD
(
value
)
{
this
.
orderForm
.
ProductingPreparationFinishDate
=
value
;
this
.
orderForm
.
ProductingPreparationFinishDate
=
this
.
getFormatDateEnd
(
value
)
;
},
getTimeQuotationFD
(
value
)
{
this
.
orderForm
.
QuotationFinishDate
=
value
;
this
.
orderForm
.
QuotationFinishDate
=
this
.
getFormatDateEnd
(
value
);
},
getFormatDateEnd
(
dates
)
{
const
d
=
new
Date
(
dates
);
const
resDate
=
d
.
getFullYear
()
+
"-"
+
this
.
p
(
d
.
getMonth
()
+
1
)
+
"-"
+
this
.
p
(
d
.
getDate
())
+
" 23:59:59"
;
return
resDate
;
},
p
(
s
)
{
return
s
<
10
?
"0"
+
s
:
s
;
}
},
created
()
{
...
...
pages/mesPlan/split.vue
View file @
a571d877
...
...
@@ -55,7 +55,7 @@
type=
"daterange"
placeholder=
"请选择日期"
style=
"width:240px"
transfer=
"true"
:
transfer=
"true"
:options=
"optionsDate"
@
on-change=
"inputOrderCat(row,index)"
></DatePicker>
...
...
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