Commit 8244b431 authored by renjintao's avatar renjintao

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

parents 5474c526 7fb906a4
...@@ -964,7 +964,13 @@ html [type=button] { ...@@ -964,7 +964,13 @@ html [type=button] {
font-weight: bold; font-weight: bold;
font-size: 24px; font-size: 24px;
color: #249e91; color: #249e91;
};
.ivu-icon-ios-cog{
font-weight: bold;
font-size: 24px;
color: #249e91;
} }
} }
} }
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
@on-click="handleClick" @on-click="handleClick"
> >
<Avatar size="small" :src="info.avatar" v-if="info.avatar" /> <Avatar size="small" :src="info.avatar" v-if="info.avatar" />
<Avatar size="small" style="background-color: #87d068" v-else-if="!info.avatar" icon="ios-person" />
<span class="i-layout-header-user-name" v-if="!isMobile">{{ info.name }}</span> <span class="i-layout-header-user-name" v-if="!isMobile">{{ info.name }}</span>
<DropdownMenu slot="list"> <DropdownMenu slot="list">
<i-link to="/basicData/userManagent/userInfo"> <i-link to="/basicData/userManagent/userInfo">
...@@ -35,7 +36,7 @@ import { mapState, mapActions } from "vuex"; ...@@ -35,7 +36,7 @@ import { mapState, mapActions } from "vuex";
export default { export default {
name: "iHeaderUser", name: "iHeaderUser",
computed: { computed: {
...mapState("admin/user", ["info"]), ...mapState("admin/user", ["info"]),
...mapState("admin/layout", ["isMobile", "logoutConfirm"]) ...mapState("admin/layout", ["isMobile", "logoutConfirm"])
}, },
methods: { methods: {
......
...@@ -53,26 +53,22 @@ ...@@ -53,26 +53,22 @@
// padding-right: 0!important; // padding-right: 0!important;
.man_body{ .man_body{
max-width: 185px; max-width: 185px;
label{ .checkUser{
border-radius: 24px; border-radius: 24px;
width: 100%; width: 100%;
height: 50px; height: 50px;
line-height: 47px; line-height: 47px;
span.ivu-checkbox{
.ivu-checkbox-inner{
margin-top: -42px!important;
}
}
span{ span{
// overflow: hidden;
// text-overflow: ellipsis;
// -o-text-overflow: ellipsis;
// white-space:nowrap;
// display: inline-block;
height: 50px; height: 50px;
} }
.svg_name{ .svg_name{
width: 50px; overflow: hidden;
text-overflow: ellipsis;
-o-text-overflow: ellipsis;
white-space:nowrap;
display: block;
float: right;
width: 82%;
} }
.svg{ .svg{
width: 70px; width: 70px;
......
...@@ -99,12 +99,14 @@ ...@@ -99,12 +99,14 @@
<!-- {{peploeId}} @on-change="setpepoleid" @on-change="setpepoleids"--> <!-- {{peploeId}} @on-change="setpepoleid" @on-change="setpepoleids"-->
<Row :gutter="15"> <Row :gutter="15">
<Col span="8" class="dispatch_card02" v-for="(item,index) in listMan" :key="index"> <Col span="8" class="dispatch_card02" v-for="(item,index) in listMan" :key="index">
<CheckboxGroup class="man_body"> <!-- <Tooltip :content="item.userName"> -->
<Checkbox v-model="item.checked" border class> <CheckboxGroup class="man_body">
<span class="svg_name">{{item.userName}}</span> <Checkbox v-model="item.checked" border class='checkUser'>
<span class="svg">{{item.id}}</span> <span class="svg_name" :title='item.userName'>{{item.userName}}</span>
</Checkbox> <!-- <span class="svg">{{item.id}}</span> -->
</CheckboxGroup> </Checkbox>
</CheckboxGroup>
<!-- </Tooltip> -->
</Col> </Col>
</Row> </Row>
</div> </div>
......
...@@ -17,7 +17,4 @@ export default { ...@@ -17,7 +17,4 @@ export default {
processschemedispatch(params) { processschemedispatch(params) {
return Api.post(`${apsUrl}/apspoolappservices/processschemedispatch`, params); return Api.post(`${apsUrl}/apspoolappservices/processschemedispatch`, params);
}, },
moveintoaps() {//跳转进入排产池前判断
return Api.post(`${PlanUrl}/messchedule/moveintoaps`);
},
} }
...@@ -66,14 +66,14 @@ export default { ...@@ -66,14 +66,14 @@ export default {
}, },
{ {
title: "超期预警", title: "超期预警",
key: "id", key: "alert",
align: "center", align: "center",
render: (h, params) => { render: (h, params) => {
return h("div", [ return h("div", [
h("Icon", { h("Icon", {
props: { props: {
type: type:
params.row.id == 1 params.row.alert == true
? "ios-information-circle-outline" ? "ios-information-circle-outline"
: "ios-remove-circle-outline" : "ios-remove-circle-outline"
}, },
...@@ -81,7 +81,7 @@ export default { ...@@ -81,7 +81,7 @@ export default {
marginRight: "5px", marginRight: "5px",
fontSize: "18px", fontSize: "18px",
fontWeight: "bold", fontWeight: "bold",
color: params.row.id == 1 ? "#FE7777" : "#0DD78D" color: params.row.alert == true ? "#FE7777" : "#0DD78D"
} }
}) })
]); ]);
...@@ -89,7 +89,7 @@ export default { ...@@ -89,7 +89,7 @@ export default {
}, },
{ {
title: "零件图号", title: "零件图号",
key: "part_number", key: "part_id",
align: "center" align: "center"
}, },
{ {
...@@ -175,7 +175,6 @@ export default { ...@@ -175,7 +175,6 @@ export default {
if (r.success) { if (r.success) {
this.$Message.success("清空列表成功"); this.$Message.success("清空列表成功");
this.orderlist(); this.orderlist();
this.data = [];
} }
}); });
}, },
...@@ -193,7 +192,6 @@ export default { ...@@ -193,7 +192,6 @@ export default {
if (r.result) { if (r.result) {
this.$Message.success(r.result.retmsg); this.$Message.success(r.result.retmsg);
this.orderlist(); this.orderlist();
this.data = [];
} else { } else {
this.$Message.success("下发失败"); this.$Message.success("下发失败");
} }
...@@ -201,19 +199,6 @@ export default { ...@@ -201,19 +199,6 @@ export default {
}, },
comeBlck() { comeBlck() {
this.$router.push({ path: "/aps/aps" }); this.$router.push({ path: "/aps/aps" });
Api.moveintoaps().then(res => {
if (res.success) {
if (res.result.res) {
this.$router.push({
name: "aps-aps"
});
} else {
this.$router.push({
name: "aps-plan"
});
}
}
});
} }
} }
}; };
...@@ -240,6 +225,7 @@ export default { ...@@ -240,6 +225,7 @@ export default {
line-height: 38px; line-height: 38px;
border-bottom: 1px solid #e4e6ed; border-bottom: 1px solid #e4e6ed;
margin-bottom: 15px; margin-bottom: 15px;
margin-right: 15px;
} }
.left-body:hover { .left-body:hover {
cursor: pointer; cursor: pointer;
...@@ -268,6 +254,7 @@ export default { ...@@ -268,6 +254,7 @@ export default {
.btn { .btn {
float: right; float: right;
margin-top: -52px; margin-top: -52px;
margin-right: 15px;
} }
} }
} }
......
...@@ -4,7 +4,8 @@ ...@@ -4,7 +4,8 @@
<p slot="title">个人头像</p> <p slot="title">个人头像</p>
<div style="height:415px;"> <div style="height:415px;">
<p style="text-align:center;padding-top:100px;"> <p style="text-align:center;padding-top:100px;">
<Avatar :src="avatorPath" size="150" /> <Avatar :src="avatorPath" size="150" v-if="avatorPath" />
<Avatar size="150" style="background-color: #87d068" v-else-if="!avatorPath" icon="ios-person" />
</p> </p>
<p style="text-align:center;padding:10px;"> <p style="text-align:center;padding:10px;">
<Button @click="openModalAvatar">修改头像</Button> <Button @click="openModalAvatar">修改头像</Button>
......
...@@ -5,7 +5,8 @@ ...@@ -5,7 +5,8 @@
<div class="statistical_box"> <div class="statistical_box">
<div class="statistical_top"> <div class="statistical_top">
<div class="user_img fl"> <div class="user_img fl">
<Avatar :src="avatorPath" size="90" /> <Avatar :src="avatorPath" size="90" v-if="avatorPath" />
<Avatar size="90" style="background-color: #87d068" v-else-if="!avatorPath" icon="ios-person" />
</div> </div>
<div class="user_info fl"> <div class="user_info fl">
<h3 class="mb10">您好,{{userData.userName}},欢迎登录MES系统 !</h3> <h3 class="mb10">您好,{{userData.userName}},欢迎登录MES系统 !</h3>
......
<template> <template>
<div class="record"> <div class="record">
<DataGrid :columns="columns" ref="grid" :action="action" :tool="false"></DataGrid> <DataGrid :columns="columns" ref="grid" :action="action" :tool="false" :height="820"></DataGrid>
<Modal v-model="detailModal" title="详情" width="800"> <Modal v-model="detailModal" title="详情" width="800">
<Detail :eid="curId" /> <Detail :eid="curId" />
</Modal> </Modal>
......
<template> <template>
<div class="record"> <div class="record">
<Table :columns="columns" :data="result" border></Table> <DataGrid :columns="columns" :data="result" border :tool='false' :height="820"></DataGrid>
</div> </div>
</template> </template>
<script> <script>
...@@ -97,9 +97,8 @@ export default { ...@@ -97,9 +97,8 @@ export default {
{ {
key: "status", key: "status",
type: "user", title: '工单状态',
title: this.l("status"), code: "taskList.status",
code: "plan.order.status",
align: "center" align: "center"
} }
] ]
......
...@@ -43,13 +43,13 @@ ...@@ -43,13 +43,13 @@
inline inline
> >
<Row> <Row>
<FormItem :label="l('code')" prop="code"> <FormItem :label="l('code')" >
<Input <Input
size="large" size="large"
v-model.trim="formValidate.code" v-model.trim="formValidate.code"
placeholder="请输入..." placeholder="请输入..."
style="width:240px" style="width:240px"
:disabled="isview" disabled="true"
/> />
</FormItem> </FormItem>
<FormItem :label="l('name')" prop="name"> <FormItem :label="l('name')" prop="name">
...@@ -183,9 +183,9 @@ export default { ...@@ -183,9 +183,9 @@ export default {
RoutingList: {}, RoutingList: {},
components: {}, components: {},
ruleValidate: { ruleValidate: {
// code: [ code: [
// { required: true, message: '工艺文件编号不能为空', trigger: 'blur' } { required: true, message: '工艺文件编号不能为空', trigger: 'blur' }
// ], ],
// number:[{required: true,type:'number'}], // number:[{required: true,type:'number'}],
name: [ name: [
{ required: true, message: '工艺文件名称不能为空', trigger: 'blur' } { required: true, message: '工艺文件名称不能为空', trigger: 'blur' }
...@@ -199,7 +199,6 @@ export default { ...@@ -199,7 +199,6 @@ export default {
isview: false, isview: false,
isshow: false, isshow: false,
ischangeshow: false, ischangeshow: false,
selectpdefmid: 0, selectpdefmid: 0,
oldformValidate: {}, oldformValidate: {},
processList: [], processList: [],
......
...@@ -460,13 +460,14 @@ export default { ...@@ -460,13 +460,14 @@ export default {
} else { } else {
this.isview = false; this.isview = false;
} }
if (this.formValidate.status == 1) {
this.isview = false;
}
this.codeisview = true; this.codeisview = true;
this.formValidate1 = response.result.orderMaterialList; this.formValidate1 = response.result.orderMaterialList;
for (let i = 0; i < this.formValidate1.length; i++) { for (let i = 0; i < this.formValidate1.length; i++) {
let obj = this.formValidate1[i]; let obj = this.formValidate1[i];
} }
}); });
} else { } else {
...@@ -481,9 +482,9 @@ export default { ...@@ -481,9 +482,9 @@ export default {
this.isview = false; this.isview = false;
this.formValidate1 = response.result.orderMaterialList; this.formValidate1 = response.result.orderMaterialList;
for (let i = 0; i < this.formValidate1.length; i++) { for (let i = 0; i < this.formValidate1.length; i++) {
let obj = this.formValidate1[i]; let obj = this.formValidate1[i];
obj.quantity = obj.quantity * this.dataTop[0].quantity; obj.quantity = obj.quantity * this.dataTop[0].quantity;
} }
}); });
...@@ -588,17 +589,17 @@ export default { ...@@ -588,17 +589,17 @@ export default {
}, 5); }, 5);
return; return;
} }
this.formprocessValidate.quantity=this.formprocessValidate.singlequantity *this.dataTop[0].quantity; this.formprocessValidate.quantity =
this.formprocessValidate.singlequantity * this.dataTop[0].quantity;
if (this.formValidate.id == 0) {
if (this.formValidate.id == 0) {
if (this.editindex == -1) { if (this.editindex == -1) {
let curData = {}; let curData = {};
curData = JSON.parse(JSON.stringify(this.formprocessValidate)); curData = JSON.parse(JSON.stringify(this.formprocessValidate));
this.formValidate1.push(curData); this.formValidate1.push(curData);
} else { } else {
let curData = {}; let curData = {};
curData = JSON.parse(JSON.stringify(this.formprocessValidate)); curData = JSON.parse(JSON.stringify(this.formprocessValidate));
this.formValidate1[this.editindex] = curData; this.formValidate1[this.editindex] = curData;
......
...@@ -633,9 +633,13 @@ export default { ...@@ -633,9 +633,13 @@ export default {
}); });
} }
} }
if (gh != null && gh.length > 0) { if (gh != null && gh.length > 0) {
content1 = gh[0].name; content1 = gh[0].name;
editColor1 = gh[0].color; editColor1 = gh[0].color;
} if(params.row.materialbillStatus>1)
{
content1 = "查看";
} }
return h("div", [ return h("div", [
h( h(
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<Col span="20"> <Col span="20">
<FormItem label="工作日历" prop="work"> <FormItem label="工作日历" prop="work">
<Select v-model="formItem1.calendarwork_pk" clearable placeholder="请选择..."> <Select v-model="formItem1.calendarwork_pk" clearable placeholder="请选择...">
<Option v-for="item in cityList" :value="item.id" :key="item.value">{{ item.label }}</Option> <Option v-for="item in cityList" :value="item.id" :key="item.calName">{{ item.calName }}</Option>
</Select> </Select>
</FormItem> </FormItem>
</Col> </Col>
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
<Col span="20" > <Col span="20" >
<FormItem label="加班日历" prop="overtime"> <FormItem label="加班日历" prop="overtime">
<Select v-model="formItem2.calendarovertime_pk" clearable placeholder="请选择..."> <Select v-model="formItem2.calendarovertime_pk" clearable placeholder="请选择...">
<Option v-for="item in cityList1" :value="item.id" :key="item.value">{{ item.label }}</Option> <Option v-for="item in cityList1" :value="item.id" :key="item.holidayCalName">{{ item.holidayCalName }}</Option>
</Select> </Select>
</FormItem> </FormItem>
</Col> </Col>
...@@ -106,37 +106,26 @@ export default { ...@@ -106,37 +106,26 @@ export default {
}, },
laodaction(){ laodaction(){
let parmse ={ let parmse ={
pageIndex:0, pageIndex:1,
cont:0,
conditions: [], conditions: [],
pageSize: 0 pageSize: 10
} }
let url = `${systemUrl}/calendarwork/list`, let url = `${systemUrl}/mesdailyworksched/list`;//paged
that = this; // that = this;
service.post(`${url}`, parmse).then(res => { service.post(`${url}`, parmse).then(res => {
let selectdata = res.result; if(res.success){
//console.log(selectdata) this.cityList = res.result;
selectdata.forEach(item => { }else{
that.cityList.push({ this.$Message.error("获取数据失败...")
value: item.title, }
label: item.title,
id: item.id,
})
// console.log(that.cityList)
});
}); });
let url1 = `${systemUrl}/calendarovertime/list`; let url1 = `${systemUrl}/mesholidaycal/list`;
service.post(`${url1}`,parmse).then(res => { service.post(`${url1}`,parmse).then(res => {
let selectdata1 = res.result; if(res.success){
console.log(selectdata1) this.cityList1 = res.result;
selectdata1.forEach(item => { }else{
this.cityList1.push({ this.$Message.error("获取数据失败...")
value: item.title, }
label: item.title,
id: item.id,
})
// console.log(that.cityList)
});
}); });
}, },
preservation() {}, preservation() {},
...@@ -146,9 +135,9 @@ export default { ...@@ -146,9 +135,9 @@ export default {
// 添加/编辑 弹框的保存 // 添加/编辑 弹框的保存
saveOk() { saveOk() {
var url = `${systemUrl}/equipcalendarwork/createorupdate` var url = `${systemUrl}/equipcalendarwork/createorupdate`
console.log(this.formItem1) // console.log(this.formItem1)
console.log(this.formItem2) // console.log(this.formItem2)
console.log(this.editId) // console.log(this.editId)
service.post(`${url}`,{ equipCalendarWork: this.formItem1,equipCalendarOverTime: this.formItem2 }) service.post(`${url}`,{ equipCalendarWork: this.formItem1,equipCalendarOverTime: this.formItem2 })
.then((res) => { .then((res) => {
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
clearable clearable
style="width:235px;flaot:left;" style="width:235px;flaot:left;"
/> />
<Button type="primary" class @click="easySearch">查询</Button> <Button type="primary" class="ml10" @click="easySearch">查询</Button>
<!-- <Button @click="advancedSearch" type="success" style="margin-left:8px;">高级搜索</Button> --> <!-- <Button @click="advancedSearch" type="success" style="margin-left:8px;">高级搜索</Button> -->
</Col> </Col>
<!-- <Col span="12" style=" text-align: right;"> <!-- <Col span="12" style=" text-align: right;">
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
:total="this.total" :total="this.total"
:current="this.page" :current="this.page"
:page-size="this.pageSize" :page-size="this.pageSize"
show-elevator show-elevator show-total
show-sizer show-sizer
style="margin:10px 0;" style="margin:10px 0;"
@on-change="pageChange" @on-change="pageChange"
...@@ -498,7 +498,7 @@ export default { ...@@ -498,7 +498,7 @@ export default {
}, },
{ {
title: "工作日历编号", title: "工作日历编号",
key: "calendarwork_pk" key: "calId"
}, },
{ {
title: "工作日历名称", title: "工作日历名称",
...@@ -506,7 +506,7 @@ export default { ...@@ -506,7 +506,7 @@ export default {
}, },
{ {
title: "加班日历编号", title: "加班日历编号",
key: "calendarovertime_pk" key: "holidayCalId"
}, },
{ {
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