Commit 783cdbf1 by lichengming

修改了收样室收样

parent 7072073f
...@@ -10,6 +10,8 @@ export default { ...@@ -10,6 +10,8 @@ export default {
page: data => http.post('soil/v1/entrust/page', data).then(res => res), page: data => http.post('soil/v1/entrust/page', data).then(res => res),
pageReview: data => pageReview: data =>
http.post('soil/v1/entrust/page_review', data).then(res => res), http.post('soil/v1/entrust/page_review', data).then(res => res),
pageSampleReceive: data =>
http.post('soil/v1/entrust/page_sample_receive', data).then(res => res),
getById: data => http.get('soil/v1/entrust/' + data).then(res => res), getById: data => http.get('soil/v1/entrust/' + data).then(res => res),
getVOById: data => http.get('soil/v1/entrust/vo/' + data).then(res => res), getVOById: data => http.get('soil/v1/entrust/vo/' + data).then(res => res),
deleteById: data => deleteById: data =>
...@@ -35,5 +37,7 @@ export default { ...@@ -35,5 +37,7 @@ export default {
.post( .post(
'soil/v1/entrust/review_back?ids=' + data.ids + '&reason=' + data.remark 'soil/v1/entrust/review_back?ids=' + data.ids + '&reason=' + data.remark
) )
.then(res => res) .then(res => res),
reviewPass: data =>
http.post('soil/v1/entrust/review_pass?ids=' + data).then(res => res)
} }
...@@ -38,6 +38,7 @@ ...@@ -38,6 +38,7 @@
:fixed="item.fixed?item.fixed:undefined" sortable> :fixed="item.fixed?item.fixed:undefined" sortable>
<template slot-scope="scope"> <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.date">{{scope.row[item.key]?$dateformat(scope.row[item.key],'yyyy-mm-dd'):''}}</span>
<span v-else-if="item.status">{{scope.row[item.key].display}}</span>
<span v-else>{{scope.row[item.key]}}</span> <span v-else>{{scope.row[item.key]}}</span>
</template> </template>
</vxe-table-column> </vxe-table-column>
...@@ -186,13 +187,11 @@ export default { ...@@ -186,13 +187,11 @@ export default {
}, },
_reasonResult(data) { _reasonResult(data) {
if (undefined !== data && data !== '') { if (undefined !== data && data !== '') {
console.log(data)
this._reportCheckBack(data) this._reportCheckBack(data)
console.log('退回')
} }
console.log(data)
}, },
_reportCheckBack: async function(data) { _reportCheckBack: async function(data) {
console.log('开始退回')
const result = await soilEntrust.back({ const result = await soilEntrust.back({
ids: this.selectIds, ids: this.selectIds,
remark: data remark: data
...@@ -200,6 +199,7 @@ export default { ...@@ -200,6 +199,7 @@ export default {
if (result) { if (result) {
this.$Message.success('退回成功!') this.$Message.success('退回成功!')
console.log('退回成功')
await this._page() await this._page()
} }
}, },
...@@ -298,14 +298,13 @@ export default { ...@@ -298,14 +298,13 @@ export default {
} }
}) })
}, },
_passEntrustReview: async function(ids) {
// _passEntrustReview: async function(ids) { const result = await soilEntrust.reviewPass(ids)
// const result = await meterEntrust.passReview(ids) if (result) {
// if (result) { this.$Message.success('提交成功!')
// this.$Message.success('提交成功!') await this._page()
// await this._page() }
// } },
// },
// 追加项目 // 追加项目
_itemModal(data) { _itemModal(data) {
......
...@@ -46,6 +46,8 @@ ...@@ -46,6 +46,8 @@
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="item.detail"><a @click.stop="_detailModal(scope.row.id,scope.row.type)">{{scope.row[item.key]}}</a> <div v-if="item.detail"><a @click.stop="_detailModal(scope.row.id,scope.row.type)">{{scope.row[item.key]}}</a>
</div> </div>
<span v-else-if="item.date">{{scope.row[item.key]?$dateformat(scope.row[item.key],'yyyy-mm-dd'):''}}</span>
<span v-else-if="item.status">{{scope.row[item.key].display}}</span>
<div v-else-if="item.type">{{scope.row[item.key] === 0 ? '企业':scope.row[item.key] === <div v-else-if="item.type">{{scope.row[item.key] === 0 ? '企业':scope.row[item.key] ===
1?'政府':scope.row[item.key] === 2?'食品类抽样单': ''}} 1?'政府':scope.row[item.key] === 2?'食品类抽样单': ''}}
</div> </div>
...@@ -110,15 +112,20 @@ export default { ...@@ -110,15 +112,20 @@ export default {
], ],
getPage: {}, getPage: {},
pageColumns: [ pageColumns: [
{ title: '委托名称', key: 'name', width: 160 }, { title: '委托商', key: 'client', width: 200 },
{ title: '委托编号', key: 'code', width: 180, detail: true }, { title: '委托编号', key: 'entrustCode', width: 120 },
{ title: '类型', key: 'type', width: 100, type: true }, { title: '委托日期', key: 'entrustDate', width: 120, date: true },
{ title: '状态', key: 'progress', width: 110 }, { title: '钻孔位置', key: 'boreholeLocation', width: 120 },
{ title: '委托单位', key: 'cname' }, { title: '水深(米)', key: 'waterDepth', width: 120 },
{ title: '主联系人', key: 'linkman', width: 100 }, { title: '钻孔名称', key: 'boreholeName', width: 120 },
{ title: '联系手机', key: 'tel', width: 120 }, { title: '进度', key: 'progress', width: 120, status: true },
{ title: '检测类型', key: 'detectType', width: 130 }, { title: '工程号', key: 'projectNo', width: 120 },
{ title: '服务类型', key: 'serviceType' } { title: '报告编号', key: 'reportCode', width: 120 },
{ title: '制表日期', key: 'tabulateDate', width: 120, date: true },
{ title: '制表人', key: 'tabulater', width: 120 },
{ title: '批准日期', key: 'approveDate', width: 120, date: true },
{ title: '批准人', key: 'approver', width: 120 },
{ title: '检验类别', key: 'testType', width: 120 }
], ],
searchOpen: false, searchOpen: false,
btn: [ btn: [
...@@ -405,7 +412,9 @@ export default { ...@@ -405,7 +412,9 @@ 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 soilEntrust.page(this.$serializeForm(this.formObj)) const result = await soilEntrust.pageSampleReceive(
this.$serializeForm(this.formObj)
)
if (result) { if (result) {
this.$refs.pageTable._hideLoading() this.$refs.pageTable._hideLoading()
this.getPage = result this.getPage = result
......
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