Browse Source

2025-10-31

优化
master
fengyuan_yang 2 months ago
parent
commit
3d97747496
  1. 31
      src/views/modules/boxManage/saleBoxManage.vue
  2. 18
      src/views/modules/qc/outboundNotification.vue

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

@ -22,6 +22,12 @@
<el-option label="已出库" value="已出库"></el-option> <el-option label="已出库" value="已出库"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item :label="'是否送检'">
<el-select v-model="searchData.inspectionFlag" clearable style="width: 100px">
<el-option label="是" value="Y"></el-option>
<el-option label="否" value="N"></el-option>
</el-select>
</el-form-item>
<el-form-item :label="' '" > <el-form-item :label="' '" >
<el-button class="customer-bun-min" type="primary" @click="getMainData" style="">查询</el-button> <el-button class="customer-bun-min" type="primary" @click="getMainData" style="">查询</el-button>
<el-button @click="exportExcel()" type="primary" style="margin-left: 2px">{{'导出'}}</el-button> <el-button @click="exportExcel()" type="primary" style="margin-left: 2px">{{'导出'}}</el-button>
@ -51,7 +57,8 @@
:min-width="item.columnWidth" :min-width="item.columnWidth"
: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 && item.columnProp !== 'inspectionFlag'"> {{scope.row[item.columnProp]}}</span>
<span v-if="!item.columnHidden && item.columnProp === 'inspectionFlag'"> {{scope.row[item.columnProp] === 'Y' ? '' : scope.row[item.columnProp] === 'N' ? '' : ''}}</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> </template>
</el-table-column> </el-table-column>
@ -62,7 +69,7 @@
width="80" width="80"
label="操作"> label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
<el-link v-if="scope.row.orderStatus === '待包装'" style="cursor: pointer" @click="handleComplete(scope.row)">完成</el-link>
<el-link v-if="scope.row.orderStatus === '待包装'" style="cursor: pointer" @click="handleComplete(scope.row)">送检</el-link>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -358,6 +365,7 @@ export default {
orderType:'销售出库', orderType:'销售出库',
orderStatus: '', orderStatus: '',
orderStatusList: ['待包装'], orderStatusList: ['待包装'],
inspectionFlag: '',
buNo:'', buNo:'',
customerName:'', customerName:'',
site:this.$store.state.user.site, site:this.$store.state.user.site,
@ -446,6 +454,24 @@ export default {
status: true, status: true,
fixed: false fixed: false
}, },
{
userId: this.$store.state.user.name,
functionId: this.functionId,
serialNumber: '750001Table1InspectionFlag',
tableId: "750001Table1",
tableName: "销售发货清单",
columnProp: "inspectionFlag",
headerAlign: "center",
align: "center",
columnLabel: "是否送检",
columnWidth: '80',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false
},
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: this.functionId, functionId: this.functionId,
@ -1128,6 +1154,7 @@ export default {
site: row.site, site: row.site,
buNo: row.buNo, buNo: row.buNo,
orderNo: row.orderNo, orderNo: row.orderNo,
partNo: row.partNo,
customerId: row.customerId, customerId: row.customerId,
relatedOrderNo: row.relatedOrderNo, relatedOrderNo: row.relatedOrderNo,
relatedOrderLineNo: row.relatedOrderLineNo, relatedOrderLineNo: row.relatedOrderLineNo,

18
src/views/modules/qc/outboundNotification.vue

@ -18,7 +18,7 @@
<el-option label="待检验" value="待检验"></el-option> <el-option label="待检验" value="待检验"></el-option>
<el-option label="编辑中" value="编辑中"></el-option> <el-option label="编辑中" value="编辑中"></el-option>
<el-option label="待包装" value="待包装"></el-option> <el-option label="待包装" value="待包装"></el-option>
<el-option label="待入库" value="待入库"></el-option>
<el-option label="待出库" value="待出库"></el-option>
<el-option label="已完成" value="已完成"></el-option> <el-option label="已完成" value="已完成"></el-option>
<el-option label="已关闭" value="已关闭"></el-option> <el-option label="已关闭" value="已关闭"></el-option>
<el-option label="已归档" value="已归档"></el-option> <el-option label="已归档" value="已归档"></el-option>
@ -1259,19 +1259,19 @@
this.$message.warning('请勾选要包装的单据!') this.$message.warning('请勾选要包装的单据!')
return return
} }
// """" // """"
const invalidOrders = this.outboundSelection.filter(item => { const invalidOrders = this.outboundSelection.filter(item => {
return item.orderType !== '销售出库' || item.orderStatus !== '待出库' return item.orderType !== '销售出库' || item.orderStatus !== '待出库'
}) })
if (invalidOrders.length > 0) { if (invalidOrders.length > 0) {
this.$message.warning('只能对"销售出库"类型且状态为"待出库"的单据进行包装操作!') this.$message.warning('只能对"销售出库"类型且状态为"待出库"的单据进行包装操作!')
return return
} }
// //
this.$confirm(`确定将选中的 ${this.outboundSelection.length} 条单据状态更新为"待包装"?`, '提示', {
this.$confirm(`是否重新包装"?`, '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
@ -1283,20 +1283,20 @@
orderNo: item.orderNo, orderNo: item.orderNo,
orderStatus: '待包装' orderStatus: '待包装'
})) }))
this.batchUpdateOrderStatus(updateList) this.batchUpdateOrderStatus(updateList)
}).catch(() => { }).catch(() => {
// //
}) })
}, },
// //
batchUpdateOrderStatus (updateList) { batchUpdateOrderStatus (updateList) {
// API使 // API使
let successCount = 0 let successCount = 0
let errorCount = 0 let errorCount = 0
const totalCount = updateList.length const totalCount = updateList.length
const updatePromises = updateList.map(item => { const updatePromises = updateList.map(item => {
return this.$http({ return this.$http({
url: this.$http.adornUrl('/outboundNotification/updateOrderStatus'), url: this.$http.adornUrl('/outboundNotification/updateOrderStatus'),
@ -1312,7 +1312,7 @@
errorCount++ errorCount++
}) })
}) })
Promise.all(updatePromises).then(() => { Promise.all(updatePromises).then(() => {
if (errorCount === 0) { if (errorCount === 0) {
this.$message.success(`成功更新 ${successCount} 条单据状态为"待包装"`) this.$message.success(`成功更新 ${successCount} 条单据状态为"待包装"`)

Loading…
Cancel
Save