Commit 99241393 by LJM

订单追踪/已采购订单:生成发货单无事件触发

parent 7ffb2665
Showing with 26 additions and 17 deletions
...@@ -3,12 +3,10 @@ ...@@ -3,12 +3,10 @@
<div class="goods-con"> <div class="goods-con">
<el-form :inline="true" :model="formInline" label-width="80px" ref="formInline"> <el-form :inline="true" :model="formInline" label-width="80px" ref="formInline">
<el-form-item label="型号" prop="goods_name"> <el-form-item label="型号" prop="goods_name">
<el-autocomplete v-model="formInline.goods_name" :trigger-on-focus="false" @keyup.enter.native="onSubmit" <el-autocomplete v-model="formInline.goods_name" :trigger-on-focus="false" @keyup.enter.native="onSubmit" :fetch-suggestions="querySearchAsync" placeholder="请输入型号" clearable></el-autocomplete>
:fetch-suggestions="querySearchAsync" placeholder="请输入型号" clearable></el-autocomplete>
</el-form-item> </el-form-item>
<el-form-item label="品牌" prop="brand_name"> <el-form-item label="品牌" prop="brand_name">
<el-autocomplete v-model="formInline.brand_name" :trigger-on-focus="false" @keyup.enter.native="onSubmit" <el-autocomplete v-model="formInline.brand_name" :trigger-on-focus="false" @keyup.enter.native="onSubmit" :fetch-suggestions="querySearchAsyncBrand" placeholder="请输入品牌" clearable></el-autocomplete>
:fetch-suggestions="querySearchAsyncBrand" placeholder="请输入品牌" clearable></el-autocomplete>
</el-form-item> </el-form-item>
<el-form-item label="订单状态" prop="status"> <el-form-item label="订单状态" prop="status">
<el-select v-model="formInline.status" placeholder="请选择"> <el-select v-model="formInline.status" placeholder="请选择">
...@@ -75,18 +73,18 @@ ...@@ -75,18 +73,18 @@
</el-pagination> </el-pagination>
</div> </div>
</div> </div>
<Menu /> <Menu/>
</section> </section>
</template> </template>
<script> <script>
import Vue from 'vue'; import Vue from 'vue';
import Menu from "@/components/menu.vue"; import Menu from "@/components/menu.vue";
import {Form, FormItem, Select, Option, Input, Button, Table, TableColumn, Message, Dialog, Pagination, Autocomplete, Cascader, DatePicker} from 'element-ui' import {Autocomplete, Button, Cascader, DatePicker, Dialog, Form, FormItem, Input, Message, Option, Pagination, Select, Table, TableColumn} from 'element-ui'
Vue.prototype.$message = Message; Vue.prototype.$message = Message;
Vue.use(Button).use(Form).use(Select).use(Option).use(Input).use(FormItem).use(Dialog).use(Pagination); Vue.use(Button).use(Form).use(Select).use(Option).use(Input).use(FormItem).use(Dialog).use(Pagination);
Vue.use(TableColumn).use(Table).use(Cascader).use(Autocomplete).use(DatePicker); Vue.use(TableColumn).use(Table).use(Cascader).use(Autocomplete).use(DatePicker);
export default { export default {
name: "orderTrackGoods", name: "orderTrackGoods",
data() { data() {
return { return {
...@@ -103,7 +101,7 @@ ...@@ -103,7 +101,7 @@
source_type: '', source_type: '',
}, },
tableData: "", tableData: "",
multipleSelection:[] multipleSelection: []
}; };
}, },
created() { created() {
...@@ -159,12 +157,22 @@ ...@@ -159,12 +157,22 @@
message: "请选择一条数据进行操作", message: "请选择一条数据进行操作",
type: 'warning' type: 'warning'
}); });
return return false;
} }
if (this.multipleSelection[0].shipping_status_val != '待发货') {
this.$message({
message: "请选择待发货数据进行操作",
type: 'warning'
});
return false;
}
this.$router.push({ this.$router.push({
path: "/OrderTrackPurAdd", path: "/OrderTrackPurAdd",
query: { query: {
purchase_id:this.multipleSelection[0].purchase_id purchase_id: this.multipleSelection[0].purchase_id
} }
}) })
}, },
...@@ -214,8 +222,8 @@ ...@@ -214,8 +222,8 @@
components: { components: {
Menu Menu
} }
}; };
</script> </script>
<style scoped> <style scoped>
@import "../../assets/css/goods/goods.min.css"; @import "../../assets/css/goods/goods.min.css";
</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 sign in to comment