lihongxiao 2 лет назад
Родитель
Сommit
a3cb66863b

+ 2 - 2
config/dev.env.js

@@ -11,11 +11,11 @@ module.exports = merge(prodEnv, {
   // BASE_URL:'"https://sxzgkj.baoxianzhanggui.com/web-api"'//正式服务器
   // BASE_URL:'"https://sxzgkj.baoxianzhanggui.com/web-api"'//正式服务器
   // BASE_URL: '"http://192.168.0.115:8080/"' //凯森
-  BASE_URL: '"http:///192.168.0.106:8080/"',//屈晨
+  // BASE_URL: '"http:///192.168.0.106:8080/"',//屈晨
   // BASE_URL: '"http:///192.168.0.253:8080/"',//田智
   // BASE_URL: '"http:///192.168.0.42:8080/"',//武鸿鹏
   // BASE_URL: '"http:///192.168.0.253:8080/"',//田智
-  // BASE_URL: '"http:///192.168.0.42:8080/"',//武鸿鹏
+  BASE_URL: '"http:///192.168.0.42:8080/"',//武鸿鹏
   // BASE_URL: '"http://192.168.1.101:8080/"',
   // BASE_URL: '"http:///192.168.0.22:8080/"',//郝宇
   // BASE_URL: '"http:///192.168.0.103:8080/"',//霍续亮

+ 15 - 1
src/http/moudules/task.js

@@ -1284,4 +1284,18 @@ export const settlementFeesQuery = (data) => {
     method: "post",
     data
   })
-}
+}
+export const otherTimeDetail = (data) => {
+  return axios({
+    url: "/fnc/plyFee/otherTimeDetail",
+    method: "post",
+    data
+  })
+}
+export const yaidlnvoicing = (data) => {
+  return axios({
+    url: "/fnc/SettlementFees/voidInvoicing",
+    method: "put",
+    data
+  })
+}

+ 3 - 3
src/views/AgreementManage/CarInsurance/AgreementEntry.vue

@@ -36,10 +36,10 @@
             </el-form-item>
           </el-col>
           <el-col :span="6">
-            <el-form-item label="是否有效">
+            <el-form-item label="是否启用">
               <el-select :size="overSize" v-model="queryForm.validStatus" placeholder="请选择" clearable>
-                <el-option label="无效" :value="0"></el-option>
-                <el-option label="有效" :value="1"></el-option>
+                <el-option label="禁用" :value="0"></el-option>
+                <el-option label="启用" :value="1"></el-option>
               </el-select>
             </el-form-item>
           </el-col>

+ 21 - 0
src/views/FinancialManagement/CarInsurance/CompanySettlement/CarInsurance/InvoicingUnsettled.vue

@@ -90,6 +90,11 @@ export default {
             label:'结算',
             click:(row, index) => {return this.balanceFun(row)},
         },
+        {
+            type:'primary',
+            label:'作废',
+            click:(row, index) => {return this.handVoid(row)},
+        },
       ]
       },
             searchData: {},
@@ -281,6 +286,22 @@ export default {
     }, 
     handleClosebalance() {
       this.dialogVisiblebalance = false;
+    },
+    handVoid(row){
+      this.$api.task
+                .yaidlnvoicing({id:row.id})
+                .then(res => {
+                    if (res.code==200) {
+                        this.dialogVisible=false
+                        this.$message({
+                            message: res.msg ||'操作成功',
+                            type: 'success'
+                        })
+                    }
+                    else{
+                        this.$message.error(res.msg)
+                    }
+                });
     },
         // 结算
         balanceFun(row) {

+ 176 - 14
src/views/FinancialManagement/CarInsurance/CompanySettlement/CarInsurance/Notinvoiced.vue

@@ -32,19 +32,108 @@
               <el-input v-model="InvoicingData.taxPoints"></el-input>
             </el-form-item>
           </el-col>
-          <el-col :span="10">
+          <!-- <el-col :span="10">
             <el-form-item label="开票金额" prop="settlementAmount">
               <el-input v-model="InvoicingData.settlementAmount"></el-input>
             </el-form-item>
-          </el-col>
+          </el-col> -->
         </el-row>
       </el-form>
+      <el-table
+            show-summary
+            :data="multipleSelection"
+            border
+            style="width: 100%">
+          <el-table-column
+              prop="monthNumber"
+              label="月份">
+            </el-table-column>
+            <el-table-column
+              prop="allTotalOtherFeevalue"
+              label="总金额">
+            </el-table-column>
+            <el-table-column
+              prop="invoicCommissionFeevalue"
+              label="已开票">
+            </el-table-column>
+            <el-table-column
+              prop="noInvoicCommissionFeevalue"
+              label="未开票">
+            </el-table-column>
+            <el-table-column
+              prop="settlementAmount"
+              label="开票金额">
+              <template slot-scope="scope">
+                <el-input v-model="scope.row.settlementAmount"></el-input>
+              </template>
+            </el-table-column>
+        </el-table>
       <span slot="footer" class="dialog-footer">
-        <el-button size="small" @click="dialogVisible = false">取 消</el-button>
+        <el-button size="small" @click="dialogVisible = false;multipleSelection=[]">取 消</el-button>
         <el-button size="small" type="primary" @click="submit('InvoicingData')">确 定</el-button>
       </span>
     </el-dialog>
- 
+    <el-dialog title="开票" :visible.sync="myDialogVisible" width="40%" @close="myClosdialogVisible">
+        年度:  <el-date-picker
+            size="small"
+            v-model="yeartsStart"
+            :picker-options="startDatePicker"
+            value-format="yyyy"
+            type="year"
+            style="width:150px"
+            placeholder="开始年份"
+          >
+          </el-date-picker>
+          ~
+          <el-date-picker
+            size="small"
+            v-model="yeartsEnd"
+            value-format="yyyy"
+            style="width:150px"
+            :picker-options="endDatePicker"
+            type="year"
+            placeholder="结束年份"
+          >
+          </el-date-picker>
+          <el-button type="primary"  size="small" style="margin-left: 30px" @click="handleQuery()" >查询</el-button>
+          <el-button type="primary"  size="small" style="margin-left: 20px;margin-bottom: 30px;" @click="handleMerge()" :disabled="multipleSelection.length==0">合并开票</el-button>
+          <el-table
+            :data="tableDataYear"
+            border
+            ref="multipleTable"
+            @selection-change="handleSelectionChange"
+            style="width: 100%">
+          <el-table-column
+            type="selection"
+            width="55">
+          </el-table-column>
+          <el-table-column
+              prop="monthNumber"
+              label="月份">
+            </el-table-column>
+            <el-table-column
+              prop="allTotalOtherFeevalue"
+              label="总金额">
+            </el-table-column>
+            <el-table-column
+              prop="invoicCommissionFeevalue"
+              label="已开票">
+            </el-table-column>
+            <el-table-column
+              prop="noInvoicCommissionFeevalue"
+              label="未开票">
+            </el-table-column>
+            <el-table-column
+              label="操作">
+            <template slot-scope="scope">
+              <el-button @click="handleMonth(scope.row)" type="primary" size="small">当月开票</el-button>
+            </template>
+          </el-table-column>
+        </el-table>
+      <span slot="footer" class="dialog-footer">
+        <el-button size="small" @click="myDialogVisible = false">取 消</el-button>
+      </span>
+    </el-dialog>
   </div>
 </template>
 <script>
@@ -64,6 +153,14 @@ export default {
   },
   data() {
     return {
+      myDialogVisible:false,
+      yeartsStart:'',
+      tableDataYear:[],
+      multipleSelection:[],
+      yeartsEnd:'',
+      startDatePicker: this.beginDate(),
+      endDatePicker: this.processDate(),  
+      isSingle:'1',
       year: '',
       searchData: {},
       options:[{
@@ -133,7 +230,7 @@ export default {
       tableData: [],
       formData: {},
       InvoicingData: {
-        invoicingMethod:0
+        invoicingMethod:'0'
       },
       formDataList:{},
       dialogVisible: false,
@@ -162,6 +259,45 @@ export default {
     this.findPage();
   },
   methods: {
+    handleSelectionChange(val) {
+        this.multipleSelection = val;
+      },
+    handleMerge(){
+      this.dialogVisible =true
+      this.isSingle='2'
+       this.InvoicingData={
+        invoicingMethod:'0'
+      }
+    },
+    handleMonth(row){
+      this.multipleSelection = [row];
+      this.dialogVisible =true
+      this.isSingle='1'
+      this.InvoicingData={
+        invoicingMethod:'0'
+      }
+    },
+    beginDate() {
+      let self = this
+      return {
+        disabledDate(time) {
+          if (self.yeartsEnd !== '') {
+            let fixedTime = new Date(time)
+            return fixedTime.getFullYear() > self.yeartsEnd
+          }
+        }
+      }
+    },
+    // 提出结束时间必须大于提出开始时间
+    processDate() {
+      let self = this
+      return {
+        disabledDate(time) {
+          let fixedTime = new Date(time)
+          return fixedTime.getFullYear() < self.yeartsStart
+        }
+      }
+    },
     getYearData(val){
       this.formData.year=val
     },
@@ -183,9 +319,6 @@ export default {
         .then(res => {
           if (res.code==200) {
             this.tableData = res.data?res.data:[]
-            // this.pageData.pageNum = res.data.pageNum;
-            // this.pageData.pageSize = res.data.pageSize;
-            // this.pageData.totalSize = res.data.totalSize;
             this.tableConfig.loading = false;
           }
           else {
@@ -195,28 +328,57 @@ export default {
     },
     closdialogVisible() {
       this.dialogVisible = false;
+      this.multipleSelection=[]
+      this.$refs.multipleTable.clearSelection();
+
+    },
+    myClosdialogVisible() {
+      this.myDialogVisible = false;
+    },
+    handleQuery(){
+      this.otherTimeDetail(this.formDataList)
     },
-    
     // 开票
     openBalanceFun(row) {
-      this.dialogVisible=true
+      this.myDialogVisible=true
+      this.otherTimeDetail(row)
       this.formDataList=row
-      this.InvoicingData={
-        invoicingMethod:'0'
+    },
+    otherTimeDetail(row){
+      let data={
+        partnerCompaniesId:row.partnerCompaniesId,
+        agreementType:2,
+        isNotCar:0,    
+        isNotDocumentary:1,
+        yeartsStart:this.yeartsStart,
+        yeartsEnd:this.yeartsEnd,
       }
+      this.$api.task.otherTimeDetail(data).then(res => {
+          if (res.code == "200") {
+            this.tableDataYear=res.data
+        }
+        else {
+          this.$message.error(res.msg)
+        }
+      });
     },
     submit(formData) {
       this.$refs[formData].validate((valid) => {
         if (valid) {
-            let data={ ...this.formDataList,...this.InvoicingData,isNotCar:0,handlingFeesStatus:'1'}
+            let data={
+               ...this.formDataList,...this.InvoicingData,isNotCar:0,handlingFeesStatus:'1',
+               yeartsStart:this.yeartsStart,
+               yeartsEnd:this.yeartsEnd,
+               multipleSelection:this.multipleSelection
+              }
           this.$api.task.batchInvoic(data).then(res => {
             if (res.code == "200") {
-      this.findPage();
               this.$message({
                 message: res.msg ||'操作成功',
                 type: 'success'
               })
               this.dialogVisible = false
+              this.otherTimeDetail(this.formDataList)
             }
             else {
               this.$message.error(res.msg)

+ 21 - 0
src/views/FinancialManagement/CarInsurance/CompanySettlement/NoCarInsurance/InvoicingUnsettled.vue

@@ -88,6 +88,11 @@ export default {
                         label: '结算',
                         click: (row, index) => { return this.balanceFun(row) },
                     },
+                    {
+            type:'primary',
+            label:'作废',
+            click:(row, index) => {return this.handVoid(row)},
+        },
                 ]
             },
             searchData: {},
@@ -192,6 +197,22 @@ export default {
         handleSearchList1(data){
             this.findPageDetail({...this.formDetail,...data})
         },
+        handVoid(row){
+      this.$api.task
+                .yaidlnvoicing({id:row.id})
+                .then(res => {
+                    if (res.code==200) {
+                        this.dialogVisible=false
+                        this.$message({
+                            message: res.msg ||'操作成功',
+                            type: 'success'
+                        })
+                    }
+                    else{
+                        this.$message.error(res.msg)
+                    }
+                });
+    },
         findPageDetail(data) {
             this.tableConfigDetail.loading = true
             this.$api.task

+ 167 - 7
src/views/FinancialManagement/CarInsurance/CompanySettlement/NoCarInsurance/Notinvoiced.vue

@@ -39,12 +39,94 @@
           </el-col>
         </el-row>
       </el-form>
+      <el-table
+            show-summary
+            :data="multipleSelection"
+            border
+            style="width: 100%">
+          <el-table-column
+              prop="monthNumber"
+              label="月份">
+            </el-table-column>
+            <el-table-column
+              prop="allTotalOtherFeevalue"
+              label="总金额">
+            </el-table-column>
+            <el-table-column
+              prop="invoicCommissionFeevalue"
+              label="已开票">
+            </el-table-column>
+            <el-table-column
+              prop="noInvoicCommissionFeevalue"
+              label="未开票">
+            </el-table-column>
+        </el-table>
       <span slot="footer" class="dialog-footer">
         <el-button size="small" @click="dialogVisible = false">取 消</el-button>
         <el-button size="small" type="primary" @click="submit('InvoicingData')">确 定</el-button>
       </span>
     </el-dialog>
- 
+    <el-dialog title="开票" :visible.sync="myDialogVisible" width="40%" @close="myClosdialogVisible">
+        年度:  <el-date-picker
+            size="small"
+            v-model="yeartsStart"
+            :picker-options="startDatePicker"
+            value-format="yyyy"
+            type="year"
+            style="width:150px"
+            placeholder="开始年份"
+          >
+          </el-date-picker>
+          ~
+          <el-date-picker
+            size="small"
+            v-model="yeartsEnd"
+            value-format="yyyy"
+            style="width:150px"
+            :picker-options="endDatePicker"
+            type="year"
+            placeholder="结束年份"
+          >
+          </el-date-picker>
+          <el-button type="primary"  size="small" style="margin-left: 30px" @click="handleQuery()" >查询</el-button>
+          <el-button type="primary"  size="small" style="margin-left: 20px;margin-bottom: 30px;" @click="handleMerge()" :disabled="multipleSelection.length==0">合并开票</el-button>
+          <el-table
+            :data="tableDataYear"
+            border
+            ref="multipleTable"
+            @selection-change="handleSelectionChange"
+            style="width: 100%">
+          <el-table-column
+            type="selection"
+            width="55">
+          </el-table-column>
+          <el-table-column
+              prop="monthNumber"
+              label="月份">
+            </el-table-column>
+            <el-table-column
+              prop="allTotalOtherFeevalue"
+              label="总金额">
+            </el-table-column>
+            <el-table-column
+              prop="invoicCommissionFeevalue"
+              label="已开票">
+            </el-table-column>
+            <el-table-column
+              prop="noInvoicCommissionFeevalue"
+              label="未开票">
+            </el-table-column>
+            <el-table-column
+              label="操作">
+            <template slot-scope="scope">
+              <el-button @click="handleMonth(scope.row)" type="primary" size="small">当月开票</el-button>
+            </template>
+          </el-table-column>
+        </el-table>
+      <span slot="footer" class="dialog-footer">
+        <el-button size="small" @click="myDialogVisible = false">取 消</el-button>
+      </span>
+    </el-dialog>
   </div>
 </template>
 <script>
@@ -64,6 +146,13 @@ export default {
   },
   data() {
     return {
+      myDialogVisible:false,
+      yeartsStart:'',
+      tableDataYear:[],
+      multipleSelection:[],
+      yeartsEnd:'',
+      startDatePicker: this.beginDate(),
+      endDatePicker: this.processDate(), 
       year: '',
       searchData: {},
       formList: [
@@ -132,6 +221,7 @@ export default {
       },
       formDataList:{},
       dialogVisible: false,
+      myDialogVisible:false,
       pageData: {
         pageNum: 1,
         pageSize: 20,
@@ -191,27 +281,97 @@ export default {
     closdialogVisible() {
       this.dialogVisible = false;
     },
-    
+    myClosdialogVisible() {
+      this.myDialogVisible = false;
+    },
+    closdialogVisible() {
+      this.dialogVisible = false;
+      this.multipleSelection=[]
+      this.$refs.multipleTable.clearSelection();
+
+    },
+    handleSelectionChange(val) {
+        this.multipleSelection = val;
+      },
+    handleMerge(){
+      this.dialogVisible =true
+       this.InvoicingData={
+        invoicingMethod:'0'
+      }
+    },
+    handleMonth(row){
+      this.multipleSelection = [row];
+      this.dialogVisible =true
+      this.InvoicingData={
+        invoicingMethod:'0'
+      }
+    },
+    beginDate() {
+      let self = this
+      return {
+        disabledDate(time) {
+          if (self.yeartsEnd !== '') {
+            let fixedTime = new Date(time)
+            return fixedTime.getFullYear() > self.yeartsEnd
+          }
+        }
+      }
+    },
+    // 提出结束时间必须大于提出开始时间
+    processDate() {
+      let self = this
+      return {
+        disabledDate(time) {
+          let fixedTime = new Date(time)
+          return fixedTime.getFullYear() < self.yeartsStart
+        }
+      }
+    },
+    myClosdialogVisible() {
+      this.myDialogVisible = false;
+    },
+    handleQuery(){
+      this.otherTimeDetail(this.formDataList)
+    },
     // 开票
     openBalanceFun(row) {
-      this.dialogVisible=true
+      this.myDialogVisible=true
+      this.otherTimeDetail(row)
       this.formDataList=row
-      this.InvoicingData={
-        invoicingMethod:'0'
+    },
+    otherTimeDetail(row){
+      let data={
+        partnerCompaniesId:row.partnerCompaniesId,
+        agreementType:2,
+        isNotCar:0,    
+        isNotDocumentary:1,
+        yeartsStart:this.yeartsStart,
+        yeartsEnd:this.yeartsEnd,
       }
+      this.$api.task.otherTimeDetail(data).then(res => {
+          if (res.code == "200") {
+            this.tableDataYear=res.data
+        }
+        else {
+          this.$message.error(res.msg)
+        }
+      });
     },
     submit(formData) {
       this.$refs[formData].validate((valid) => {
         if (valid) {
-            let data={ ...this.formDataList,...this.InvoicingData,isNotCar:1,handlingFeesStatus:'1'}
+            let data={ ...this.formDataList,...this.InvoicingData,isNotCar:1,handlingFeesStatus:'1',
+            yeartsStart:this.yeartsStart,
+               yeartsEnd:this.yeartsEnd,
+               monthNumber:this.multipleSelection.map(val=>val.monthNumber)}
           this.$api.task.batchInvoic(data).then(res => {
             if (res.code == "200") {
-      this.findPage();
               this.$message({
                 message: res.msg ||'操作成功',
                 type: 'success'
               })
               this.dialogVisible = false
+              this.otherTimeDetail(this.formDataList)
             }
             else {
               this.$message.error(res.msg)

+ 9 - 1
src/views/FinancialManagement/WithdrawalManagement/WithdrawalProceduresPending.vue

@@ -12,6 +12,12 @@
           <el-form-item label="业务员工号">
             <el-input v-model="queryForm.userId" placeholder="业务员工号" clearable></el-input>
           </el-form-item>
+          <el-form-item label="业务员姓名">
+            <el-input v-model="queryForm.userName" placeholder="业务员姓名" clearable></el-input>
+          </el-form-item>
+          <el-form-item label="电话">
+            <el-input v-model="queryForm.mobile" placeholder="电话" clearable></el-input>
+          </el-form-item>
           <el-form-item label="提现单号">
             <el-input v-model="queryForm.id" placeholder="提现单号" clearable></el-input>
           </el-form-item>
@@ -99,11 +105,13 @@ export default {
         { prop: "id", label: "提现单号" },
         { prop: "userId", label: "业务员工号" },
         { prop: "userName", label: "业务员姓名" },
+        { prop: "mobile", label: "电话" },
         { prop: "deptId", label: "机构代码" },
         { prop: "deptName", label: "机构名称" },
         { prop: "amount", label: "提现金额" },
         { prop: "surplusAmount", label: "账户余额" },
-        { prop: "bankAccount", label: "开户行" },
+        { prop: "bankAccount", label: "银行" },
+        { prop: "bankAddress", label: "开户行" },
         { prop: "bankNumber", label: "账号" },
         { prop: "createTime", label: "提现时间" }
       ],