Explorar o código

fix:销售政策

zh %!s(int64=2) %!d(string=hai) anos
pai
achega
0080a0c92f
Modificáronse 1 ficheiros con 30 adicións e 30 borrados
  1. 30 30
      src/views/sales_policy/policy_list.vue

+ 30 - 30
src/views/sales_policy/policy_list.vue

@@ -217,18 +217,18 @@ export default {
     getList(p) {
       var pm = JSON.parse(JSON.stringify(p))
       var specification, customerId
-      for (var i = 0; i < pm.params.length; i++) {
+
+      for (let i = 0; i < pm.params.length; i++) {
         if (pm.params[i].param === 'specification') {
           specification = pm.params[i].value
-          pm.params.splice(i, 1)
-          continue
+          pm.params.splice(i--, 1)
         }
         if (pm.params[i].param === 'customer_id') {
           customerId = pm.params[i].value
-          pm.params.splice(i, 1)
-          continue
+          pm.params.splice(i--, 1)
         }
       }
+
       return policyListV2({ ...pm, specification, customerId })
     },
     // 列表导出函数
@@ -254,12 +254,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
                 }}
@@ -271,9 +271,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
@@ -284,9 +284,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
@@ -301,12 +301,12 @@ export default {
 
             {row.examineStatus == 'SAVE' ? (
               <el-popconfirm
-                onOnConfirm={async () => {
+                onOnConfirm={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>
@@ -316,12 +316,12 @@ export default {
 
             {row.examineStatus == 'OK' && row.status ? (
               <el-popconfirm
-                onOnConfirm={async () => {
+                onOnConfirm={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>
@@ -331,12 +331,12 @@ export default {
 
             {row.examineStatus == 'OK' ? (
               <el-popconfirm
-                onOnConfirm={async () => {
+                onOnConfirm={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>
@@ -346,12 +346,12 @@ export default {
 
             {row.examineStatus != 'OK' ? (
               <el-popconfirm
-                onOnConfirm={async () => {
+                onOnConfirm={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>
@@ -361,12 +361,12 @@ export default {
 
             {row.examineStatus == 'OK' ? (
               <el-popconfirm
-                onOnConfirm={async () => {
+                onOnConfirm={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>