Browse Source

2025-10-16

销售发货装箱优化
master
fengyuan_yang 3 months ago
parent
commit
849435a975
  1. 7
      src/views/modules/boxManage/com_saleBoxManage_boxing.vue
  2. 5
      src/views/modules/boxManage/saleBoxManage.vue

7
src/views/modules/boxManage/com_saleBoxManage_boxing.vue

@ -3,7 +3,7 @@
<el-form label-position="top" style="margin-top: 1px; margin-left: 0px;">
<el-form-item >
<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>
<el-table
@ -19,11 +19,13 @@
label="操作">
<template slot-scope="scope">
<a type="text" size="small" v-if="scope.row.status!=='未封箱'" @click="boxModelOpen(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>
</el-table-column>
<el-table-column
v-for="(item,index) in columnList" :key="index"
@ -154,6 +156,7 @@ export default {
buNo: '',
orderNo: '',
boxType: '',
orderStatus: '',
height:'300',
page: 1,
limit: 1000
@ -311,14 +314,12 @@ export default {
this.searchData = JSON.parse(JSON.stringify(inData));
//
this.searchTable();
},
searchTable(){
searchSoReceiveBoxesData(this.searchData).then(({data}) => {
//
if (data && data.code == 0) {
this.dataList = data.rows
console.log(this.dataList)
} else {
this.dataList = [];
}

5
src/views/modules/boxManage/saleBoxManage.vue

@ -80,7 +80,7 @@
<el-tabs v-model="activeName" style="margin-top: 0px; width: 99%;" @tab-click="tabClick" class="customer-tab" type="border-card">
<el-tab-pane label="盒清单" name="cases">
<el-form label-position="top" style="margin-left: 2px;">
<el-form v-if="currentRow.orderStatus === '待包装'" label-position="top" style="margin-left: 2px;">
<el-button type="primary" size="small" @click="openCaseDialog">新增</el-button>
<el-button type="danger" size="small" @click="deleteCaseRecord">删除</el-button>
</el-form>
@ -773,7 +773,8 @@ export default {
buNo: this.currentRow.buNo,
orderNo: this.currentRow.orderNo,
boxType: this.currentRow.orderType,
height:Number(this.height)-25
height:Number(this.height)-25,
orderStatus: this.currentRow.orderStatus
}
this.$refs.boxing.init(inData)
},

Loading…
Cancel
Save