|
@@ -6,6 +6,7 @@
|
|
|
:pagination="sourceList.pagination"
|
|
|
:config="config"
|
|
|
:loading="loading"
|
|
|
+ :selectConfig="selectConfig"
|
|
|
highlight-current-row
|
|
|
:action-list="[]"
|
|
|
@get-list="getList">
|
|
@@ -35,6 +36,7 @@
|
|
|
import { computed, ref } from "vue";
|
|
|
import byTable from "@/components/byTable/index";
|
|
|
import useUserStore from "@/store/modules/user";
|
|
|
+import { ElMessage, ElMessageBox } from "element-plus";
|
|
|
|
|
|
const { proxy } = getCurrentInstance();
|
|
|
const contractType = ref([]);
|
|
@@ -71,10 +73,6 @@ const refundStatus = ref([
|
|
|
label: "部分到款",
|
|
|
value: 10,
|
|
|
},
|
|
|
- {
|
|
|
- label: "已到款",
|
|
|
- value: 20,
|
|
|
- },
|
|
|
]);
|
|
|
const sourceList = ref({
|
|
|
data: [],
|
|
@@ -89,6 +87,15 @@ const sourceList = ref({
|
|
|
},
|
|
|
});
|
|
|
const loading = ref(false);
|
|
|
+const selectConfig = computed(() => {
|
|
|
+ return [
|
|
|
+ {
|
|
|
+ label: "到款状态",
|
|
|
+ prop: "refundStatusNew",
|
|
|
+ data: refundStatus.value,
|
|
|
+ },
|
|
|
+ ];
|
|
|
+});
|
|
|
const config = computed(() => {
|
|
|
return [
|
|
|
{
|
|
@@ -277,6 +284,9 @@ const getDict = () => {
|
|
|
const getList = async (req) => {
|
|
|
sourceList.value.pagination = { ...sourceList.value.pagination, ...req };
|
|
|
loading.value = true;
|
|
|
+ if (!sourceList.value.pagination.refundStatusNew && sourceList.value.pagination.refundStatusNew !== 0) {
|
|
|
+ sourceList.value.pagination.refundStatusNew = "0,10";
|
|
|
+ }
|
|
|
proxy.post("/contract/page", sourceList.value.pagination).then((res) => {
|
|
|
sourceList.value.data = res.rows;
|
|
|
sourceList.value.pagination.total = res.total;
|
|
@@ -287,16 +297,6 @@ const getList = async (req) => {
|
|
|
};
|
|
|
getDict();
|
|
|
getList();
|
|
|
-const newContract = () => {
|
|
|
- proxy.$router.replace({
|
|
|
- path: "/platform_manage/process/processApproval",
|
|
|
- query: {
|
|
|
- flowKey: "contract_flow",
|
|
|
- flowName: "销售合同审批流程",
|
|
|
- },
|
|
|
- });
|
|
|
-};
|
|
|
-
|
|
|
const handleSelect = (row) => {
|
|
|
proxy.$emit("handleSelectContrct", row);
|
|
|
};
|