Commit 37538382 by lichengming

修改了委托单登记历史记录

parent c9931b17
......@@ -38,6 +38,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>{{scope.row[item.key]}}</span>
</template>
</vxe-table-column>
......@@ -47,13 +48,15 @@
</div>
</div>
<MeterEntrustRecord ref="entrustRecordModal" @on-result-change="_page"></MeterEntrustRecord>
<SoilSampleManage ref="sampleManageModal" @on-result-change="_page"></SoilSampleManage>
</div>
</template>
<script>
import { soilAptitude, soilEntrust } from '../../../api'
import MeterEntrustRecord from '../../../components/operation/Operation'
import SoilSampleManage from '../SoilSampleManageHis'
export default {
components: { MeterEntrustRecord },
components: { MeterEntrustRecord, SoilSampleManage },
data() {
return {
currentComponent: '',
......@@ -68,6 +71,11 @@ export default {
],
iconMsg: [
{
type: 'ios-list',
id: '',
name: '试样列表'
},
{
type: 'ios-clock',
id: '',
name: '操作日志'
......@@ -145,12 +153,15 @@ export default {
case '查看样品':
this._sampleManage(data.id)
break
case '试样列表':
this._sampleManage(data.id)
break
}
})
},
_sampleManage(data) {
// 管理样品
this.$refs.meterSampleManageModal._open(data)
this.$refs.sampleManageModal._open(data)
},
_record(id) {
this.$refs.entrustRecordModal._open(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