Commit 4d5de294 by lichengming

修改了出检管理历史记录

parent 6390fdeb
...@@ -6,24 +6,24 @@ ...@@ -6,24 +6,24 @@
<Row> <Row>
<!--查询--> <!--查询-->
<Col span="24" style="margin-top: 10px"> <Col span="24" style="margin-top: 10px">
<Form v-show="searchOpen" id="formId" :label-width="90" inline onsubmit="return false"> <Form id="formId" v-show="searchOpen" :label-width="90" inline onsubmit="return false">
<label class="label-sign"></label> <label class="label-sign"></label>
<Form-item class="search-item" label="实验室名称:"> <Form-item class="search-item" label="实验室名称:">
<Input v-model="formObj.name" name="name" placeholder="请输入实验室名称" clearable @on-enter="_formSearch"/> <Input v-model="formObj.name" @on-enter="_formSearch" name="name" placeholder="请输入实验室名称" clearable/>
</Form-item> </Form-item>
<Form-item class="search-item" label="资质:"> <Form-item class="search-item" label="资质:">
<Input v-model="formObj.aptitude" name="aptitude" placeholder="请输入资质" clearable @on-enter="_formSearch"/> <Input v-model="formObj.aptitude" @on-enter="_formSearch" name="aptitude" placeholder="请输入资质" clearable/>
</Form-item> </Form-item>
<Form-item class="search-btn"> <Form-item class="search-btn">
<Button type="primary" @click="_formSearch">搜索</Button> <Button @click="_formSearch" type="primary">搜索</Button>
</Form-item> </Form-item>
</Form> </Form>
</Col> </Col>
<!--操作--> <!--操作-->
<Col span="24"> <Col span="24">
<btn-list :msg="btn" :open="searchOpen" :show-search-btn="true" class="contHide" <btn-list :msg="btn" :open="searchOpen" :show-search-btn="true" @on-result-change="_btnClick"
@on-result-change="_btnClick"></btn-list> class="contHide"></btn-list>
</Col> </Col>
<!--表格--> <!--表格-->
<Col span="24"> <Col span="24">
...@@ -51,17 +51,20 @@ ...@@ -51,17 +51,20 @@
<MeterSendOperation ref="operationModal"></MeterSendOperation> <MeterSendOperation ref="operationModal"></MeterSendOperation>
<MeterSubcontractorEdit ref="editSubcontractorModal" @on-result-change="_formSearch"></MeterSubcontractorEdit> <MeterSubcontractorEdit ref="editSubcontractorModal" @on-result-change="_formSearch"></MeterSubcontractorEdit>
<MeterSubcontractorAddEdit ref="addEditModal" @on-result-change="_page"></MeterSubcontractorAddEdit> <MeterSubcontractorAddEdit ref="addEditModal" @on-result-change="_page"></MeterSubcontractorAddEdit>
<MeterSampleManage ref="meterSampleManageModal" @on-result-change="_page"></MeterSampleManage>
</div> </div>
</template> </template>
<script> <script>
import { meterContract, meterSubcontractor } from '../../../api' import { meterContract, meterSubcontractor } from '../../../api'
import Reason from '../../../components/base/Reason' import Reason from '../../../components/base/Reason'
import MeterSendOperation from '../MeterContractReviewOperation' import MeterSendOperation from '../MeterContractReviewOperation'
import MeterSampleManage from '../MeterSampleQuoteManage'
import MeterSubcontractorEdit from './MeterContractReviewEdit' import MeterSubcontractorEdit from './MeterContractReviewEdit'
import MeterSubcontractorAddEdit from './MeterContractReviewAddEdit' import MeterSubcontractorAddEdit from './MeterContractReviewAddEdit'
export default { export default {
components: { components: {
MeterSubcontractorEdit, MeterSubcontractorEdit,
MeterSampleManage,
MeterSendOperation, MeterSendOperation,
MeterSubcontractorAddEdit, MeterSubcontractorAddEdit,
Reason Reason
...@@ -187,6 +190,9 @@ export default { ...@@ -187,6 +190,9 @@ export default {
this.currentComponent = componentName this.currentComponent = componentName
this.$nextTick(function() { this.$nextTick(function() {
switch (res) { switch (res) {
case '查看样品':
this._manageSample(data.id)
break
case '评审': case '评审':
this._reviewContract(data.id) this._reviewContract(data.id)
break break
...@@ -205,6 +211,10 @@ export default { ...@@ -205,6 +211,10 @@ export default {
} }
}) })
}, },
_manageSample(data) {
// 查看样品
this.$refs.meterSampleManageModal._open(data)
},
_submitToReview() { _submitToReview() {
this._submitByContractIds('合同评审') this._submitByContractIds('合同评审')
}, },
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<p slot="header">仪器领用</p> <p slot="header">仪器领用</p>
<Form :label-width="60" onsubmit="return false" inline> <Form :label-width="60" onsubmit="return false" inline>
<Form-item label="仪器名称"> <Form-item label="仪器名称">
<Input v-model="name" placeholder="请输入仪器名称,回车查询" icon="ios-search-strong" <Input v-model="formObj.name" placeholder="请输入仪器名称,回车查询" icon="ios-search-strong"
@on-enter="_search"/> @on-enter="_search"/>
</Form-item> </Form-item>
<Form-item class="search-btn" style="margin-left: -10px"> <Form-item class="search-btn" style="margin-left: -10px">
......
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
</div> </div>
</template> </template>
<script> <script>
import { meterEntrust } from '../../../api' import { meterEntrust, meterSample } from '../../../api'
import operationModal from '../../../components/operation/Operation' import operationModal from '../../../components/operation/Operation'
import MeterSubcontractorEdit from './MeterGoOutTestEdit' import MeterSubcontractorEdit from './MeterGoOutTestEdit'
export default { export default {
...@@ -79,17 +79,17 @@ export default { ...@@ -79,17 +79,17 @@ export default {
// id: '', // id: '',
// name: '编辑' // name: '编辑'
// }, // },
{ // {
type: 'ios-beaker', // type: 'ios-beaker',
id: '', // id: '',
name: '管理样品' // name: '管理样品'
}, // },
{ type: 'md-cloud', id: '', name: '附件' }, // { type: 'md-cloud', id: '', name: '附件' },
{ // {
type: 'ios-clock', // type: 'ios-clock',
id: '', // id: '',
name: '操作日志' // name: '操作日志'
} // }
], ],
formObj: { formObj: {
name: undefined, name: undefined,
...@@ -98,16 +98,22 @@ export default { ...@@ -98,16 +98,22 @@ export default {
selectIds: [], selectIds: [],
getPage: {}, getPage: {},
pageColumns: [ pageColumns: [
{ title: '样品名称', key: 'name', width: 120 },
{ title: '样品编号', key: 'code', width: 120 },
{ title: '证书是否编制', key: 'onlineReported', width: 120 },
{ title: '证书编号', key: 'reportCode', width: 130 },
{ title: '型号规格', key: 'spec', width: 120 },
{ title: '出厂编号', key: 'factoryNumber', width: 120 },
{ title: '检测类型', key: 'type', width: 100 },
{ title: '温度', key: 'temperature', width: 100 },
{ title: '湿度', key: 'humidity', width: 100 },
{ title: '地点', key: 'place', width: 100 },
{ title: '其他', key: 'cElse', width: 100 },
{ title: '委托单位', key: 'client', width: 200 }, { title: '委托单位', key: 'client', width: 200 },
{ title: '联系人', key: 'person', width: 120 }, { title: '联系人', key: 'person', width: 120 },
{ title: '联系电话', key: 'tel', width: 120 }, { title: '联系电话', key: 'tel', width: 120 },
{ title: '传真', key: 'fax', width: 120 },
{ title: '详细地址', key: 'address', width: 250 }, { title: '详细地址', key: 'address', width: 250 },
{ title: '邮编', key: 'postcode' }, { title: '数量', key: 'quantity' },
{ title: 'E-mail', key: 'email', width: 120 },
{ title: '委托日期', key: 'edate', width: 120 },
{ title: '费用合计', key: 'fee', width: 120 },
{ title: '合同号', key: 'contractCode', width: 120 },
{ title: '备注', key: 'remark' } { title: '备注', key: 'remark' }
] ]
} }
...@@ -165,6 +171,9 @@ export default { ...@@ -165,6 +171,9 @@ export default {
this.currentComponent = componentName this.currentComponent = componentName
this.$nextTick(function() { this.$nextTick(function() {
switch (res) { switch (res) {
case '查看样品':
this._manageSample(data.id)
break
case '编辑': case '编辑':
this._editModal(true, data.id) this._editModal(true, data.id)
break break
...@@ -183,6 +192,10 @@ export default { ...@@ -183,6 +192,10 @@ export default {
} }
}) })
}, },
_manageSample(data) {
// 查看样品
// this.$refs.meterSampleManageModal._open(data)
},
_record(id) { _record(id) {
this.$refs.operationModal._open(id) this.$refs.operationModal._open(id)
}, },
...@@ -205,7 +218,7 @@ export default { ...@@ -205,7 +218,7 @@ export default {
_page: async function() { _page: async function() {
Object.assign(this.formObj, this.$refs.pageTable._searchParams()) Object.assign(this.formObj, this.$refs.pageTable._searchParams())
console.log('this.formObj', this.formObj) console.log('this.formObj', this.formObj)
const result = await meterEntrust.pageGoOutEntrust(this.formObj) const result = await meterSample.pageOutPersonalTask(this.formObj)
if (result) { if (result) {
this.$refs.pageTable._hideLoading() this.$refs.pageTable._hideLoading()
this.getPage = result this.getPage = result
......
...@@ -71,17 +71,17 @@ export default { ...@@ -71,17 +71,17 @@ export default {
// id: '', // id: '',
// name: '编辑' // name: '编辑'
// }, // },
{ // {
type: 'ios-contact', // type: 'ios-contact',
id: '', // id: '',
name: '任务分配' // name: '任务分配'
}, // },
{ type: 'md-cloud', id: '', name: '附件' }, // { type: 'md-cloud', id: '', name: '附件' },
{ // {
type: 'ios-clock', // type: 'ios-clock',
id: '', // id: '',
name: '操作日志' // name: '操作日志'
} // }
], ],
formObj: { formObj: {
client: undefined, client: undefined,
......
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