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

订单监控,crm销售优化

parent 6e144a32
......@@ -290,6 +290,7 @@ export default {
},
watch: {
stage(v) {
this.isactive = null;
this.getList(v);
},
"easySearch.projectId.value"(v) {
......
......@@ -385,7 +385,7 @@ export default {
params.row.status == 6 ? "Button" : "", //订单状态执行中,暂停
{
props: {
type: "default",
type: "success",
size: "small",
icon: "ios-pause",
ghost: true
......
......@@ -4,125 +4,125 @@
</div>
</template>
<script>
import Api from './api'
import Api from "./api";
export default {
name: '',
name: "",
data() {
return {
columns: [
{
key: 'detailId',
title: this.l('detailId'),
align: 'left'
key: "detailId",
title: this.l("detailId"),
align: "center"
},
{
key: 'taskSeq',
title: this.l('taskSeq'),
align: 'left'
key: "taskSeq",
title: this.l("taskSeq"),
align: "center"
},
{
key: 'detailName',
title: this.l('detailName'),
align: 'left'
key: "detailName",
title: this.l("detailName"),
align: "left"
},
{
key: 'routingCode',
title: this.l('routingCode'),
align: 'left'
key: "routingCode",
title: this.l("routingCode"),
align: "center"
},
{
key: 'userNames',
title: this.l('userNames'),
key: "userNames",
title: this.l("userNames"),
align: 'left'
align: "center"
},
{
key: 'demandStartDate',
title: this.l('demandStartDate'),
align: 'center',
key: "demandStartDate",
title: this.l("demandStartDate"),
align: "center",
render: (h, params) => {
return h(
'span',
this.sliceStr(params.row.demandStartDate + ' ', 0, 10),
"span",
this.sliceStr(params.row.demandStartDate + " ", 0, 10),
params.row.demandStartDate
)
);
}
},
{
key: 'demandFinishDate',
title: this.l('demandFinishDate'),
align: 'center',
key: "demandFinishDate",
title: this.l("demandFinishDate"),
align: "center",
render: (h, params) => {
return h(
'span',
this.sliceStr(params.row.demandFinishDate + ' ', 0, 10),
"span",
this.sliceStr(params.row.demandFinishDate + " ", 0, 10),
params.row.demandFinishDate
)
);
}
},
{
key: 'actualStartDate',
title: this.l('actualStartDate'),
align: 'center',
key: "actualStartDate",
title: this.l("actualStartDate"),
align: "center",
render: (h, params) => {
return h(
'span',
"span",
// this.sliceStr(params.row.actualStartDate + ' ', 0, 10),
params.row.actualStartDate == '0001-01-01 00:00:00'
? ''
params.row.actualStartDate == "0001-01-01 00:00:00"
? ""
: params.row.actualStartDate
)
);
}
},
{
key: 'actualFinishDate',
title: this.l('actualFinishDate'),
align: 'center',
key: "actualFinishDate",
title: this.l("actualFinishDate"),
align: "center",
render: (h, params) => {
return h(
'span',
"span",
// this.sliceStr(params.row.actualFinishDate + ' ', 0, 10),
params.row.actualFinishDate == '0001-01-01 00:00:00'
? ''
params.row.actualFinishDate == "0001-01-01 00:00:00"
? ""
: params.row.actualFinishDate
)
);
}
},
{
key: 'status',
type: 'user',
title: this.l('status'),
code: 'plan.order.status',
align: 'left'
key: "status",
type: "user",
title: this.l("status"),
code: "plan.order.status",
align: "center"
}
]
}
};
},
props: {
result: Array
},
async fetch({ store, params }) {
await store.dispatch('loadDictionary') // 加载数据字典
await store.dispatch("loadDictionary"); // 加载数据字典
},
created() {},
methods: {
//截取字符串
sliceStr(str, lenS, lenE) {
return str.slice(lenS, lenE)
return str.slice(lenS, lenE);
},
l(key) {
let vkey = 'mes_order_watch' + '.' + key
return this.$t(vkey) || key
let vkey = "mes_order_watch" + "." + key;
return this.$t(vkey) || key;
}
}
}
};
</script>
<style lang='less'>
</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 to comment