Commit b012a32f by wangweidong

整体优化

parent 9c6ca8ef
...@@ -70,6 +70,10 @@ export default { ...@@ -70,6 +70,10 @@ export default {
http http
.post('meter/v1/sample/submit_report_to_check?ids=' + data) .post('meter/v1/sample/submit_report_to_check?ids=' + data)
.then(res => res), .then(res => res),
submitReportToIssue: data =>
http
.post('meter/v1/sample/submit_report_to_issue?ids=' + data)
.then(res => res),
submitFlow: data => submitFlow: data =>
https https
......
...@@ -186,7 +186,7 @@ export default { ...@@ -186,7 +186,7 @@ export default {
} }
}, },
_submitToReview() { _submitToReview() {
this._submitByContractIds('委托评审') this._submitByContractIds('证书签发')
}, },
_submitByContractIds(cont) { _submitByContractIds(cont) {
const ids = this.selectIds const ids = this.selectIds
...@@ -196,10 +196,11 @@ export default { ...@@ -196,10 +196,11 @@ export default {
this.$Modal.confirm({ this.$Modal.confirm({
title: '提示', title: '提示',
content: '确定要把这 ' + ids.length + ' 条记录提交到' + cont + '?', content: '确定要把这 ' + ids.length + ' 条记录提交到' + cont + '?',
onOk: () => { onOk: async () => {
const result = meterSample.submit(ids) const result = meterSample.submitReportToIssue(ids)
if (result) { if (result) {
console.log(result) this.$Message.success('提交成功!')
await this._page()
} }
} }
}) })
......
...@@ -23,9 +23,9 @@ ...@@ -23,9 +23,9 @@
style="width: 100%"> style="width: 100%">
<el-table-column prop="name" label="样品名称" sortable></el-table-column> <el-table-column prop="name" label="样品名称" sortable></el-table-column>
<el-table-column prop="code" label="样品编号" sortable></el-table-column> <el-table-column prop="code" label="样品编号" sortable></el-table-column>
<el-table-column prop="reportSn" label="报告编号" sortable> <el-table-column prop="reportCode" label="报告编号" sortable>
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model="scope.row.reportSn" placeholder="留白则自动生成" size="small"></el-input> <el-input v-model="scope.row.reportCode" placeholder="留白则自动生成" size="small"></el-input>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
......
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