linwenxin před 4 měsíci
rodič
revize
ef08dcf298

+ 3 - 3
src/components/template/template-page-1.vue

@@ -24,7 +24,7 @@
       :moreParameters="moreParameters"
       :ellipsis="ellipsis"
       :pofx="pofx"
-      :pageSizes="[15, 30, 50, 100, 200 ,300]"
+      :pageSizes="[15, 30, 50, 100, 200, 300]"
       @columnWidthChange="columnWidthChange"
       @columnListChange="columnListChange"
     >
@@ -560,7 +560,7 @@ export default {
     export() {
       // filter(k=> k.exportField.isExport!==false) 是不否导出
       // filter(item => (item.show === undefined ? item.exportField.isShow : item.show)) 是不否展示、导出
-      this.columnList = this.$refs.zjpage.columnList.filter(k=> k.exportField.isExport!==false)
+      this.columnList = this.$refs.zjpage.columnList.filter(k => k.exportField.isExport !== false)
     },
     async exportDetermine(data) {
       if (!this.exportList) {
@@ -600,7 +600,7 @@ export default {
         })
       }
       var newPms = {}
-      var res = await this.getList(pms, (data) => {
+      var res = await this.getList(pms, data => {
         newPms = data
       })
       // alert('接收到数据断点')

+ 31 - 29
src/views/sales_policy/policy_list.vue

@@ -71,7 +71,7 @@ import Popu from '@/components/template/popu.vue'
 import add_callback_mixin from '@/components/template/add_callback_mixin.js'
 import DelayRecordForm from './components/delayRecordForm.vue'
 import ReplaceRecordForm from './components/replaceRecordForm.vue'
-import Cancal from './components/cancal.vue';
+import Cancal from './components/cancal.vue'
 import {
   cancelPolicy,
   cloneList,
@@ -317,7 +317,7 @@ export default {
       ]
     },
     // 列表请求函数
-    getList(p) {
+    getList(p, cb) {
       var pm = JSON.parse(JSON.stringify(p))
       var specification, customerId, specification2
 
@@ -339,6 +339,8 @@ export default {
           pm.params.splice(i, 1)
         }
       }
+
+      cb?.({ ...pm, specification, customerId, specification2 })
       return policyListV2({ ...pm, specification, customerId, specification2 })
     },
     // 列表导出函数
@@ -364,12 +366,12 @@ export default {
     operation() {
       return (h, { row, index, column }) => {
         return (
-          <div class='operation-btns'>
+          <div class="operation-btns">
             {row.examineStatus == 'SAVE' ? (
               <el-button
-                size='mini'
-                type='text'
-                onClick={async() => {
+                size="mini"
+                type="text"
+                onClick={async () => {
                   this.isShow = 3
                   this.id = row.id
                 }}
@@ -381,9 +383,9 @@ export default {
             )}
 
             <el-button
-              size='mini'
-              type='text'
-              onClick={async() => {
+              size="mini"
+              type="text"
+              onClick={async () => {
                 this.isShow = 4
                 this.id = row.id
                 this.code = row.code
@@ -394,9 +396,9 @@ export default {
 
             {row.examineStatus == 'WAIT' && this.$checkBtnRole('examine', this.$route.meta.roles) ? (
               <el-button
-                size='mini'
-                type='text'
-                onClick={async() => {
+                size="mini"
+                type="text"
+                onClick={async () => {
                   this.isShow = 5
                   this.id = row.id
                   this.code = row.code
@@ -411,12 +413,12 @@ export default {
 
             {row.examineStatus == 'SAVE' ? (
               <el-popconfirm
-                onConfirm={async() => {
+                onConfirm={async () => {
                   this.handlesubmit(row)
                 }}
-                title='是否确定需要提审该项内容?'
+                title="是否确定需要提审该项内容?"
               >
-                <el-button slot='reference' size='mini' type='text'>
+                <el-button slot="reference" size="mini" type="text">
                   提审
                 </el-button>
               </el-popconfirm>
@@ -426,12 +428,12 @@ export default {
 
             {row.examineStatus == 'OK' && row.status ? (
               <el-popconfirm
-                onConfirm={async() => {
+                onConfirm={async () => {
                   this.handleNullify(row)
                 }}
-                title='是否确定需要作废该项内容?'
+                title="是否确定需要作废该项内容?"
               >
-                <el-button slot='reference' size='mini' type='text'>
+                <el-button slot="reference" size="mini" type="text">
                   作废
                 </el-button>
               </el-popconfirm>
@@ -439,27 +441,27 @@ export default {
               ''
             )}
 
-            {(
+            {
               <el-popconfirm
-                onConfirm={async() => {
+                onConfirm={async () => {
                   this.handleClone(row)
                 }}
-                title='是否确定需要克隆该项内容?'
+                title="是否确定需要克隆该项内容?"
               >
-                <el-button slot='reference' size='mini' type='text'>
+                <el-button slot="reference" size="mini" type="text">
                   克隆
                 </el-button>
               </el-popconfirm>
-            ) }
+            }
 
             {row.examineStatus != 'OK' ? (
               <el-popconfirm
-                onConfirm={async() => {
+                onConfirm={async () => {
                   this.hanleDelete(row.id)
                 }}
-                title='是否确定需要删除该项内容?'
+                title="是否确定需要删除该项内容?"
               >
-                <el-button slot='reference' size='mini' type='text'>
+                <el-button slot="reference" size="mini" type="text">
                   删除
                 </el-button>
               </el-popconfirm>
@@ -469,12 +471,12 @@ export default {
 
             {row.examineStatus == 'OK' ? (
               <el-popconfirm
-                onConfirm={async() => {
+                onConfirm={async () => {
                   this.hanleAbandon(row.id)
                 }}
-                title='是否确定需要弃审该项内容?'
+                title="是否确定需要弃审该项内容?"
               >
-                <el-button slot='reference' size='mini' type='text'>
+                <el-button slot="reference" size="mini" type="text">
                   弃审
                 </el-button>
               </el-popconfirm>