Browse Source

2025-11-13

优化
master
fengyuan_yang 5 months ago
parent
commit
38ba98a6c2
  1. 34
      src/views/modules/boxManage/com_saleBoxManage_boxing.vue
  2. 34
      src/views/modules/boxManage/com_saleBoxManage_pallet.vue

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

@ -12,21 +12,6 @@
border border
v-loading="dataListLoading" v-loading="dataListLoading"
style="width: 100%; "> style="width: 100%; ">
<el-table-column
header-align="center"
align="center"
width="150"
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 <el-table-column
v-for="(item,index) in columnList" :key="index" v-for="(item,index) in columnList" :key="index"
:sortable="item.columnSortable" :sortable="item.columnSortable"
@ -39,8 +24,22 @@
:label="item.columnLabel"> :label="item.columnLabel">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="!item.columnHidden"> {{scope.row[item.columnProp]}}</span> <span v-if="!item.columnHidden"> {{scope.row[item.columnProp]}}</span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
style="width: 100px; height: 80px"/></span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
</template>
</el-table-column>
<el-table-column
header-align="center"
align="center"
width="150"
label="操作">
<template slot-scope="scope">
<el-link style="cursor: pointer" v-if="scope.row.status!=='未封箱'" @click="boxModelOpen(scope.row)">查看</el-link>
<template v-if="searchData.orderStatus === '待包装'">
<el-link style="cursor: pointer" v-if="scope.row.status!=='已封箱'"@click="boxModelOpen(scope.row)">装箱</el-link>
<el-link style="cursor: pointer" v-if="scope.row.status==='未封箱'" @click="fengxiang(scope.row)">封箱</el-link>
<el-link style="cursor: pointer" v-if="scope.row.status==='已封箱'" @click="chaixiang(scope.row)">拆箱</el-link>
<el-link style="cursor: pointer" v-if="scope.row.status!=='已封箱'" @click="deleteBox(scope.row)">删除</el-link>
</template>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -127,7 +126,6 @@
min-width="100" min-width="100"
label="装箱人"> label="装箱人">
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-footer style="height:40px;margin-top: 25px;text-align:center"> <el-footer style="height:40px;margin-top: 25px;text-align:center">
<el-button @click="boxModelFlag = false">关闭</el-button> <el-button @click="boxModelFlag = false">关闭</el-button>

34
src/views/modules/boxManage/com_saleBoxManage_pallet.vue

@ -12,21 +12,6 @@
border border
v-loading="dataListLoading" v-loading="dataListLoading"
style="width: 100%; "> style="width: 100%; ">
<el-table-column
header-align="center"
align="center"
width="150"
label="操作">
<template slot-scope="scope">
<a type="text" size="small" v-if="scope.row.status==='已封托'" @click="palletModelOpen(scope.row)">查看</a>
<template v-if="searchData.orderStatus === '待包装'">
<a type="text" size="small" v-if="scope.row.status!=='已封托'" @click="palletModelOpen(scope.row)">装托</a>
<a type="text" size="small" v-if="scope.row.status==='未封托'" @click="fengTuo(scope.row)">封托</a>
<a type="text" size="small" v-if="scope.row.status==='已封托'" @click="chaiTuo(scope.row)">拆托</a>
<a type="text" size="small" v-if="scope.row.status!=='已封托'" @click="deletePallet(scope.row)">删除</a>
</template>
</template>
</el-table-column>
<el-table-column <el-table-column
v-for="(item,index) in columnList" :key="index" v-for="(item,index) in columnList" :key="index"
:sortable="item.columnSortable" :sortable="item.columnSortable"
@ -39,8 +24,22 @@
:label="item.columnLabel"> :label="item.columnLabel">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="!item.columnHidden"> {{scope.row[item.columnProp]}}</span> <span v-if="!item.columnHidden"> {{scope.row[item.columnProp]}}</span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
style="width: 100px; height: 80px"/></span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
</template>
</el-table-column>
<el-table-column
header-align="center"
align="center"
width="150"
label="操作">
<template slot-scope="scope">
<el-link style="cursor: pointer" v-if="scope.row.status==='已封托'" @click="palletModelOpen(scope.row)">查看</el-link>
<template v-if="searchData.orderStatus === '待包装'">
<el-link style="cursor: pointer" v-if="scope.row.status!=='已封托'" @click="palletModelOpen(scope.row)">装托</el-link>
<el-link style="cursor: pointer" v-if="scope.row.status==='未封托'" @click="fengTuo(scope.row)">封托</el-link>
<el-link style="cursor: pointer" v-if="scope.row.status==='已封托'" @click="chaiTuo(scope.row)">拆托</el-link>
<el-link style="cursor: pointer" v-if="scope.row.status!=='已封托'" @click="deletePallet(scope.row)">删除</el-link>
</template>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -117,7 +116,6 @@
<el-link style="cursor: pointer" @click="viewBoxRollDetail(scope.row)">装箱明细</el-link> <el-link style="cursor: pointer" @click="viewBoxRollDetail(scope.row)">装箱明细</el-link>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-footer style="height:40px;margin-top: 25px;text-align:center"> <el-footer style="height:40px;margin-top: 25px;text-align:center">
<el-button @click="palletModelFlag = false">关闭</el-button> <el-button @click="palletModelFlag = false">关闭</el-button>

Loading…
Cancel
Save