Browse Source

2026-02-09

收货入库和拣货出库增加部门
master
fengyuan_yang 3 weeks ago
parent
commit
cfa025e9af
  1. 7
      src/views/modules/orderIssure/soIssueNotify/searchIssureNotify.vue
  2. 2
      src/views/modules/qc/inboundNotification.vue
  3. 18
      src/views/modules/qc/outboundNotification.vue
  4. 32
      src/views/modules/report/inboundNotificationReport.vue
  5. 32
      src/views/modules/report/outboundNotificationReport.vue

7
src/views/modules/orderIssure/soIssueNotify/searchIssureNotify.vue

@ -468,7 +468,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item :label="'出库类别'">
<el-form-item :label="'出库类别'" prop="category">
<el-select v-model="notifyData.category" clearable placeholder="请选择" style="width: 100%"> <el-select v-model="notifyData.category" clearable placeholder="请选择" style="width: 100%">
<el-option <el-option
v-for="item in categoryList" v-for="item in categoryList"
@ -1168,6 +1168,9 @@
], ],
workCenterNo: [ workCenterNo: [
{ required: true, message: '请选择车间', trigger: 'change' } { required: true, message: '请选择车间', trigger: 'change' }
],
category: [
{ required: true, message: '请选择出库类别', trigger: 'change' }
] ]
}, },
closeData:{ closeData:{
@ -4162,7 +4165,7 @@
loadCategoryList () { loadCategoryList () {
getOutboundCategoryList({}).then(({data}) => { getOutboundCategoryList({}).then(({data}) => {
if (data && data.code === 0) { if (data && data.code === 0) {
this.categoryList = data.rows || []
this.categoryList = (data.rows || []).sort((a, b) => (a.crdcode || '').localeCompare(b.crdcode || ''))
} }
}) })
}, },

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

@ -2219,7 +2219,7 @@
loadCategoryList () { loadCategoryList () {
getInboundCategoryList({}).then(({data}) => { getInboundCategoryList({}).then(({data}) => {
if (data && data.code === 0) { if (data && data.code === 0) {
this.categoryList = data.rows || []
this.categoryList = (data.rows || []).sort((a, b) => (a.crdcode || '').localeCompare(b.crdcode || ''))
} }
}) })
}, },

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

@ -58,6 +58,18 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4">
<el-form-item label="部门">
<el-select v-model="searchData.departmentNo" placeholder="请选择" clearable style="width: 100%">
<el-option
v-for="item in departmentList"
:key="item.departmentNo"
:label="item.departmentDesc"
:value="item.departmentNo">
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="4"> <el-col :span="4">
<el-form-item label="要求出库日期(起)"> <el-form-item label="要求出库日期(起)">
<el-date-picker <el-date-picker
@ -836,6 +848,7 @@
orderType: '', orderType: '',
orderStatus: '', orderStatus: '',
orderStatusList: ['草稿'], orderStatusList: ['草稿'],
departmentNo: '', //
startDate: '', startDate: '',
endDate: '', endDate: '',
createdStartDate: '', // createdStartDate: '', //
@ -1345,6 +1358,8 @@
this.getSiteAndBuByUserName() this.getSiteAndBuByUserName()
// //
this.favoriteIsOk() this.favoriteIsOk()
//
this.loadDepartmentList()
// //
this.getTableUserColumn(this.$route.meta.menuId+'table1',1) this.getTableUserColumn(this.$route.meta.menuId+'table1',1)
this.getTableUserColumn(this.$route.meta.menuId+'table2',2) this.getTableUserColumn(this.$route.meta.menuId+'table2',2)
@ -1381,6 +1396,7 @@
orderType: '', orderType: '',
orderStatus: '', orderStatus: '',
orderStatusList: ['草稿'], orderStatusList: ['草稿'],
departmentNo: '',
startDate: '', startDate: '',
endDate: '', endDate: '',
createdStartDate: '', createdStartDate: '',
@ -2256,7 +2272,7 @@
loadCategoryList () { loadCategoryList () {
getOutboundCategoryList({}).then(({data}) => { getOutboundCategoryList({}).then(({data}) => {
if (data && data.code === 0) { if (data && data.code === 0) {
this.categoryList = data.rows || []
this.categoryList = (data.rows || []).sort((a, b) => (a.crdcode || '').localeCompare(b.crdcode || ''))
} }
}) })
}, },

32
src/views/modules/report/inboundNotificationReport.vue

@ -134,6 +134,18 @@
<el-input v-model="searchData.queryRelatedOrderLineNo" placeholder="请输入关联单行号" clearable></el-input> <el-input v-model="searchData.queryRelatedOrderLineNo" placeholder="请输入关联单行号" clearable></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4">
<el-form-item label="部门">
<el-select v-model="searchData.departmentNo" placeholder="请选择部门" clearable style="width: 100%">
<el-option
v-for="item in departmentList"
:key="item.departmentNo"
:label="item.departmentDesc"
:value="item.departmentNo">
</el-option>
</el-select>
</el-form-item>
</el-col>
</el-row> </el-row>
</template> </template>
@ -241,6 +253,7 @@
<script> <script>
import { searchInboundNotificationReport, getSiteList } from "@/api/report/inboundNotificationReport.js"; import { searchInboundNotificationReport, getSiteList } from "@/api/report/inboundNotificationReport.js";
import { getDepartmentList } from "@/api/qc/Inbound_notification.js";
export default { export default {
name: "inboundNotificationReport", name: "inboundNotificationReport",
@ -260,10 +273,13 @@ export default {
startDate: '', startDate: '',
endDate: '', endDate: '',
queryRelatedOrderNo: '', queryRelatedOrderNo: '',
queryRelatedOrderLineNo: ''
queryRelatedOrderLineNo: '',
departmentNo: ''
}, },
// Site // Site
siteList: [], siteList: [],
//
departmentList: [],
// //
searchExpanded: true, searchExpanded: true,
// //
@ -297,6 +313,7 @@ export default {
{ columnProp: 'rollNo', columnLabel: '卷标签', columnWidth: '150', headerAlign: 'center', align: 'left' }, { columnProp: 'rollNo', columnLabel: '卷标签', columnWidth: '150', headerAlign: 'center', align: 'left' },
{ columnProp: 'inBatchNo', columnLabel: '批次号', columnWidth: '120', headerAlign: 'center', align: 'left' }, { columnProp: 'inBatchNo', columnLabel: '批次号', columnWidth: '120', headerAlign: 'center', align: 'left' },
{ columnProp: 'detailInWarehouseName', columnLabel: '明细入库仓库', columnWidth: '120', headerAlign: 'center', align: 'center' }, { columnProp: 'detailInWarehouseName', columnLabel: '明细入库仓库', columnWidth: '120', headerAlign: 'center', align: 'center' },
{ columnProp: 'departmentName', columnLabel: '部门', columnWidth: '120', headerAlign: 'center', align: 'center' },
{ columnProp: 'createdBy', columnLabel: '创建人', columnWidth: '100', headerAlign: 'center', align: 'center' }, { columnProp: 'createdBy', columnLabel: '创建人', columnWidth: '100', headerAlign: 'center', align: 'center' },
{ columnProp: 'createdDate', columnLabel: '创建时间', columnWidth: '150', headerAlign: 'center', align: 'center' }, { columnProp: 'createdDate', columnLabel: '创建时间', columnWidth: '150', headerAlign: 'center', align: 'center' },
{ columnProp: 'remarks', columnLabel: '备注', columnWidth: '200', headerAlign: 'center', align: 'left' } { columnProp: 'remarks', columnLabel: '备注', columnWidth: '200', headerAlign: 'center', align: 'left' }
@ -320,6 +337,7 @@ export default {
'卷标签': 'rollNo', '卷标签': 'rollNo',
'批次号': 'inBatchNo', '批次号': 'inBatchNo',
'明细入库仓库': 'detailInWarehouseName', '明细入库仓库': 'detailInWarehouseName',
'部门': 'departmentName',
'创建人': 'createdBy', '创建人': 'createdBy',
'创建时间': 'createdDate', '创建时间': 'createdDate',
'备注': 'remarks' '备注': 'remarks'
@ -328,6 +346,7 @@ export default {
}, },
created() { created() {
this.getSiteList(); this.getSiteList();
this.loadDepartmentList();
this.calculateTableHeight(); this.calculateTableHeight();
window.addEventListener('resize', this.calculateTableHeight); window.addEventListener('resize', this.calculateTableHeight);
}, },
@ -407,7 +426,8 @@ export default {
startDate: '', startDate: '',
endDate: '', endDate: '',
queryRelatedOrderNo: '', queryRelatedOrderNo: '',
queryRelatedOrderLineNo: ''
queryRelatedOrderLineNo: '',
departmentNo: ''
}; };
this.pageIndex = 1; this.pageIndex = 1;
}, },
@ -427,6 +447,14 @@ export default {
const num = parseFloat(rateStr.replace('%', '')); const num = parseFloat(rateStr.replace('%', ''));
return isNaN(num) ? 0 : Math.min(num, 100); return isNaN(num) ? 0 : Math.min(num, 100);
}, },
//
loadDepartmentList() {
getDepartmentList({}).then(({ data }) => {
if (data && data.code === 0) {
this.departmentList = data.rows || [];
}
});
},
// //
getProgressColor(percentage) { getProgressColor(percentage) {
if (percentage >= 100) { if (percentage >= 100) {

32
src/views/modules/report/outboundNotificationReport.vue

@ -134,6 +134,18 @@
<el-input v-model="searchData.queryOutBatchNo" placeholder="请输入合约号码" clearable></el-input> <el-input v-model="searchData.queryOutBatchNo" placeholder="请输入合约号码" clearable></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4">
<el-form-item label="部门">
<el-select v-model="searchData.departmentNo" placeholder="请选择部门" clearable style="width: 100%">
<el-option
v-for="item in departmentList"
:key="item.departmentNo"
:label="item.departmentDesc"
:value="item.departmentNo">
</el-option>
</el-select>
</el-form-item>
</el-col>
</el-row> </el-row>
</template> </template>
@ -241,6 +253,7 @@
<script> <script>
import { searchOutboundNotificationReport, getSiteList } from "@/api/report/outboundNotificationReport.js"; import { searchOutboundNotificationReport, getSiteList } from "@/api/report/outboundNotificationReport.js";
import { getDepartmentList } from "@/api/qc/outbound_notification.js";
export default { export default {
name: "outboundNotificationReport", name: "outboundNotificationReport",
@ -260,10 +273,13 @@ export default {
endDate: '', endDate: '',
queryRelatedOrderNo: '', queryRelatedOrderNo: '',
queryRelatedOrderLineNo: '', queryRelatedOrderLineNo: '',
queryOutBatchNo: ''
queryOutBatchNo: '',
departmentNo: ''
}, },
// Site // Site
siteList: [], siteList: [],
//
departmentList: [],
// //
searchExpanded: true, searchExpanded: true,
// //
@ -299,6 +315,7 @@ export default {
{ columnProp: 'outBatchNo', columnLabel: '合约号', columnWidth: '120', headerAlign: 'center', align: 'left' }, { columnProp: 'outBatchNo', columnLabel: '合约号', columnWidth: '120', headerAlign: 'center', align: 'left' },
{ columnProp: 'detailOutWarehouseName', columnLabel: '明细出库仓库', columnWidth: '120', headerAlign: 'center', align: 'center' }, { columnProp: 'detailOutWarehouseName', columnLabel: '明细出库仓库', columnWidth: '120', headerAlign: 'center', align: 'center' },
{ columnProp: 'inspectionFlag', columnLabel: '送检标志', columnWidth: '80', headerAlign: 'center', align: 'center' }, { columnProp: 'inspectionFlag', columnLabel: '送检标志', columnWidth: '80', headerAlign: 'center', align: 'center' },
{ columnProp: 'departmentName', columnLabel: '部门', columnWidth: '120', headerAlign: 'center', align: 'center' },
{ columnProp: 'createdBy', columnLabel: '创建人', columnWidth: '100', headerAlign: 'center', align: 'center' }, { columnProp: 'createdBy', columnLabel: '创建人', columnWidth: '100', headerAlign: 'center', align: 'center' },
{ columnProp: 'createdDate', columnLabel: '创建时间', columnWidth: '150', headerAlign: 'center', align: 'center' }, { columnProp: 'createdDate', columnLabel: '创建时间', columnWidth: '150', headerAlign: 'center', align: 'center' },
{ columnProp: 'remarks', columnLabel: '备注', columnWidth: '200', headerAlign: 'center', align: 'left' } { columnProp: 'remarks', columnLabel: '备注', columnWidth: '200', headerAlign: 'center', align: 'left' }
@ -324,6 +341,7 @@ export default {
'合约号': 'outBatchNo', '合约号': 'outBatchNo',
'明细出库仓库': 'detailOutWarehouseName', '明细出库仓库': 'detailOutWarehouseName',
'送检标志': 'inspectionFlag', '送检标志': 'inspectionFlag',
'部门': 'departmentName',
'创建人': 'createdBy', '创建人': 'createdBy',
'创建时间': 'createdDate', '创建时间': 'createdDate',
'备注': 'remarks' '备注': 'remarks'
@ -332,6 +350,7 @@ export default {
}, },
created() { created() {
this.getSiteList(); this.getSiteList();
this.loadDepartmentList();
this.calculateTableHeight(); this.calculateTableHeight();
window.addEventListener('resize', this.calculateTableHeight); window.addEventListener('resize', this.calculateTableHeight);
}, },
@ -411,7 +430,8 @@ export default {
endDate: '', endDate: '',
queryRelatedOrderNo: '', queryRelatedOrderNo: '',
queryRelatedOrderLineNo: '', queryRelatedOrderLineNo: '',
queryOutBatchNo: ''
queryOutBatchNo: '',
departmentNo: ''
}; };
this.pageIndex = 1; this.pageIndex = 1;
}, },
@ -431,6 +451,14 @@ export default {
const num = parseFloat(rateStr.replace('%', '')); const num = parseFloat(rateStr.replace('%', ''));
return isNaN(num) ? 0 : Math.min(num, 100); return isNaN(num) ? 0 : Math.min(num, 100);
}, },
//
loadDepartmentList() {
getDepartmentList({}).then(({ data }) => {
if (data && data.code === 0) {
this.departmentList = data.rows || [];
}
});
},
// //
getProgressColor(percentage) { getProgressColor(percentage) {
if (percentage >= 100) { if (percentage >= 100) {

Loading…
Cancel
Save