|
@@ -27,6 +27,30 @@
|
|
|
|
|
|
<el-dialog :title="modalType == 'add' ? '添加供应商' : '编辑供应商'" v-if="openDialog" v-model="openDialog" width="900">
|
|
|
<byForm :formConfig="formConfig" :formOption="formOption" v-model="formData.data" :rules="rules" ref="submit">
|
|
|
+ <template #paymentType>
|
|
|
+ <div style="width: 100%; display: flex">
|
|
|
+ <el-form-item label="付款日期" prop="paymentType">
|
|
|
+ <el-radio-group v-model="formData.data.paymentType">
|
|
|
+ <el-radio :label="0">现结</el-radio>
|
|
|
+ <el-radio :label="1">月结</el-radio>
|
|
|
+ </el-radio-group>
|
|
|
+ </el-form-item>
|
|
|
+ <div style="padding-left: 10px">到货后次月1号起</div>
|
|
|
+ <el-form-item
|
|
|
+ label-width="0"
|
|
|
+ prop="nextMonthDays"
|
|
|
+ :rules="[{ required: formData.data.paymentType === 1 ? true : false, message: '请输入天数', trigger: 'blur' }]">
|
|
|
+ <el-input-number
|
|
|
+ onmousewheel="return false;"
|
|
|
+ v-model="formData.data.nextMonthDays"
|
|
|
+ placeholder="请输入"
|
|
|
+ :controls="false"
|
|
|
+ :min="0"
|
|
|
+ :precision="0" />
|
|
|
+ </el-form-item>
|
|
|
+ <div>天内,结算费用</div>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
<template #contactPerson1>
|
|
|
<div style="width: 100%">
|
|
|
<el-row :gutter="10">
|
|
@@ -116,13 +140,6 @@ const config = computed(() => {
|
|
|
},
|
|
|
{
|
|
|
attrs: {
|
|
|
- label: "账期",
|
|
|
- prop: "paymentPeriod",
|
|
|
- width: 120,
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- attrs: {
|
|
|
label: "电话",
|
|
|
prop: "companyTelephone",
|
|
|
width: 160,
|
|
@@ -245,14 +262,6 @@ const formConfig = computed(() => {
|
|
|
prop: "companyTelephone",
|
|
|
label: "公司电话",
|
|
|
itemType: "text",
|
|
|
- itemWidth: 50,
|
|
|
- },
|
|
|
- {
|
|
|
- type: "input",
|
|
|
- prop: "paymentPeriod",
|
|
|
- label: "账期",
|
|
|
- itemType: "text",
|
|
|
- itemWidth: 50,
|
|
|
},
|
|
|
{
|
|
|
type: "input",
|
|
@@ -281,6 +290,10 @@ const formConfig = computed(() => {
|
|
|
itemType: "text",
|
|
|
},
|
|
|
{
|
|
|
+ type: "slot",
|
|
|
+ slotName: "paymentType",
|
|
|
+ },
|
|
|
+ {
|
|
|
type: "title",
|
|
|
title: "联系人信息",
|
|
|
label: "",
|
|
@@ -330,6 +343,7 @@ const formConfig = computed(() => {
|
|
|
});
|
|
|
const rules = ref({
|
|
|
name: [{ required: true, message: "请输入供应商名称", trigger: "blur" }],
|
|
|
+ paymentType: [{ required: true, message: "请选择付款日期", trigger: "change" }],
|
|
|
});
|
|
|
const clickModal = () => {
|
|
|
modalType.value = "add";
|