Commit 597d7f60 authored by 康振飞's avatar 康振飞

Merge branch 'product' of git.mes123.com:zhouyx/mes-ui into product

parents 6778553d 06208c45
...@@ -130,7 +130,9 @@ export default { ...@@ -130,7 +130,9 @@ export default {
search: { search: {
pageIndex: 1, pageIndex: 1,
pageSize: 20, pageSize: 20,
conditions: [] conditions: [],
sortBy:null,
isDesc: true,
}, },
pageSizeOpts: [20, 50, 100], pageSizeOpts: [20, 50, 100],
tableHeight: 0, tableHeight: 0,
......
...@@ -241,12 +241,14 @@ export default { ...@@ -241,12 +241,14 @@ export default {
SkipCount: 1, SkipCount: 1,
MaxResultCount: 10, MaxResultCount: 10,
orderSearchForm: { orderSearchForm: {
status: 0,
SimpleSearch: '',
productId: null, //产品id productId: null, //产品id
productName: '', //产品名称 productName: '', //产品名称
taskType: '', //任务类型 taskType: '', //任务类型
stage: '', //阶段 stage: '', //阶段
materialId: '', //材料 materialId: '', //材料
quantity: 1, //数量
guestName: '', //甲方客户 guestName: '', //甲方客户
printSupply: '', //3D打印承制单位 printSupply: '', //3D打印承制单位
functionaryOffice: '', //厂内责任机关 functionaryOffice: '', //厂内责任机关
...@@ -268,7 +270,9 @@ export default { ...@@ -268,7 +270,9 @@ export default {
projectNumber: "", //项目号 projectNumber: "", //项目号
batchNumber: "", //批次号 batchNumber: "", //批次号
urgencyLevel: null //紧急程度 urgencyLevel: null, //紧急程度
SkipCount: 1,
MaxResultCount: 10
}, },
mColumn:[ mColumn:[
{ type: 'expand',width: 60, { type: 'expand',width: 60,
...@@ -352,19 +356,21 @@ content="开工" ...@@ -352,19 +356,21 @@ content="开工"
}); });
}, },
// 分页 // 分页
pageChange(pageNum) { pageChange(pageNum) {
let pageData = this.search; this.orderSearchForm.SkipCount =
pageData.SkipCount = (pageNum - 1) * this.orderSearchForm.MaxResultCount (pageNum - 1) * this.orderSearchForm.MaxResultCount
pageData.MaxResultCount = (pageNum - 1) * this.orderSearchForm.MaxResultCount
// pageData.pageIndex = pageNum // pageData.pageIndex = pageNum
this.laodePage(pageData) this.laodePage(this.orderSearchForm)
}, },
pageSizeChange(val) { pageSizeChange(val) {
let pageData = this.search; this.orderSearchForm.SkipCount = 0
pageData.SkipCount = 0 this.orderSearchForm.MaxResultCount = val
pageData.MaxResultCount = val this.laodePage(this.orderSearchForm)
this.laodePage(pageData)
}, },
laodePage(pageData){ laodePage(pageData){
let url = `${PlanUrl}/orderexecute/waitexecuteorderlist`; let url = `${PlanUrl}/orderexecute/waitexecuteorderlist`;
service.post(`${url}`,pageData).then(res => { service.post(`${url}`,pageData).then(res => {
...@@ -374,6 +380,9 @@ content="开工" ...@@ -374,6 +380,9 @@ content="开工"
}, },
// 搜索 // 搜索
tableSearch() { tableSearch() {
this.orderSearchForm.SkipCount = 0
this.orderSearchForm.SimpleSearch = this.searchIterms
this.laodePage(this.orderSearchForm)
}, },
searchModel(){ searchModel(){
this.showModel = true; this.showModel = true;
......
...@@ -70,7 +70,7 @@ export default { ...@@ -70,7 +70,7 @@ export default {
}); });
} }
}, },
{ key: "taskSeq", title: this.l("taskSeq"), align: "left",width:80 }, { key: "taskSeq", title: this.l("taskSeq"), align: "left",width:100,sortable:true },
{ {
key: "name", key: "name",
title: this.l("name"), title: this.l("name"),
......
...@@ -49,8 +49,9 @@ export default { ...@@ -49,8 +49,9 @@ export default {
"checkParams,standard", "checkParams,standard",
value: null value: null
}, },
routingHeaderId: { op: "Equal", value: -1 } routingHeaderId: { op: "Equal", value: -1 },
}, },
sortType: 'normal',
modal: false, modal: false,
title: "新增", title: "新增",
detail: null, detail: null,
...@@ -78,7 +79,8 @@ export default { ...@@ -78,7 +79,8 @@ export default {
title: this.l("routingDetailNo"), title: this.l("routingDetailNo"),
align: "left", align: "left",
high: true, high: true,
width: 80 width: 100,
sortable:true
}, },
{ {
key: "routingDetailName", key: "routingDetailName",
...@@ -357,7 +359,7 @@ export default { ...@@ -357,7 +359,7 @@ export default {
l(key) { l(key) {
let vkey = "routing_qc_card" + "." + key; let vkey = "routing_qc_card" + "." + key;
return this.$t(vkey) || key; return this.$t(vkey) || key;
} },
} }
}; };
</script> </script>
......
...@@ -78,7 +78,8 @@ export default { ...@@ -78,7 +78,8 @@ export default {
title: this.l("routingDetailNo"), title: this.l("routingDetailNo"),
align: "left", align: "left",
high: true, high: true,
width: 80 width: 100,
sortable:true
}, },
{ {
key: "routingDetailName", key: "routingDetailName",
......
...@@ -121,30 +121,7 @@ export default { ...@@ -121,30 +121,7 @@ export default {
uId: "", uId: "",
columns: [ columns: [
{ key: "id", title: this.$t("id"), hide: true, align: "left" }, { key: "id", title: this.$t("id"), hide: true, align: "left" },
{
key: "creationTime",
title: this.$t("creationTime"),
align: "left",
hide: true
},
{
key: "creatorUserId",
title: this.$t("creatorUserId"),
align: "left",
hide: true
},
{
key: "lastModificationTime",
title: this.$t("lastModificationTime"),
align: "left",
hide: true
},
{
key: "lastModifierUserId",
title: this.$t("lastModifierUserId"),
align: "left",
hide: true
},
{ key: "classId", title: this.l("classId"), align: "left", hide: true }, { key: "classId", title: this.l("classId"), align: "left", hide: true },
{ {
key: "unicode", key: "unicode",
...@@ -244,6 +221,30 @@ export default { ...@@ -244,6 +221,30 @@ export default {
width: 140, width: 140,
high: true, high: true,
code: "Process.Status" code: "Process.Status"
},
{
key: "creationTime",
title: this.$t("creationTime"),
align: "left",
hide: true
},
{
key: "creatorUserId",
title: this.$t("creatorUserId"),
align: "left",
hide: true
},
{
key: "lastModificationTime",
title: this.$t("lastModificationTime"),
align: "left",
hide: true
},
{
key: "lastModifierUserId",
title: this.$t("lastModifierUserId"),
align: "left",
hide: true
}, },
{ {
title: "操作", title: "操作",
......
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