Commit f17feb44 authored by 仇晓婷's avatar 仇晓婷

订单暂停记录

parent 5ff9024a
<template>
<div class="monitoring h100">
<DataGrid :columns="columns" ref="grid" :action="action">
<DataGrid :columns="columns" ref="grid" :action="action" :conditions="easySearch">
<template slot="easySearch">
<Form ref="formInline" :model="easySearch" inline style="margin-top:5px;">
<FormItem prop="productingpreparationpeople" style="width:200px">
......@@ -529,7 +529,7 @@ export default {
// this.curId = 0
},
start(row) {
this.laster = this.$store.state.userInfo.login_id;
this.laster = this.$store.state.userInfo.userId,
this.$Modal.confirm({
title: "提示",
content: "<p>确定要启动,是否继续?</p>",
......@@ -556,7 +556,7 @@ export default {
this.SpeedModal = false;
},
suspend(row) {
console.log(row);
// console.log(row);
this.suspendModal = true;
this.rowSuspend = row;
this.$refs.addBug.getEid();
......
......@@ -7,6 +7,7 @@
ref="grid"
:action="action"
:conditions="easySearch"
:format="formatFun"
:tool="false"
:height="tdHeight"
></DataGrid>
......@@ -101,6 +102,7 @@ export default {
easy: true,
high: true,
align: "left",
type: "user",
},
{
key: "laster",
......@@ -108,6 +110,7 @@ export default {
easy: true,
high: true,
align: "left",
type: "user",
},
{
key: "lastModificationTime",
......@@ -189,7 +192,7 @@ export default {
eid: Number,
},
mounted() {
this.$refs.grid.reload(this.easySearch);
// this.$refs.grid.reload(this.easySearch);
// if (this.eid) {
// this.loadList();
// }
......@@ -208,6 +211,17 @@ export default {
await store.dispatch("loadDictionary"); // 加载数据字典
},
methods: {
//格式化原始数据
formatFun(data) {
data.map((e) => {
if (e.laster) {
e.laster = parseInt(e.laster);
} else if (e.creator) {
e.creator = parseInt(e.creator);
}
});
return data;
},
loadList() {
let params = {
FilterText: 'order_id="' + this.eid + '"',
......
......@@ -98,7 +98,7 @@ export default {
productName: this.rowSuspend.productName,
drawnNumber: this.rowSuspend.drawnNumber,
status: 5,
creator: this.$store.state.userInfo.login_id,
creator: this.$store.state.userInfo.userId,
};
Api.create(data)
......
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 to comment