From 390c3dd9027f3d112bebc0864b9dc70b15d5457e Mon Sep 17 00:00:00 2001
From: “linengliang” <vanSuperEnergy@163.com>
Date: 星期五, 03 十一月 2023 09:39:40 +0800
Subject: [PATCH] 查询
---
src/views/eam/modules/daily3MaintenanceOrder/Maintenance3ReceiptModal.vue | 169 ++++++++++++++++++++++++++++++++++----------------------
1 files changed, 102 insertions(+), 67 deletions(-)
diff --git a/src/views/eam/modules/daily3MaintenanceOrder/Maintenance3ReceiptModal.vue b/src/views/eam/modules/daily3MaintenanceOrder/Maintenance3ReceiptModal.vue
index 5eef2e1..e314bed 100644
--- a/src/views/eam/modules/daily3MaintenanceOrder/Maintenance3ReceiptModal.vue
+++ b/src/views/eam/modules/daily3MaintenanceOrder/Maintenance3ReceiptModal.vue
@@ -47,69 +47,104 @@
</a-form-item>
</a-col>
</a-row>
+ <a-table
+ ref="table"
+ bordered
+ rowKey="id"
+ :columns="columns"
+ :dataSource="dataSource"
+ :pagination="false"
+ >
+ <!-- @change="handleTableChange" -->
+ <!-- :pagination="ipagination" -->
+ <template
+ v-for="col in columns"
+ :slot="col.dataIndex"
+ slot-scope='text, record, index'
+ >
+ <div :key="col.dataIndex">
+ <a-input
+ :value="text"
+ v-if="col.dataIndex == 'position'"
+ @change="(e)=>handleChange(e, record.key, col, index)"
+ :disabled="false"
+ placeholder="璇疯緭鍏ヤ繚鍏婚儴浣�"
+ />
+ <a-textarea
+ :value="text"
+ v-if="col.dataIndex == 'content'"
+ :maxLength="500"
+ auto-size
+ placeholder="璇疯緭鍏ヤ繚鍏诲唴瀹�"
+ @change="(e)=>handleChange(e, record.key, col, index)"
+ />
+ <a-textarea
+ :value="text"
+ v-if="col.dataIndex == 'standard'"
+ :maxLength="500"
+ auto-size
+ placeholder="璇疯緭鍏ヤ繚鍏绘爣鍑�"
+ @change="(e)=>handleChange(e, record.key, col, index)"
+ :disabled="false"
+ />
+ <a-select
+ v-if="col.dataIndex == 'firstInspect'"
+ :value="text"
+ @change="(e) => handleChange(e, record.key, col, index)"
+ style="width: 100%"
+ >
+ <a-select-option value="1">閫氳繃</a-select-option>
+ <a-select-option value="2">鏈�氳繃</a-select-option>
+ </a-select>
+ <a-select
+ v-if="col.dataIndex == 'secondInspect'"
+ :value="text"
+ @change="(e) => handleChange(e, record.key, col, index)"
+ style="width: 100%"
+ >
+ <a-select-option value="1">閫氳繃</a-select-option>
+ <a-select-option value="2">鏈�氳繃</a-select-option>
+ </a-select>
+
+ </div>
+ </template>
+ </a-table>
+ <div :style="{height: '140px',width: '100%',border: '1px solid #e9e9e9',padding: '10px 16px',background: '#fff',}">
+ <!-- <a-row :gutter="24">
+ <a-col :span="12">
+ <a-form-item
+ :labelCol="labelCol"
+ :wrapperCol="wrapperCol"
+ label="楠屾敹缁撴灉"
+ >
+ </a-form-item>
+ </a-col>
+ </a-row> -->
+ <a-row :gutter="24">
+ <a-col :span="24">
+ <a-form-item
+ :labelCol="{span:3}"
+ :wrapperCol="{span:21}"
+ label="楠屾敹鏈�氳繃鍘熷洜"
+ >
+ <a-textarea
+ allow-clear
+ :rows='5'
+ :disabled="disableSubmit"
+ :placeholder="disableSubmit?'':'璇疯緭鍏ラ獙鏀舵湭閫氳繃鍘熷洜'"
+ v-decorator="['notPassReason', {}]"
+ />
+
+ </a-form-item>
+ </a-col>
+ </a-row>
+ </div>
</a-form>
</a-spin>
- <a-table
- ref="table"
- bordered
- rowKey="id"
- :columns="columns"
- :dataSource="dataSource"
- :pagination="false"
- >
- <!-- @change="handleTableChange" -->
- <!-- :pagination="ipagination" -->
- <template
- v-for="col in columns"
- :slot="col.dataIndex"
- slot-scope='text, record, index'
- >
- <div :key="col.dataIndex">
- <a-input
- :value="text"
- v-if="col.dataIndex == 'position'"
- @change="(e)=>handleChange(e, record.key, col, index)"
- :disabled="false"
- placeholder="璇疯緭鍏ヤ繚鍏婚儴浣�"
- />
- <a-textarea
- :value="text"
- v-if="col.dataIndex == 'content'"
- :maxLength="500"
- auto-size
- placeholder="璇疯緭鍏ヤ繚鍏诲唴瀹�"
- @change="(e)=>handleChange(e, record.key, col, index)"
- />
- <a-textarea
- :value="text"
- v-if="col.dataIndex == 'standard'"
- :maxLength="500"
- auto-size
- placeholder="璇疯緭鍏ヤ繚鍏绘爣鍑�"
- @change="(e)=>handleChange(e, record.key, col, index)"
- :disabled="false"
- />
- <a-input
- :value="text"
- v-if="col.dataIndex == 'firstInspect'"
- @change="(e)=>handleChange(e, record.key, col, index)"
- :disabled="false"
- placeholder="璇疯緭鍏ョ涓�娆℃"
- />
- <a-input
- :value="text"
- v-if="col.dataIndex == 'secondInspect'"
- @change="(e)=>handleChange(e, record.key, col, index)"
- :disabled="false"
- placeholder="璇疯緭鍏ョ浜屾妫�"
- />
- </div>
- </template>
- </a-table>
<div :style="{height: '60px',width: '100%',border: '1px solid #e9e9e9',padding: '10px 16px',background: '#fff',}">
<a-row :gutter="24">
- <a-col :span="12">
+ <a-col :span="7">
<a-form-item
:labelCol="labelCol"
:wrapperCol="wrapperCol"
@@ -119,7 +154,7 @@
<span v-else>-</span>
</a-form-item>
</a-col>
- <a-col :span="12">
+ <a-col :span="17">
<a-form-item
:labelCol="labelCol"
:wrapperCol="wrapperCol"
@@ -131,12 +166,12 @@
</a-col>
</a-row>
</div>
- <a-button
+ <!-- <a-button
style="width: 100%; margin-top: 0px; margin-bottom: 8px"
type="dashed"
icon="plus"
@click="addHour"
- >娣诲姞鍐呭</a-button>
+ >娣诲姞鍐呭</a-button> -->
<template slot="footer">
<a-button
:style="{marginRight: '8px'}"
@@ -240,9 +275,9 @@
methods: {
- addHour() {
- this.dataSource.push({ id: '', maintenanceOrderId: this.model.id, position: '', content: '', standard: '', firstInspect: '', secondInspect: '' })
- },
+ // addHour() {
+ // this.dataSource.push({ id: '', maintenanceOrderId: this.model.id, position: '', content: '', standard: '', firstInspect: '', secondInspect: '' })
+ // },
edit(record) {
let that = this;
@@ -251,7 +286,7 @@
this.visible = true;
this.getMaintenance3Receipt()
that.$nextTick(() => {
- // that.form.setFieldsValue(pick(that.model, 'num', 'teamId', 'remark'));
+ that.form.setFieldsValue(pick(that.model, 'notPassReason'));
});
},
@@ -321,10 +356,10 @@
target['standard'] = value.target.value;
}
if (column.dataIndex == 'firstInspect') {
- target[column.dataIndex] = value.target.value;
+ target[column.dataIndex] = value;
}
if (column.dataIndex == 'secondInspect') {
- target[column.dataIndex] = value.target.value;
+ target[column.dataIndex] = value;
}
//鏄剧ず甯﹁繃鏉ョ殑鏁版嵁
that.dataSource = temp;
--
Gitblit v1.9.3