Commit d6ee53f7 by lichengming

修改了证书签发退回

parent 9b78fc63
......@@ -178,6 +178,15 @@ export default {
data.reason
)
.then(res => res),
reportIssueBack: data =>
http
.post(
'meter/v1/sample/report_issue_back?ids=' +
data.ids +
'&reason=' +
data.reason
)
.then(res => res),
certificateOk: data =>
http
......
......@@ -47,7 +47,6 @@ export default {
_getProvince: async function(data) {
// 获取省份
const result = await meterEntrust.getProvince()
console.log(result)
// this.$store.dispatch('SysProvince/getProvince').then(() => {
// const result = this.$store.state.SysProvince.list
const casData = []
......
......@@ -140,10 +140,6 @@ export default {
this._loadData(newVal)
}
},
mounted() {
console.log('按钮')
console.log(this.iconMsg)
},
methods: {
_loadData(data) {
// 阻断 vue 对大数组的双向绑定,大数据性能翻倍提升
......
......@@ -58,14 +58,16 @@
</div>
<operationModal ref="operationModal"></operationModal>
<FileManage ref="FileManage"></FileManage>
<Reason ref="reasonModal" @on-result-change="_reasonResult"></Reason>
</div>
</template>
<script>
import { meterSample } from '../../../api'
import Reason from '../../../components/base/Reason'
import operationModal from '../../../components/operation/Operation'
export default {
components: { operationModal },
components: { operationModal, Reason },
data() {
return {
currentComponent: '',
......@@ -153,6 +155,31 @@ export default {
}
})
},
_goBack() {
// 退回
if (this.selectIds.length === 0) {
this.$Message.warning('请至少选择一条委托!')
} else {
this.$refs.reasonModal._open('退回原因')
}
},
_reasonResult(data) {
if (undefined !== data && data !== '') {
this._reportIssueBack(data)
}
console.log(data)
},
_reportIssueBack: async function(data) {
const result = await meterSample.reportIssueBack({
ids: this.selectIds,
reason: data
})
if (result) {
this.$Message.success('退回成功!')
await this._page()
}
},
_submitToReview() {
this._submitByContractIds()
},
......
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