Explorar el Código

2022年5月11日09:53:12

master
wq hace 3 años
padre
commit
112ef7afd5

+ 0
- 0
src/api/dengmingcong/test.ts Ver fichero


+ 0
- 0
src/api/fancongcong/test.ts Ver fichero


+ 0
- 0
src/api/shengbo/test.ts Ver fichero


+ 0
- 0
src/api/system/test.ts Ver fichero


+ 0
- 0
src/api/weixingrong/test.ts Ver fichero


+ 5
- 6
src/crud/index.vue Ver fichero

@@ -48,12 +48,12 @@
:label-width="formLabelWidth">
<!-- 输入框 -->
<div style="width: 100%;" v-if="item.form.type === 'input'">
<el-input v-model="form[item.prop]" :type="item.itemType"
<el-input :disabled="item.form.disabled" v-model="form[item.prop]" :type="item.itemType"
:placeholder="item.form.placeholder" />
</div>
<!-- 选择框 -->
<div style="width: 100%;" v-else-if="item.form.type === 'select'">
<el-select style="width: 100%;" v-model="form[item.prop]"
<el-select style="width: 100%;" v-model="form[item.prop]" :disabled="item.form.disabled"
:placeholder="item.form.placeholder">
<el-option v-for="(itemData,index) in item.form.listData" :label="itemData.label"
:value="itemData.value" />
@@ -61,7 +61,7 @@
</div>
<!-- 日期框 -->
<div style="width: 100%;" v-else-if="item.form.type === 'date'">
<el-date-picker style="width: 100%;" v-model="form[item.prop]"
<el-date-picker style="width: 100%;" v-model="form[item.prop]" :disabled="item.form.disabled"
:value-format="item.form.valueFormat" :type="item.form.itemType"
:placeholder="item.form.placeholder" />
</div>
@@ -71,7 +71,7 @@
</div>

<template #footer>
<span v-if="!tableFrom.customDialog">
<span v-if="!tableFrom.footerDialog">
<el-button @click="cancel">取消</el-button>
<el-button type="primary" @click="affirm(ruleFormRef)">提交</el-button>
</span>
@@ -175,8 +175,7 @@

//表单字段
const form = ref(initForm)
form.value.four = '52011328220201499572'
console.log(form.value);
form.value.four = '52011328220201499572' //赋值一条测试数据

//重置
const RefreshLeft = () => {

+ 3
- 3
src/data/cardAfter/cardFillDo.ts Ver fichero

@@ -7,6 +7,7 @@ export const Data = {
table: {
style: '',
customDialog: true, //自定义Dialog (默认false)
footerDialog: true,
extend: [{
type: 'index',
label: '序号',
@@ -68,8 +69,7 @@ export const Data = {
type: 'input',
placeholder: '请输入卡片类型'
}
},
{
},{
prop: 'seven',
label: 'OBU编号',
width: '200',
@@ -81,7 +81,7 @@ export const Data = {
}, {
prop: 'eight',
label: 'OBU状态',
width: '',
width: '120',
form: {
required: true,
type: 'input',

+ 28
- 19
src/data/cardAfter/cardRenewal.ts Ver fichero

@@ -4,6 +4,7 @@ export const Data = {
},
table: {
style: '',
footerDialog: true,
extend: [{
type: 'index',
label: '序号',
@@ -16,43 +17,48 @@ export const Data = {
width: '120',
overflow: true,
form: {
required: true,
required: false,
disabled: true,
type: 'input',
placeholder: '请输入客户名称'
}
}, {
prop: 'two',
prop: 'five',
label: '证件类型',
width: '180',
width: '120',
form: {
required: true,
required: false,
disabled: true,
type: 'input',
placeholder: '请输入证件类型'
}
}, {
prop: 'three',
label: '证件号码',
width: '180',
prop: 'four',
label: '证件号码123',
width: '200',
form: {
required: true,
required: false,
disabled: true,
type: 'input',
placeholder: '请输入证件号码'
}
}, {
prop: 'four',
prop: 'two',
label: '车牌号码',
width: '200',
width: '120',
form: {
required: true,
required: false,
disabled: true,
type: 'input',
placeholder: '请输入车牌号码'
}
}, {
prop: 'five',
prop: 'four',
label: '卡号',
width: '180',
width: '200',
form: {
required: true,
required: false,
disabled: true,
type: 'input',
placeholder: '请输入卡号'
}
@@ -61,17 +67,19 @@ export const Data = {
label: '卡片状态',
width: '120',
form: {
required: true,
required: false,
disabled: true,
type: 'input',
placeholder: '请输入卡片状态'
}
},
{
prop: 'seven',
prop: 'data',
label: '到期时间',
width: '',
width: '180',
form: {
required: true,
required: false,
disabled: true,
type: 'input',
placeholder: '请输入到期时间'
}
@@ -81,9 +89,10 @@ export const Data = {
operateTitle: '操作',
operateFixed: true,
isOperate: true,
operateWidth: '',
operate: {
edit: true,
delete: true
delete: false
}
}
}

+ 1
- 0
src/data/cardAfter/initiativeHangUp.ts Ver fichero

@@ -92,6 +92,7 @@ export const Data = {
operateTitle: '操作',
operateFixed: true,
isOperate: true,
operateWidth: '180',
operate: {
edit: true,
delete: true

+ 1
- 0
src/data/tableConfig.ts Ver fichero

@@ -6,6 +6,7 @@ export const cfg = {
style: '', //默认表格样式
border: false, //是否添加边框(默认false)
customDialog: false, //自定义Dialog (默认false)
footerDialog: false, //隐藏弹窗页脚显示 (默认false)
extend: [{ //表头拓展
type: '', //类型:selection,index,expand
width: '', //表头宽度

+ 0
- 1
src/views/dengmingcong/cardFillDo/cardFillDo.vue Ver fichero

@@ -4,7 +4,6 @@
<!-- 自定义搜索 -->
<template #search="{ searchCondition }">
<!-- 搜索 监听回车 @keyup.enter.native="search"-->
<el-input v-model="searchCondition.fileOne" clearable placeholder="卡号" style="width: 200px;" />
<el-input v-model="searchCondition.fileTwo" clearable placeholder="车牌号码"
style="width: 200px;margin: 0 10px 0 10px;" />
<el-select v-model="searchCondition.fileThree" placeholder="--请输入车牌颜色--" style="margin-right: 10px;">

+ 20
- 4
src/views/dengmingcong/cardRenewal/cardRenewal.vue Ver fichero

@@ -1,18 +1,34 @@
<template>
<!-- 卡签续期 -->
<CRUD :homeData="Data" text="123">
<CRUD ref="crudRef" :homeData="Data" text="123">
<template #search="{ searchCondition }">
<!-- 搜索 监听回车 @keyup.enter.native="search"-->
<el-input v-model="searchCondition.fileOne" clearable placeholder="卡号" style="width: 200px;margin-right: 10px;" />
<el-button type="primary" icon="CreditCard">读卡</el-button>
<el-input v-model="searchCondition.fileTwo" clearable placeholder="车牌号码"
style="width: 200px;margin: 0 10px 0 10px;" />
<el-select v-model="searchCondition.fileThree" placeholder="--请输入车牌颜色--" style="margin-right: 10px;">
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />
</el-select>
</template>
<!-- 弹窗页脚 -->
<template #footer>
<span>
<el-button @click="crudRef.dialogFormVisible = false">取消</el-button>
<el-button type="primary">卡续签</el-button>
<el-button type="primary">OBU续签</el-button>
</span>
</template>
</CRUD>
</template>
<script setup lang="ts">
import CRUD from "@/crud/index.vue";
import CRUD from "@/crud/index.vue"
import {
Data
} from '@/data/cardAfter/cardRenewal' //表单配置
import {
ref
} from 'vue'

const crudRef = ref()

const options = [{
value: 'Option1',

Cargando…
Cancelar
Guardar