Commit d6ee53f7 by lichengming

修改了证书签发退回

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