@@ -1,8 +1,13 @@ | |||
{ | |||
<<<<<<< HEAD | |||
======= | |||
"name": "etc-project", | |||
>>>>>>> 1773229aa281664dd3e6faab09b9569c166b3dc3 | |||
"version": "0.0.0", | |||
"lockfileVersion": 2, | |||
"lockfileVersion": 1, | |||
"requires": true, | |||
<<<<<<< HEAD | |||
======= | |||
"packages": { | |||
"": { | |||
"version": "0.0.0", | |||
@@ -3678,6 +3683,7 @@ | |||
"dev": true | |||
} | |||
}, | |||
>>>>>>> 1773229aa281664dd3e6faab09b9569c166b3dc3 | |||
"dependencies": { | |||
"@babel/helper-validator-identifier": { | |||
"version": "7.15.7", | |||
@@ -3777,8 +3783,7 @@ | |||
"@element-plus/icons-vue": { | |||
"version": "1.1.4", | |||
"resolved": "https://registry.npmmirror.com/@element-plus/icons-vue/-/icons-vue-1.1.4.tgz", | |||
"integrity": "sha512-Iz/nHqdp1sFPmdzRwHkEQQA3lKvoObk8azgABZ81QUOpW9s/lUyQVUSh0tNtEPZXQlKwlSh7SPgoVxzrE0uuVQ==", | |||
"requires": {} | |||
"integrity": "sha512-Iz/nHqdp1sFPmdzRwHkEQQA3lKvoObk8azgABZ81QUOpW9s/lUyQVUSh0tNtEPZXQlKwlSh7SPgoVxzrE0uuVQ==" | |||
}, | |||
"@eslint/eslintrc": { | |||
"version": "1.0.4", | |||
@@ -3998,8 +4003,7 @@ | |||
"version": "1.10.2", | |||
"resolved": "https://registry.npmmirror.com/@vitejs/plugin-vue/-/plugin-vue-1.10.2.tgz", | |||
"integrity": "sha512-/QJ0Z9qfhAFtKRY+r57ziY4BSbGUTGsPRMpB/Ron3QPwBZM4OZAZHdTa4a8PafCwU5DTatXG8TMDoP8z+oDqJw==", | |||
"dev": true, | |||
"requires": {} | |||
"dev": true | |||
}, | |||
"@vue/compiler-core": { | |||
"version": "3.2.22", | |||
@@ -4126,8 +4130,7 @@ | |||
"vue-demi": { | |||
"version": "0.12.4", | |||
"resolved": "https://registry.npmmirror.com/vue-demi/-/vue-demi-0.12.4.tgz", | |||
"integrity": "sha512-ztPDkFt0TSUdoq1ZI6oD730vgztBkiByhUW7L1cOTebiSBqSYfSQgnhYakYigBkyAybqCTH7h44yZuDJf2xILQ==", | |||
"requires": {} | |||
"integrity": "sha512-ztPDkFt0TSUdoq1ZI6oD730vgztBkiByhUW7L1cOTebiSBqSYfSQgnhYakYigBkyAybqCTH7h44yZuDJf2xILQ==" | |||
} | |||
} | |||
}, | |||
@@ -4146,8 +4149,7 @@ | |||
"version": "5.3.2", | |||
"resolved": "https://registry.nlark.com/acorn-jsx/download/acorn-jsx-5.3.2.tgz", | |||
"integrity": "sha1-ftW7VZCLOy8bxVxq8WU7rafweTc=", | |||
"dev": true, | |||
"requires": {} | |||
"dev": true | |||
}, | |||
"ajv": { | |||
"version": "6.12.6", | |||
@@ -4831,8 +4833,7 @@ | |||
"version": "8.3.0", | |||
"resolved": "https://registry.nlark.com/eslint-config-prettier/download/eslint-config-prettier-8.3.0.tgz?cache=0&sync_timestamp=1619270475218&other_urls=https%3A%2F%2Fregistry.nlark.com%2Feslint-config-prettier%2Fdownload%2Feslint-config-prettier-8.3.0.tgz", | |||
"integrity": "sha1-90cbILb+ipqSVMxoRFQgKIai3Xo=", | |||
"dev": true, | |||
"requires": {} | |||
"dev": true | |||
}, | |||
"eslint-plugin-prettier": { | |||
"version": "4.0.0", | |||
@@ -5159,8 +5160,7 @@ | |||
"graceful-fs": { | |||
"version": "4.2.9", | |||
"resolved": "https://registry.npmmirror.com/graceful-fs/-/graceful-fs-4.2.9.tgz", | |||
"integrity": "sha512-NtNxqUcXgpW2iMrfqSfR73Glt39K+BLwWsPs94yR63v45T0Wbej7eRmL5cWfwEgqXnmjQp3zaJTshdRW/qC2ZQ==", | |||
"devOptional": true | |||
"integrity": "sha512-NtNxqUcXgpW2iMrfqSfR73Glt39K+BLwWsPs94yR63v45T0Wbej7eRmL5cWfwEgqXnmjQp3zaJTshdRW/qC2ZQ==" | |||
}, | |||
"has": { | |||
"version": "1.0.3", | |||
@@ -5402,8 +5402,7 @@ | |||
"lodash-unified": { | |||
"version": "1.0.2", | |||
"resolved": "https://registry.npmmirror.com/lodash-unified/-/lodash-unified-1.0.2.tgz", | |||
"integrity": "sha512-OGbEy+1P+UT26CYi4opY4gebD8cWRDxAT6MAObIVQMiqYdxZr1g3QHWCToVsm31x2NkLS4K3+MC2qInaRMa39g==", | |||
"requires": {} | |||
"integrity": "sha512-OGbEy+1P+UT26CYi4opY4gebD8cWRDxAT6MAObIVQMiqYdxZr1g3QHWCToVsm31x2NkLS4K3+MC2qInaRMa39g==" | |||
}, | |||
"lodash.merge": { | |||
"version": "4.6.2", | |||
@@ -5519,8 +5518,7 @@ | |||
"ms": { | |||
"version": "2.1.2", | |||
"resolved": "https://registry.npmmirror.com/ms/download/ms-2.1.2.tgz", | |||
"integrity": "sha1-0J0fNXtEP0kzgqjrPM0YOHKuYAk=", | |||
"devOptional": true | |||
"integrity": "sha1-0J0fNXtEP0kzgqjrPM0YOHKuYAk=" | |||
}, | |||
"nanoid": { | |||
"version": "3.3.2", | |||
@@ -5930,6 +5928,14 @@ | |||
"integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", | |||
"dev": true | |||
}, | |||
<<<<<<< HEAD | |||
"ssf": { | |||
"version": "0.11.2", | |||
"resolved": "https://registry.npmmirror.com/ssf/-/ssf-0.11.2.tgz", | |||
"integrity": "sha512-+idbmIXoYET47hH+d7dfm2epdOMUDjqcB4648sTZ+t2JwoyBFL/insLfB/racrDmsKB3diwsDA696pZMieAC5g==", | |||
"requires": { | |||
"frac": "~1.1.2" | |||
======= | |||
"string_decoder": { | |||
"version": "1.1.1", | |||
"resolved": "https://registry.npm.taobao.org/string_decoder/download/string_decoder-1.1.1.tgz", | |||
@@ -5937,6 +5943,7 @@ | |||
"dev": true, | |||
"requires": { | |||
"safe-buffer": "~5.1.0" | |||
>>>>>>> 1773229aa281664dd3e6faab09b9569c166b3dc3 | |||
} | |||
}, | |||
"string-width": { | |||
@@ -5950,6 +5957,15 @@ | |||
"strip-ansi": "^6.0.1" | |||
} | |||
}, | |||
"string_decoder": { | |||
"version": "1.1.1", | |||
"resolved": "https://registry.npm.taobao.org/string_decoder/download/string_decoder-1.1.1.tgz", | |||
"integrity": "sha1-nPFhG6YmhdcDCunkujQUnDrwP8g=", | |||
"dev": true, | |||
"requires": { | |||
"safe-buffer": "~5.1.0" | |||
} | |||
}, | |||
"strip-ansi": { | |||
"version": "6.0.1", | |||
"resolved": "https://registry.npmmirror.com/strip-ansi/download/strip-ansi-6.0.1.tgz", | |||
@@ -6384,8 +6400,7 @@ | |||
"vue-fragment": { | |||
"version": "1.5.2", | |||
"resolved": "https://registry.npmmirror.com/vue-fragment/-/vue-fragment-1.5.2.tgz", | |||
"integrity": "sha512-KEW0gkeNOLJjtXN4jqJhTazez5jtrwimHkE5Few/VxblH4F9EcvJiEsahrV5kg5uKd5U8du4ORKS6QjGE0piYA==", | |||
"requires": {} | |||
"integrity": "sha512-KEW0gkeNOLJjtXN4jqJhTazez5jtrwimHkE5Few/VxblH4F9EcvJiEsahrV5kg5uKd5U8du4ORKS6QjGE0piYA==" | |||
}, | |||
"vue-loader": { | |||
"version": "16.8.3", |
@@ -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 = () => { |
@@ -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', |
@@ -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 | |||
} | |||
} | |||
} |
@@ -92,6 +92,7 @@ export const Data = { | |||
operateTitle: '操作', | |||
operateFixed: true, | |||
isOperate: true, | |||
operateWidth: '180', | |||
operate: { | |||
edit: true, | |||
delete: true |
@@ -6,6 +6,7 @@ export const cfg = { | |||
style: '', //默认表格样式 | |||
border: false, //是否添加边框(默认false) | |||
customDialog: false, //自定义Dialog (默认false) | |||
footerDialog: false, //隐藏弹窗页脚显示 (默认false) | |||
extend: [{ //表头拓展 | |||
type: '', //类型:selection,index,expand | |||
width: '', //表头宽度 |
@@ -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;"> |
@@ -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', |