Commit 04f4148f authored by hubaoshan's avatar hubaoshan

wcp

parent 1fbeb74d
...@@ -90,6 +90,16 @@ ...@@ -90,6 +90,16 @@
<el-dialog class="pdDel" :title="title" :visible.sync="openDel" width="1300px" append-to-body> <el-dialog class="pdDel" :title="title" :visible.sync="openDel" width="1300px" append-to-body>
<div class="top"> <div class="top">
<div class="oneButtion"> <div class="oneButtion">
<el-button
id="primary_del"
:class="selectedButton === '无' ? 'button_rowBtn_action' : ''"
@click="handleButton('无')"
>
<div class="buttionText">
<span></span>
<span style="color: red">({{ total0 }})</span>
</div>
</el-button>
<el-button <el-button
id="primary_del" id="primary_del"
ref="buttonAAAA" ref="buttonAAAA"
...@@ -151,16 +161,6 @@ ...@@ -151,16 +161,6 @@
<span style="color: red">({{ totalF }})</span> <span style="color: red">({{ totalF }})</span>
</div> </div>
</el-button> </el-button>
<el-button
id="primary_del"
:class="selectedButton === '0' ? 'button_rowBtn_action' : ''"
@click="handleButton('0')"
>
<div class="buttionText">
<span></span>
<span style="color: red">({{ total0 }})</span>
</div>
</el-button>
</div> </div>
</div> </div>
<br> <br>
...@@ -206,14 +206,13 @@ ...@@ -206,14 +206,13 @@
title="选择人员" title="选择人员"
:visible.sync="dialogVisible" :visible.sync="dialogVisible"
width="500px" width="500px"
@close="handleDialogClose"
> >
<div class="button-container"> <div class="button-container">
<el-button <el-button
v-for="item in palletList" v-for="item in palletList"
:key="item.dictValue" :key="item.dictValue"
:type="pallet === item.dictLabel ? 'primary' : 'default'" :type="buttonLable(pallet) === item.dictLabel ? 'primary' : 'default'"
style="width: 130px;margin-bottom: 10px;margin-left: 10px" style="width: 60px;margin-bottom: 10px;margin-left: 10px"
@click="handleSelect(item.dictValue)" @click="handleSelect(item.dictValue)"
> >
{{ item.dictLabel }} {{ item.dictLabel }}
...@@ -231,7 +230,7 @@ export default { ...@@ -231,7 +230,7 @@ export default {
data() { data() {
return { return {
dialogVisible: false, dialogVisible: false,
pallet: '', pallet: '0',
palletList: [], palletList: [],
listA: [], listA: [],
listB: [], listB: [],
...@@ -305,19 +304,17 @@ export default { ...@@ -305,19 +304,17 @@ export default {
}) })
}, },
handleView() { handleView() {
getInfo().then(response => { const queryParams = {
const queryParams = { businessId: this.userNew,
businessId: response.data.user.businessId, orderSn: this.$route.query.orderSn,
orderSn: this.$route.query.orderSn, page: this.queryPd.page,
page: this.queryPd.page, rows: this.queryPd.rows
rows: this.queryPd.rows }
} getViewList(queryParams).then(response => {
getViewList(queryParams).then(response => { this.queryPd.PdList = response.data.records
this.queryPd.PdList = response.data.records this.Pdtotal = response.data.total
this.Pdtotal = response.data.total this.title = '查看'
this.title = '查看' this.open = true
this.open = true
})
}) })
if (this.open === false) { if (this.open === false) {
this.queryPd.page = 1 this.queryPd.page = 1
...@@ -417,7 +414,16 @@ export default { ...@@ -417,7 +414,16 @@ export default {
this.title = '删除' this.title = '删除'
this.openDel = true this.openDel = true
}, },
resetList() {
this.selectedButton = ''
this.listZero = []
this.listA = []
this.listB = []
this.listC = []
this.listD = []
this.listE = []
this.listF = []
},
handlePa() { handlePa() {
getInfo().then(response => { getInfo().then(response => {
const queryParams = { const queryParams = {
...@@ -493,12 +499,12 @@ export default { ...@@ -493,12 +499,12 @@ export default {
pallet: this.pallet, pallet: this.pallet,
orderSn: this.moveSn orderSn: this.moveSn
} }
console.log('obj', obj)
updatePd(obj).then(res => { updatePd(obj).then(res => {
this.valuePd = res.code === 200 ? 'bacc-green' : '' this.valuePd = res.code === 200 ? 'bacc-green' : ''
}) })
this.queryForm.value = '' this.queryForm.value = ''
this.getList() this.getList()
this.valuePd = 'bacc-red'
}, },
deletePd() { deletePd() {
const queryParams = { const queryParams = {
...@@ -520,6 +526,9 @@ export default { ...@@ -520,6 +526,9 @@ export default {
message: '删除成功', message: '删除成功',
type: 'success' type: 'success'
}) })
this.openDel = false
this.queryPdDel.PdDelList = []
this.resetList()
}) })
this.handleDel() this.handleDel()
}, },
...@@ -530,8 +539,6 @@ export default { ...@@ -530,8 +539,6 @@ export default {
this.pallet = value this.pallet = value
this.dialogVisible = false this.dialogVisible = false
}, },
handleDialogClose() {
}
} }
} }
</script> </script>
...@@ -543,7 +550,7 @@ export default { ...@@ -543,7 +550,7 @@ export default {
.top{ .top{
position: relative; position: relative;
left: 50px; left: 50px;
width: 250px; width: 300px;
} }
.clearRegion{ .clearRegion{
position: relative; position: relative;
...@@ -560,9 +567,9 @@ export default { ...@@ -560,9 +567,9 @@ export default {
bottom: initial; bottom: initial;
} }
.oneButtion{ .oneButtion{
width: 200px; width: 350px;
position: relative; position: relative;
right: -40px; right: 50px;
} }
.buttonRegion { .buttonRegion {
margin-top: 20px; margin-top: 20px;
...@@ -577,16 +584,18 @@ export default { ...@@ -577,16 +584,18 @@ export default {
width: 80px; width: 80px;
background-color: #f6c761; background-color: #f6c761;
border-color: #f6c761; border-color: #f6c761;
position: relative;
left: -20px;
} }
.button_rowBtn_action{ .button_rowBtn_action{
background-color: #46bcf3 !important; background-color: #46bcf3 !important;
border-color:#46bcf3; border-color:#46bcf3 !important;
color: white; color: white;
} }
#primary_del{ #primary_del{
color: black; color: black;
background-color: #808080; /*background-color: #808080;*/
border-color:#808080; /*border-color:#808080;*/
margin-left: 10px; margin-left: 10px;
margin-bottom: 10px; margin-bottom: 10px;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment