浏览代码

开票状态前端

ljy121 1 年之前
父节点
当前提交
6102e39869

+ 21 - 14
client/src/views/OaSystem/financialManagement/kpglPage/index.vue

@@ -48,21 +48,13 @@
         />
       </div>
 
-      <div class="form">
+      <div class="form" style="width: 380px">
         <span class="formSpan">开票状态:</span>
-        <el-select
-          v-model="queryParams.flowStatus"
-          placeholder="请选择开票状态"
-          clearable
-          class="!w-240px"
-        >
-          <el-option
-            v-for="dict in getIntDictOptions(DICT_TYPE.INVOICE_OUT_STATUS)"
-            :key="dict.value"
-            :label="dict.label"
-            :value="dict.value"
-          />
-        </el-select>
+        <el-checkbox-group v-model="type" :min="1" :max="3">
+          <el-checkbox v-for="item in typeOptions" :key="item.value" :label="item.value">
+            {{ item.label }}
+          </el-checkbox>
+        </el-checkbox-group>
       </div>
 
       <div class="form" style="width: 380px">
@@ -238,6 +230,21 @@ import download from '@/utils/download'
 
 defineOptions({ name: 'KpglPage' })
 
+const type: any = ref(['101', '102'])
+const typeOptions = [
+  {
+    value: '101',
+    label: '已回款'
+  },
+  {
+    value: '102',
+    label: '已开票'
+  },
+  {
+    value: '105',
+    label: '开票中'
+  }
+]
 const invoiceTime = ref([])
 const returnTime = ref([])
 const queryParams = reactive({

+ 1 - 2
zjugis-business/src/main/java/com/zjugis/business/flow/contractinvoice/event/ContractInvoiceEvent.java

@@ -121,7 +121,7 @@ public class ContractInvoiceEvent extends BaseController {
             if (!Objects.isNull(activityInstance) && activityInstance.containsKey("id")) {
                 String flowInstanceId = flowInstance.get("id").toString();
                 ContractInvoice entity = contractInvoiceService.selectByInstanceId(flowInstanceId);
-                entity.setFlowStatus(ContractInvoiceConstants.INVOICE_ACTIVITY_FINISH);
+                entity.setFlowStatus(ContractInvoiceConstants.INVOICE_FINISH);
                 entity.setFlowFinishtime(LocalDateTime.now());
                 flowContractInvoiceService.updateById(entity);
             }
@@ -147,7 +147,6 @@ public class ContractInvoiceEvent extends BaseController {
             if (!Objects.isNull(flowInstance) && flowInstance.containsKey("id")) {
                 String flowInstanceId = flowInstance.get("id").toString();
                 ContractInvoice entity = contractInvoiceService.selectByInstanceId(flowInstanceId);
-                entity.setFlowStatus(ContractInvoiceConstants.INVOICE_FINISH);
                 entity.setFlowFinishtime(LocalDateTime.now());
                 flowContractInvoiceService.updateById(entity);
                 projectService.calcProject(entity.getProjectId());