|
|
@ -3,7 +3,7 @@ |
|
|
<el-form label-position="top" style="margin-top: 1px; margin-left: 0px;"> |
|
|
<el-form label-position="top" style="margin-top: 1px; margin-left: 0px;"> |
|
|
<el-form-item > |
|
|
<el-form-item > |
|
|
<el-button type="primary" @click="searchTable()">查询</el-button> |
|
|
<el-button type="primary" @click="searchTable()">查询</el-button> |
|
|
<el-button type="primary" @click="newBox()">新增箱</el-button> |
|
|
|
|
|
|
|
|
<el-button v-if="searchData.orderStatus === '待包装'" type="primary" @click="newBox()">新增箱</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-table |
|
|
<el-table |
|
|
@ -19,10 +19,12 @@ |
|
|
label="操作"> |
|
|
label="操作"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<a type="text" size="small" v-if="scope.row.status!=='未封箱'" @click="boxModelOpen(scope.row)">查看</a> |
|
|
<a type="text" size="small" v-if="scope.row.status!=='未封箱'" @click="boxModelOpen(scope.row)">查看</a> |
|
|
<a type="text" size="small" v-if="scope.row.status!=='已封箱'"@click="boxModelOpen(scope.row)">装箱</a> |
|
|
|
|
|
<a type="text" size="small" v-if="scope.row.status==='未封箱'" @click="fengxiang(scope.row)">封箱</a> |
|
|
|
|
|
<a type="text" size="small" v-if="scope.row.status==='已封箱'" @click="chaixiang(scope.row)">拆箱</a> |
|
|
|
|
|
<a type="text" size="small" v-if="scope.row.status!=='已封箱'" @click="deleteBox(scope.row)">删除</a> |
|
|
|
|
|
|
|
|
<template v-if="searchData.orderStatus === '待包装'"> |
|
|
|
|
|
<a type="text" size="small" v-if="scope.row.status!=='已封箱'"@click="boxModelOpen(scope.row)">装箱</a> |
|
|
|
|
|
<a type="text" size="small" v-if="scope.row.status==='未封箱'" @click="fengxiang(scope.row)">封箱</a> |
|
|
|
|
|
<a type="text" size="small" v-if="scope.row.status==='已封箱'" @click="chaixiang(scope.row)">拆箱</a> |
|
|
|
|
|
<a type="text" size="small" v-if="scope.row.status!=='已封箱'" @click="deleteBox(scope.row)">删除</a> |
|
|
|
|
|
</template> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column |
|
|
<el-table-column |
|
|
@ -154,6 +156,7 @@ export default { |
|
|
buNo: '', |
|
|
buNo: '', |
|
|
orderNo: '', |
|
|
orderNo: '', |
|
|
boxType: '', |
|
|
boxType: '', |
|
|
|
|
|
orderStatus: '', |
|
|
height:'300', |
|
|
height:'300', |
|
|
page: 1, |
|
|
page: 1, |
|
|
limit: 1000 |
|
|
limit: 1000 |
|
|
@ -311,14 +314,12 @@ export default { |
|
|
this.searchData = JSON.parse(JSON.stringify(inData)); |
|
|
this.searchData = JSON.parse(JSON.stringify(inData)); |
|
|
//刷新表格 |
|
|
//刷新表格 |
|
|
this.searchTable(); |
|
|
this.searchTable(); |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
searchTable(){ |
|
|
searchTable(){ |
|
|
searchSoReceiveBoxesData(this.searchData).then(({data}) => { |
|
|
searchSoReceiveBoxesData(this.searchData).then(({data}) => { |
|
|
//区分请求成功和失败的状况 |
|
|
//区分请求成功和失败的状况 |
|
|
if (data && data.code == 0) { |
|
|
if (data && data.code == 0) { |
|
|
this.dataList = data.rows |
|
|
this.dataList = data.rows |
|
|
console.log(this.dataList) |
|
|
|
|
|
} else { |
|
|
} else { |
|
|
this.dataList = []; |
|
|
this.dataList = []; |
|
|
} |
|
|
} |
|
|
|