This commit is contained in:
‘937886381’
2023-12-04 14:14:34 +08:00
parent be430ebbff
commit 4e48eae2a7
36 changed files with 591 additions and 538 deletions

View File

@@ -307,6 +307,10 @@ export default {
type: 'category',
data: arrXAxis
},
grid: {
left: '5%',
top:'2%'
},
yAxis: {
type: 'value'
},

View File

@@ -2,7 +2,7 @@
* @Author: zwq
* @Date: 2023-08-01 14:55:51
* @LastEditors: zhp
* @LastEditTime: 2023-11-24 10:55:54
* @LastEditTime: 2023-12-01 16:41:40
* @Description:
-->
<template>
@@ -57,7 +57,8 @@ const tableProps = [
},
{
prop: 'userName',
label: '操作人'
label: '操作人',
showOverflowtooltip: true
},
{
prop: 'source',
@@ -128,7 +129,7 @@ export default {
},
{
type: 'button',
btnName: '搜索',
btnName: '查询',
name: 'search',
color: 'primary',
},
@@ -161,7 +162,8 @@ export default {
type: this.$auth.hasPermi('monitoring:materiel-date-from:export') ? 'button' : '',
btnName: '导出',
name: 'export',
color: 'warning',
color: 'primary',
plain: true
},
],
};

View File

@@ -2,7 +2,7 @@
* @Author: zwq
* @Date: 2023-08-01 14:55:51
* @LastEditors: zhp
* @LastEditTime: 2023-11-28 10:51:44
* @LastEditTime: 2023-12-01 16:43:10
* @Description:
-->
<template>
@@ -134,7 +134,7 @@ export default {
},
{
type: 'button',
btnName: '搜索',
btnName: '查询',
name: 'search',
color: 'primary',
},

View File

@@ -124,7 +124,8 @@ export default {
// immediate: true,
// },
dataForm: {
handler: function (dataForm) {
handler: function (dataForm) {
console.log(dataForm);
this.innerDataForm = Object.assign({}, dataForm);
if (dataForm.productionLineId)

View File

@@ -66,7 +66,19 @@ export default {
mixins: [basicPageMixin],
data() {
return {
rows: [
rows: [
[
{
select: true,
label: '工单名称',
url: 'base/core-work-order/listbyfilter',
prop: 'workOrderId',
rules: [{ required: true, message: '工单名称不能为空', trigger: 'change' }],
bind: {
filterable: true,
},
}
],
[
{
select: true,
@@ -122,18 +134,7 @@ export default {
label: '检测人员',
prop: 'checkPerson',
},
{
datetime: true,
label: '检测时间',
prop: 'checkTime',
rules: [{ required: true, message: '检测时间不能为空', trigger: 'blur' }],
bind: {
format: 'yyyy-MM-dd HH:mm:ss',
'value-format': 'timestamp',
// 'value-format': 'yyyy-MM-dd HH:mm:ss',
clearable: true,
},
},
],
[{ textarea: true, label: '描述', prop: 'explainText' }],
[{ input: true, label: '备注', prop: 'remark' }],
@@ -224,7 +225,7 @@ export default {
},
{
// width: 128,
prop: 'lineName',
prop: 'productionLineName',
label: '产线',
},
{
@@ -247,9 +248,10 @@ export default {
},
],
// 搜索框需要的 keys, 与上面 queryParams 的除 pageNo, pageSize 之外的 key 一一对应
searchBarKeys: ['inspectionDetContent', 'checkTime', 'productionLineId'],
searchBarKeys: ['inspectionDetContent', 'checkTime', 'workOrderId'],
form: {
id: undefined,
id: undefined,
// workOrderId:undefined,
inspectionDetId: undefined,
inspectionDetContent: undefined,
productionLineId: undefined,
@@ -354,7 +356,8 @@ export default {
inspectionDetContent: undefined,
sectionId: undefined,
checkPerson: undefined,
checkTime: undefined,
checkTime: undefined,
workOrderId:undefined,
source: undefined,
explainText: undefined,
remark: undefined,
@@ -383,12 +386,14 @@ export default {
this.reset();
const id = row.id;
getQualityInspectionRecord(id).then((response) => {
/** 因为后端返回的时间是时间戳格式,需转换 */
/** 因为后端返回的时间是时间戳格式,需转换 */
console.log(response.data);
const info = {}
Object.keys(this.form).forEach(key => {
info[key] = response.data[key]
});
this.form = info;
this.form = info;
console.log(this.form);
this.open = true;
this.title = '修改质量检查信息记录表';
});

View File

@@ -2,7 +2,7 @@
* @Author: zwq
* @Date: 2023-08-01 14:55:51
* @LastEditors: zhp
* @LastEditTime: 2023-11-10 16:26:45
* @LastEditTime: 2023-12-01 16:38:00
* @Description:
-->
<template>
@@ -123,7 +123,7 @@ export default {
// },
{
type: 'button',
btnName: '搜索',
btnName: '查询',
name: 'search',
color: 'primary',
},

View File

@@ -351,7 +351,7 @@ export default {
...keyValuePairs,
sumInput: item.sumInput,
productionName: item.productionName,
workOrderId: item.workOrderId,
workOrderName: item.workOrderName,
scrapRatio: item.scrapRatio,
};
});