Commit d1888f3e authored by 沈翠玲's avatar 沈翠玲

客户管理

parent ee79a169
...@@ -22,4 +22,8 @@ export const getContractPage = (params) => { ...@@ -22,4 +22,8 @@ export const getContractPage = (params) => {
// 保存合同 // 保存合同
export const saveContract = (data) => { export const saveContract = (data) => {
return request.post('/Contract/saveContract', data); return request.post('/Contract/saveContract', data);
};
// 合同批量审核
export const flowStatusByIds = (data) => {
return request.get('/Contract/flowStatusByIds', data);
}; };
\ No newline at end of file
This diff is collapsed.
...@@ -296,7 +296,7 @@ td { ...@@ -296,7 +296,7 @@ td {
padding-left: 5px; padding-left: 5px;
&.label { &.label {
text-align: center; text-align: center;
background: rgb(222, 233, 244); background: #dfeaf5;
font-weight: bold; font-weight: bold;
color: #000; color: #000;
width: 175px; width: 175px;
......
...@@ -322,7 +322,7 @@ td { ...@@ -322,7 +322,7 @@ td {
padding-left: 5px; padding-left: 5px;
&.label { &.label {
text-align: center; text-align: center;
background: rgb(222, 233, 244); background: #dfeaf5;
width: 175px; width: 175px;
color: #000; color: #000;
} }
......
...@@ -218,7 +218,7 @@ ...@@ -218,7 +218,7 @@
</div> </div>
</div> </div>
<div> <div>
<el-button type="primary" @click="pushCreditcard()">新建信用卡</el-button> <el-button type="primary" @click="pushCreditcard({})">新建信用卡</el-button>
</div> </div>
</div> </div>
<vxe-grid v-bind="cardConfig" /> <vxe-grid v-bind="cardConfig" />
...@@ -247,7 +247,7 @@ ...@@ -247,7 +247,7 @@
</div> </div>
</div> </div>
<div> <div>
<el-button type="primary" @click="pushCredit()">新建网贷&信用贷</el-button> <el-button type="primary" @click="pushCredit({})">新建网贷&信用贷</el-button>
</div> </div>
</div> </div>
</template> </template>
...@@ -411,12 +411,12 @@ const CreditcardRef = ref(); ...@@ -411,12 +411,12 @@ const CreditcardRef = ref();
const creditArr = ref([]); const creditArr = ref([]);
const cardSUM = computed(() => cardConfig.data.reduce((pre, cur) => pre + Number(cur.debt),0)); const cardSUM = computed(() => cardConfig.data.reduce((pre, cur) => pre + Number(cur.debt),0));
const creditSUM = computed(() => creditArr.value.reduce((pre, cur) => pre + Number(cur.debt),0)); const creditSUM = computed(() => creditArr.value.reduce((pre, cur) => pre + Number(cur.debt),0));
const pushCreditcard = (row, index) => { const pushCreditcard = ({row, rowIndex}) => {
CreditcardRef.value.openModal(row, index CreditcardRef.value.openModal(row, rowIndex
); );
}; };
const pushCredit = (row, index) => { const pushCredit = ({row, rowIndex}) => {
CreditRef.value.openModal(row, index CreditRef.value.openModal(row, rowIndex
); );
}; };
const handleQuery = () => { const handleQuery = () => {
...@@ -504,6 +504,7 @@ onBeforeMount(async () => { ...@@ -504,6 +504,7 @@ onBeforeMount(async () => {
}) })
const cardConfig = reactive({ const cardConfig = reactive({
align: 'center', align: 'center',
onCellClick: pushCreditcard,
minHeight: 250, minHeight: 250,
rowConfig: { rowConfig: {
height: 40, height: 40,
...@@ -516,12 +517,7 @@ const cardConfig = reactive({ ...@@ -516,12 +517,7 @@ const cardConfig = reactive({
default: ({ row, rowIndex }) => { default: ({ row, rowIndex }) => {
return ( return (
<> <>
<div {rowIndex + 1}
onClick={() => pushCreditcard(row, rowIndex)}
className=" text-blue-400 cursor-pointer inline-block"
>
{rowIndex + 1}
</div>
</> </>
); );
}, },
...@@ -614,18 +610,14 @@ const cardConfig = reactive({ ...@@ -614,18 +610,14 @@ const cardConfig = reactive({
toolbarConfig: { enabled: false }, toolbarConfig: { enabled: false },
}); });
const creditConfig = reactive({ const creditConfig = reactive({
onCellClick: pushCredit,
minHeight: 200, minHeight: 200,
columns: [ columns: [
{ type: 'seq', width: 60, title: '序号', slots: { { type: 'seq', width: 60, title: '序号', slots: {
default: ({ row, rowIndex }) => { default: ({ row, rowIndex }) => {
return ( return (
<> <>
<div {rowIndex + 1}
onClick={() => pushCredit(row, rowIndex)}
className=" text-blue-400 cursor-pointer inline-block"
>
{rowIndex + 1}
</div>
</> </>
); );
}, },
...@@ -717,7 +709,7 @@ td { ...@@ -717,7 +709,7 @@ td {
padding-left: 5px; padding-left: 5px;
&.label { &.label {
text-align: center; text-align: center;
background: rgb(222, 233, 244); background: #dfeaf5;
color: #000; color: #000;
} }
} }
...@@ -737,7 +729,7 @@ td { ...@@ -737,7 +729,7 @@ td {
@media print { @media print {
.label { .label {
text-align: center; text-align: center;
background: rgb(222, 233, 244); background: #dfeaf5;
color: #000; color: #000;
} }
} }
......
...@@ -115,7 +115,7 @@ td { ...@@ -115,7 +115,7 @@ td {
text-align: center; text-align: center;
&.label { &.label {
-webkit-print-color-adjust: exact; -webkit-print-color-adjust: exact;
background-color: rgb(222, 233, 244); background-color: #dfeaf5;
font-weight: 400 !important; font-weight: 400 !important;
} }
} }
......
...@@ -122,7 +122,7 @@ td { ...@@ -122,7 +122,7 @@ td {
text-align: center; text-align: center;
&.label { &.label {
-webkit-print-color-adjust: exact; -webkit-print-color-adjust: exact;
background-color: rgb(222, 233, 244); background-color: #dfeaf5;
font-weight: 400 !important; font-weight: 400 !important;
} }
} }
......
...@@ -121,7 +121,7 @@ td { ...@@ -121,7 +121,7 @@ td {
text-align: center; text-align: center;
&.label { &.label {
-webkit-print-color-adjust: exact; -webkit-print-color-adjust: exact;
background-color: rgb(222, 233, 244); background-color: #dfeaf5;
font-weight: 400 !important; font-weight: 400 !important;
} }
} }
......
...@@ -118,7 +118,7 @@ td { ...@@ -118,7 +118,7 @@ td {
color: #000; color: #000;
&.label { &.label {
-webkit-print-color-adjust: exact; -webkit-print-color-adjust: exact;
background-color: rgb(222, 233, 244); background-color: #dfeaf5;
font-weight: 400 !important; font-weight: 400 !important;
} }
} }
......
...@@ -59,26 +59,16 @@ ...@@ -59,26 +59,16 @@
query: { id: 44 }, //这里不能直接写成 query: JSON.stringify(item) query: { id: 44 }, //这里不能直接写成 query: JSON.stringify(item)
}); });
}; };
const onCellClick = ({ row, rowIndex }) => {
pushCustomer(row)
}
const config = reactive({ const config = reactive({
onCheckboxChange: onCheckboxChange, onCheckboxChange: onCheckboxChange,
onCheckboxAll: onCheckboxAll, onCheckboxAll: onCheckboxAll,
onCellClick: onCellClick,
columns: [ columns: [
{ type: 'checkbox', width: 60,fixed: 'left' }, { type: 'checkbox', width: 60,fixed: 'left' },
{ field: 'id', title: '客户ID', slots: { { field: 'name', title: '客户名称', search: { labelWidth: 85, el: 'input' } },
default: ({ row, rowIndex }) => {
return (
<>
<div
onClick={() => pushCustomer(row)}
className=" text-blue-400 cursor-pointer inline-block"
>
{row.id}
</div>
</>
);
},
}
},
{ {
field: 'createTime', field: 'createTime',
title: '创建日期', title: '创建日期',
...@@ -93,7 +83,6 @@ ...@@ -93,7 +83,6 @@
title: '创建人', title: '创建人',
search: { el: 'input',labelWidth: 85, props: { clearable: true } }, search: { el: 'input',labelWidth: 85, props: { clearable: true } },
}, },
{ field: 'name', title: '客户名称', search: { labelWidth: 85, el: 'input' } },
{ field: 'idCard', title: '身份证号', search: { labelWidth: 85, el: 'input' } }, { field: 'idCard', title: '身份证号', search: { labelWidth: 85, el: 'input' } },
{ field: 'phone', title: '手机', search: { labelWidth: 85, el: 'input' } }, { field: 'phone', title: '手机', search: { labelWidth: 85, el: 'input' } },
{ field: 'email', title: '电子邮箱', search: { labelWidth: 85, el: 'input' } }, { field: 'email', title: '电子邮箱', search: { labelWidth: 85, el: 'input' } },
......
...@@ -464,7 +464,7 @@ td { ...@@ -464,7 +464,7 @@ td {
padding-left: 5px; padding-left: 5px;
&.label { &.label {
text-align: center; text-align: center;
background: rgb(222, 233, 244); background: #dfeaf5;
color: #000; color: #000;
} }
&.header { &.header {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment