Commit b5887ea1 by lichengming

修改了委托单管理委托评审

parent 65c70b68
...@@ -58,8 +58,8 @@ ...@@ -58,8 +58,8 @@
import { soilEntrust } from '../../../api' import { soilEntrust } from '../../../api'
import Operation from '../../../components/operation/Operation' import Operation from '../../../components/operation/Operation'
import Reason from '../../../components/base/Reason' import Reason from '../../../components/base/Reason'
import SampleManage from '../SoilSampleManage'
import EntrustDetail from './EntrustDetail' import EntrustDetail from './EntrustDetail'
import SampleManage from './SampleManage'
export default { export default {
components: { Operation, Reason, EntrustDetail, SampleManage }, components: { Operation, Reason, EntrustDetail, SampleManage },
data() { data() {
...@@ -313,7 +313,7 @@ export default { ...@@ -313,7 +313,7 @@ export default {
_upload(id) { _upload(id) {
// 上传文件 // 上传文件
this.$refs.FileManage._open(id, 'contractId') this.$refs.FileManage._open(id, 'entrustId')
} }
// _getById: async function(id) { // _getById: async function(id) {
// const result = await meterSubcontractor.getById(id) // const result = await meterSubcontractor.getById(id)
......
...@@ -63,6 +63,7 @@ ...@@ -63,6 +63,7 @@
</div> </div>
</template> </template>
<script> <script>
import { soilEntrust } from '../../../api'
export default { export default {
components: { components: {
// FoodSampleGovernDetail, // FoodSampleGovernDetail,
...@@ -136,14 +137,11 @@ export default { ...@@ -136,14 +137,11 @@ export default {
selectData: [], selectData: [],
getPage: {}, getPage: {},
pageColumns: [ pageColumns: [
{ title: '样品编号', key: 'code', width: 140 }, { title: '试样编号', key: 'sampleCode', width: 160, fixed: 'left' },
{ title: '样品名称', key: 'name', width: 140 }, { title: '试样深度', key: 'sampleDepth', width: 160 },
{ title: '型号规格', key: 'spec', width: 140 }, { title: '土质描述', key: 'sampleDescribe', width: 160 },
{ title: '出厂编号', key: 'factoryNumber', width: 140 }, { title: '样品包装类型', key: 'samplePack', width: 160 },
// { title: '检测项目', key: 'itemNames', width: 140 }, { title: '现场编号', key: 'siteNo', width: 130 }
{ title: '是否分包', key: 'jobOut', width: 110 },
{ title: '检测类型', key: 'type', width: 140 },
{ title: '数量', key: 'quantity', width: 140 }
], ],
dateList: [], dateList: [],
formObj: { formObj: {
...@@ -259,8 +257,15 @@ export default { ...@@ -259,8 +257,15 @@ export default {
_formSearch() { _formSearch() {
this.$refs.pageTable._pageChange(1) this.$refs.pageTable._pageChange(1)
}, },
_page() { _page: async function() {
console.log(123) Object.assign(this.formObj, this.$refs.pageTable._searchParams())
const result = await soilEntrust.samplePage(
this.$serializeForm(this.formObj)
)
if (result) {
this.$refs.pageTable._hideLoading()
this.getPage = result
}
}, },
// _page: async function() { // _page: async function() {
// this.selectIds = [] // this.selectIds = []
......
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