This commit is contained in:
zmj 2024-04-16 13:45:56 +08:00
parent a310a1a9f3
commit 284444f08f
27 changed files with 74 additions and 54 deletions

View File

@ -14,6 +14,8 @@ export default {
event.target.value = event.target.value.replace(/[\u4e00-\u9fa5]/g, "");
} else if (value == "unit") {
event.target.value = event.target.value.replace(/\d+/g, "");
} else if (value == "account") {
event.target.value = event.target.value.match(/\d/g).join("");
}
});
},

View File

@ -142,7 +142,8 @@
</el-col> <el-col :span="8">
<el-form-item label="银行账号" prop="bank_accnout">
<el-input v-model="formData.bank_accnout" clearable placeholder="请输入银行账号" type="number" />
<el-input v-model="formData.bank_accnout" clearable placeholder="请输入银行账号"
v-type="'account'" />
</el-form-item>
</el-col> <el-col :span="8">

View File

@ -141,7 +141,7 @@
<el-col :span="8">
<el-form-item label="账号" prop="account">
<el-input v-model="formData.account" clearable placeholder="请输入账号" />
<el-input v-model="formData.account" clearable placeholder="请输入账号" v-type="'account'" />
</el-form-item>
</el-col>

View File

@ -28,7 +28,7 @@
<el-col :span="24">
<el-form-item label="账号" prop="account"
:rules="[{ required: true, message: '不可为空', trigger: 'blur' }]">
<el-input v-model="formData.account" clearable placeholder="请输入账号" />
<el-input v-model="formData.account" clearable placeholder="请输入账号" v-type="'account'" />
</el-form-item>
</el-col>

View File

@ -131,7 +131,7 @@ let option3 = {
},
series: [
{
name: 'Access From',
// name: 'Access From',
type: 'pie',
radius: '50%',
data: [

View File

@ -15,7 +15,7 @@
</el-form>
</el-card>
<el-card style="min-height: 75vh;">
<div class="tit">投标项目状态明细表</div>
<div class="tit">{{ title }}</div>
<div id="main" style="margin: 0 auto;" :style="{ width: chartWitdth + 'px', height: chartHeight + 'px' }"></div>
</el-card>
@ -30,7 +30,8 @@ import { apibid_project_status, apibid_project_number, apibid_project_analysis }
const route = useRoute()
var chartDom: any;
var option: any;
var myChart: any
var myChart: any;
var title = ref('');
const chartWitdth = ref(1000)
const chartHeight = ref(500)
@ -212,7 +213,6 @@ const initChart = () => {
const changeChartType = (e: any) => {
console.log(chartData, 'chartData')
switch (e) {
case 1:
option1.xAxis.data = chartData.data.map(item => item.name)
@ -245,9 +245,19 @@ const chartResize = () => {
onMounted(() => {
chartDom = document.getElementById('main');
if (route.path.includes('bid_project_status')) getData(apibid_project_status);
if (route.path.includes('bid_project_number')) getData(apibid_project_number);
if (route.path.includes('bid_project_analysis')) getData(apibid_project_analysis);
if (route.path.includes('bid_project_status')) {
getData(apibid_project_status)
title.value = '投标项目状态明细表'
}
else if (route.path.includes('bid_project_number')) {
getData(apibid_project_number);
title.value = '投标项目数量明细表';
}
else if (route.path.includes('bid_project_analysis')) {
getData(apibid_project_analysis);
title.value = '投标项目分析';
};
})

View File

@ -91,7 +91,7 @@
<el-col :span="8">
<el-form-item label="账号" prop="account" @click="showDialog2 = true"
:rules="[{ required: true, message: '不可为空', trigger: 'blur' }]">
<el-input v-model="formData.account" clearable placeholder="请输入账号" type="number" />
<el-input v-model="formData.account" clearable placeholder="请输入账号" v-type="'account'" />
</el-form-item>
</el-col>
<el-col :span="8">

View File

@ -81,7 +81,7 @@
<el-col :span="8">
<el-form-item label="收款账号" prop="payee_account"
:rules="[{ required: true, message: '不可为空', trigger: 'change' }]">
<el-input v-model="formData.payee_account" clearable placeholder="请输入收款账号" />
<el-input v-model="formData.payee_account" clearable placeholder="请输入收款账号" v-type="'account'" />
</el-form-item>
</el-col>

View File

@ -147,7 +147,7 @@
<el-col :span="8">
<el-form-item label="收款账号" prop="payee_account"
:rules="[{ required: true, message: '不可为空', trigger: 'blur' }]">
<el-input v-model="formData.payee_account" clearable placeholder="请输入收款账号" />
<el-input v-model="formData.payee_account" clearable placeholder="请输入收款账号" v-type="'account'" />
</el-form-item>
</el-col>
</el-row>

View File

@ -121,7 +121,8 @@
</el-col>
<el-col :span="8">
<el-form-item label="开户账号" prop="bank_accnout">
<el-input v-model="formData.bank_account_info.account" disabled placeholder="系统自动填写" />
<el-input v-model="formData.bank_account_info.account" disabled placeholder="系统自动填写"
v-type="'account'" />
</el-form-item>
</el-col>
</el-row>

View File

@ -30,7 +30,8 @@
</el-col>
<el-col :span="8">
<el-form-item label="收款账号" prop="collection_account">
<el-input v-model="formData.collection_account" clearable placeholder="请输入收款账号" type='number' />
<el-input v-model="formData.collection_account" clearable placeholder="请输入收款账号"
v-type="'account'" />
</el-form-item>
</el-col>
<el-col :span="8">

View File

@ -40,7 +40,8 @@
</el-col>
<el-col :span="8">
<el-form-item label="收款账号" prop="collection_account">
<el-input v-model="formData.collection_account" clearable placeholder="请输入收款账号" type='number' />
<el-input v-model="formData.collection_account" clearable placeholder="请输入收款账号"
v-type="'account'" />
</el-form-item>
</el-col>
<el-col :span="8">

View File

@ -56,12 +56,11 @@
</el-form-item>
</el-col>
</el-row>
<FormTable :form-data="formData.detail" :config="tableConfig" :dict-data="dictData">
<el-table-column label="部门">
<template #default="{ row }">
<el-form-item label-width="0">
<el-select v-model="row.dept_id" placeholder="请选择部门">
<el-select v-model="row.dept_id" placeholder="请选择部门" class="mx-auto my-0">
<el-option :label="item.name" :value="item.id" v-for="item in deptList">
</el-option>
</el-select>

View File

@ -1,7 +1,6 @@
<template>
<div class="edit-popup">
<popup ref="popupRef" :title="popupTitle" :async="true" width="80vw" @confirm="handleSubmit"
@close="handleClose">
<popup ref="popupRef" :title="popupTitle" :async="true" width="80vw" @confirm="handleSubmit" @close="handleClose">
<el-form ref="formRef" :model="formData" label-width="135px" :rules="formRules">
<el-row>
<el-col :span="8">
@ -93,7 +92,8 @@
</el-col>
<el-col :span="8">
<el-form-item label="开户账号">
<el-input v-model="formData.apply_company_account" clearable placeholder="请输入开户账号" />
<el-input v-model="formData.apply_company_account" clearable placeholder="请输入开户账号"
v-type="'account'" />
</el-form-item>
</el-col>
<el-col :span="8">

View File

@ -36,7 +36,8 @@
</el-col>
<el-col :span="8">
<el-form-item label="收款账号" prop="collection_account">
<el-input v-model="formData.collection_account" clearable placeholder="请输入收款账号" type="number" />
<el-input v-model="formData.collection_account" clearable placeholder="请输入收款账号"
v-type="'account'" />
</el-form-item>
</el-col>
<el-col :span="8">
@ -75,7 +76,7 @@
</el-col>
<el-col :span="8">
<el-form-item label="付款账号" prop="pay_account">
<el-input v-model="formData.pay_account" clearable placeholder="请输入付款账号" type="number" />
<el-input v-model="formData.pay_account" clearable placeholder="请输入付款账号" v-type="'account'" />
</el-form-item>
</el-col>
<el-col :span="8">

View File

@ -11,16 +11,16 @@
</el-form-item>
<el-form-item label="甲方签约单位">
<el-input v-model="formData.part_a_name" clearable placeholder="系统自动获取" disabled />
<el-input v-model="formData.part_a" clearable placeholder="系统自动获取" disabled />
</el-form-item>
<el-form-item label="乙方签约单位">
<el-input v-model="formData.part_b" clearable placeholder="系统自动获取" disabled />
</el-form-item>
<el-form-item label="签订金额(元)">
<el-input v-model="formData.signed_amount" clearable placeholder="系统自动获取" disabled />
<el-input v-model="formData.sign_money" clearable placeholder="系统自动获取" disabled />
</el-form-item>
<el-form-item label="合同签订日期">
<el-input v-model="formData.sign_time" clearable placeholder="系统自动获取" disabled />
<el-input v-model="formData.create_time" clearable placeholder="系统自动获取" disabled />
</el-form-item>
<el-form-item label="累计已开票(元)">
<el-input v-model="formData.total_invoice_amount" clearable placeholder="系统自动获取" disabled />
@ -104,10 +104,10 @@ const formData = reactive({
create_time: '',
"contract_type": "",
"part_a": "",
"part_a_name": "",
"part_a": "",
"part_b": "",
"signed_amount": "",
"sign_time": "",
"sign_money": "",
"create_time": "",
"apply_amount": "",
"total_invoice_amount": 0,
"total_refund_amount": 0
@ -117,11 +117,10 @@ const customEvent = (e) => {
formData.contract_id = e.id
formData.contract_name = e.contract_name
formData.contract_type = e.contract_type_text
formData.part_a = e.part_a
formData.part_a_name = e.part_a_name
formData.part_a = e.part_a_name
formData.part_b = e.part_b
formData.signed_amount = e.signed_amount
formData.sign_time = e.sign_date
formData.sign_money = e.signed_amount
formData.create_time = e.create_time
formData.total_invoice_amount = e.total_invoice_amount
formData.total_refund_amount = e.total_refund_amount
showDialog.value = false

View File

@ -62,7 +62,7 @@
</el-col>
<el-col :span="8">
<el-form-item label="收款账号" prop="accept_acount">
<el-input v-model="formData.accept_acount" clearable placeholder="请输入收款账号" type="number" />
<el-input v-model="formData.accept_acount" clearable placeholder="请输入收款账号" v-type="'account'" />
</el-form-item>
</el-col>
<el-col :span="8">

View File

@ -1,7 +1,6 @@
<template>
<div class="edit-popup">
<popup ref="popupRef" :title="popupTitle" :async="true" width="80vw" @confirm="handleSubmit"
@close="handleClose">
<popup ref="popupRef" :title="popupTitle" :async="true" width="80vw" @confirm="handleSubmit" @close="handleClose">
<el-form ref="formRef" :model="formData" label-width="160px" :rules="formRules">
<el-row>
<el-col :span="8">
@ -86,7 +85,7 @@
<el-col :span="8">
<el-form-item label="开户账号">
<el-input v-model="formData.opening_bank_account" clearable placeholder="请输入开户账号"
type="number" />
v-type="'account'" />
</el-form-item>
</el-col>
<el-col :span="8">
@ -96,8 +95,8 @@
</el-col>
<el-col :span="8">
<el-form-item label="所在省份" prop="province">
<el-select v-model="formData.province" clearable placeholder="请选择省"
@change="province_change" class="flex-1">
<el-select v-model="formData.province" clearable placeholder="请选择省" @change="province_change"
class="flex-1">
<el-option v-for="(item, index) in datas.provinceOptions" :key="index"
:label="item.province_name" :value="(item.province_code)" />
</el-select>
@ -106,8 +105,8 @@
<el-col :span="8">
<el-form-item label="所在市区" prop="city">
<el-select v-model="formData.city" clearable placeholder="请选择市" class="flex-1">
<el-option v-for="(item, index) in datas.cityOptions" :key="index"
:label="item.city_name" :value="(item.city_code)" />
<el-option v-for="(item, index) in datas.cityOptions" :key="index" :label="item.city_name"
:value="(item.city_code)" />
</el-select>
</el-form-item>
</el-col>

View File

@ -55,7 +55,7 @@
</el-col>
<el-col :span="8">
<el-form-item label="收款账号" prop="payee_account">
<el-input v-model="formData.payee_account" clearable placeholder="请输入收款账号" />
<el-input v-model="formData.payee_account" clearable placeholder="请输入收款账号" v-type="'account'" />
</el-form-item>
</el-col>
<el-col :span="8">
@ -86,7 +86,8 @@
</el-col>
<el-col :span="8">
<el-form-item label="开户账号">
<el-input v-model="formData.bank_account.account" disabled placeholder="系统自动获取" />
<el-input v-model="formData.bank_account.account" disabled placeholder="系统自动获取"
v-type="'account'" />
</el-form-item>
</el-col>
</el-row>

View File

@ -25,7 +25,7 @@
<el-input v-model="formData.payee_bank" clearable placeholder="请输入收款银行" />
</el-form-item>
<el-form-item label="收款账号" prop="payee_account">
<el-input v-model="formData.payee_account" clearable placeholder="请输入收款账号" type="number" />
<el-input v-model="formData.payee_account" clearable placeholder="请输入收款账号" v-type="'account'" />
</el-form-item>
<el-form-item label="备注" prop="remark">
<el-input v-model="formData.remark" clearable placeholder="请输入备注" />
@ -46,7 +46,7 @@
<el-input v-model="formData.bank_account.account_name" readonly />
</el-form-item>
<el-form-item label="开户账号">
<el-input v-model="formData.bank_account.account" readonly />
<el-input v-model="formData.bank_account.account" readonly v-type="'account'" />
</el-form-item>
</el-form>

View File

@ -60,7 +60,7 @@
<el-col :span="8">
<el-form-item label="收款账号" prop="payee_account">
<el-input v-model="formData.payee_account" clearable placeholder="请输入收款账号" type="number" />
<el-input v-model="formData.payee_account" clearable placeholder="请输入收款账号" v-type="'account'" />
</el-form-item>
</el-col>
@ -83,7 +83,8 @@
</el-col>
<el-col :span="8">
<el-form-item label="开户账号" prop="bank_account_id">
<el-input v-model="formData.bank_account.account" disabled placeholder="系统自动获取" />
<el-input v-model="formData.bank_account.account" disabled placeholder="系统自动获取"
v-type="'account'" />
</el-form-item>
</el-col>
<el-col :span="8">

View File

@ -135,7 +135,7 @@
</el-col>
<el-col :span="8">
<el-form-item label="账号" prop="account">
<el-input v-model="account" clearable disabled placeholder="系统自动填写" />
<el-input v-model="account" clearable disabled placeholder="系统自动填写" v-type="'account'" />
</el-form-item>
</el-col>
</el-row>

View File

@ -89,7 +89,8 @@
<el-row :gutter="10">
<el-col :span="8">
<el-form-item label="收款账号" prop="collection_account">
<el-input v-model="formData.collection_account" clearable placeholder="请输入收款账号" type="number" />
<el-input v-model="formData.collection_account" clearable placeholder="请输入收款账号"
v-type="'account'" />
</el-form-item>
</el-col>
<el-col :span="8">
@ -125,7 +126,7 @@
</el-col> <el-col :span="8">
<el-form-item label="开户账号" prop="collection_bank">
<el-input v-model="formData.bank_account_info.account" clearable readonly
<el-input v-model="formData.bank_account_info.account" clearable readonly v-type="'account'"
placeholder="请输入收款银行" />
</el-form-item>

View File

@ -79,7 +79,7 @@
<el-form-item label="账户编码" prop="bank_account_info"
:rules="[{ required: true, message: '不可为空', trigger: 'blur' }]">
<el-input v-model="formData.bank_account_info.account_sn" @click="showDialog1 = true" readonly
clearable placeholder="请输入收款账号" />
clearable placeholder="请输入收款账号" v-type="'account'" />
</el-form-item>
</el-col>

View File

@ -8,7 +8,8 @@
</el-date-picker>
</el-form-item>
<el-form-item label="银行账号" prop="bank_account_id">
<el-input class="w-[280px]" v-model="queryParams.bank_account_id" clearable placeholder="请输入银行账号" />
<el-input class="w-[280px]" v-model="queryParams.bank_account_id" clearable placeholder="请输入银行账号"
v-type="'account'" />
</el-form-item>

View File

@ -147,7 +147,8 @@
</el-form-item></el-col>
<el-col :span="8">
<el-form-item label="账号" prop="bank_account">
<el-input v-model="formData.bank_account" clearable placeholder="请输入" type="number" />
<el-input v-model="formData.bank_account" clearable placeholder="请输入"
v-type="'account'" />
</el-form-item></el-col>
<el-col :span="8">
<el-form-item label="开户地址" prop="bank_address">

View File

@ -102,7 +102,8 @@
</el-col>
<el-col :span="8">
<el-form-item label="开户账号">
<el-input v-model="formData.apply_company_account" clearable placeholder="请输入开户账号" />
<el-input v-model="formData.apply_company_account" clearable placeholder="请输入开户账号"
v-type="'account'" />
</el-form-item>
</el-col>
<el-col :span="8">