|
@@ -8,6 +8,7 @@
|
|
|
:options-evens-group="optionsEvensGroup"
|
|
|
:moreParameters="moreParameters"
|
|
|
:column-parsing="columnParsing"
|
|
|
+ :operation="operation()"
|
|
|
>
|
|
|
</template-page>
|
|
|
</template>
|
|
@@ -15,7 +16,12 @@
|
|
|
<script>
|
|
|
import TemplatePage from '@/components/template/template-page-1.vue'
|
|
|
import { required, mobileRequired, mobile, httpUrl, email } from '@/components/template/rules_verify.js'
|
|
|
-import { policyOrderListIn, policyOrderListInExport, policyOrderImport } from '@/api/workersCompensationInsurance'
|
|
|
+import {
|
|
|
+ policyOrderListIn,
|
|
|
+ policyOrderListInExport,
|
|
|
+ policyOrderImport,
|
|
|
+ policyOrderDelIN
|
|
|
+} from '@/api/workersCompensationInsurance'
|
|
|
import operation_mixin from '@/components/template/operation_mixin.js'
|
|
|
import import_mixin from '@/components/template/import_mixin.js'
|
|
|
import { commonTemplateDownload } from '@/api/common.js'
|
|
@@ -128,7 +134,30 @@ export default {
|
|
|
return defaultData
|
|
|
},
|
|
|
// 表格操作列
|
|
|
- operation(h, { row, index, column }) {}
|
|
|
+ operation() {
|
|
|
+ return this.operationBtn({
|
|
|
+ del: {
|
|
|
+ conditions: ({ row, index, column }) => {
|
|
|
+ return row.policyOrderStatus == 'DGM'
|
|
|
+ },
|
|
|
+ click: ({ row, index, column }) => {
|
|
|
+ policyOrderDelIN({
|
|
|
+ id: row.id
|
|
|
+ })
|
|
|
+ .then(res => {
|
|
|
+ this.$refs.pageRef.refreshList()
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: `退保成功!`
|
|
|
+ })
|
|
|
+ })
|
|
|
+ .catch(err => {
|
|
|
+ console.log(err)
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</script>
|