|
@@ -9,9 +9,9 @@
|
|
|
<el-col :span="4">
|
|
|
<el-button type="primary" @click="getProductQueryList">查找</el-button>
|
|
|
</el-col>
|
|
|
- <el-col :span="4">
|
|
|
+ <!-- <el-col :span="4">
|
|
|
<el-button type="primary" @click="add">新增</el-button>
|
|
|
- </el-col>
|
|
|
+ </el-col> -->
|
|
|
</el-row>
|
|
|
</header>
|
|
|
<section>
|
|
@@ -31,14 +31,14 @@
|
|
|
<el-table-column prop="placeOrigin" label="来源地"></el-table-column>
|
|
|
<el-table-column prop="quarantineTime" label="检疫时间"></el-table-column>
|
|
|
<el-table-column prop="quarantineForm" label="检疫单"></el-table-column>
|
|
|
- <el-table-column label="操作" width="150">
|
|
|
+ <!-- <el-table-column label="操作" width="150">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button @click="edit(scope.row)" type="text" size="small">编辑</el-button>
|
|
|
<el-popconfirm title="是否删除此设备的信息?" @onConfirm="del(scope.row)">
|
|
|
<el-button slot="reference" type="text" size="small">删除</el-button>
|
|
|
</el-popconfirm>
|
|
|
</template>
|
|
|
- </el-table-column>
|
|
|
+ </el-table-column> -->
|
|
|
</el-table>
|
|
|
|
|
|
<el-row type="flex" justify="end">
|
|
@@ -54,7 +54,7 @@
|
|
|
</article>
|
|
|
</section>
|
|
|
|
|
|
- <el-dialog title="新增/编辑" :visible.sync="isShow" width="40%">
|
|
|
+ <!-- <el-dialog title="新增/编辑" :visible.sync="isShow" width="40%">
|
|
|
<el-row type="flex">
|
|
|
<el-col :span="20">
|
|
|
<el-form ref="addProductQuery" :model="formData" :rules="rules" label-width="140px">
|
|
@@ -117,16 +117,16 @@
|
|
|
</el-form>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
- </el-dialog>
|
|
|
+ </el-dialog> -->
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import {
|
|
|
reqProductQueryList,
|
|
|
- reqAddProductQuery,
|
|
|
- reqUpdateProductQuery,
|
|
|
- reqDelProductQuery
|
|
|
+ // reqAddProductQuery,
|
|
|
+ // reqUpdateProductQuery,
|
|
|
+ // reqDelProductQuery
|
|
|
} from "@/api/storeTransportation.js";
|
|
|
|
|
|
const pageSize = 10;
|
|
@@ -160,37 +160,37 @@ export default {
|
|
|
this.getProductQueryList();
|
|
|
},
|
|
|
methods: {
|
|
|
- submitForm(formName) {
|
|
|
- this.$refs[formName].validate(valid => {
|
|
|
- if (valid) {
|
|
|
- if (this.isAdd) {
|
|
|
- reqAddProductQuery(this.formData)
|
|
|
- .then(res => {
|
|
|
- // 出仓管理列表
|
|
|
- this.getProductQueryList();
|
|
|
- this.$message.success("添加成功!");
|
|
|
- })
|
|
|
- .catch(err => {
|
|
|
- console.log(err);
|
|
|
- this.$message.error("添加失败!");
|
|
|
- });
|
|
|
- } else {
|
|
|
- reqUpdateProductQuery(this.formData)
|
|
|
- .then(res => {
|
|
|
- // 出仓管理列表
|
|
|
- this.getProductQueryList();
|
|
|
- this.$message.success("编辑成功!");
|
|
|
- })
|
|
|
- .catch(err => {
|
|
|
- console.log(err);
|
|
|
- this.$message.error("编辑失败!");
|
|
|
- });
|
|
|
- }
|
|
|
- } else {
|
|
|
- return false;
|
|
|
- }
|
|
|
- });
|
|
|
- },
|
|
|
+ // submitForm(formName) {
|
|
|
+ // this.$refs[formName].validate(valid => {
|
|
|
+ // if (valid) {
|
|
|
+ // if (this.isAdd) {
|
|
|
+ // reqAddProductQuery(this.formData)
|
|
|
+ // .then(res => {
|
|
|
+ // // 出仓管理列表
|
|
|
+ // this.getProductQueryList();
|
|
|
+ // this.$message.success("添加成功!");
|
|
|
+ // })
|
|
|
+ // .catch(err => {
|
|
|
+ // console.log(err);
|
|
|
+ // this.$message.error("添加失败!");
|
|
|
+ // });
|
|
|
+ // } else {
|
|
|
+ // reqUpdateProductQuery(this.formData)
|
|
|
+ // .then(res => {
|
|
|
+ // // 出仓管理列表
|
|
|
+ // this.getProductQueryList();
|
|
|
+ // this.$message.success("编辑成功!");
|
|
|
+ // })
|
|
|
+ // .catch(err => {
|
|
|
+ // console.log(err);
|
|
|
+ // this.$message.error("编辑失败!");
|
|
|
+ // });
|
|
|
+ // }
|
|
|
+ // } else {
|
|
|
+ // return false;
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ // },
|
|
|
// 出仓管理列表
|
|
|
getProductQueryList() {
|
|
|
reqProductQueryList({
|
|
@@ -206,28 +206,28 @@ export default {
|
|
|
console.log(err);
|
|
|
});
|
|
|
},
|
|
|
- add() {
|
|
|
- this.isShow = true;
|
|
|
- this.isAdd = true;
|
|
|
- },
|
|
|
- edit(row) {
|
|
|
- this.formData = row;
|
|
|
- this.isShow = true;
|
|
|
- this.isAdd = false;
|
|
|
- },
|
|
|
- del(row) {
|
|
|
- reqDelProductQuery(row.id)
|
|
|
- .then(res => {
|
|
|
- console.log(res);
|
|
|
- // 出仓管理列表
|
|
|
- this.getProductQueryList();
|
|
|
- this.$message.success("删除成功!");
|
|
|
- })
|
|
|
- .catch(err => {
|
|
|
- console.log(err);
|
|
|
- this.$message.error("删除失败!");
|
|
|
- });
|
|
|
- },
|
|
|
+ // add() {
|
|
|
+ // this.isShow = true;
|
|
|
+ // this.isAdd = true;
|
|
|
+ // },
|
|
|
+ // edit(row) {
|
|
|
+ // this.formData = row;
|
|
|
+ // this.isShow = true;
|
|
|
+ // this.isAdd = false;
|
|
|
+ // },
|
|
|
+ // del(row) {
|
|
|
+ // reqDelProductQuery(row.id)
|
|
|
+ // .then(res => {
|
|
|
+ // console.log(res);
|
|
|
+ // // 出仓管理列表
|
|
|
+ // this.getProductQueryList();
|
|
|
+ // this.$message.success("删除成功!");
|
|
|
+ // })
|
|
|
+ // .catch(err => {
|
|
|
+ // console.log(err);
|
|
|
+ // this.$message.error("删除失败!");
|
|
|
+ // });
|
|
|
+ // },
|
|
|
pageChange(p) {
|
|
|
console.log(p);
|
|
|
this.page = p;
|