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

客户管理

parent ee79a169
......@@ -22,4 +22,8 @@ export const getContractPage = (params) => {
// 保存合同
export const 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 {
padding-left: 5px;
&.label {
text-align: center;
background: rgb(222, 233, 244);
background: #dfeaf5;
font-weight: bold;
color: #000;
width: 175px;
......
......@@ -322,7 +322,7 @@ td {
padding-left: 5px;
&.label {
text-align: center;
background: rgb(222, 233, 244);
background: #dfeaf5;
width: 175px;
color: #000;
}
......
......@@ -218,7 +218,7 @@
</div>
</div>
<div>
<el-button type="primary" @click="pushCreditcard()">新建信用卡</el-button>
<el-button type="primary" @click="pushCreditcard({})">新建信用卡</el-button>
</div>
</div>
<vxe-grid v-bind="cardConfig" />
......@@ -247,7 +247,7 @@
</div>
</div>
<div>
<el-button type="primary" @click="pushCredit()">新建网贷&信用贷</el-button>
<el-button type="primary" @click="pushCredit({})">新建网贷&信用贷</el-button>
</div>
</div>
</template>
......@@ -411,12 +411,12 @@ const CreditcardRef = ref();
const creditArr = ref([]);
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 pushCreditcard = (row, index) => {
CreditcardRef.value.openModal(row, index
const pushCreditcard = ({row, rowIndex}) => {
CreditcardRef.value.openModal(row, rowIndex
);
};
const pushCredit = (row, index) => {
CreditRef.value.openModal(row, index
const pushCredit = ({row, rowIndex}) => {
CreditRef.value.openModal(row, rowIndex
);
};
const handleQuery = () => {
......@@ -504,6 +504,7 @@ onBeforeMount(async () => {
})
const cardConfig = reactive({
align: 'center',
onCellClick: pushCreditcard,
minHeight: 250,
rowConfig: {
height: 40,
......@@ -516,12 +517,7 @@ const cardConfig = reactive({
default: ({ row, rowIndex }) => {
return (
<>
<div
onClick={() => pushCreditcard(row, rowIndex)}
className=" text-blue-400 cursor-pointer inline-block"
>
{rowIndex + 1}
</div>
{rowIndex + 1}
</>
);
},
......@@ -614,18 +610,14 @@ const cardConfig = reactive({
toolbarConfig: { enabled: false },
});
const creditConfig = reactive({
onCellClick: pushCredit,
minHeight: 200,
columns: [
{ type: 'seq', width: 60, title: '序号', slots: {
default: ({ row, rowIndex }) => {
return (
<>
<div
onClick={() => pushCredit(row, rowIndex)}
className=" text-blue-400 cursor-pointer inline-block"
>
{rowIndex + 1}
</div>
{rowIndex + 1}
</>
);
},
......@@ -717,7 +709,7 @@ td {
padding-left: 5px;
&.label {
text-align: center;
background: rgb(222, 233, 244);
background: #dfeaf5;
color: #000;
}
}
......@@ -737,7 +729,7 @@ td {
@media print {
.label {
text-align: center;
background: rgb(222, 233, 244);
background: #dfeaf5;
color: #000;
}
}
......
......@@ -115,7 +115,7 @@ td {
text-align: center;
&.label {
-webkit-print-color-adjust: exact;
background-color: rgb(222, 233, 244);
background-color: #dfeaf5;
font-weight: 400 !important;
}
}
......
......@@ -122,7 +122,7 @@ td {
text-align: center;
&.label {
-webkit-print-color-adjust: exact;
background-color: rgb(222, 233, 244);
background-color: #dfeaf5;
font-weight: 400 !important;
}
}
......
......@@ -121,7 +121,7 @@ td {
text-align: center;
&.label {
-webkit-print-color-adjust: exact;
background-color: rgb(222, 233, 244);
background-color: #dfeaf5;
font-weight: 400 !important;
}
}
......
......@@ -118,7 +118,7 @@ td {
color: #000;
&.label {
-webkit-print-color-adjust: exact;
background-color: rgb(222, 233, 244);
background-color: #dfeaf5;
font-weight: 400 !important;
}
}
......
......@@ -59,26 +59,16 @@
query: { id: 44 }, //这里不能直接写成 query: JSON.stringify(item)
});
};
const onCellClick = ({ row, rowIndex }) => {
pushCustomer(row)
}
const config = reactive({
onCheckboxChange: onCheckboxChange,
onCheckboxAll: onCheckboxAll,
onCellClick: onCellClick,
columns: [
{ type: 'checkbox', width: 60,fixed: 'left' },
{ field: 'id', title: '客户ID', slots: {
default: ({ row, rowIndex }) => {
return (
<>
<div
onClick={() => pushCustomer(row)}
className=" text-blue-400 cursor-pointer inline-block"
>
{row.id}
</div>
</>
);
},
}
},
{ field: 'name', title: '客户名称', search: { labelWidth: 85, el: 'input' } },
{
field: 'createTime',
title: '创建日期',
......@@ -93,7 +83,6 @@
title: '创建人',
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: 'phone', title: '手机', search: { labelWidth: 85, el: 'input' } },
{ field: 'email', title: '电子邮箱', search: { labelWidth: 85, el: 'input' } },
......
......@@ -464,7 +464,7 @@ td {
padding-left: 5px;
&.label {
text-align: center;
background: rgb(222, 233, 244);
background: #dfeaf5;
color: #000;
}
&.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