日期必填

main
mo 1 year ago
parent 97ac3cfe41
commit 1fc993b7f2

@ -125,6 +125,17 @@
>新增</el-button >新增</el-button
> >
</el-col> </el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-delete"
size="mini"
:disabled="multiple1"
@click="handleDelete"
>删除</el-button
>
</el-col>
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button
type="warning" type="warning"
@ -337,7 +348,7 @@
v-model="form.tradTime" v-model="form.tradTime"
type="date" type="date"
value-format="timestamp" value-format="timestamp"
placeholder="选择交易日期" placeholder="手动填写"
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -703,6 +714,8 @@ export default {
loading: true, loading: true,
// //
multiple: true, multiple: true,
//
multiple1: true,
// //
exportLoading: false, exportLoading: false,
// //
@ -771,6 +784,9 @@ export default {
// //
rules: { rules: {
staffName: [{ required: true, message: "请选择", trigger: "blur" }], staffName: [{ required: true, message: "请选择", trigger: "blur" }],
tradTime: [
{ required: true, message: "请选择交易日期", trigger: "blur" },
],
}, },
fileList: [], // fileList: [], //
uploadUrl: uploadUrl:
@ -1058,7 +1074,7 @@ export default {
}, },
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const id = row.id; const id = row.id || this.ids;
this.$modal this.$modal
.confirm('是否确认删除银行回单编号为"' + id + '"的数据项?') .confirm('是否确认删除银行回单编号为"' + id + '"的数据项?')
.then(function () { .then(function () {
@ -1098,6 +1114,7 @@ export default {
} else { } else {
this.multiple = true; this.multiple = true;
} }
this.multiple1 = !selection.length;
}, },
// //
handleGLPZ() { handleGLPZ() {

Loading…
Cancel
Save