Commit 2c6859b2 by LJM

css

parent dcde8fdc
...@@ -15,9 +15,6 @@ ...@@ -15,9 +15,6 @@
<el-form-item label="创建时间"> <el-form-item label="创建时间">
<el-date-picker v-model="formParam.date" value-format="yyyy-MM-dd" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker> <el-date-picker v-model="formParam.date" value-format="yyyy-MM-dd" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="更新时间">
<el-date-picker v-model="formParam.date" value-format="yyyy-MM-dd" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
</el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="submit">搜索</el-button> <el-button type="primary" @click="submit">搜索</el-button>
<el-button @click="resetForm('formParam')">重置</el-button> <el-button @click="resetForm('formParam')">重置</el-button>
...@@ -49,7 +46,6 @@ ...@@ -49,7 +46,6 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="create_time" label="创建时间" width="140" align="center"></el-table-column> <el-table-column prop="create_time" label="创建时间" width="140" align="center"></el-table-column>
<el-table-column prop="update_time" label="更新时间" width="140" align="center"></el-table-column>
</el-table> </el-table>
<el-pagination layout="total, sizes, prev, pager, next, jumper" :page-sizes="[10, 20, 50, 100, 200]" :total="total" @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="page"></el-pagination> <el-pagination layout="total, sizes, prev, pager, next, jumper" :page-sizes="[10, 20, 50, 100, 200]" :total="total" @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="page"></el-pagination>
</div> </div>
...@@ -267,6 +263,7 @@ export default { ...@@ -267,6 +263,7 @@ export default {
}) })
}, },
resetForm(formName) { resetForm(formName) {
this.formParam.date = '';
this.$refs[formName].resetFields(); this.$refs[formName].resetFields();
}, },
submit() { submit() {
......
...@@ -1127,7 +1127,8 @@ export default { ...@@ -1127,7 +1127,8 @@ export default {
* @param formName * @param formName
*/ */
resetForm(formName) { resetForm(formName) {
this.formParam.date = ''; this.create_time_val = '';
this.deadline_time_val = '';
this.$refs[formName].resetFields(); this.$refs[formName].resetFields();
}, },
/** /**
......
...@@ -669,7 +669,7 @@ export default { ...@@ -669,7 +669,7 @@ export default {
}) })
}, },
resetForm(formName) { resetForm(formName) {
this.formParam.date = ''; this.quote_time_val = '';
this.$refs[formName].resetFields(); this.$refs[formName].resetFields();
}, },
onSubmit() { onSubmit() {
......
...@@ -258,6 +258,7 @@ export default { ...@@ -258,6 +258,7 @@ export default {
this.getData(); this.getData();
}, },
resetForm(formName) { resetForm(formName) {
this.create_time_val = '';
this.$refs[formName].resetFields(); this.$refs[formName].resetFields();
}, },
//生成发货单 //生成发货单
......
...@@ -143,6 +143,7 @@ export default { ...@@ -143,6 +143,7 @@ export default {
this.getData(); this.getData();
}, },
resetForm(formName) { resetForm(formName) {
this.create_time_val='';
this.$refs[formName].resetFields(); this.$refs[formName].resetFields();
}, },
/** /**
......
...@@ -469,7 +469,7 @@ ...@@ -469,7 +469,7 @@
<script> <script>
import Vue from 'vue'; import Vue from 'vue';
import Menu from "@/components/menu.vue"; import Menu from "@/components/menu.vue";
import {Autocomplete, Button, DatePicker, Dialog, Dropdown, DropdownItem, DropdownMenu, Form, FormItem, Input, Message, MessageBox, Option, Pagination, Popover, Select, Table, TableColumn, Tag, Tooltip,Upload} from 'element-ui' import {Autocomplete, Button, DatePicker, Dialog, Dropdown, DropdownItem, DropdownMenu, Form, FormItem, Input, Message, MessageBox, Option, Pagination, Popover, Select, Table, TableColumn, Tag, Tooltip, Upload} from 'element-ui'
import {NODE_ENVS} from "../../ajax"; import {NODE_ENVS} from "../../ajax";
import Tool from "@/tool"; import Tool from "@/tool";
...@@ -576,15 +576,15 @@ export default { ...@@ -576,15 +576,15 @@ export default {
* @param fileList * @param fileList
*/ */
importTemplate(file, fileList) { importTemplate(file, fileList) {
var that=this; var that = this;
if (file.code === 0) { if (file.code === 0) {
this.$message({ this.$message({
message: '导入成功', message: '导入成功',
type: 'success', type: 'success',
onClose(){ onClose() {
that.$router.push({ that.$router.push({
path: "/goodDetail", path: "/goodDetail",
query: { import_sn: file.data.import_sn}, query: {import_sn: file.data.import_sn},
}); });
} }
}); });
...@@ -1108,6 +1108,7 @@ export default { ...@@ -1108,6 +1108,7 @@ export default {
}, },
resetForm(formName) { resetForm(formName) {
this.formParam.date = ''; this.formParam.date = '';
this.date_val = '';
this.$refs[formName].resetFields(); this.$refs[formName].resetFields();
}, },
onSubmit() { onSubmit() {
......
...@@ -507,6 +507,7 @@ export default { ...@@ -507,6 +507,7 @@ export default {
}, },
resetForm(formName) { resetForm(formName) {
this.formParam.date = ''; this.formParam.date = '';
this.cp_time_val = '';
this.$refs[formName].resetFields(); this.$refs[formName].resetFields();
this.formParam.status = ''; this.formParam.status = '';
}, },
......
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 sign in to comment