This commit is contained in:
zmj 2024-04-16 17:20:01 +08:00
parent 284444f08f
commit b6b931d483
28 changed files with 70 additions and 74 deletions

View File

@ -49,8 +49,6 @@ export function usePaging(options: Options) {
lists: [] as any[],
extend: {} as Record<string, any>,
calcWidth: ({ column }: Icolumn) => {
// console.log(column);
// if (!pager.lists?.length) return column.label;
let propWidth = column.label.length * 14 + 30;

View File

@ -9,13 +9,15 @@ export default {
mounted: async (el: HTMLElement, binding: any) => {
var inputElements = el.getElementsByTagName("input")[0];
var { value } = binding;
inputElements.addEventListener("input", function (event) {
inputElements.addEventListener("change", function (event) {
if (value == "code") {
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("");
event.target.value = event.target.value.match(/\d/g)
? event.target.value.match(/\d/g).join("")
: "";
}
});
},

View File

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

View File

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

View File

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

View File

@ -64,8 +64,8 @@
show-overflow-tooltip />
<el-table-column :render-header="pager.calcWidth" label="保证金退还时间" width="155"
prop="margin_amount_return_date" show-overflow-tooltip />
<el-table-column label="有无内部资源" width="155" prop="is_internal_resources" show-overflow-tooltip />
<el-table-column label="项目把握度" width="85" prop="project_assurance" show-overflow-tooltip />
<el-table-column label="有无内部资源" prop="is_internal_resources" show-overflow-tooltip />
<el-table-column label="项目把握度" prop="project_assurance" show-overflow-tooltip />
<el-table-column label="操作" width="160" fixed="right">
<template #default="{ row }">
<el-button v-perms="['bid.bid_bidding_decision/edit']" type="primary" link

View File

@ -91,7 +91,8 @@
<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="请输入账号" v-type="'account'" />
<el-input v-model="formData.account" clearable placeholder="请输入账号" v-type="'account'"
type='number' />
</el-form-item>
</el-col>
<el-col :span="8">

View File

@ -24,31 +24,20 @@
<div class="mt-4">
<el-table border :data="pager.lists">
<el-table-column label="合同名称" prop="contract_name" :render-header="pager.calcWidth" />
<el-table-column label="合同编号" prop="contract_code" :render-header="pager.calcWidth" />
<el-table-column label="合同类型" prop="contract_type_text" :render-header="pager.calcWidth"
show-overflow-tooltip />
<el-table-column label="业务性质" prop="business_nature_text" :render-header="pager.calcWidth"
show-overflow-tooltip />
<el-table-column :render-header="pager.calcWidth" label="甲方签约单位" prop="part_a_name"
show-overflow-tooltip />
<el-table-column :render-header="pager.calcWidth" label="签订部门" prop="signed_dept_name"
show-overflow-tooltip />
<el-table-column :render-header="pager.calcWidth" label="合同签订金额" prop="signed_amount" show-overflow-tooltip />
<el-table-column :render-header="pager.calcWidth" label="已开票金额" prop="total_invoice_amount"
show-overflow-tooltip />
<el-table-column :render-header="pager.calcWidth" label="已到账金额" prop="total_refund_amount"
show-overflow-tooltip />
<el-table-column :render-header="pager.calcWidth" label="已结算金额" prop="total_settlement_amount"
show-overflow-tooltip />
<el-table-column :render-header="pager.calcWidth" label="未开票金额" prop="not_total_invoice_amount"
show-overflow-tooltip />
<el-table-column :render-header="pager.calcWidth" label="未到账金额" prop="not_total_refund_amount"
show-overflow-tooltip />
<el-table-column :render-header="pager.calcWidth" label="开票未回款金额" prop="invoice_not_refund_amount"
show-overflow-tooltip />
<el-table-column label="回款未开票金额" :render-header="pager.calcWidth" prop="refund_not_invoice_amount"
show-overflow-tooltip />
<el-table-column label="合同结算日期" prop="settlement_date" show-overflow-tooltip width="120" />
<el-table-column label="合同编号" prop="contract_code" />
<el-table-column label="合同类型" prop="contract_type_text" show-overflow-tooltip />
<el-table-column label="业务性质" prop="business_nature_text" show-overflow-tooltip />
<el-table-column label="甲方签约单位" prop="part_a_name" show-overflow-tooltip />
<el-table-column label="签订部门" prop="signed_dept_name" show-overflow-tooltip />
<el-table-column label="合同签订金额" prop="signed_amount" show-overflow-tooltip />
<el-table-column label="已开票金额" prop="total_invoice_amount" show-overflow-tooltip />
<el-table-column label="已到账金额" prop="total_refund_amount" show-overflow-tooltip />
<el-table-column label="已结算金额" prop="total_settlement_amount" show-overflow-tooltip />
<el-table-column label="未开票金额" prop="not_total_invoice_amount" show-overflow-tooltip />
<el-table-column label="未到账金额" prop="not_total_refund_amount" show-overflow-tooltip />
<el-table-column label="开票未回款金额" prop="invoice_not_refund_amount" show-overflow-tooltip />
<el-table-column label="回款未开票金额" prop="refund_not_invoice_amount" show-overflow-tooltip />
<el-table-column label="合同结算日期" prop="settlement_date" show-overflow-tooltip />
</el-table>
</div>
<div class="flex mt-4 justify-end">

View File

@ -81,7 +81,8 @@
<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="请输入收款账号" v-type="'account'" />
<el-input v-model="formData.payee_account" clearable placeholder="请输入收款账号" v-type="'account'"
type='number' />
</el-form-item>
</el-col>

View File

@ -147,7 +147,8 @@
<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="请输入收款账号" v-type="'account'" />
<el-input v-model="formData.payee_account" clearable placeholder="请输入收款账号" v-type="'account'"
type='number' />
</el-form-item>
</el-col>
</el-row>

View File

@ -71,7 +71,7 @@
</el-col>
<el-col :span="8">
<el-form-item label="发票编号">
<el-input v-model="formData.invoice_no" clearable placeholder="请输入发票编号" type="number" />
<el-input v-model="formData.invoice_no" clearable placeholder="请输入发票编号" v-type="'account'" />
</el-form-item>
</el-col>
<el-col :span="8">

View File

@ -76,7 +76,8 @@
</el-col>
<el-col :span="8">
<el-form-item label="付款账号" prop="pay_account">
<el-input v-model="formData.pay_account" clearable placeholder="请输入付款账号" v-type="'account'" />
<el-input v-model="formData.pay_account" clearable placeholder="请输入付款账号" v-type="'account'"
type='number' />
</el-form-item>
</el-col>
<el-col :span="8">
@ -288,6 +289,7 @@ const setFormData = async (data: Record<any, any>) => {
formData[key] = data[key]
}
}
getCityList();
}

View File

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

View File

@ -47,7 +47,7 @@
<el-table-column :render-header="pager.calcWidth" label="投标日期" prop="bid_date" show-overflow-tooltip />
<el-table-column label="投标状态" prop="business_opportunity.status_text" show-overflow-tooltip />
<el-table-column label="建安投资额" prop="business_opportunity.jianan_investment" show-overflow-tooltip />
<el-table-column label="流程状态" prop="business_opportunity.approve_status_text" show-overflow-tooltip />
<!-- <el-table-column label="流程状态" prop="business_opportunity.approve_status_text" show-overflow-tooltip /> -->
<el-table-column label="报名截止日期" prop="end_date" show-overflow-tooltip />
<el-table-column label="操作" width="250" fixed="right">
<template #default="{ row }">

View File

@ -103,7 +103,7 @@
<el-table-column :render-header="pager.calcWidth" label="计划结束" prop="end_date" show-overflow-tooltip />
<el-table-column :render-header="pager.calcWidth" label="签订时间" prop="create_time"
show-overflow-tooltip />
<el-table-column label="审核状态" prop="approve_status_text" show-overflow-tooltip />
<!-- <el-table-column label="审核状态" prop="approve_status_text" show-overflow-tooltip /> -->
<el-table-column label="移交状态" prop="review_status_text" show-overflow-tooltip />
<el-table-column label="操作" width="170" fixed="right">
<template #default="{ row }">

View File

@ -58,7 +58,7 @@
show-overflow-tooltip />
<el-table-column label="签订时间" :render-header="pager.calcWidth" prop="create_time"
show-overflow-tooltip />
<el-table-column label="流程状态" prop="approve_status_text" show-overflow-tooltip />
<!-- <el-table-column label="流程状态" prop="approve_status_text" show-overflow-tooltip /> -->
<el-table-column label="移交状态" prop="review_status_text" show-overflow-tooltip />
<el-table-column label="操作" width="170" fixed="right">
<template #default="{ row }">

View File

@ -53,8 +53,8 @@
show-overflow-tooltip />
<el-table-column label="签订时间" :render-header="pager.calcWidth" prop="create_time"
show-overflow-tooltip />
<el-table-column label="审核状态" :render-header="pager.calcWidth" prop="approve_status_text"
show-overflow-tooltip />
<!-- <el-table-column label="审核状态" :render-header="pager.calcWidth" prop="approve_status_text"
show-overflow-tooltip /> -->
<el-table-column label="移交状态" prop="review_status_text" show-overflow-tooltip />
<el-table-column label="操作" width="170" fixed="right">
<template #default="{ row }">

View File

@ -31,7 +31,7 @@
<el-table-column :render-header="pager.calcWidth" label="项目名称" prop="project_name" />
<el-table-column :render-header="pager.calcWidth" label="合同名称" prop="contract_name" />
<el-table-column :render-header="pager.calcWidth" label="合同编号" prop="contract_no" />
<el-table-column label="供应商名称" prop="supplier_name" width="100" />
<el-table-column label="供应商名称" :render-header="pager.calcWidth" prop="supplier_name" width="100" />
<el-table-column :render-header="pager.calcWidth" label="合同类型" prop="contract_type_text"
show-overflow-tooltip />
<el-table-column :render-header="pager.calcWidth" label="税率" prop="tax_rate_text"

View File

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

View File

@ -25,7 +25,8 @@
<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="请输入收款账号" v-type="'account'" />
<el-input v-model="formData.payee_account" clearable placeholder="请输入收款账号" v-type="'account'"
type='number' />
</el-form-item>
<el-form-item label="备注" prop="remark">
<el-input v-model="formData.remark" clearable placeholder="请输入备注" />

View File

@ -132,7 +132,7 @@
import type { FormInstance } from 'element-plus'
import Popup from '@/components/popup/index.vue'
import projectDialog from '@/components/project/index.vue'
import { MaterialbudgetDetailLists } from '@/api/project_material_budget_detail'
import { MaterialbudgetDetailLists, MaterialbudgetDetailDelete } from '@/api/project_material_budget_detail'
import prodctTable from '@/components/product/index.vue'
import { apiMaterialbudgetAdd, apiMaterialbudgetEdit, apiMaterialbudgetDetail } from '@/api/project_material_budget'
let props = defineProps({
@ -256,7 +256,8 @@ const budgetDetailLists = (id) => {
const handleDelete = (row: any) => {
const handleDelete = async (row: any) => {
if (row.id) await MaterialbudgetDetailDelete({ id: row.id })
// row
const index = tableData.value.indexOf(row);
tableData.value.splice(index, 1);

View File

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

View File

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

View File

@ -42,7 +42,6 @@
<el-table-column label="本项目特征" prop="project_characteristics" show-overflow-tooltip />
<el-table-column label="计划施工时间" prop="planned_construction_time" show-overflow-tooltip />
<el-table-column label="操作" align="center" fixed="right">
<template #default="{ row }">
<el-button v-perms="['supervision_dangerous.supervision_high_risk_security_monitoring/edit']"
type="primary" link @click="handleEdit(row)">

View File

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

View File

@ -191,16 +191,13 @@ const customEvent = (e) => {
formData.project_id = e.id
formData.project_name = e.project_name
showDialog.value = false
console.log(e)
formData.project_num = e.project_num
formData.contract_name = e.contract_name
// formData.contract_type=e.
formData.contract_type = e.contract_type_text
formData.part_a = e.aunit_name
// formData.part_b=e.
// formData.sign_money=e.
// formData.sign_time=e.
formData.part_b = e.part_b
formData.sign_money = e.signed_amount
formData.sign_time = e.signed_date
formData.total_invoice_amount = e.total_invoice_amount
formData.total_refund_amount = e.total_refund_amount

View File

@ -166,11 +166,12 @@ const customEvent = (e) => {
formData.part_a = 'sdasdasd'
formData.project_num = e.project_num
formData.contract_name = e.contract_name
// formData.contract_type = e.
formData.contract_type = e.contract_type_text
formData.part_a = e.aunit_name
// formData.part_b = e.
// formData.sign_money = e.
// formData.sign_time = e.
formData.part_b = e.part_b
formData.sign_money = e.signed_amount
formData.sign_time = e.signed_date
// formData.apply_amount = e.
formData.total_invoice_amount = e.total_invoice_amount
formData.total_refund_amount = e.total_refund_amount

View File

@ -142,20 +142,17 @@ const formData = reactive({
})
const customEvent = (e) => {
formData.project_id = e.id
formData.project_num = e.project_num
formData.contract_name = e.contract_name
// formData.contract_type = e.contract_type
formData.contract_type = e.contract_type_text
formData.part_a = e.aunit_name
// formData.part_b = e.
// formData.sign_money = e.
// formData.sign_time = e.
formData.part_b = e.part_b
formData.sign_money = e.signed_amount
formData.sign_time = e.signed_date
formData.total_invoice_amount = e.total_invoice_amount
formData.total_refund_amount = e.total_refund_amount
showDialog.value = false
}