Commit 19b0ddfa by LJM

第二期

parent c686c3fd
...@@ -55,11 +55,23 @@ ...@@ -55,11 +55,23 @@
<el-table-column prop="quote_num" label="报价数" width="100" :show-overflow-tooltip="true"></el-table-column> <el-table-column prop="quote_num" label="报价数" width="100" :show-overflow-tooltip="true"></el-table-column>
<el-table-column prop="inquiry_time" label="询价时间" width="160" :show-overflow-tooltip="true"></el-table-column> <el-table-column prop="inquiry_time" label="询价时间" width="160" :show-overflow-tooltip="true"></el-table-column>
<el-table-column prop="deadline_time" label="询价有效期" width="160" :show-overflow-tooltip="true"></el-table-column> <el-table-column prop="deadline_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="mini">查看日志</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="logs" border max-height="600">
<el-table-column prop="create_time" label="时间" min-width="150" align="center"></el-table-column>
<el-table-column prop="message" label="操作说明" min-width="150" align="center"></el-table-column>
<el-table-column prop="operator" label="操作人" min-width="150" align="center"></el-table-column>
</el-table>
</el-dialog>
</section> </section>
</template> </template>
<script> <script>
...@@ -85,6 +97,8 @@ export default { ...@@ -85,6 +97,8 @@ export default {
page: 1, page: 1,
tableData: [], tableData: [],
multipleSelection: [], multipleSelection: [],
dialogVisible: false,
logs:[],
formParam: { formParam: {
goods_name: '', goods_name: '',
brand_name: '', brand_name: '',
...@@ -179,6 +193,26 @@ export default { ...@@ -179,6 +193,26 @@ export default {
let date = row.create_time; let date = row.create_time;
return dateTimeFormate(date); return dateTimeFormate(date);
}, },
getLogs(obj_type, obj_id) {
this.$http('GET', "/api/log/getLogs", {
obj_type: obj_type,
obj_id: obj_id
}).then(res => {
if (res.code === 0) {
this.dialogVisible = true;
this.logs = res.data.list;
} else {
this.$message({
message: res.msg,
type: 'warning'
});
}
});
},
handleClick(row) {
this.getLogs(504, row.id);
console.log(row);
},
detail() { detail() {
var arr = []; var arr = [];
if (this.multipleSelection.length == 0) { if (this.multipleSelection.length == 0) {
......
...@@ -92,11 +92,23 @@ ...@@ -92,11 +92,23 @@
<el-table-column prop="expire_time" label="报价有效期" width="200"></el-table-column> <el-table-column prop="expire_time" label="报价有效期" width="200"></el-table-column>
<el-table-column prop="remark" label="备注" width="200"></el-table-column> <el-table-column prop="remark" label="备注" width="200"></el-table-column>
<el-table-column prop="quote_time" label="最近报价时间" width="200"></el-table-column> <el-table-column prop="quote_time" label="最近报价时间" width="200"></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="mini">查看日志</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="logs" border max-height="600">
<el-table-column prop="create_time" label="时间" min-width="150" align="center"></el-table-column>
<el-table-column prop="message" label="操作说明" min-width="150" align="center"></el-table-column>
<el-table-column prop="operator" label="操作人" min-width="150" align="center"></el-table-column>
</el-table>
</el-dialog>
</section> </section>
</template> </template>
<script> <script>
...@@ -119,6 +131,8 @@ export default { ...@@ -119,6 +131,8 @@ export default {
page: 1, page: 1,
tableData: [], tableData: [],
multipleSelection: [], multipleSelection: [],
dialogVisible: false,
logs:[],
formParam: { formParam: {
goods_name: '', goods_name: '',
brand_name: "", brand_name: "",
...@@ -154,6 +168,26 @@ export default { ...@@ -154,6 +168,26 @@ export default {
} }
}) })
}, },
getLogs(obj_type, obj_id) {
this.$http('GET', "/api/log/getLogs", {
obj_type: obj_type,
obj_id: obj_id
}).then(res => {
if (res.code === 0) {
this.dialogVisible = true;
this.logs = res.data.list;
} else {
this.$message({
message: res.msg,
type: 'warning'
});
}
});
},
handleClick(row) {
this.getLogs(505, row.quote_id);
console.log(row);
},
//型号 //型号
querySearchAsync(queryString, cb) { querySearchAsync(queryString, cb) {
this.$http('get', "/api/search/getspu", { this.$http('get', "/api/search/getspu", {
......
...@@ -92,7 +92,7 @@ ...@@ -92,7 +92,7 @@
<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 fixed="right" label="操作" width="120" align="center"> <el-table-column fixed="right" label="操作" width="120" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button @click="handleClick(scope.row)" type="primary" size="small">查看日志</el-button> <el-button @click="handleClick(scope.row)" type="primary" size="mini">查看日志</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -100,11 +100,11 @@ ...@@ -100,11 +100,11 @@
</div> </div>
</div> </div>
<Menu/> <Menu/>
<el-dialog title="订单日志" :close-on-click-modal="false" :visible.sync="dialogVisible" width="1000px"> <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 :data="logs" border max-height="600">
<el-table-column prop="currency_val" label="时间" min-width="150" align="center"></el-table-column> <el-table-column prop="create_time" 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="message" 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-column prop="operator" label="操作人" min-width="150" align="center"></el-table-column>
</el-table> </el-table>
</el-dialog> </el-dialog>
</section> </section>
...@@ -125,6 +125,7 @@ export default { ...@@ -125,6 +125,7 @@ export default {
limit: 10, limit: 10,
page: 1, page: 1,
dialogVisible: false, dialogVisible: false,
logs:[],
formInline: { formInline: {
goods_name: '', goods_name: '',
brand_name: '', brand_name: '',
...@@ -177,8 +178,24 @@ export default { ...@@ -177,8 +178,24 @@ export default {
this.limit = val; this.limit = val;
this.getData(); this.getData();
}, },
getLogs(obj_type, obj_id) {
this.$http('GET', "/api/log/getLogs", {
obj_type: obj_type,
obj_id: obj_id
}).then(res => {
if (res.code === 0) {
this.dialogVisible = true;
this.logs = res.data.list;
} else {
this.$message({
message: res.msg,
type: 'warning'
});
}
});
},
handleClick(row) { handleClick(row) {
this.dialogVisible = true; this.getLogs(501, row.purchase_id);
console.log(row); console.log(row);
}, },
submit() { submit() {
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
<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"> <el-table-column fixed="right" label="操作" width="120" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button @click="handleClick(scope.row)" type="primary" size="small">查看日志</el-button> <el-button @click="handleClick(scope.row)" type="primary" size="mini">查看日志</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -57,11 +57,11 @@ ...@@ -57,11 +57,11 @@
</div> </div>
</div> </div>
<Menu/> <Menu/>
<el-dialog title="发货单日志" :close-on-click-modal="false" :visible.sync="dialogVisible" width="1000px"> <el-dialog title="发货单日志" :close-on-click-modal="false" :visible.sync="dialogVisible">
<el-table :data="tableData" border max-height="600" @selection-change="handleSelectionChange"> <el-table :data="logs" border max-height="600">
<el-table-column prop="currency_val" label="时间" min-width="150" align="center"></el-table-column> <el-table-column prop="create_time" 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="message" 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-column prop="operator" label="操作人" min-width="150" align="center"></el-table-column>
</el-table> </el-table>
</el-dialog> </el-dialog>
</section> </section>
...@@ -82,6 +82,7 @@ export default { ...@@ -82,6 +82,7 @@ export default {
limit: 10, limit: 10,
page: 1, page: 1,
dialogVisible: false, dialogVisible: false,
logs:[],
formInline: { formInline: {
stock_in_sn: "", stock_in_sn: "",
goods_name: '', goods_name: '',
...@@ -125,8 +126,24 @@ export default { ...@@ -125,8 +126,24 @@ export default {
handleSelectionChange(val) { handleSelectionChange(val) {
this.multipleSelection = val; this.multipleSelection = val;
}, },
getLogs(obj_type, obj_id) {
this.$http('GET', "/api/log/getLogs", {
obj_type: obj_type,
obj_id: obj_id
}).then(res => {
if (res.code === 0) {
this.dialogVisible = true;
this.logs = res.data.list;
} else {
this.$message({
message: res.msg,
type: 'warning'
});
}
});
},
handleClick(row) { handleClick(row) {
this.dialogVisible = true; this.getLogs(502, row.stock_in_id);
console.log(row); console.log(row);
}, },
submit() { submit() {
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
<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"> <el-table-column fixed="right" label="操作" width="120" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button @click="handleClick(scope.row)" type="primary" size="small">查看日志</el-button> <el-button @click="handleClick(scope.row)" type="primary" size="mini">查看日志</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -282,10 +282,10 @@ ...@@ -282,10 +282,10 @@
</div> </div>
</el-dialog> </el-dialog>
<el-dialog title="优势货源日志" :close-on-click-modal="false" :visible.sync="dialogVisible" width="1000px"> <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 :data="logs" border max-height="600">
<el-table-column prop="currency_val" label="时间" min-width="150" align="center"></el-table-column> <el-table-column prop="create_time" 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="message" 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-column prop="operator" label="操作人" min-width="150" align="center"></el-table-column>
</el-table> </el-table>
</el-dialog> </el-dialog>
</section> </section>
...@@ -304,6 +304,7 @@ export default { ...@@ -304,6 +304,7 @@ export default {
name: "list", name: "list",
data() { data() {
return { return {
logs:[],
total: 0, total: 0,
page: 1, page: 1,
limit: 10, limit: 10,
...@@ -364,8 +365,24 @@ export default { ...@@ -364,8 +365,24 @@ export default {
this.getData() this.getData()
}, },
methods: { methods: {
getLogs(obj_type, obj_id) {
this.$http('GET', "/api/log/getLogs", {
obj_type: obj_type,
obj_id: obj_id
}).then(res => {
if (res.code === 0) {
this.dialogVisible = true;
this.logs = res.data.list;
} else {
this.$message({
message: res.msg,
type: 'warning'
});
}
});
},
handleClick(row) { handleClick(row) {
this.dialogVisible = true; this.getLogs(503, row.id);
console.log(row); console.log(row);
}, },
//新增优势货源弹窗 //新增优势货源弹窗
......
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