|
@@ -9,17 +9,37 @@
|
|
:moreParameters="moreParameters"
|
|
:moreParameters="moreParameters"
|
|
:column-parsing="columnParsing"
|
|
:column-parsing="columnParsing"
|
|
>
|
|
>
|
|
- </template-page>
|
|
|
|
|
|
+ <Popu v-if="visible">
|
|
|
|
+ <el-page-header slot="head" content="" @back="handleClose" />
|
|
|
|
+ <InsuranceContractForm
|
|
|
|
+ :item="item"
|
|
|
|
+ :type="showType"
|
|
|
|
+ @success="
|
|
|
|
+ () => {
|
|
|
|
+ handleClose()
|
|
|
|
+ $refs.pageRef.refreshList()
|
|
|
|
+ }
|
|
|
|
+ "
|
|
|
|
+ /> </Popu
|
|
|
|
+ ></template-page>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import TemplatePage from '@/components/template/template-page-1.vue'
|
|
import TemplatePage from '@/components/template/template-page-1.vue'
|
|
import { required, mobileRequired, mobile, httpUrl, email } from '@/components/template/rules_verify.js'
|
|
import { required, mobileRequired, mobile, httpUrl, email } from '@/components/template/rules_verify.js'
|
|
-import { policyOrderListEm, policyOrderListEmExport, policyOrderImportEm } from '@/api/employerInsurance'
|
|
|
|
|
|
+import {
|
|
|
|
+ policyOrderListEm,
|
|
|
|
+ policyOrderListEmExport,
|
|
|
|
+ policyOrderImportEm,
|
|
|
|
+ policyOrderDetail,
|
|
|
|
+ policyOrderUpdate
|
|
|
|
+} from '@/api/employerInsurance'
|
|
import operation_mixin from '@/components/template/operation_mixin.js'
|
|
import operation_mixin from '@/components/template/operation_mixin.js'
|
|
import import_mixin from '@/components/template/import_mixin.js'
|
|
import import_mixin from '@/components/template/import_mixin.js'
|
|
|
|
+import Popu from '@/components/template/popu.vue'
|
|
|
|
+import InsuranceContractForm from './InsuranceContractForm.vue'
|
|
export default {
|
|
export default {
|
|
- components: { TemplatePage },
|
|
|
|
|
|
+ components: { TemplatePage, Popu, InsuranceContractForm },
|
|
mixins: [import_mixin, operation_mixin],
|
|
mixins: [import_mixin, operation_mixin],
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -33,7 +53,10 @@ export default {
|
|
'selection-change': this.selectionChange
|
|
'selection-change': this.selectionChange
|
|
},
|
|
},
|
|
// 勾选选中行
|
|
// 勾选选中行
|
|
- recordSelected: []
|
|
|
|
|
|
+ recordSelected: [],
|
|
|
|
+ visible: false,
|
|
|
|
+ item: null,
|
|
|
|
+ showType: null
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -111,7 +134,32 @@ export default {
|
|
return defaultData
|
|
return defaultData
|
|
},
|
|
},
|
|
// 表格操作列
|
|
// 表格操作列
|
|
- operation(h, { row, index, column }) {}
|
|
|
|
|
|
+ operation(h, { row, index, column }) {
|
|
|
|
+ return this.operationBtn({
|
|
|
|
+ edit: {
|
|
|
|
+ click: ({ row, index, column }) => {
|
|
|
|
+ this.item = row
|
|
|
|
+ this.visible = true
|
|
|
|
+ this.showType = 1
|
|
|
|
+ // policyOrderDetail({ id: row.id }).then(res => {})
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ details: {
|
|
|
|
+ click: ({ row, index, column }) => {
|
|
|
|
+ this.item = row
|
|
|
|
+ this.visible = true
|
|
|
|
+ this.showType = 2
|
|
|
|
+ // policyOrderDetail({ id: row.id }).then(res => {})
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ // 关闭新增弹窗
|
|
|
|
+ handleClose() {
|
|
|
|
+ this.visible = false
|
|
|
|
+ this.item = null
|
|
|
|
+ this.showType = null
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|