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

合格证编辑

parent 3c3a62e8
...@@ -23,7 +23,10 @@ ...@@ -23,7 +23,10 @@
</FormItem> </FormItem>
</Col> </Col>
<Col :span="6"> <Col :span="6">
<FormItem :label="l('productSerialNumber')" prop="productSerialNumber"> <FormItem
:label="l('productSerialNumber')"
prop="productSerialNumber"
>
<ProductNumberSelect <ProductNumberSelect
v-model="entity.productSerialNumber" v-model="entity.productSerialNumber"
:eid="eid" :eid="eid"
...@@ -43,50 +46,92 @@ ...@@ -43,50 +46,92 @@
</FormItem> </FormItem>
</Col> </Col>
<Col :span="6"> <Col :span="6">
<FormItem :label="l('materialSerialNumber')" prop="materialSerialNumber"> <FormItem
:label="l('materialSerialNumber')"
prop="materialSerialNumber"
>
<Input v-model="entity.materialSerialNumber"></Input> <Input v-model="entity.materialSerialNumber"></Input>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="6"> <Col :span="6">
<FormItem :label="l('materialCertificationNumber')" prop="materialCertificationNumber"> <FormItem
:label="l('materialCertificationNumber')"
prop="materialCertificationNumber"
>
<Input v-model="entity.materialCertificationNumber"></Input> <Input v-model="entity.materialCertificationNumber"></Input>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="6"> <Col :span="6">
<FormItem :label="l('productQuantity')" prop="productQuantity"> <FormItem :label="l('productQuantity')" prop="productQuantity">
<Input v-model="entity.productQuantity" :disabled="isDisabled"></Input> <Input
v-model="entity.productQuantity"
:disabled="isDisabled"
></Input>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="24" style="margin:20px 0;"> <Col :span="24" style="margin: 20px 0">
<div style="margin-left:10px;font-weight:bold">检验内容</div> <div style="margin-left: 10px; font-weight: bold">检验内容</div>
<div class="jy-boder"></div> <div class="jy-boder"></div>
</Col> </Col>
<Col :span="24" style="padding:20px 0 0px 10px;margin-bottom:10px;" class="table-solt"> <Col
<Table border :columns="columns" :data="checkList" class="tableCommon"> :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"> <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>
<template slot-scope="{ row, index }" slot="require"> <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>
<template slot-scope="{ row, index }" slot="result"> <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>
<template slot-scope="{ row, index }" slot="pash"> <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>
<template slot-scope="{ row, index }" slot="conclusion" class="dd"> <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>
<template slot-scope="{ row, index }" slot="remark"> <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>
<template slot-scope="{ row, index }" slot="action"> <template slot-scope="{ row, index }" slot="action">
<a @click="remove(index)" style="color:#FF7A8B">删除</a> <a @click="remove(index)" style="color: #ff7a8b">删除</a>
</template> </template>
</Table> </Table>
</Col> </Col>
<Col :span="24" style="margin-bottom:20px;"> <Col :span="24" style="margin-bottom: 20px">
<Button type="primary" long @click="addNew" class="mt10">添加</Button> <Button type="primary" long @click="addNew" class="mt10">添加</Button>
</Col> </Col>
<Col :span="6"> <Col :span="6">
...@@ -117,7 +162,13 @@ ...@@ -117,7 +162,13 @@
<Checkbox v-model="submit" class="ml20">是否送审</Checkbox> <Checkbox v-model="submit" class="ml20">是否送审</Checkbox>
</FormItem> </FormItem>
</Form> </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> <Examine :isId="isId" ref="examine"></Examine>
</Modal> </Modal>
</div> </div>
...@@ -235,6 +286,7 @@ export default { ...@@ -235,6 +286,7 @@ export default {
handleSubmit() { handleSubmit() {
this.entity.items = this.checkList; this.entity.items = this.checkList;
this.entity.items.forEach((c) => { this.entity.items.forEach((c) => {
c.index = index;
return delete c.id; return delete c.id;
}); });
this.$refs.form.validate((v) => { 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