Browse Source

2026-06-18

优化
master
fengyuan_yang 10 hours ago
parent
commit
2b64e4c72d
  1. 2
      src/views/modules/qc/inboundNotification.vue
  2. 2
      src/views/modules/qc/outboundNotification.vue
  3. 102
      src/views/modules/warehouse/labelTransactionLog.vue

2
src/views/modules/qc/inboundNotification.vue

@ -199,7 +199,7 @@
<template v-if="!authIssue">
<el-link v-if="scope.row.orderStatus === '草稿' || scope.row.orderStatus === '编辑中'" style="cursor: pointer" @click="issueModal(scope.row)">下达</el-link>
</template>
<el-link v-if="(scope.row.orderStatus === '已关闭' || scope.row.orderStatus === '已完成') && (scope.row.orderType === '生产入库' || scope.row.orderType === '其他入库')" style="cursor: pointer" @click="openModal(scope.row)">打开</el-link>
<el-link v-if="(scope.row.orderStatus === '已关闭' || scope.row.orderStatus === '已完成')" style="cursor: pointer" @click="openModal(scope.row)">打开</el-link>
</template>
</el-table-column>
</el-table>

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

@ -200,7 +200,7 @@
<template v-if="!authIssue">
<el-link v-if="scope.row.orderStatus === '草稿' || scope.row.orderStatus === '编辑中'" style="cursor: pointer" @click="issueModal(scope.row)">下达</el-link>
</template>
<el-link v-if="(scope.row.orderStatus === '已关闭' || scope.row.orderStatus === '已完成') && (scope.row.orderType === '采购退货' || scope.row.orderType === '其他出库')" style="cursor: pointer" @click="openModal(scope.row)">打开</el-link>
<el-link v-if="(scope.row.orderStatus === '已关闭' || scope.row.orderStatus === '已完成')" style="cursor: pointer" @click="openModal(scope.row)">打开</el-link>
</template>
</el-table-column>
</el-table>

102
src/views/modules/warehouse/labelTransactionLog.vue

@ -202,17 +202,12 @@
<!-- 页签列表 -->
<el-tabs v-model="activeTab" @tab-click="handleTabClick">
<el-tab-pane label="变动明细" name="all"></el-tab-pane>
<el-tab-pane label="采购入库" name="采购入库"></el-tab-pane>
<el-tab-pane label="采购退货" name="采购退货"></el-tab-pane>
<el-tab-pane label="生产领料" name="生产领料"></el-tab-pane>
<el-tab-pane label="生产退仓" name="生产退仓"></el-tab-pane>
<el-tab-pane label="生产入库" name="生产入库"></el-tab-pane>
<el-tab-pane label="销售出库" name="销售出库"></el-tab-pane>
<el-tab-pane label="销售退货" name="销售退货"></el-tab-pane>
<el-tab-pane label="其他入库" name="其他入库"></el-tab-pane>
<el-tab-pane label="其他出库" name="其他出库"></el-tab-pane>
<el-tab-pane label="移库调拨" name="移库调拨"></el-tab-pane>
<el-tab-pane
v-for="tab in tabList"
:key="tab.value"
:label="tab.label"
:name="tab.value">
</el-tab-pane>
</el-tabs>
<!-- 展示列表 -->
@ -279,6 +274,20 @@ import { getSiteAndBuByUserName2 } from '@/api/qc/qc.js'
import { getWarehouseList } from '@/api/wms/wms.js'
import excel from '@/utils/excel-util.js' //
const DOCUMENT_TYPE_LIST = [
{ label: '采购入库', value: '采购入库' },
{ label: '采购退货', value: '采购退货' },
{ label: '生产领料', value: '生产领料' },
{ label: '生产退仓', value: '生产退仓' },
{ label: '生产入库', value: '生产入库' },
{ label: '入库倒冲', value: '入库倒冲' },
{ label: '销售出库', value: '销售出库' },
{ label: '销售退货', value: '销售退货' },
{ label: '其他入库', value: '其他入库' },
{ label: '其他出库', value: '其他出库' },
{ label: '移库调拨', value: '移库调拨' }
]
export default {
data() {
return {
@ -302,18 +311,8 @@ export default {
warehouseIdList: [] //
},
// ""
documentTypeList: [
{ label: '采购入库', value: '采购入库' },
{ label: '采购退货', value: '采购退货' },
{ label: '生产领料', value: '生产领料' },
{ label: '生产退仓', value: '生产退仓' },
{ label: '生产入库', value: '生产入库' },
{ label: '销售出库', value: '销售出库' },
{ label: '销售退货', value: '销售退货' },
{ label: '其他入库', value: '其他入库' },
{ label: '其他出库', value: '其他出库' },
{ label: '移库调拨', value: '移库调拨' }
],
documentTypeList: DOCUMENT_TYPE_LIST,
tabList: [{ label: '变动明细', value: 'all' }, ...DOCUMENT_TYPE_LIST],
activeTab: 'all',
dataList: [],
dataListLoading: false,
@ -438,25 +437,10 @@ export default {
//
getDataList() {
this.dataListLoading = true
const params = {
buNo: this.searchData.buNo,
documentType: this.activeTab === 'all' ? this.searchData.documentType : this.activeTab,
rollNo: this.searchData.rollNo,
partNo: this.searchData.partNo,
partDesc: this.searchData.partDesc,
spec: this.searchData.spec,
startDate: this.searchData.startDate || '',
endDate: this.searchData.endDate || '',
transactionId: this.searchData.transactionId,
documentNo: this.searchData.documentNo,
orderNo: this.searchData.orderNo,
orderLineNo: this.searchData.orderLineNo,
batchNo: this.searchData.batchNo,
syncedFlag: this.searchData.syncedFlag,
warehouseIdList: this.searchData.warehouseIdList, //
const params = this.buildQueryParams({
page: this.pageIndex,
limit: this.pageSize
}
})
labelTransactionLogList(params).then(({ data }) => {
this.dataListLoading = false
@ -508,21 +492,7 @@ export default {
}
//
const exportParams = {
buNo: this.searchData.buNo,
documentType: this.activeTab === 'all' ? this.searchData.documentType : this.activeTab,
rollNo: this.searchData.rollNo,
partNo: this.searchData.partNo,
partDesc: this.searchData.partDesc,
spec: this.searchData.spec,
startDate: this.searchData.startDate || '',
endDate: this.searchData.endDate || '',
transactionId: this.searchData.transactionId,
documentNo: this.searchData.documentNo,
orderNo: this.searchData.orderNo,
orderLineNo: this.searchData.orderLineNo,
batchNo: this.searchData.batchNo,
syncedFlag: this.searchData.syncedFlag,
warehouseIdList: this.searchData.warehouseIdList, //
...this.buildQueryParams(),
userName: this.$store.state.user.name,
page: 1,
limit: 999999 // 使-1SQL ServerFETCH
@ -563,6 +533,28 @@ export default {
this.dataListSelections = val
},
//
buildQueryParams(extraParams = {}) {
return {
buNo: this.searchData.buNo,
documentType: this.activeTab === 'all' ? this.searchData.documentType : this.activeTab,
rollNo: this.searchData.rollNo,
partNo: this.searchData.partNo,
partDesc: this.searchData.partDesc,
spec: this.searchData.spec,
startDate: this.searchData.startDate || '',
endDate: this.searchData.endDate || '',
transactionId: this.searchData.transactionId,
documentNo: this.searchData.documentNo,
orderNo: this.searchData.orderNo,
orderLineNo: this.searchData.orderLineNo,
batchNo: this.searchData.batchNo,
syncedFlag: this.searchData.syncedFlag,
warehouseIdList: this.searchData.warehouseIdList, //
...extraParams
}
},
//
exceptionRetryHandle() {
if (this.dataListSelections.length === 0) {

Loading…
Cancel
Save