From 98383b4460ed643d3a1dadd256f81aaa283aa71a Mon Sep 17 00:00:00 2001 From: qushaowei <qushaowei@163.com> Date: 星期二, 24 十月 2023 18:50:20 +0800 Subject: [PATCH] 验收单 --- src/views/eam/modules/daily3MaintenanceOrder/Maintenance3ReceiptModal.vue | 166 +++++++++++++++++++++++++++++++++---------------------- src/views/eam/modules/daily3MaintenanceOrder/StoveCategoryModal.vue | 13 ++++ 2 files changed, 112 insertions(+), 67 deletions(-) diff --git a/src/views/eam/modules/daily3MaintenanceOrder/Maintenance3ReceiptModal.vue b/src/views/eam/modules/daily3MaintenanceOrder/Maintenance3ReceiptModal.vue index 5eef2e1..43b0850 100644 --- a/src/views/eam/modules/daily3MaintenanceOrder/Maintenance3ReceiptModal.vue +++ b/src/views/eam/modules/daily3MaintenanceOrder/Maintenance3ReceiptModal.vue @@ -47,69 +47,103 @@ </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 + :disabled="disableSubmit" + :placeholder="disableSubmit?'':'璇疯緭鍏ュ娉�'" + v-decorator="['remark', {}]" + /> + + </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 +153,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 +165,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 +274,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; @@ -321,10 +355,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; diff --git a/src/views/eam/modules/daily3MaintenanceOrder/StoveCategoryModal.vue b/src/views/eam/modules/daily3MaintenanceOrder/StoveCategoryModal.vue index b8006ed..4e4920a 100644 --- a/src/views/eam/modules/daily3MaintenanceOrder/StoveCategoryModal.vue +++ b/src/views/eam/modules/daily3MaintenanceOrder/StoveCategoryModal.vue @@ -506,6 +506,7 @@ un-checked-children="鍚�" :checked="model.result_21 == '1'" @change="handle21Switch(model.result_21)" + :disabled=this.disabled21Switch /> <span class="ant-descriptions-title" @@ -521,6 +522,7 @@ v-model="model.sort" :min=0 :max=20 + :disabled=this.disabled22Switch /> <span class="ant-descriptions-title" @@ -531,6 +533,7 @@ un-checked-children="鍚�" :checked="model.result_22 == '1'" @change="handle22Switch(model.result_22)" + :disabled=this.disabled22Switch /> <span class="ant-descriptions-title" @@ -623,6 +626,8 @@ dataSource: [], model: {}, departs: [], + disabled21Switch: false, + disabled22Switch: false, labelCol: { xs: { span: 24 }, sm: { span: 6 }, @@ -653,7 +658,8 @@ edit(record) { let that = this; - + this.disabled21Switch = false + this.disabled22Switch = false this.form.resetFields(); this.model = Object.assign({}, record); this.getStoveCategory() @@ -723,6 +729,7 @@ } else { this.model.result_1 = '0' } + this.model = Object.assign({}, this.model); }, @@ -909,8 +916,10 @@ handle21Switch(result_21) { if ('0' == result_21) { this.model.result_21 = '1' + this.disabled22Switch = true } else { this.model.result_21 = '0' + this.disabled22Switch = false } this.model = Object.assign({}, this.model); }, @@ -918,8 +927,10 @@ handle22Switch(result_22) { if ('0' == result_22) { this.model.result_22 = '1' + this.disabled21Switch = true } else { this.model.result_22 = '0' + this.disabled21Switch = false } this.model = Object.assign({}, this.model); }, -- Gitblit v1.9.3