质量管理

This commit is contained in:
‘937886381’
2023-11-07 19:10:45 +08:00
parent 34e8178ddc
commit 1962ecc6df
55 changed files with 7000 additions and 163 deletions

View File

@@ -2,7 +2,7 @@
* @Author: zwq
* @Date: 2023-08-01 14:55:51
* @LastEditors: zhp
* @LastEditTime: 2023-10-30 10:44:48
* @LastEditTime: 2023-11-01 15:51:50
* @Description:
-->
<template>
@@ -47,6 +47,7 @@ import {
import {
deletePacking,
getPackingPage,
getWorkOrderList,
exportPackingExcel,
} from '@/api/base/packingInfo';
@@ -102,37 +103,41 @@ export default {
btnName: '编辑',
}
: undefined,
{
type: 'print',
btnName: '打印',
},
this.$auth.hasPermi(`base:packaging-print-log:delete`)
? {
type: 'delete',
btnName: '删除',
}
: undefined,
{
type: 'print',
btnName: '打印',
},
].filter((v) => v),
tableData: [],
formConfig: [
{
type: 'input',
formConfig: [
{
type: 'select',
label: '工单',
placeholder: '工单',
param: 'workOrderId',
},
{
selectOptions: [],
labelField: 'name',
valueField: 'id',
param: 'workOrderId'
},
{
// parent: 'dateFilterType',
// 日期选择
// 时间段选择
type: 'datePicker',
label: '时间',
dateType: 'date',
placeholder: '选择日期',
format: 'yyyy-MM-dd',
valueFormat: 'yyyy-MM-dd',
// label: '时间段',
dateType: 'daterange',
format: 'yyyy-MM-dd HH:mm:ss',
valueFormat: 'yyyy-MM-dd HH:mm:ss',
defaultTime: ['00:00:00', '00:00:00'],
rangeSeparator: '-',
startPlaceholder: '开始时间',
endPlaceholder: '结束时间',
param: 'createTime',
},
},
{
type: 'button',
btnName: '搜索',
@@ -173,7 +178,9 @@ export default {
components: {
AddOrUpdate,
},
created() {},
created() {
this.getDict()
},
methods: {
getDataList() {
this.dataListLoading = true;
@@ -183,6 +190,30 @@ export default {
this.dataListLoading = false;
});
},
getDict() {
// 获取产品的属性列表
// getCustomerList().then((response) => {
// console.log(response);
// this.customerList = response.data
// // this.listQuery.total = response.data.total;
// })
// getModelList().then((response) => {
// console.log(response);
// this.modelList = response.data
// // this.listQuery.total = response.data.total;
// })
getWorkOrderList().then((response) => {
// console.log(response);
this.formConfig[0].selectOptions = response.data.map((item) => {
return {
name: item.name,
id: item.id
}
})
console.log(this.formConfig[0].selectOptions);
// this.listQuery.total = response.data.total;
})
},
handlePrint(id) {
if (id) {
getPackingModel(id).then(res => {
@@ -259,8 +290,14 @@ export default {
case 'search':
this.listQuery.pageNo = 1;
this.listQuery.pageSize = 10;
this.listQuery.packagingCode = val.packagingCode;
this.listQuery.createTime = val.createTime;
this.listQuery.workOrderId = val.workOrderId;
if (val.createTime && val.createTime.length != 0) {
this.listQuery.createTime = val.createTime
// this.listQuery.createTime[1] = val.timeVal[1]
} else {
this.listQuery.createTime = undefined
// this.listQuery.endTime = undefined
}
this.getDataList();
console.log(this.tableData)
break;