Commit 1e0610ae authored by 仇晓婷's avatar 仇晓婷

合格证编辑

parent 3c3a62e8
......@@ -23,7 +23,10 @@
</FormItem>
</Col>
<Col :span="6">
<FormItem :label="l('productSerialNumber')" prop="productSerialNumber">
<FormItem
:label="l('productSerialNumber')"
prop="productSerialNumber"
>
<ProductNumberSelect
v-model="entity.productSerialNumber"
:eid="eid"
......@@ -43,50 +46,92 @@
</FormItem>
</Col>
<Col :span="6">
<FormItem :label="l('materialSerialNumber')" prop="materialSerialNumber">
<FormItem
:label="l('materialSerialNumber')"
prop="materialSerialNumber"
>
<Input v-model="entity.materialSerialNumber"></Input>
</FormItem>
</Col>
<Col :span="6">
<FormItem :label="l('materialCertificationNumber')" prop="materialCertificationNumber">
<FormItem
:label="l('materialCertificationNumber')"
prop="materialCertificationNumber"
>
<Input v-model="entity.materialCertificationNumber"></Input>
</FormItem>
</Col>
<Col :span="6">
<FormItem :label="l('productQuantity')" prop="productQuantity">
<Input v-model="entity.productQuantity" :disabled="isDisabled"></Input>
<Input
v-model="entity.productQuantity"
:disabled="isDisabled"
></Input>
</FormItem>
</Col>
<Col :span="24" style="margin:20px 0;">
<div style="margin-left:10px;font-weight:bold">检验内容</div>
<Col :span="24" style="margin: 20px 0">
<div style="margin-left: 10px; font-weight: bold">检验内容</div>
<div class="jy-boder"></div>
</Col>
<Col :span="24" style="padding:20px 0 0px 10px;margin-bottom:10px;" class="table-solt">
<Table border :columns="columns" :data="checkList" class="tableCommon">
<Col
:span="24"
style="padding: 20px 0 0px 10px; margin-bottom: 10px"
class="table-solt"
>
<Table
border
:columns="columns"
:data="checkList"
class="tableCommon"
>
<template slot-scope="{ row, index }" slot="name">
<Input v-model="row.name" placeholder="请输入" @on-blur="setRow(row,index)" />
<Input
v-model="row.name"
placeholder="请输入"
@on-blur="setRow(row, index)"
/>
</template>
<template slot-scope="{ row, index }" slot="require">
<Input v-model="row.require" placeholder="请输入" @on-blur="setRow(row,index)" />
<Input
v-model="row.require"
placeholder="请输入"
@on-blur="setRow(row, index)"
/>
</template>
<template slot-scope="{ row, index }" slot="result">
<Input v-model="row.result" placeholder="请输入" @on-blur="setRow(row,index)" />
<Input
v-model="row.result"
placeholder="请输入"
@on-blur="setRow(row, index)"
/>
</template>
<template slot-scope="{ row, index }" slot="pash">
<inputFile v-model="row.file" :files="true" :parms="getParams(row.fileId)" />
<inputFile
v-model="row.file"
:files="true"
:parms="getParams(row.fileId)"
/>
</template>
<template slot-scope="{ row, index }" slot="conclusion" class="dd">
<Dictionary code="qms.certificate.conclusion" v-model="row.conclusion" type="select"></Dictionary>
<Dictionary
code="qms.certificate.conclusion"
v-model="row.conclusion"
type="select"
></Dictionary>
</template>
<template slot-scope="{ row, index }" slot="remark">
<Input v-model="row.remark" placeholder="请输入" @on-blur="setRow(row,index)" />
<Input
v-model="row.remark"
placeholder="请输入"
@on-blur="setRow(row, index)"
/>
</template>
<template slot-scope="{ row, index }" slot="action">
<a @click="remove(index)" style="color:#FF7A8B">删除</a>
<a @click="remove(index)" style="color: #ff7a8b">删除</a>
</template>
</Table>
</Col>
<Col :span="24" style="margin-bottom:20px;">
<Col :span="24" style="margin-bottom: 20px">
<Button type="primary" long @click="addNew" class="mt10">添加</Button>
</Col>
<Col :span="6">
......@@ -117,7 +162,13 @@
<Checkbox v-model="submit" class="ml20">是否送审</Checkbox>
</FormItem>
</Form>
<Modal v-model="examineModal" title="合格证送审" footer-hide fullscreen :mask-closable="false">
<Modal
v-model="examineModal"
title="合格证送审"
footer-hide
fullscreen
:mask-closable="false"
>
<Examine :isId="isId" ref="examine"></Examine>
</Modal>
</div>
......@@ -235,6 +286,7 @@ export default {
handleSubmit() {
this.entity.items = this.checkList;
this.entity.items.forEach((c) => {
c.index = index;
return delete c.id;
});
this.$refs.form.validate((v) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment