Commit e05683f5 authored by pengyunqian's avatar pengyunqian

feat:拼单设置

parent 89c2f4a1
...@@ -6,38 +6,121 @@ ...@@ -6,38 +6,121 @@
type="datetimerange" type="datetimerange"
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期" end-placeholder="结束日期"
:default-time="defaultTime"> :default-time="defaultTime"
>
</el-date-picker> </el-date-picker>
</div> </div>
<div> <div>
<el-card> <el-card>
<span>自提点设置</span> <span >自提点设置</span>
<el-form ref="form" :model="form" label-width="80px"> <div class="set">
<el-form-item label="label"> <el-form ref="form" :model="selfLiftingPoint" label-width="80px">
<el-input v-model="model"></el-input> <el-form-item>
<el-input
v-model="selfLiftingPoint"
placeholder="自提点名称/自提点联系人"
suffix-icon="el-icon-search"
></el-input>
</el-form-item> </el-form-item>
<el-form-item>
<el-button type="primary">添加自提点</el-button>
</el-form-item>
<span>已选</span>
<el-table
ref="multipleTable"
:data="tableData"
border
tooltip-effect="dark"
style="width: 100%"
@selection-change="handleSelectionChange"
>
<el-table-column align="center" type="selection" width="80">
</el-table-column>
<el-table-column label="自提点名称" align="center" width="width">
<template #default="scope">{{ scope.row.date }}</template>
</el-table-column>
<el-table-column
prop="name"
align="center"
label="位置"
width="width"
>
</el-table-column>
<el-table-column
prop="name"
align="center"
label="详细地址"
width="width"
>
</el-table-column>
<el-table-column
prop="name"
align="center"
label="自提点联系人"
width="width"
>
</el-table-column>
<el-table-column
prop="name"
align="center"
label="操作"
width="width"
>
<template #default="scope">
<el-button
type="primary"
size="small"
@click="handleModify(scope.row)"
>修改</el-button
>
<el-popconfirm title="确定要删除此自提点吗?">
<template #reference>
<el-button
type="primary"
size="small"
@click="handleDelete(scope.row)"
>删除</el-button
>
</template>
</el-popconfirm>
</template>
</el-table-column>
</el-table>
</el-form> </el-form>
</div>
</el-card> </el-card>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return{ return {
value1:'', value1: "",
defaultTime: [ defaultTime: [
new Date(2000, 1, 1, 12, 0, 0), new Date(2000, 1, 1, 12, 0, 0),
new Date(2000, 2, 1, 8, 0, 0) new Date(2000, 2, 1, 8, 0, 0),
] ],
} selfLiftingPoint: "",
} tableData: [],
} multipleSelection: [],
};
},
methods: {
// 复选框
handleSelectionChange(val) {
this.multipleSelection = val;
},
},
};
</script> </script>
<style lang="less" scope> <style lang="less" scope>
.spellOrderSet { .spellOrderSet {
text-align: center; text-align: center;
margin: 50px 0; margin: 50px 0;
.set {
margin-top: 50px;
} }
}
</style> </style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment