Commit 759f6450 by LJM

日志

parent 18ca01ad
<template> <template>
<section class="goods pagex"> <section class="goods pagex">
<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="100px" 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" :fetch-suggestions="querySearchAsync" placeholder="请输入型号" clearable></el-autocomplete> <el-autocomplete v-model="formInline.goods_name" :trigger-on-focus="false" @keyup.enter.native="onSubmit" :fetch-suggestions="querySearchAsync" placeholder="请输入型号" clearable></el-autocomplete>
</el-form-item> </el-form-item>
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="报价单号" prop="quote_sn"> <el-form-item label="报价单号" prop="quote_sn">
<el-input v-model="formInline.quote_sn" placeholder="请输入型号" @keyup.enter.native="submit"></el-input> <el-input v-model="formInline.quote_sn" placeholder="请输入型号" @keyup.enter.native="submit" style="width: 193px;"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="订单来源" prop="source_type"> <el-form-item label="订单来源" prop="source_type">
<el-select v-model="formInline.source_type" placeholder="请选择"> <el-select v-model="formInline.source_type" placeholder="请选择">
...@@ -89,12 +89,24 @@ ...@@ -89,12 +89,24 @@
<el-table-column prop="purchase_amount" label="订单金额" min-width="110"></el-table-column> <el-table-column prop="purchase_amount" label="订单金额" min-width="110"></el-table-column>
<el-table-column prop="purchase_name" label="订单人员" width="100"></el-table-column> <el-table-column prop="purchase_name" label="订单人员" width="100"></el-table-column>
<el-table-column prop="source_type" label="订单来源" width="100"></el-table-column> <el-table-column prop="source_type" label="订单来源" width="100"></el-table-column>
<el-table-column prop="create_time" label="创建时间" min-width="150"></el-table-column> <el-table-column prop="create_time" label="创建时间" width="150"></el-table-column>
<el-table-column fixed="right" label="操作" width="120" align="center">
<template slot-scope="scope">
<el-button @click="handleClick(scope.row)" type="primary" size="small">查看日志</el-button>
</template>
</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>
</div> </div>
<Menu/> <Menu/>
<el-dialog title="订单日志" :close-on-click-modal="false" :visible.sync="dialogVisible" width="1000px">
<el-table :data="tableData" border max-height="600" @selection-change="handleSelectionChange">
<el-table-column prop="currency_val" label="时间" min-width="150" align="center"></el-table-column>
<el-table-column prop="purchase_amount" label="操作说明" min-width="150" align="center"></el-table-column>
<el-table-column prop="purchase_name" label="操作人" min-width="150" align="center"></el-table-column>
</el-table>
</el-dialog>
</section> </section>
</template> </template>
<script> <script>
...@@ -112,6 +124,7 @@ export default { ...@@ -112,6 +124,7 @@ export default {
total: 0, total: 0,
limit: 10, limit: 10,
page: 1, page: 1,
dialogVisible: false,
formInline: { formInline: {
goods_name: '', goods_name: '',
brand_name: '', brand_name: '',
...@@ -164,6 +177,10 @@ export default { ...@@ -164,6 +177,10 @@ export default {
this.limit = val; this.limit = val;
this.getData(); this.getData();
}, },
handleClick(row) {
this.dialogVisible = true;
console.log(row);
},
submit() { submit() {
this.page = 1; this.page = 1;
this.getData(); this.getData();
......
...@@ -6,12 +6,10 @@ ...@@ -6,12 +6,10 @@
<el-input v-model="formInline.stock_in_sn" placeholder="请输入发货单号"></el-input> <el-input v-model="formInline.stock_in_sn" placeholder="请输入发货单号"></el-input>
</el-form-item> </el-form-item>
<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="请选择">
...@@ -49,11 +47,23 @@ ...@@ -49,11 +47,23 @@
<el-table-column prop="create_time" label="创建时间" width="150"></el-table-column> <el-table-column prop="create_time" label="创建时间" width="150"></el-table-column>
<el-table-column prop="create_name" label="创建人" min-width="100"></el-table-column> <el-table-column prop="create_name" label="创建人" min-width="100"></el-table-column>
<el-table-column prop="purchase_name" label="订单人员" min-width="100"></el-table-column> <el-table-column prop="purchase_name" label="订单人员" min-width="100"></el-table-column>
<el-table-column fixed="right" label="操作" width="120" align="center">
<template slot-scope="scope">
<el-button @click="handleClick(scope.row)" type="primary" size="small">查看日志</el-button>
</template>
</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>
</div> </div>
<Menu/> <Menu/>
<el-dialog title="发货单日志" :close-on-click-modal="false" :visible.sync="dialogVisible" width="1000px">
<el-table :data="tableData" border max-height="600" @selection-change="handleSelectionChange">
<el-table-column prop="currency_val" label="时间" min-width="150" align="center"></el-table-column>
<el-table-column prop="purchase_amount" label="操作说明" min-width="150" align="center"></el-table-column>
<el-table-column prop="purchase_name" label="操作人" min-width="150" align="center"></el-table-column>
</el-table>
</el-dialog>
</section> </section>
</template> </template>
<script> <script>
...@@ -71,6 +81,7 @@ export default { ...@@ -71,6 +81,7 @@ export default {
total: 0, total: 0,
limit: 10, limit: 10,
page: 1, page: 1,
dialogVisible: false,
formInline: { formInline: {
stock_in_sn: "", stock_in_sn: "",
goods_name: '', goods_name: '',
...@@ -114,6 +125,10 @@ export default { ...@@ -114,6 +125,10 @@ export default {
handleSelectionChange(val) { handleSelectionChange(val) {
this.multipleSelection = val; this.multipleSelection = val;
}, },
handleClick(row) {
this.dialogVisible = true;
console.log(row);
},
submit() { submit() {
this.page = 1; this.page = 1;
this.getData(); this.getData();
......
...@@ -42,6 +42,11 @@ ...@@ -42,6 +42,11 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="create_time" label="创建时间" width="160" :show-overflow-tooltip="true"></el-table-column> <el-table-column prop="create_time" label="创建时间" width="160" :show-overflow-tooltip="true"></el-table-column>
<el-table-column fixed="right" label="操作" width="120" align="center">
<template slot-scope="scope">
<el-button @click="handleClick(scope.row)" type="primary" size="small">查看日志</el-button>
</template>
</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>
...@@ -276,6 +281,13 @@ ...@@ -276,6 +281,13 @@
<el-button type="primary" @click="updateBestgoodsSubmit">确 定</el-button> <el-button type="primary" @click="updateBestgoodsSubmit">确 定</el-button>
</div> </div>
</el-dialog> </el-dialog>
<el-dialog title="优势货源日志" :close-on-click-modal="false" :visible.sync="dialogVisible" width="1000px">
<el-table :data="tableData" border max-height="600" @selection-change="handleSelectionChange">
<el-table-column prop="currency_val" label="时间" min-width="150" align="center"></el-table-column>
<el-table-column prop="purchase_amount" label="操作说明" min-width="150" align="center"></el-table-column>
<el-table-column prop="purchase_name" label="操作人" min-width="150" align="center"></el-table-column>
</el-table>
</el-dialog>
</section> </section>
</template> </template>
<script> <script>
...@@ -296,6 +308,7 @@ export default { ...@@ -296,6 +308,7 @@ export default {
page: 1, page: 1,
limit: 10, limit: 10,
list: [], list: [],
dialogVisible: false,
visible: [false],//批次弹窗 visible: [false],//批次弹窗
visibleUpdate: [false],//更新批次弹窗 visibleUpdate: [false],//更新批次弹窗
readonly: true, readonly: true,
...@@ -351,6 +364,10 @@ export default { ...@@ -351,6 +364,10 @@ export default {
this.getData() this.getData()
}, },
methods: { methods: {
handleClick(row) {
this.dialogVisible = true;
console.log(row);
},
//新增优势货源弹窗 //新增优势货源弹窗
addBestgoodsChange() { addBestgoodsChange() {
this.addBestgoods.dialogVisible = true; this.addBestgoods.dialogVisible = true;
......
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