Commit 54be3cea by wangweidong

Merge remote-tracking branch 'origin/dev' into dev

# Conflicts:
#	pages/meter-certificate/issue/MeterCertificateIssueHis.vue
parents 9d189ea1 3526534f
......@@ -148,8 +148,8 @@ export default {
imgViewIndex: null,
iconMsg: [
{ type: 'md-remove-circle', id: '', name: '删除' },
{ type: 'ios-download', id: '', name: '下载' },
{ type: 'ios-eye', id: '', name: '预览' }
{ type: 'ios-download', id: '', name: '下载' }
// { type: 'ios-eye', id: '', name: '预览' }
],
iconMsgDis: [
{ type: 'trash-a', id: '', name: '删除' },
......@@ -291,6 +291,7 @@ export default {
},
// 预览图片(该合同下所有的)
_viewImg: async function(data) {
console.log(data)
if (this.urlData.viewUri === '/meter/v1/entrust_attachment/preview/') {
const id = data.entrustId
const result = await meterEntrust.entrustPreview(id)
......
......@@ -43,6 +43,7 @@
</Row>
</div>
</div>
<FileManage ref="FileManage"></FileManage>
<MeterSampleQuoteManage ref="meterSampleQuoteManageModal" @on-result-change="_formSearch"></MeterSampleQuoteManage>
<MeterContractRecord ref="meterContractRecordModal" @on-result-change="_formSearch"></MeterContractRecord>
</div>
......@@ -188,7 +189,8 @@ export default {
},
_upload(id) {
// 上传文件
this.$refs.refModal._open(id, 'subcontractorId')
// this.$refs.refModal._open(id, 'subcontractorId')
this.$refs.FileManage._open(id, 'subcontractorId')
},
_getById: async function(id) {
const result = await meterSubcontractor.getById(id)
......
......@@ -35,7 +35,7 @@
:fixed="item.fixed?item.fixed:undefined" sortable>
<template slot-scope="scope">
<span v-if="item.date">{{scope.row[item.key]?$dateformat(scope.row[item.key],'yyyy-mm-dd'):''}}</span>
<span v-if="item.status">{{scope.row[item.key].display}}</span>
<span v-else-if="item.status">{{scope.row[item.key].display}}</span>
<span v-else>{{scope.row[item.key]}}</span>
</template>
</vxe-table-column>
......
......@@ -43,6 +43,7 @@
</Row>
</div>
</div>
<FileManage ref="FileManage"></FileManage>
<MeterSampleQuoteManage ref="meterSampleQuoteManageModal" @on-result-change="_formSearch"></MeterSampleQuoteManage>
<MeterContractRecord ref="meterContractRecordModal" @on-result-change="_formSearch"></MeterContractRecord>
</div>
......@@ -188,7 +189,8 @@ export default {
},
_upload(id) {
// 上传文件
this.$refs.refModal._open(id, 'subcontractorId')
// this.$refs.refModal._open(id, 'subcontractorId')
this.$refs.FileManage._open(id, 'subcontractorId')
},
_getById: async function(id) {
const result = await meterSubcontractor.getById(id)
......
......@@ -35,7 +35,7 @@
:fixed="item.fixed?item.fixed:undefined" sortable>
<template slot-scope="scope">
<span v-if="item.date">{{scope.row[item.key]?$dateformat(scope.row[item.key],'yyyy-mm-dd'):''}}</span>
<span v-if="item.status">{{scope.row[item.key].display}}</span>
<span v-else-if="item.status">{{scope.row[item.key].display}}</span>
<span v-else>{{scope.row[item.key]}}</span>
</template>
</vxe-table-column>
......
......@@ -43,6 +43,7 @@
</Row>
</div>
</div>
<FileManage ref="FileManage"></FileManage>
<MeterSampleQuoteManage ref="meterSampleQuoteManageModal" @on-result-change="_formSearch"></MeterSampleQuoteManage>
<MeterContractRecord ref="meterContractRecordModal" @on-result-change="_formSearch"></MeterContractRecord>
</div>
......@@ -188,7 +189,7 @@ export default {
},
_upload(id) {
// 上传文件
this.$refs.refModal._open(id, 'subcontractorId')
this.$refs.FileManage._open(id, 'subcontractorId')
},
_getById: async function(id) {
const result = await meterSubcontractor.getById(id)
......
......@@ -35,7 +35,7 @@
:fixed="item.fixed?item.fixed:undefined" sortable>
<template slot-scope="scope">
<span v-if="item.date">{{scope.row[item.key]?$dateformat(scope.row[item.key],'yyyy-mm-dd'):''}}</span>
<span v-if="item.status">{{scope.row[item.key].display}}</span>
<span v-else-if="item.status">{{scope.row[item.key].display}}</span>
<span v-else>{{scope.row[item.key]}}</span>
</template>
</vxe-table-column>
......
......@@ -43,6 +43,7 @@
</Row>
</div>
</div>
<FileManage ref="FileManage"></FileManage>
<MeterSampleQuoteManage ref="meterSampleQuoteManageModal" @on-result-change="_formSearch"></MeterSampleQuoteManage>
<MeterContractRecord ref="meterContractRecordModal" @on-result-change="_formSearch"></MeterContractRecord>
</div>
......@@ -188,7 +189,7 @@ export default {
},
_upload(id) {
// 上传文件
this.$refs.refModal._open(id, 'subcontractorId')
this.$refs.FileManage._open(id, 'subcontractorId')
},
_getById: async function(id) {
const result = await meterSubcontractor.getById(id)
......
......@@ -51,7 +51,7 @@
</div>
</template>
<script>
import { meterContract, meterSubcontractor } from '../../../api'
import { meterContract } from '../../../api'
import MeterSendOperation from '../MeterContractRecord'
import MeterSampleManage from '../MeterSampleQuoteManage'
import MeterSubcontractorEdit from './MeterQuoteRegisterEdit'
......@@ -259,7 +259,7 @@ export default {
}
},
_delete: async function(ids) {
const result = await meterSubcontractor.deleteById(ids)
const result = await meterContract.deleteById(ids)
if (result) {
this._formSearch()
this.$Message.success('删除成功!')
......
......@@ -43,7 +43,7 @@
</Row>
</div>
</div>
<FileManage ref="FileManage"></FileManage>
<MeterSampleQuoteManage ref="meterSampleQuoteManageModal" @on-result-change="_formSearch"></MeterSampleQuoteManage>
<MeterContractRecord ref="meterContractRecordModal" @on-result-change="_formSearch"></MeterContractRecord>
</div>
......@@ -196,7 +196,7 @@ export default {
_upload(id) {
// 上传文件
this.$refs.refModal._open(id, 'subcontractorId')
this.$refs.FileManage._open(id, 'subcontractorId')
},
_getById: async function(id) {
const result = await meterSubcontractor.getById(id)
......
......@@ -94,11 +94,11 @@ export default {
id: '',
name: '查看证书'
},
{
type: 'ios-list-box',
id: '',
name: '仪器领用'
},
// {
// type: 'ios-list-box',
// id: '',
// name: '仪器领用'
// },
{ type: 'md-cloud', id: '', name: '附件' }
],
formObj: {
......
......@@ -94,11 +94,11 @@ export default {
id: '',
name: '查看证书'
},
{
type: 'ios-list-box',
id: '',
name: '仪器领用'
},
// {
// type: 'ios-list-box',
// id: '',
// name: '仪器领用'
// },
{ type: 'md-cloud', id: '', name: '附件' }
],
formObj: {
......
......@@ -6,29 +6,29 @@
<Row>
<!--查询-->
<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>
<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 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 class="search-btn">
<Button type="primary" @click="_formSearch">搜索</Button>
<Button @click="_formSearch" type="primary">搜索</Button>
</Form-item>
</Form>
</Col>
<!--操作-->
<Col span="24">
<btn-list :msg="btn" :open="searchOpen" :show-search-btn="true" class="contHide"
@on-result-change="_btnClick"></btn-list>
<btn-list :msg="btn" :open="searchOpen" :show-search-btn="true" @on-result-change="_btnClick"
class="contHide"></btn-list>
</Col>
<!--表格-->
<Col span="24">
<PTVXETable ref="pageTable" :table-height="tableHeight" :form-id="formId" :loading="true"
:get-page="getPage" :icon-msg="iconMsg" select-data @on-result-change="_tableResultChange">
:get-page="getPage" :icon-msg="iconMsg" @on-result-change="_tableResultChange" select-data>
<vxe-table-column
v-for="item in pageColumns"
:key="item.key"
......@@ -147,6 +147,7 @@ export default {
}
})
},
_resultRecord() {},
_submitToReview() {
this._submitByContractIds()
},
......
......@@ -53,7 +53,7 @@
</div>
</template>
<script>
import { meterContract, meterSubcontractor } from '../../../api'
import { meterContract } from '../../../api'
import MeterSendOperation from '../MeterContractReviewOperation'
import MeterSampleManage from '../MeterSampleQuoteManage'
import MeterSubcontractorEdit from './MeterContractRegisterEdit'
......@@ -184,16 +184,18 @@ export default {
title: '提示',
content: '确定要把这 ' + ids.length + ' 条记录提交到' + cont + '?',
onOk: () => {
const result = meterContract.submitToContractReview(ids)
if (result) {
this._resultChange('提交成功')
console.log(result)
}
this._submit(ids)
// })
}
})
}
},
_submit: async function(ids) {
const result = await meterContract.submitToContractReview(ids)
if (result) {
this._resultChange('提交成功')
}
},
_resultChange(msg) {
this.$Message.success(msg)
this._page()
......@@ -263,7 +265,7 @@ export default {
}
},
_delete: async function(ids) {
const result = await meterSubcontractor.deleteById(ids)
const result = await meterContract.deleteById(ids)
if (result) {
this._formSearch()
this.$Message.success('删除成功!')
......
......@@ -45,15 +45,17 @@
</Row>
</div>
</div>
<MeterContracHisOperation ref="operationModal"></MeterContracHisOperation>
<FileManage ref="FileManage"></FileManage>
<MeterSubcontractorEdit ref="editSubcontractorModal" @on-result-change="_formSearch"></MeterSubcontractorEdit>
</div>
</template>
<script>
import { meterEntrust, meterSubcontractor } from '../../../api'
import { meterEntrust, meterContract } from '../../../api'
import MeterContracHisOperation from '../../../components/operation/Operation'
import MeterSubcontractorEdit from './MeterContractRegisterEdit'
export default {
components: { MeterSubcontractorEdit },
components: { MeterSubcontractorEdit, MeterContracHisOperation },
data() {
return {
currentComponent: '',
......@@ -67,18 +69,18 @@ export default {
}
],
iconMsg: [
{
type: 'ios-clock',
id: '',
name: '编辑'
},
{
type: 'ios-clock',
id: '',
name: '资质项目'
},
{ type: 'ios-clock', id: '', name: '附件' },
{ type: 'ios-clock', id: '', name: '删除' },
// {
// type: 'md-create',
// id: '',
// name: '编辑'
// },
// {
// type: 'ios-clock',
// id: '',
// name: '资质项目'
// },
{ type: 'md-cloud', id: '', name: '附件' },
{ type: 'md-remove-circle', id: '', name: '删除' },
{
type: 'ios-clock',
id: '',
......@@ -155,7 +157,7 @@ export default {
})
},
_record(id) {
this.$refs.refModal._open(id)
this.$refs.operationModal._open(id)
},
_tableResultChange(msg, data) {
switch (msg) {
......@@ -205,21 +207,23 @@ export default {
},
// 追加项目
_itemModal(data) {
this.$refs.refModal._open(data)
// this.$refs.refModal._open(data)
},
_upload(id) {
// 上传文件
this.$refs.refModal._open(id, 'subcontractorId')
// this.$refs.refModal._open(id, 'subcontractorId')
this.$refs.FileManage._open(id, 'subcontractorId')
},
_getById: async function(id) {
const result = await meterSubcontractor.getById(id)
const result = await meterContract.getVOById(id)
console.log(result)
if (result) {
this.$refs.editSubcontractorModal._open(result)
this.$refs.editSubcontractorModal._openEdit(result)
}
},
_delete: async function(ids) {
const result = await meterSubcontractor.deleteById(ids)
const result = await meterContract.deleteById(ids)
if (result) {
this._formSearch()
this.$Message.success('删除成功!')
......
......@@ -6,24 +6,24 @@
<Row>
<!--查询-->
<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>
<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 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 class="search-btn">
<Button type="primary" @click="_formSearch">搜索</Button>
<Button @click="_formSearch" type="primary">搜索</Button>
</Form-item>
</Form>
</Col>
<!--操作-->
<Col span="24">
<btn-list :msg="btn" :open="searchOpen" :show-search-btn="true" class="contHide"
@on-result-change="_btnClick"></btn-list>
<btn-list :msg="btn" :open="searchOpen" :show-search-btn="true" @on-result-change="_btnClick"
class="contHide"></btn-list>
</Col>
<!--表格-->
<Col span="24">
......@@ -51,17 +51,20 @@
<MeterSendOperation ref="operationModal"></MeterSendOperation>
<MeterSubcontractorEdit ref="editSubcontractorModal" @on-result-change="_formSearch"></MeterSubcontractorEdit>
<MeterSubcontractorAddEdit ref="addEditModal" @on-result-change="_page"></MeterSubcontractorAddEdit>
<MeterSampleManage ref="meterSampleManageModal" @on-result-change="_page"></MeterSampleManage>
</div>
</template>
<script>
import { meterContract, meterSubcontractor } from '../../../api'
import { meterContract } from '../../../api'
import Reason from '../../../components/base/Reason'
import MeterSendOperation from '../MeterContractReviewOperation'
import MeterSampleManage from '../MeterSampleQuoteManage'
import MeterSubcontractorEdit from './MeterContractReviewEdit'
import MeterSubcontractorAddEdit from './MeterContractReviewAddEdit'
export default {
components: {
MeterSubcontractorEdit,
MeterSampleManage,
MeterSendOperation,
MeterSubcontractorAddEdit,
Reason
......@@ -187,6 +190,9 @@ export default {
this.currentComponent = componentName
this.$nextTick(function() {
switch (res) {
case '查看样品':
this._manageSample(data.id)
break
case '评审':
this._reviewContract(data.id)
break
......@@ -205,6 +211,10 @@ export default {
}
})
},
_manageSample(data) {
// 查看样品
this.$refs.meterSampleManageModal._open(data)
},
_submitToReview() {
this._submitByContractIds('合同评审')
},
......@@ -297,7 +307,7 @@ export default {
}
},
_delete: async function(ids) {
const result = await meterSubcontractor.deleteById(ids)
const result = await meterContract.deleteById(ids)
if (result) {
this._formSearch()
this.$Message.success('删除成功!')
......
......@@ -45,15 +45,17 @@
</Row>
</div>
</div>
<MeterReviewHisHisOperation ref="operationModal"></MeterReviewHisHisOperation>
<FileManage ref="FileManage"></FileManage>
<MeterSubcontractorEdit ref="editSubcontractorModal" @on-result-change="_formSearch"></MeterSubcontractorEdit>
</div>
</template>
<script>
import { meterEntrust, meterSubcontractor } from '../../../api'
import MeterReviewHisHisOperation from '../../../components/operation/Operation'
import MeterSubcontractorEdit from './MeterContractReviewEdit'
export default {
components: { MeterSubcontractorEdit },
components: { MeterSubcontractorEdit, MeterReviewHisHisOperation },
data() {
return {
currentComponent: '',
......@@ -67,18 +69,18 @@ export default {
}
],
iconMsg: [
{
type: 'ios-clock',
id: '',
name: '编辑'
},
{
type: 'ios-clock',
id: '',
name: '资质项目'
},
{ type: 'ios-clock', id: '', name: '附件' },
{ type: 'ios-clock', id: '', name: '删除' },
// {
// type: 'md-create',
// id: '',
// name: '编辑'
// },
// {
// type: 'ios-clock',
// id: '',
// name: '资质项目'
// },
{ type: 'md-cloud', id: '', name: '附件' },
{ type: 'md-remove-circle', id: '', name: '删除' },
{
type: 'ios-clock',
id: '',
......@@ -155,7 +157,7 @@ export default {
})
},
_record(id) {
this.$refs.refModal._open(id)
this.$refs.operationModal._open(id)
},
_tableResultChange(msg, data) {
switch (msg) {
......@@ -202,12 +204,13 @@ export default {
},
// 追加项目
_itemModal(data) {
this.$refs.refModal._open(data)
// this.$refs.refModal._open(data)
},
_upload(id) {
// 上传文件
this.$refs.refModal._open(id, 'subcontractorId')
// this.$refs.refModal._open(id, 'subcontractorId')
this.$refs.FileManage._open(id, 'subcontractorId')
},
_getById: async function(id) {
const result = await meterSubcontractor.getById(id)
......
......@@ -37,7 +37,9 @@
:min-width="item.width?item.width:200"
:fixed="item.fixed?item.fixed:undefined" sortable>
<template slot-scope="scope">
<span>{{scope.row[item.key]}}</span>
<span v-if="item.key==='edate'">{{scope.row[item.key]?$dateformat(scope.row[item.key],'yyyy-mm-dd'):''}}
</span>
<span v-else>{{scope.row[item.key]}}</span>
</template>
</vxe-table-column>
</PTVXETable>
......
......@@ -118,11 +118,8 @@ export default {
_page: async function() {
const result = await meterManage.page(this._searchParams())
if (result) {
console.log('查询结果')
console.log(result)
this.getPage = result.records
this.loading = false
console.log(this.getPage)
}
},
_pageChange(page) {
......
......@@ -37,7 +37,9 @@
:min-width="item.width?item.width:200"
:fixed="item.fixed?item.fixed:undefined" sortable>
<template slot-scope="scope">
<span>{{scope.row[item.key]}}</span>
<span v-if="item.key==='edate'">{{scope.row[item.key]?$dateformat(scope.row[item.key],'yyyy-mm-dd'):''}}
</span>
<span v-else>{{scope.row[item.key]}}</span>
</template>
</vxe-table-column>
</PTVXETable>
......
......@@ -118,11 +118,8 @@ export default {
_page: async function() {
const result = await meterManage.page(this._searchParams())
if (result) {
console.log('查询结果')
console.log(result)
this.getPage = result.records
this.loading = false
console.log(this.getPage)
}
},
_pageChange(page) {
......
......@@ -37,7 +37,9 @@
:min-width="item.width?item.width:200"
:fixed="item.fixed?item.fixed:undefined" sortable>
<template slot-scope="scope">
<span>{{scope.row[item.key]}}</span>
<span v-if="item.key==='edate'">{{scope.row[item.key]?$dateformat(scope.row[item.key],'yyyy-mm-dd'):''}}
</span>
<span v-else>{{scope.row[item.key]}}</span>
</template>
</vxe-table-column>
</PTVXETable>
......
......@@ -4,7 +4,7 @@
<p slot="header">仪器领用</p>
<Form :label-width="60" onsubmit="return false" inline>
<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"/>
</Form-item>
<Form-item class="search-btn" style="margin-left: -10px">
......
......@@ -45,15 +45,17 @@
</Row>
</div>
</div>
<operationModal ref="operationModal" @on-result-change="_page"></operationModal>
<FileManage ref="FileManage" @on-result-change="_page"></FileManage>
<MeterSubcontractorEdit ref="editSubcontractorModal" @on-result-change="_formSearch"></MeterSubcontractorEdit>
</div>
</template>
<script>
import { meterEntrust } from '../../../api'
import { meterEntrust, meterSample } from '../../../api'
import operationModal from '../../../components/operation/Operation'
import MeterSubcontractorEdit from './MeterGoOutTestEdit'
export default {
components: { MeterSubcontractorEdit },
components: { MeterSubcontractorEdit, operationModal },
data() {
return {
currentComponent: '',
......@@ -77,17 +79,17 @@ export default {
// id: '',
// name: '编辑'
// },
{
type: 'ios-beaker',
id: '',
name: '管理样品'
},
{ type: 'md-cloud', id: '', name: '附件' },
{
type: 'ios-clock',
id: '',
name: '操作日志'
}
// {
// type: 'ios-beaker',
// id: '',
// name: '管理样品'
// },
// { type: 'md-cloud', id: '', name: '附件' },
// {
// type: 'ios-clock',
// id: '',
// name: '操作日志'
// }
],
formObj: {
name: undefined,
......@@ -96,16 +98,22 @@ export default {
selectIds: [],
getPage: {},
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: 'person', width: 120 },
{ title: '联系电话', key: 'tel', width: 120 },
{ title: '传真', key: 'fax', width: 120 },
{ title: '详细地址', key: 'address', width: 250 },
{ title: '邮编', key: 'postcode' },
{ title: 'E-mail', key: 'email', width: 120 },
{ title: '委托日期', key: 'edate', width: 120 },
{ title: '费用合计', key: 'fee', width: 120 },
{ title: '合同号', key: 'contractCode', width: 120 },
{ title: '数量', key: 'quantity' },
{ title: '备注', key: 'remark' }
]
}
......@@ -163,6 +171,9 @@ export default {
this.currentComponent = componentName
this.$nextTick(function() {
switch (res) {
case '查看样品':
this._manageSample(data.id)
break
case '编辑':
this._editModal(true, data.id)
break
......@@ -181,8 +192,12 @@ export default {
}
})
},
_manageSample(data) {
// 查看样品
// this.$refs.meterSampleManageModal._open(data)
},
_record(id) {
this.$refs.refModal._open(id)
this.$refs.operationModal._open(id)
},
_tableResultChange(msg, data) {
switch (msg) {
......@@ -203,7 +218,7 @@ export default {
_page: async function() {
Object.assign(this.formObj, this.$refs.pageTable._searchParams())
console.log('this.formObj', this.formObj)
const result = await meterEntrust.pageGoOutEntrust(this.formObj)
const result = await meterSample.pageOutPersonalTask(this.formObj)
if (result) {
this.$refs.pageTable._hideLoading()
this.getPage = result
......@@ -239,7 +254,7 @@ export default {
_upload(id) {
// 上传文件
this.$refs.refModal._open(id, 'subcontractorId')
this.$refs.FileManage._open(id, 'subcontractorId')
},
_getById: async function(id) {
const result = await meterEntrust.getVOById(id)
......
......@@ -37,7 +37,9 @@
:min-width="item.width?item.width:200"
:fixed="item.fixed?item.fixed:undefined" sortable>
<template slot-scope="scope">
<span>{{scope.row[item.key]}}</span>
<span v-if="item.key==='edate'">{{scope.row[item.key]?$dateformat(scope.row[item.key],'yyyy-mm-dd'):''}}
</span>
<span v-else>{{scope.row[item.key]}}</span>
</template>
</vxe-table-column>
</PTVXETable>
......@@ -71,17 +73,17 @@ export default {
// id: '',
// name: '编辑'
// },
{
type: 'ios-contact',
id: '',
name: '任务分配'
},
{ type: 'md-cloud', id: '', name: '附件' },
{
type: 'ios-clock',
id: '',
name: '操作日志'
}
// {
// type: 'ios-contact',
// id: '',
// name: '任务分配'
// },
// { type: 'md-cloud', id: '', name: '附件' },
// {
// type: 'ios-clock',
// id: '',
// name: '操作日志'
// }
],
formObj: {
client: undefined,
......
......@@ -68,7 +68,7 @@
</div>
</div>
<!-- 添加、编辑 -->
<MeterAptitudeStandardEdit ref="editModal" @on-result-change="_page"></MeterAptitudeStandardEdit>
<!-- <MeterAptitudeStandardEdit ref="editModal" @on-result-change="_page"></MeterAptitudeStandardEdit>-->
<!--导入资质项目-->
<!-- <DownloadTemplateImport ref="sampleModal" @on-result-change="_page"></DownloadTemplateImport>-->
</div>
......
......@@ -37,7 +37,9 @@
:min-width="item.width?item.width:200"
:fixed="item.fixed?item.fixed:undefined" sortable>
<template slot-scope="scope">
<span>{{scope.row[item.key]}}</span>
<span v-if="item.key==='edate'">{{scope.row[item.key]?$dateformat(scope.row[item.key],'yyyy-mm-dd'):''}}
</span>
<span v-else>{{scope.row[item.key]}}</span>
</template>
</vxe-table-column>
</PTVXETable>
......
......@@ -10,24 +10,24 @@
<Form id="formId" :label-width="80" inline onsubmit="return false">
<label class="label-sign"></label>
<Form-item label="样品名称:" class="search-item">
<Input v-model="formObj.name" placeholder="请输入样品名称" clearable @on-enter="_formSearch"/>
<Input v-model="formObj.name" @on-enter="_formSearch" placeholder="请输入样品名称" clearable/>
</Form-item>
<Form-item label="样品编号:" class="search-item">
<Input v-model="formObj.code" placeholder="请输入样品编号" clearable @on-enter="_formSearch"/>
<Input v-model="formObj.code" @on-enter="_formSearch" placeholder="请输入样品编号" clearable/>
</Form-item>
<Form-item class="search-btn" style="margin-left: -10px">
<Button type="primary" @click="_formSearch">搜索</Button>
<Button @click="_formSearch" type="primary">搜索</Button>
</Form-item>
</Form>
</Col>
<Col span="24">
<btn-list :msg="btn" :open="searchOpen" :show-search-btn="true" class="contHide"
@on-result-change="_btnClick"></btn-list>
<btn-list :msg="btn" :open="searchOpen" :show-search-btn="true" @on-result-change="_btnClick"
class="contHide"></btn-list>
</Col>
<Col span="24">
<PTVXETable ref="pageTable" :table-height="tableHeight" :form-id="formId" :get-page="getPage"
:icon-msg="iconMsg" select-data @on-result-change="_tableResultChange">
:icon-msg="iconMsg" @on-result-change="_tableResultChange" select-data>
<vxe-table-column
v-for="item in pageColumns"
:key="item.key"
......@@ -77,6 +77,7 @@ export default {
data() {
return {
currentComponent: '',
searchOpen: false,
// btn: [
// {type: 'success', id: '', name: '添加', componentName: 'FoodSampleGovernEdit'},
// {id: 'food-gov-sample-batch-add', name: '批量添加', componentName: 'FoodSampleGovernBatchAdd'},
......
......@@ -10,24 +10,24 @@
<Form id="formId" :label-width="80" inline onsubmit="return false">
<label class="label-sign"></label>
<Form-item label="样品名称:" class="search-item">
<Input v-model="formObj.name" placeholder="请输入样品名称" clearable @on-enter="_formSearch"/>
<Input v-model="formObj.name" @on-enter="_formSearch" placeholder="请输入样品名称" clearable/>
</Form-item>
<Form-item label="样品编号:" class="search-item">
<Input v-model="formObj.code" placeholder="请输入样品编号" clearable @on-enter="_formSearch"/>
<Input v-model="formObj.code" @on-enter="_formSearch" placeholder="请输入样品编号" clearable/>
</Form-item>
<Form-item class="search-btn" style="margin-left: -10px">
<Button type="primary" @click="_formSearch">搜索</Button>
<Button @click="_formSearch" type="primary">搜索</Button>
</Form-item>
</Form>
</Col>
<Col span="24">
<btn-list :msg="btn" :open="searchOpen" :show-search-btn="true" class="contHide"
@on-result-change="_btnClick"></btn-list>
<btn-list :msg="btn" :open="searchOpen" :show-search-btn="true" @on-result-change="_btnClick"
class="contHide"></btn-list>
</Col>
<Col span="24">
<PTVXETable ref="pageTable" :table-height="tableHeight" :form-id="formId" :get-page="getPage"
:icon-msg="iconMsg" select-data @on-result-change="_tableResultChange">
:icon-msg="iconMsg" @on-result-change="_tableResultChange" select-data>
<vxe-table-column
v-for="item in pageColumns"
:key="item.key"
......@@ -79,6 +79,7 @@ export default {
data() {
return {
currentComponent: '',
searchOpen: false,
// btn: [
// {type: 'success', id: '', name: '添加', componentName: 'FoodSampleGovernEdit'},
// {id: 'food-gov-sample-batch-add', name: '批量添加', componentName: 'FoodSampleGovernBatchAdd'},
......
......@@ -45,13 +45,15 @@
</Row>
</div>
</div>
<Operation ref="Operation"></Operation>
<FileManage ref="FileManage" @on-result-change="_page"></FileManage>
</div>
</template>
<script>
import { meterEntrust } from '../../../api'
import Operation from '../../../components/operation/Operation'
export default {
components: {},
components: { Operation },
data() {
return {
currentComponent: '',
......@@ -70,16 +72,16 @@ export default {
}
],
iconMsg: [
{
type: 'md-create',
id: '',
name: '编辑'
},
{
type: 'ios-beaker',
id: '',
name: '管理样品'
},
// {
// type: 'md-create',
// id: '',
// name: '编辑'
// },
// {
// type: 'ios-beaker',
// id: '',
// name: '管理样品'
// },
{ type: 'md-cloud', id: '', name: '附件' },
{ type: 'md-remove-circle', id: '', name: '删除' },
{
......@@ -181,7 +183,8 @@ export default {
})
},
_record(id) {
this.$refs.refModal._open(id)
// this.$refs.refModal._open(id)
this.$refs.Operation._open(id)
},
_tableResultChange(msg, data) {
switch (msg) {
......@@ -238,12 +241,12 @@ export default {
_upload(id) {
// 上传文件
this.$refs.refModal._open(id, 'subcontractorId')
this.$refs.FileManage._open(id, 'subcontractorId')
},
_getById: async function(id) {
const result = await meterEntrust.getVOById(id)
if (result) {
this.$refs.editSubcontractorModal._openEdit(result)
// this.$refs.editSubcontractorModal._openEdit(result)
}
},
_delete: async function(ids) {
......
......@@ -37,7 +37,9 @@
:min-width="item.width?item.width:200"
:fixed="item.fixed?item.fixed:undefined" sortable>
<template slot-scope="scope">
<span>{{scope.row[item.key]}}</span>
<span v-if="item.key==='edate'">{{scope.row[item.key]?$dateformat(scope.row[item.key],'yyyy-mm-dd'):''}}
</span>
<span v-else>{{scope.row[item.key]}}</span>
</template>
</vxe-table-column>
</PTVXETable>
......@@ -45,15 +47,17 @@
</Row>
</div>
</div>
<Operation ref="Operation"></Operation>
<FileManage ref="FileManage"></FileManage>
<MeterSubcontractorEdit ref="editSubcontractorModal" @on-result-change="_formSearch"></MeterSubcontractorEdit>
</div>
</template>
<script>
import { meterEntrust } from '../../../api'
import Operation from '../../../components/operation/Operation'
import MeterSubcontractorEdit from './MeterGoOutTestEdit'
export default {
components: { MeterSubcontractorEdit },
components: { MeterSubcontractorEdit, Operation },
data() {
return {
currentComponent: '',
......@@ -72,16 +76,16 @@ export default {
}
],
iconMsg: [
{
type: 'md-create',
id: '',
name: '编辑'
},
{
type: 'ios-beaker',
id: '',
name: '管理样品'
},
// {
// type: 'md-create',
// id: '',
// name: '编辑'
// },
// {
// type: 'ios-beaker',
// id: '',
// name: '管理样品'
// },
{ type: 'md-cloud', id: '', name: '附件' },
{ type: 'md-remove-circle', id: '', name: '删除' },
{
......@@ -183,7 +187,8 @@ export default {
})
},
_record(id) {
this.$refs.refModal._open(id)
// this.$refs.refModal._open(id)
this.$refs.Operation._open(id)
},
_tableResultChange(msg, data) {
switch (msg) {
......@@ -240,7 +245,8 @@ export default {
_upload(id) {
// 上传文件
this.$refs.refModal._open(id, 'subcontractorId')
// this.$refs.refModal._open(id, 'subcontractorId')
this.$refs.FileManage._open(id, 'subcontractorId')
},
_getById: async function(id) {
const result = await meterEntrust.getVOById(id)
......
......@@ -37,7 +37,9 @@
:min-width="item.width?item.width:200"
:fixed="item.fixed?item.fixed:undefined" sortable>
<template slot-scope="scope">
<span>{{scope.row[item.key]}}</span>
<span v-if="item.key==='edate'">{{scope.row[item.key]?$dateformat(scope.row[item.key],'yyyy-mm-dd'):''}}
</span>
<span v-else>{{scope.row[item.key]}}</span>
</template>
</vxe-table-column>
</PTVXETable>
......
......@@ -37,7 +37,9 @@
:min-width="item.width?item.width:200"
:fixed="item.fixed?item.fixed:undefined" sortable>
<template slot-scope="scope">
<span>{{scope.row[item.key]}}</span>
<span v-if="item.key==='edate'">{{scope.row[item.key]?$dateformat(scope.row[item.key],'yyyy-mm-dd'):''}}
</span>
<span v-else>{{scope.row[item.key]}}</span>
</template>
</vxe-table-column>
</PTVXETable>
......
......@@ -14,9 +14,6 @@
</Form-item>
</Form>
</div>
<div class="fr">
<Button class="width-80" @click="_export">导出</Button>
</div>
<div class="clear"></div>
</Col>
<!--内容-->
......
......@@ -8,7 +8,7 @@
<div class="fl">
<Form id="search-form" :label-width="100" inline onsubmit="return false">
<label class="label-sign"></label>
<Form-item label="应出报告日期:">
<Form-item label="应出证书日期:">
<!--<DatePicker type="month" style="width:90px" v-model="startDate" @on-change="_beginDateChange"-->
<!--:editable="false"></DatePicker>-->
<!--<label class="line-color">——</label>-->
......@@ -16,23 +16,20 @@
<!--@on-change="_endDateChange"></DatePicker>-->
<el-date-picker
v-model="queryDate"
@change="_dateChange"
type="monthrange"
range-separator="-"
start-placeholder="开始月份"
end-placeholder="结束月份"
size="small"
value-format="yyyy-MM"
@change="_dateChange">
value-format="yyyy-MM">
</el-date-picker>
</Form-item>
<Form-item class="marginLeft-70" style="margin-left: -60px;">
<Button type="primary" class="width-80" @click="_getData">搜索</Button>
<Button @click="_getData" type="primary" class="width-80">搜索</Button>
</Form-item>
</Form>
</div>
<div class="fr">
<Button class="width-80" @click="_export">导出</Button>
</div>
<div class="clear"></div>
</Col>
<!--内容-->
......@@ -87,12 +84,20 @@ export default {
}
},
mounted() {
const str = this.tempData.endDate
const arr = str.split('-')
const lastday = this.mGetDate(arr[0], arr[1]).getTime() - 1
this.forObject.edateBegin = this.tempData.beginDate
this.forObject.edateEnd = this.tempData.endDate
// this.forObject.edateEnd = this.tempData.endDate
this.forObject.edateEnd = this.$dateformat(lastday, 'yyyy-mm-dd HH:MM:ss')
this._getData()
// this._search();
},
methods: {
mGetDate(year, month) {
const d = new Date(year, month, 1)
return d
},
_dateChange(data) {
if (data) {
this.tempData.beginDate = data[0]
......@@ -101,13 +106,20 @@ export default {
this.pieData.endDate = data[1]
this.forObject.edateBegin = data[0]
this.forObject.edateEnd = data[1]
const str = data[1]
const arr = str.split('-')
const lastday = this.mGetDate(arr[0], arr[1]).getTime() - 1
this.forObject.edateEnd = this.$dateformat(
lastday,
'yyyy-mm-dd HH:MM:ss'
)
} else {
this.tempData.beginDate = ''
this.tempData.endDate = ''
this.pieData.beginDate = ''
this.pieData.endDate = ''
this.forObject.edateBegin = ''
this.forObject.edateEnd = ''
this.forObject.edateBegin = undefined
this.forObject.edateEnd = undefined
}
this.$refs.contractTableModal._changeDate(this.tempData)
},
......@@ -131,8 +143,8 @@ export default {
},
_search() {
this.$refs.contractTableModal._searchTable({
beginDate: this.tempData.beginDate,
endDate: this.tempData.endDate
beginDate: this.forObject.edateBegin,
endDate: this.forObject.edateEnd
})
// this.$refs.contractPieModal._searchPie({
// beginDate: this.pieData.beginDate,
......
......@@ -52,7 +52,7 @@ export default {
}
},
mounted() {
this._page()
// this._page()
},
methods: {
// 日期变化时,将时间赋值,导出根据查询条件
......@@ -67,7 +67,7 @@ export default {
$('input[name=endDate]').val(data.endDate)
$('input[name=warningDate]').val(data.warningDate)
$('input[name=type]').val('')
this._page()
// this._page()
},
_searchTable(data) {
$('input[name=beginDate]').val(data.beginDate)
......
......@@ -25,9 +25,6 @@
</Form-item>
</Form>
</div>
<div class="fr">
<Button @click="_exportSampleForm" class="width-80">导出</Button>
</div>
<div class="clear"></div>
</Col>
<!--内容-->
......@@ -122,18 +119,23 @@ export default {
},
mounted() {
this.$refs.pageTable._hideLoading()
const str = this.tempData.endDate
const arr = str.split('-')
const lastday = this.mGetDate(arr[0], arr[1]).getTime() - 1
// this._contHide()
// this._getUserGroup()
this.formObj.edateBegin = this.tempData.beginDate
this.formObj.edateEnd = this.tempData.endDate
this.formObj.edateEnd = this.$dateformat(lastday, 'yyyy-mm-dd HH:MM:ss')
this._getData()
// this._getServiceTypeList()
},
methods: {
mGetDate(year, month) {
const d = new Date(year, month, 1)
return d
},
// 服务类型
_getData: async function() {
this.formObj.edateBegin = this.queryDate[0]
this.formObj.edateEnd = this.queryDate[1]
console.log('753951')
console.log('选择时间后的请求', this.formObj)
const result = await meterSample.pageCustomerEntrustStatistics(
......@@ -159,9 +161,15 @@ export default {
if (data) {
this.formObj.edateBegin = data[0]
this.formObj.edateEnd = data[1]
const str = data[1]
const arr = str.split('-')
const lastday = this.mGetDate(arr[0], arr[1]).getTime() - 1
this.formObj.edateEnd = this.$dateformat(lastday, 'yyyy-mm-dd HH:MM:ss')
} else {
this.tempData.edateBegin = ''
this.tempData.edateEnd = ''
this.formObj.edateBegin = undefined
this.formObj.edateEnd = undefined
}
},
_contHide() {
......
......@@ -35,9 +35,6 @@
</Form-item>
</Form>
</div>
<div class="fr">
<Button class="width-80" @click="_exportSampleForm">导出</Button>
</div>
<div class="clear"></div>
</Col>
<!--内容-->
......@@ -154,12 +151,19 @@ export default {
this.$refs.pageTable._hideLoading()
// this._contHide()
// this._getUserGroup()
const str = this.tempData.endDate
const arr = str.split('-')
const lastday = this.mGetDate(arr[0], arr[1]).getTime() - 1
this.formObj.edateBegin = this.tempData.beginDate
this.formObj.edateEnd = this.tempData.endDate
this.formObj.edateEnd = this.$dateformat(lastday, 'yyyy-mm-dd HH:MM:ss')
this._getData()
// this._getServiceTypeList()
},
methods: {
mGetDate(year, month) {
const d = new Date(year, month, 1)
return d
},
// 服务类型
_getData: async function() {
const result = await meterSample.pagePersonalTaskStatistics(this.formObj)
......@@ -184,7 +188,10 @@ export default {
this.tempData.beginDate = data[0]
this.tempData.endDate = data[1]
this.formObj.edateBegin = data[0]
this.formObj.edateEnd = data[1]
const str = data[1]
const arr = str.split('-')
const lastday = this.mGetDate(arr[0], arr[1]).getTime() - 1
this.formObj.edateEnd = this.$dateformat(lastday, 'yyyy-mm-dd HH:MM:ss')
} else {
this.tempData.beginDate = ''
this.tempData.endDate = ''
......
......@@ -25,9 +25,6 @@
</Form-item>
</Form>
</div>
<div class="fr">
<Button @click="_exportSampleForm" class="width-80">导出</Button>
</div>
<div class="clear"></div>
</Col>
<!--内容-->
......@@ -142,14 +139,21 @@ export default {
},
mounted() {
this.$refs.pageTable._hideLoading()
const str = this.tempData.endDate
const arr = str.split('-')
const lastday = this.mGetDate(arr[0], arr[1]).getTime() - 1
this.formObj.edateBegin = this.tempData.beginDate
this.formObj.edateEnd = this.tempData.endDate
this.formObj.edateEnd = this.$dateformat(lastday, 'yyyy-mm-dd HH:MM:ss')
// this._contHide()
// this._getUserGroup()
this._getData()
// this._getServiceTypeList()
},
methods: {
mGetDate(year, month) {
const d = new Date(year, month, 1)
return d
},
// 服务类型
_getData: async function() {
const result = await meterSample.pageSampleQuantityStatistics(
......@@ -176,7 +180,10 @@ export default {
this.tempData.beginDate = data[0]
this.tempData.endDate = data[1]
this.formObj.edateBegin = data[0]
this.formObj.edateEnd = data[1]
const str = data[1]
const arr = str.split('-')
const lastday = this.mGetDate(arr[0], arr[1]).getTime() - 1
this.formObj.edateEnd = this.$dateformat(lastday, 'yyyy-mm-dd HH:MM:ss')
} else {
this.tempData.beginDate = ''
this.tempData.endDate = ''
......
......@@ -48,7 +48,7 @@
</div>
</template>
<script>
import { meterSubContract, meterSubcontractor } from '../../../api'
import { meterSubContract } from '../../../api'
import MeterSubcontractorEdit from './MeterCannotSubEdit'
export default {
components: { MeterSubcontractorEdit },
......@@ -242,7 +242,7 @@ export default {
}
},
_delete: async function(ids) {
const result = await meterSubcontractor.deleteById(ids)
const result = await meterSubContract.deleteById(ids)
if (result) {
this._formSearch()
this.$Message.success('删除成功!')
......
......@@ -5,18 +5,18 @@
<div>
<Form id="edit-form" ref="formObj" :model="formObj" :rules="ruleValidate" :label-width="90" inline>
<Form-item label="委托单位" prop="client" class="width-48">
<AutoComplete :value="formObj.client" :down-data="customerData" name="client"
placeholder="请输入或选择委托单位" @on-result-change="_cusNameChange"
<AutoComplete :value="formObj.client" :down-data="customerData" @on-result-change="_cusNameChange"
name="client" placeholder="请输入或选择委托单位"
></AutoComplete>
</Form-item>
<Form-item label="委托时间:" prop="edate" class="width-48">
<Date-picker v-model="formObj.edate" type="date" split-panels style="width:100%;" placeholder="请选择委托时间"
@on-change="_etimeChange"></Date-picker>
<Date-picker v-model="formObj.edate" @on-change="_etimeChange" type="date" split-panels style="width:100%;"
placeholder="请选择委托时间"></Date-picker>
</Form-item>
<Form-item label="要求完成时间:" prop="odate" class="width-48">
<Date-picker v-model="formObj.odate" type="date" split-panels style="width:100%;" placeholder="请选择要求完成时间"
@on-change="_ctimeChange"></Date-picker>
<Date-picker v-model="formObj.odate" @on-change="_ctimeChange" type="date" split-panels style="width:100%;"
placeholder="请选择要求完成时间"></Date-picker>
</Form-item>
......@@ -33,8 +33,8 @@
</Form-item>
<Form-item label="分包时间:" prop="subTime" class="width-48">
<Date-picker v-model="formObj.subTime" type="date" split-panels style="width:100%;" placeholder="请选择分包时间"
@on-change="_subTimeChange"></Date-picker>
<Date-picker v-model="formObj.subTime" @on-change="_subTimeChange" type="date" split-panels style="width:100%;"
placeholder="请选择分包时间"></Date-picker>
</Form-item>
<Form-item label="分包费用:" prop="subFee" class="width-48">
......@@ -50,8 +50,8 @@
<!--操作-->
<Col span="24">
<btn-list :msg="btn" :open="searchOpen" :show-search-btn="true" class="contHide"
@on-result-change="_btnClick"></btn-list>
<btn-list :msg="btn" :open="searchOpen" :show-search-btn="true" @on-result-change="_btnClick"
class="contHide"></btn-list>
</Col>
<Col span="24">
<PTVXETable
......@@ -73,7 +73,7 @@
>
<template slot-scope="scope">
<div v-if="item.key==='name'" @click.stop="_handleRow(scope)">
<el-input v-model="scope.row.name" blur placeholder="请输入或选择样品名称" @click.native="_selectjudgeBasis(scope.$rowIndex)"
<el-input v-model="scope.row.name" @click.native="_selectjudgeBasis(scope.$rowIndex)" blur placeholder="请输入或选择样品名称"
></el-input>
</div>
<div v-if="item.key==='spec'" @click.stop="_handleRow(scope)">
......@@ -106,10 +106,10 @@
<div v-if="item.key==='quantity'" @click.stop="_handleRow(scope)" >
<el-input
v-model="scope.row.quantity"
type="number"
placeholder="请输入或选择数量"
@blur="_quantityChange(scope.$rowIndex)"
@keydown.native="channelInputLimit"
type="number"
placeholder="请输入或选择数量"
/>
</div>
......@@ -139,8 +139,8 @@
<modal-footer ref="footerModal" :footer="footerList" @on-result-change="_footerResult"></modal-footer>
</div>
</Modal>
<EditModal ref="EditModal" is-change @on-result-change="_backData" />
<importModal ref="importModal" aptitude-item @on-result-change="_inputBack"></importModal>
<EditModal ref="EditModal" @on-result-change="_backData" is-change />
<importModal ref="importModal" @on-result-change="_inputBack" aptitude-item></importModal>
</div>
</template>
<script>
......@@ -299,6 +299,8 @@ export default {
// this.formObj.customer.cname = data
}
},
_subTimeChange() {},
_etimeChange() {},
_customerMatch(data) {
// this.formObj.client = data
this._getQueryList(data)
......
......@@ -75,11 +75,11 @@ export default {
// }
],
iconMsg: [
{
type: 'md-paper',
id: '',
name: '编辑'
},
// {
// type: 'md-paper',
// id: '',
// name: '编辑'
// },
{
type: 'ios-beaker',
id: '',
......@@ -226,9 +226,9 @@ export default {
this.$refs.FileManage._open(id, 'subcontractorId')
},
_getById: async function(id) {
const result = await meterSubcontractor.getById(id)
const result = await meterEntrust.getVOById(id)
if (result) {
this.$refs.editSubcontractorModal._open(result)
// this.$refs.editSubcontractorModal._open(result)
}
},
_delete: async function(ids) {
......
......@@ -34,7 +34,9 @@
:min-width="item.width?item.width:200"
:fixed="item.fixed?item.fixed:undefined" sortable>
<template slot-scope="scope">
<span>{{scope.row[item.key]}}</span>
<span v-if="item.key==='edate'">{{scope.row[item.key]?$dateformat(scope.row[item.key],'yyyy-mm-dd'):''}}
</span>
<span v-else>{{scope.row[item.key]}}</span>
</template>
</vxe-table-column>
</PTVXETable>
......
......@@ -78,11 +78,11 @@ export default {
// }
],
iconMsg: [
{
type: 'md-paper',
id: '',
name: '编辑'
},
// {
// type: 'md-paper',
// id: '',
// name: '编辑'
// },
{
type: 'ios-beaker',
id: '',
......@@ -231,9 +231,10 @@ export default {
this.$refs.FileManage._open(id, 'subcontractorId')
},
_getById: async function(id) {
const result = await meterSubcontractor.getById(id)
const result = await meterEntrust.getVOById(id)
console.log(result)
if (result) {
this.$refs.editSubcontractorModal._open(result)
// this.$refs.editSubcontractorModal._open(result)
}
},
_delete: async function(ids) {
......
......@@ -37,7 +37,9 @@
:min-width="item.width?item.width:200"
:fixed="item.fixed?item.fixed:undefined" sortable>
<template slot-scope="scope">
<span>{{scope.row[item.key]}}</span>
<span v-if="item.key==='edate'">{{scope.row[item.key]?$dateformat(scope.row[item.key],'yyyy-mm-dd'):''}}
</span>
<span v-else>{{scope.row[item.key]}}</span>
</template>
</vxe-table-column>
</PTVXETable>
......@@ -45,6 +47,7 @@
</Row>
</div>
</div>
<FileManage ref="FileManage"></FileManage>
<MeterSubSampleManage ref="subSampleManage" @on-result-change="_page"></MeterSubSampleManage>
</div>
......@@ -200,7 +203,7 @@ export default {
_upload(id) {
// 上传文件
this.$refs.refModal._open(id, 'subcontractorId')
this.$refs.FileManage._open(id, 'subcontractorId')
},
_getById: async function(id) {
const result = await meterSubcontractor.getById(id)
......
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