Commit d9e5fe4c authored by 佟礼's avatar 佟礼

Merge branch 'master' of 39.98.128.195:zhouyx/mes-ui

parents 5e101264 031cff90
...@@ -1156,7 +1156,7 @@ html [type=button] { ...@@ -1156,7 +1156,7 @@ html [type=button] {
} }
} }
.tree { .tree {
height: calc(100% - 100px); height: calc(100% - 150px);
overflow: auto; overflow: auto;
} }
} }
......
This diff is collapsed.
This image diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
...@@ -9,13 +9,13 @@ ...@@ -9,13 +9,13 @@
<template v-slot:button> <template v-slot:button>
<div style="float:right;" class="paddingbtn"> <div style="float:right;" class="paddingbtn">
<!-- 其他 业务按钮 --> <!-- 其他 业务按钮 -->
<Button type="success" @click="openCreate">创建</Button> <Button type="primary" @click="openCreate">创建</Button>
<Button type="success" @click="openOrderSendReview" v-if="false">订单送审</Button> <Button type="primary" @click="openOrderSendReview" v-if="false">订单送审</Button>
<Button type="success" @click="openOrderSend">订单派发</Button> <Button type="primary" @click="openOrderSend">订单派发</Button>
<Button type="success" @click="updateOrderOpenModal">修改</Button> <Button type="primary" @click="updateOrderOpenModal">修改</Button>
<Button type="success" @click="delOrder">删除</Button> <Button type="primary" @click="delOrder">删除</Button>
<Button type="success" @click="openOrderSplit">订单分解</Button> <Button type="primary" @click="openOrderSplit">订单分解</Button>
<Button type="success" v-show="false">导出PDF</Button> <Button type="primary" v-show="false">导出PDF</Button>
<!-- 列设置 --> <!-- 列设置 -->
<div @click="drawerShow = true" class="divIco"> <div @click="drawerShow = true" class="divIco">
<Icon type="ios-list" class="icoListInfo" /> <Icon type="ios-list" class="icoListInfo" />
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
<CreateOrder ref="createOrder"></CreateOrder> <CreateOrder ref="createOrder"></CreateOrder>
<div slot="footer"> <div slot="footer">
<Button @click="createShow = false">取消</Button> <Button @click="createShow = false">取消</Button>
<Button type="success" @click="orderCreateOrderOk">确定</Button> <Button type="primary" @click="orderCreateOrderOk">确定</Button>
</div> </div>
</Modal> </Modal>
<!-- 订单送审 --> <!-- 订单送审 -->
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
<OrderSendReview ref="orderSendReview"></OrderSendReview> <OrderSendReview ref="orderSendReview"></OrderSendReview>
<div slot="footer"> <div slot="footer">
<Button @click="ModalOrderSendReview = false">取消</Button> <Button @click="ModalOrderSendReview = false">取消</Button>
<Button type="success" @click="orderSendReviewOk">确定送审</Button> <Button type="primary" @click="orderSendReviewOk">确定送审</Button>
</div> </div>
</Modal> </Modal>
<!-- 订单派发 --> <!-- 订单派发 -->
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
<OrderSend ref="orderSend"></OrderSend> <OrderSend ref="orderSend"></OrderSend>
<div slot="footer"> <div slot="footer">
<Button @click="ModalOrderSend = false">取消</Button> <Button @click="ModalOrderSend = false">取消</Button>
<Button type="success" @click="orderSendOk">确定派发</Button> <Button type="primary" @click="orderSendOk">确定派发</Button>
</div> </div>
</Modal> </Modal>
<!-- 订单分解 --> <!-- 订单分解 -->
...@@ -115,7 +115,7 @@ ...@@ -115,7 +115,7 @@
<OrderSplit ref="orderSplit"></OrderSplit> <OrderSplit ref="orderSplit"></OrderSplit>
<div slot="footer"> <div slot="footer">
<Button @click="ModalOrderSplit = false">取消</Button> <Button @click="ModalOrderSplit = false">取消</Button>
<Button type="success" @click="orderSplitOk">确定分解</Button> <Button type="primary" @click="orderSplitOk">确定分解</Button>
</div> </div>
</Modal> </Modal>
<!-- 信息提示 --> <!-- 信息提示 -->
...@@ -131,7 +131,7 @@ ...@@ -131,7 +131,7 @@
{{ metCodesStrTxt }} {{ metCodesStrTxt }}
<div slot="footer"> <div slot="footer">
<Button @click="ModalInfo = false">取消</Button> <Button @click="ModalInfo = false">取消</Button>
<Button type="success" @click="modalInfoOk">确定</Button> <Button type="primary" @click="modalInfoOk">确定</Button>
</div></Modal </div></Modal
> >
</div> </div>
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
</Button> </Button>
</ButtonGroup> </ButtonGroup>
</h3> </h3>
<div class="tree"> <div class="tree" :style="{height:divHeight}">
<Tree <Tree
ref="tree" ref="tree"
:data="tree" :data="tree"
...@@ -33,7 +33,8 @@ export default { ...@@ -33,7 +33,8 @@ export default {
return { return {
expand: false, expand: false,
ids: [], ids: [],
tree: [] tree: [],
divHeight:''
} }
}, },
props: { props: {
...@@ -45,6 +46,8 @@ export default { ...@@ -45,6 +46,8 @@ export default {
mounted() {}, mounted() {},
created() { created() {
this.loadTree() this.loadTree()
var theight = window.innerHeight - 180 + 'px'
this.divHeight = theight
}, },
methods: { methods: {
toggle() { toggle() {
......
...@@ -43,7 +43,7 @@ export default { ...@@ -43,7 +43,7 @@ export default {
components: {}, components: {},
data() { data() {
return { return {
currentUserId: JSON.parse(sessionStorage.getItem('userInfo')).userId, currentUserId: 0,
processTitle: '审批流程', processTitle: '审批流程',
dataImmut: [], dataImmut: [],
dataMut: [], dataMut: [],
...@@ -60,6 +60,7 @@ export default { ...@@ -60,6 +60,7 @@ export default {
} }
}, },
created() { created() {
this.currentUserId=this.$store.state.userInfo.userId
this.load(this.schemaIdVal) this.load(this.schemaIdVal)
}, },
methods: { methods: {
......
...@@ -33,6 +33,7 @@ export default { ...@@ -33,6 +33,7 @@ export default {
}, },
mounted() { mounted() {
this.getMenu(); this.getMenu();
this.initUserInfo();
}, },
watch: { watch: {
// 监听路由 控制侧边栏显示 标记当前顶栏菜单(如需要) // 监听路由 控制侧边栏显示 标记当前顶栏菜单(如需要)
...@@ -77,19 +78,11 @@ export default { ...@@ -77,19 +78,11 @@ export default {
res.result.avatarUrl != "" && res.result.avatarUrl != "" &&
res.result.avatarUrl != null res.result.avatarUrl != null
) { ) {
this.userInfo.avatarUrl = res.result.avatarUrl; res.result.avatarUrl = fileUrlDown + res.result.avatarUrl;
this.$store.commit(
"setUserAvatar",
fileUrlDown + res.result.avatarUrl
);
} else {
this.userInfo.avatarUrl = "";
this.$store.commit("setUserAvatar", avatar);
} }
this.userName = res.result.userName; this.$store.commit("admin/user/setUserAvatar", res.result);
localStorage.setItem("userName", this.userName);
} else { } else {
this.$Message.error("查询失败!"); this.$Message.error("用户信息查询失败!");
} }
}); });
}, },
......
<template> <template>
<div class="page-account"> <div class="account">
<Carousel v-model="value1" autoplay autoplay-speed="5000" loop class="zmd">
<CarouselItem>
<div class="bg bg0">1</div>
</CarouselItem>
<CarouselItem>
<div class="bg bg1">1</div>
</CarouselItem>
<CarouselItem>
<div class="bg bg2">1</div>
</CarouselItem>
<CarouselItem>
<div class="bg bg3">1</div>
</CarouselItem>
</Carousel>
<div v-if="showI18n" class="page-account-header"> <div v-if="showI18n" class="page-account-header">
<i-header-i18n /> <i-header-i18n />
</div> </div>
<div class="page-account-container"> <div class="main">
<div class="page-account-top"> <div class="ad">
<div class="page-account-top-logo"> <img src="@/assets/images/login/ad.png" />
<img src="@/assets/images/logo.png" alt="logo" />
</div>
<div class="page-account-top-desc">SaaS MES 制造执行系统</div>
</div> </div>
<Login @on-submit="oidc"> <div class="login">
<UserName name="username" value="admin" /> <div class="page-account-top">
<Password name="password" value="admin" enter-to-submit /> <div class="page-account-top-logo tc">
<div class="page-account-auto-login"> <img src="@/assets/images/logo.png" alt="logo" />
<Checkbox v-model="autoLogin" size="large">{{ $t('page.login.remember') }}</Checkbox> </div>
<a href>{{ $t('page.login.forgot') }}</a> <!-- <div class="page-account-top-desc tc">SaaS MES 制造执行系统</div> -->
</div> </div>
<Submit>{{ $t('page.login.submit') }}</Submit> <h3 class="mb20">用户登陆</h3>
</Login> <Login @on-submit="oidc">
<div class="page-account-other"> <UserName name="username" value="admin" />
<!-- <span>{{ $t('page.login.other') }}</span> <Password name="password" value="admin" enter-to-submit />
<img src="@/assets/svg/icon-social-wechat.svg" alt="wechat" /> <div class="page-account-auto-login mb20">
<img src="@/assets/svg/icon-social-qq.svg" alt="qq" /> <Checkbox v-model="autoLogin" >{{ $t('page.login.remember') }}</Checkbox>
<img src="@/assets/svg/icon-social-weibo.svg" alt="weibo" /> --> <a href>{{ $t('page.login.forgot') }}</a>
<!-- <router-link class="page-account-register" to="./register">{{ $t('page.login.signup') }}</router-link> --> </div>
<div class="mt20">
<Submit class="shadown">{{ $t('page.login.submit') }}</Submit>
</div>
</Login>
</div> </div>
</div> </div>
<!-- <i-copyright /> -->
</div> </div>
</template> </template>
<script> <script>
...@@ -55,6 +70,7 @@ export default { ...@@ -55,6 +70,7 @@ export default {
let that = this; let that = this;
mgr.getUser().then(function(user) { mgr.getUser().then(function(user) {
if (user) { if (user) {
console.info("user",user)
that.msg = "该用户已经登录"; that.msg = "该用户已经登录";
const userInfos = { const userInfos = {
token: user.access_token, token: user.access_token,
...@@ -106,3 +122,72 @@ export default { ...@@ -106,3 +122,72 @@ export default {
} }
}; };
</script> </script>
<style lang="less">
@jianju:40px;
.account {
position: fixed;
width: 100%;
top: 0;
bottom: 0;
.zmd {
z-index: 1;
position: absolute;
top: 0;
bottom: 0;
width: 100%;
}
.bg {
width: 100%;
height: 100vh;
background-size: 100% auto;
}
.bg0 {
background-image: url("../../../assets/images/login/bg0.png");
}
.bg1 {
background-image: url("../../../assets/images/login/bg1.png");
}
.bg2 {
background-image: url("../../../assets/images/login/bg2.jpg");
}
.bg3 {
background-image: url("../../../assets/images/login/bg3.jpg");
}
.main {
position: absolute;
z-index: 55;
top: @jianju;
left: @jianju;
right: @jianju;
bottom: @jianju;
background: rgba(38,128,235, 0.3);
display: flex;
.ad{
flex: 1;
text-align: center;
img{margin-top: 400px;}
}
.login {
background-color: white;
width: 600px;
padding: 150px 90px;
// background-image: url("../../../assets/images/login/33.png");
// background-repeat: no-repeat;
// background-position-y: 525px;
.ivu-input-wrapper {
margin-bottom: 5px;
}
.mt20{
margin-top: 50px;
.shadown{
box-shadow: 1px 5px 15px #2680EB;
}
.ivu-btn-large{
height: 50px !important;
}
}
}
}
}
</style>
\ No newline at end of file
<template> <template>
<Form ref="form" :model="entity" :rules="rules" :label-width="90"> <Form ref="form" :model="entity" :rules="rules" :label-width="100">
<Row> <Row>
<Col :span="12"> <Col :span="12">
<FormItem :label="l('tASKSEQ')" prop="tASKSEQ"> <FormItem :label="l('tASKSEQ')" prop="tASKSEQ">
...@@ -13,17 +13,33 @@ ...@@ -13,17 +13,33 @@
</Col> </Col>
<Col :span="12"> <Col :span="12">
<FormItem :label="l('sHOPID')" prop="sHOPID"> <FormItem :label="l('sHOPID')" prop="sHOPID">
<Input></Input> <!-- v-model="orderSearchForm.orderCat" -->
<Select >
<Option value="" class="option-text">请选择</Option>
<Option v-for="item in orderCatList" :value="item" :key="item">{{ item }}</Option>
</Select>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="12"> <Col :span="12">
<FormItem :label="l('eQUIPID')" prop="eQUIPID"> <FormItem :label="l('eQUIPID')" prop="eQUIPID">
<Input></Input> <Select >
<Option value="" class="option-text">请选择</Option>
<Option v-for="item in orderCatList" :value="item" :key="item">{{ item }}</Option>
</Select>
</FormItem>
</Col>
<Col :span="12">
<FormItem label="关重资源名称" prop="rUNTIME">
<Select >
<Option value="" class="option-text">请选择</Option>
<Option v-for="item in orderCatList" :value="item" :key="item">{{ item }}</Option>
</Select>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="12"> <Col :span="12">
<FormItem :label="l('rUNTIME')" prop="rUNTIME"> <FormItem :label="l('rUNTIME')" prop="rUNTIME">
<Input></Input> <!-- v-model="value1" -->
<InputNumber :max="100" :min="1"></InputNumber>
</FormItem> </FormItem>
</Col> </Col>
</Row> </Row>
...@@ -41,6 +57,9 @@ export default { ...@@ -41,6 +57,9 @@ export default {
return { return {
disabled: false, disabled: false,
entity: {}, entity: {},
orderCatList:[
],
rules: { rules: {
name: [{ required: true, message: '必填', trigger: 'blur' }] name: [{ required: true, message: '必填', trigger: 'blur' }]
} }
......
...@@ -39,19 +39,19 @@ ...@@ -39,19 +39,19 @@
} }
} }
.ivu-card-head{ .ivu-card-head{
background: #62b8af!important; background: #2d8cf0!important;
} }
} }
.g_title{ .g_title{
color: #249e91; color: #2d8cf0;
} }
} }
.dispatch_card02{ .dispatch_card02{
margin: 10px 0; margin: 10px 0;
padding-left: 0!important; // padding-left: 0!important;
padding-right: 0!important; // padding-right: 0!important;
.man_body{ .man_body{
max-width: 187px; max-width: 185px;
label{ label{
border-radius: 24px; border-radius: 24px;
width: 100%; width: 100%;
...@@ -86,9 +86,9 @@ ...@@ -86,9 +86,9 @@
.drawer_center{ .drawer_center{
text-align: center; text-align: center;
padding: 10px; padding: 10px;
color: #249e91; color: #2d8cf0;
.color{ .color{
color: #2680EB; color: #2d8cf0;
} }
} }
} }
...@@ -106,9 +106,9 @@ ...@@ -106,9 +106,9 @@
.drawer_center{ .drawer_center{
text-align: center; text-align: center;
padding: 10px; padding: 10px;
color: #249e91; color: #2d8cf0;
.color{ .color{
color: #2680EB; color: #2d8cf0;
} }
} }
} }
......
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
<Icon <Icon
type="ios-disc" type="ios-disc"
size="18" size="18"
:color="item.id==shebeiId?'#249e91':'#fff'" :color="item.id==shebeiId?'#2d8cf0':'#fff'"
/> />
<input <input
name="shebei" name="shebei"
...@@ -96,7 +96,7 @@ ...@@ -96,7 +96,7 @@
</div> </div>
<div class="man" v-if="button2 == '人员'"> <div class="man" v-if="button2 == '人员'">
<!-- {{peploeId}} @on-change="setpepoleid" @on-change="setpepoleids"--> <!-- {{peploeId}} @on-change="setpepoleid" @on-change="setpepoleids"-->
<Row> <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"> <CheckboxGroup class="man_body">
<Checkbox v-model="item.checked" border class> <Checkbox v-model="item.checked" border class>
...@@ -283,10 +283,10 @@ export default { ...@@ -283,10 +283,10 @@ export default {
}, },
created() { created() {
this.getUserInfoFn() this.getUserInfoFn()
this.byheight = window.innerHeight - 150 + 'px' this.byheight = window.innerHeight - 208 + 'px'
}, },
mounted() { mounted() {
this.byheight = window.innerHeight - 150 + 'px' this.byheight = window.innerHeight - 208 + 'px'
}, },
async fetch({ store, params }) { async fetch({ store, params }) {
await store.dispatch('loadDictionary') // 加载数据字典 await store.dispatch('loadDictionary') // 加载数据字典
......
...@@ -40,8 +40,8 @@ ...@@ -40,8 +40,8 @@
</div> </div>
</template> </template>
<script> <script>
import Api from './api' import Api from "./api";
import expandRow from './table-expand.vue' import expandRow from "./table-expand.vue";
export default { export default {
components: { expandRow }, components: { expandRow },
...@@ -53,142 +53,144 @@ export default { ...@@ -53,142 +53,144 @@ export default {
list: [], list: [],
columns: [ columns: [
{ {
type: 'expand', type: "expand",
width: 50, width: 50,
render: (h, params) => { render: (h, params) => {
return h(expandRow, { return h(expandRow, {
props: { props: {
row: params.row row: params.row
} }
}) });
} }
}, },
{ {
title: '超期预警', title: "超期预警",
key: 'id', key: "id",
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.id == 1
? 'ios-information-circle-outline' ? "ios-information-circle-outline"
: 'ios-remove-circle-outline' : "ios-remove-circle-outline"
}, },
style: { style: {
marginRight: '5px', marginRight: "5px",
fontSize: '18px', fontSize: "18px",
fontWeight: 'bold', fontWeight: "bold",
color: params.row.id == 1 ? '#FE7777' : '#0DD78D' color: params.row.id == 1 ? "#FE7777" : "#0DD78D"
} }
}) })
]) ]);
} }
}, },
{ {
title: '零件图号', title: "零件图号",
key: 'part_id', key: "part_id",
align: 'center' align: "center"
}, },
{ {
title: '零件名称', title: "零件名称",
key: 'part_name', key: "part_name",
align: 'center' align: "center"
}, },
{ {
title: '计划开始时间', title: "计划开始时间",
key: 'plan_start', key: "plan_start",
width: 220, width: 220,
align: 'center' align: "center"
}, },
{ {
title: '计划结束时间', title: "计划结束时间",
key: 'plan_start', key: "plan_start",
width: 220, width: 220,
align: 'center' align: "center"
}, },
{ {
title: '投料时间', title: "投料时间",
key: 'demand_start', key: "demand_start",
width: 220, width: 220,
align: 'center' align: "center"
}, },
{ {
title: '节点时间', title: "节点时间",
key: 'demand_finish', key: "demand_finish",
width: 220, width: 220,
align: 'center' align: "center"
}, },
{ {
title: '计划数量', title: "计划数量",
key: 'plan_qty', key: "plan_qty",
align: 'center' align: "center"
} }
] ]
} };
}, },
async fetch({ store, params }) { async fetch({ store, params }) {
await store.dispatch('loadDictionary') // 加载数据字典 await store.dispatch("loadDictionary"); // 加载数据字典
}, },
created() { created() {
this.orderlist() this.orderlist();
}, },
methods: { methods: {
orderlist() { orderlist() {
Api.getall() Api.getall()
.then((r) => { .then(r => {
if (r.success) { if (r.success) {
this.list = r.result this.list = r.result;
if (r.result) { if (r.result) {
this.listData(r.result[0].schedule_Id, 0) this.listData(r.result[0].schedule_Id, 0);
} else { } else {
this.listData(0, null) this.listData(0, null);
} }
} }
}) })
.catch((error) => { .catch(error => {
this.$$Message.error('请求失败') this.$$Message.error("请求失败");
}) });
}, },
listData(id, index) { listData(id, index) {
this.isactive = index this.isactive = index;
Api.paged({ scheduleId: id }) Api.paged({ scheduleId: id })
.then((r) => { .then(r => {
if (r.success) { if (r.success) {
this.data = r.result this.data = r.result;
} }
}) })
.catch((error) => { .catch(error => {
this.$$Message.error('请求失败') this.$$Message.error("请求失败");
}) });
}, },
clear() { clear() {
this.$Modal.confirm({ if (this.list.length > 0) {
title: '清空列表', this.$Modal.confirm({
content: '您确定要清空列表吗', title: "清空列表",
onOk: () => { content: "您确定要清空列表吗",
Api.clearall().then((r) => { onOk: () => {
if (r.success) { Api.clearall().then(r => {
this.$Message.success('清空列表成功') if (r.success) {
this.orderlist() this.$Message.success("清空列表成功");
} this.orderlist();
}) }
}, });
onCancel: () => { },
this.$Message.info('已取消') onCancel: () => {
} this.$Message.info("已取消");
}) }
});
}
}, },
parameter() {}, parameter() {},
addOk() {}, addOk() {},
cancel() {}, cancel() {},
comeBlck() { comeBlck() {
this.$router.push({ path: '/aps/aps' }) this.$router.push({ path: "/aps/aps" });
} }
} }
} };
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.results { .results {
......
...@@ -172,13 +172,13 @@ export default { ...@@ -172,13 +172,13 @@ export default {
} }
}, },
created(){ created(){
this.tableHeight = window.innerHeight - 170 this.tableHeight = window.innerHeight - 230
}, },
mounted() { mounted() {
window.onresize = () => {///浏览器窗口大小变化 window.onresize = () => {///浏览器窗口大小变化
return (() => { return (() => {
window.screenHeight = window.innerHeight window.screenHeight = window.innerHeight
this.tableHeight = window.screenHeight - 150 this.tableHeight = window.screenHeight - 230
})() })()
} }
}, },
......
...@@ -171,14 +171,14 @@ export default { ...@@ -171,14 +171,14 @@ export default {
} }
}, },
created(){ created(){
this.tableHeight = window.innerHeight - 170 this.tableHeight = window.innerHeight - 230
}, },
mounted() { mounted() {
// console.log(this) // console.log(this)
window.onresize = () => {///浏览器窗口大小变化 window.onresize = () => {///浏览器窗口大小变化
return (() => { return (() => {
window.screenHeight = window.innerHeight window.screenHeight = window.innerHeight
this.tableHeight = window.screenHeight - 150 this.tableHeight = window.screenHeight - 230
})() })()
} }
}, },
......
...@@ -196,14 +196,14 @@ export default { ...@@ -196,14 +196,14 @@ export default {
}, },
created() { created() {
this.getWeekTypeListFn() this.getWeekTypeListFn()
this.tableHeight = window.innerHeight - 170 this.tableHeight = window.innerHeight - 230
}, },
mounted() { mounted() {
window.onresize = () => { window.onresize = () => {
///浏览器窗口大小变化 ///浏览器窗口大小变化
return (() => { return (() => {
window.screenHeight = window.innerHeight window.screenHeight = window.innerHeight
this.tableHeight = window.screenHeight - 150 this.tableHeight = window.screenHeight - 230
})() })()
} }
}, },
......
...@@ -69,7 +69,7 @@ export default { ...@@ -69,7 +69,7 @@ export default {
deletelMore: false, deletelMore: false,
curId: 0, curId: 0,
columns: [ columns: [
{ type: 'selection', width: 70, align: 'center'}, // { type: 'selection', width: 70, align: 'center'},
{ key: 'id', title: this.l('id'), hide: true, align: 'left' }, { key: 'id', title: this.l('id'), hide: true, align: 'left' },
{ {
key: 'creationTime', key: 'creationTime',
...@@ -184,13 +184,13 @@ export default { ...@@ -184,13 +184,13 @@ export default {
} }
}, },
created(){ created(){
this.tableHeight = window.innerHeight - 170 this.tableHeight = window.innerHeight - 230
}, },
mounted() { mounted() {
window.onresize = () => {///浏览器窗口大小变化 window.onresize = () => {///浏览器窗口大小变化
return (() => { return (() => {
window.screenHeight = window.innerHeight window.screenHeight = window.innerHeight
this.tableHeight = window.screenHeight - 150 this.tableHeight = window.screenHeight - 230
})() })()
} }
}, },
......
...@@ -84,8 +84,8 @@ export default { ...@@ -84,8 +84,8 @@ export default {
} }
}, },
watch: { watch: {
"v.id"() { v(v) {
this.entity = this.$clone(this.v) this.entity = this.v
console.info(this.entity) console.info(this.entity)
} }
} }
......
This diff is collapsed.
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<Avatar :src="avatorPath" size="150" /> <Avatar :src="avatorPath" size="150" />
</p> </p>
<p style="text-align:center;padding:10px;"> <p style="text-align:center;padding:10px;">
<Button @click="openModalAvatar">修改头像</Button> <Button @click="openModalAvatar">修改头像</Button>
</p> </p>
</div> </div>
</Card> </Card>
...@@ -92,106 +92,106 @@ ...@@ -92,106 +92,106 @@
</div> </div>
</template> </template>
<script> <script>
import Api from '../user/api' import Api from "../user/api";
import avatar from '@/assets/images/avatar.png' import avatar from "@/assets/images/avatar.png";
import inputFiles from '@/components/page/inputFile.vue' import inputFiles from "@/components/page/inputFile.vue";
var userId = JSON.parse(sessionStorage.getItem('userInfo')).userId
export default { export default {
components: { components: {
inputFiles inputFiles
}, },
data() { data() {
return { return {
parms: 'app=user&eid=23&name=avatarUrl', parms: "app=user&eid=23&name=avatarUrl",
cardWidth: '600px', cardWidth: "600px",
userId: 0,
pwdModel: { pwdModel: {
id: null, id: null,
oldPwd: '', oldPwd: "",
newPwd: '', newPwd: "",
confirmPwd: '' confirmPwd: ""
}, },
modalAvatar: false, modalAvatar: false,
mid: '', mid: "",
userInfo: { userInfo: {
id: 0, id: 0,
cardNo: '', cardNo: "",
userName: '', userName: "",
gender: 0, gender: 0,
birthday: '', birthday: "",
degreeId: 0, degreeId: 0,
titile: 0, titile: 0,
workLicense: 0, workLicense: 0,
employeeNo: '', employeeNo: "",
jobName: '', jobName: "",
phone: '', phone: "",
email: '', email: "",
departmentId: 0, departmentId: 0,
departmentTitle: '', departmentTitle: "",
status: 0, status: 0,
remark: '', remark: "",
avatarUrl: '' avatarUrl: ""
}, },
userInfos:{},
imageModel: { imageModel: {
id: null, id: null,
avatar_Url: '', avatar_Url: "",
name: '' name: ""
}, },
imgName: '', imgName: "",
avatorPath: '', avatorPath: "",
oldImgName: '' oldImgName: ""
} };
}, },
created() { created() {
this.cardWidth = window.innerWidth - 620 + 'px' this.userId = this.$store.state.userInfo.userId;
this.cardWidth = window.innerWidth - 620 + "px";
}, },
async fetch({ store, params }) { async fetch({ store, params }) {
await store.dispatch('loadDictionary') // 加载数据字典 await store.dispatch("loadDictionary"); // 加载数据字典
}, },
methods: { methods: {
pwdOk() { pwdOk() {
if (!this.pwdModel.oldPwd) { if (!this.pwdModel.oldPwd) {
this.$Message.warning('请输入初始密码!') this.$Message.warning("请输入初始密码!");
return return;
} }
if (!this.pwdModel.newPwd) { if (!this.pwdModel.newPwd) {
this.$Message.warning('请输入新密码!') this.$Message.warning("请输入新密码!");
return return;
} }
if (this.pwdModel.newPwd !== this.pwdModel.confirmPwd) { if (this.pwdModel.newPwd !== this.pwdModel.confirmPwd) {
this.$Message.warning('两次密码不一致!') this.$Message.warning("两次密码不一致!");
return return;
} }
if (this.pwdModel.newPwd === this.pwdModel.oldPwd) { if (this.pwdModel.newPwd === this.pwdModel.oldPwd) {
this.$Message.warning('新旧密码相同!') this.$Message.warning("新旧密码相同!");
return return;
} }
this.pwdModel.id = userId this.pwdModel.id = this.userId;
let params = { let params = {
accountId: this.userInfo.accountId, accountId: this.userInfo.accountId,
userId: this.userInfo.id, userId: this.userInfo.id,
newPassword: this.pwdModel.newPwd, newPassword: this.pwdModel.newPwd,
oldPassword: this.pwdModel.oldPwd oldPassword: this.pwdModel.oldPwd
} };
Api.authChangepassword(params).then((res) => { Api.authChangepassword(params).then(res => {
if (res.success) { if (res.success) {
this.$Message.success('修改成功!') this.$Message.success("修改成功!");
} } else {
else this.$Message.error("修改失败!");
{
this.$Message.error('修改失败!')
} }
}) });
}, },
pwdModelReset() { pwdModelReset() {
this.pwdModel = { this.pwdModel = {
oldPwd: '', oldPwd: "",
newPwd: '', newPwd: "",
confirmPwd: '' confirmPwd: ""
} };
}, },
openModalAvatar() { openModalAvatar() {
this.modalAvatar = true this.modalAvatar = true;
}, },
//单个文件选择后赋值方法 //单个文件选择后赋值方法
// inputChangedFile(val) { // inputChangedFile(val) {
...@@ -202,71 +202,69 @@ export default { ...@@ -202,71 +202,69 @@ export default {
//获取用户基本信息 //获取用户基本信息
initUserInfo() { initUserInfo() {
let parma = { let parma = {
Id: userId Id: this.userId
} };
this.$http.sysUser.getuserinfo(parma).then((res) => { this.$http.sysUser.getuserinfo(parma).then(res => {
if (res.result) { if (res.result) {
this.userInfo = res.result this.userInfo = res.result;
this.imageModel.id = this.userInfo.id this.userInfos=res.result;
this.imageModel.id = this.userInfo.id;
if ( if (
res.result.avatarUrl && res.result.avatarUrl &&
res.result.avatarUrl != '' && res.result.avatarUrl != "" &&
res.result.avatarUrl != null res.result.avatarUrl != null
) { ) {
this.userInfo.avatarUrl = res.result.avatarUrl this.userInfo.avatarUrl = res.result.avatarUrl;
this.avatorPath = fileUrlDown + res.result.avatarUrl this.avatorPath = fileUrlDown + res.result.avatarUrl;
this.oldImgName = fileUrlDown + res.result.avatarUrl this.oldImgName = fileUrlDown + res.result.avatarUrl;
} else { } else {
this.userInfo.avatarUrl = avatar this.userInfo.avatarUrl = avatar;
} }
} else { } else {
this.$Message.error('查询失败!') this.$Message.error("查询失败!");
} }
}) });
}, },
cancelAvatar() { cancelAvatar() {
this.modalAvatar = false this.modalAvatar = false;
this.avatorPath = this.oldImgName this.avatorPath = this.oldImgName;
}, },
upAvatar() { upAvatar() {
if (this.imageModel.avatar_Url != '') { if (this.imageModel.avatar_Url != "") {
this.$http.sysUser.changeavatar(this.imageModel).then((res) => { this.$http.sysUser.changeavatar(this.imageModel).then(res => {
alert(JSON.stringify(res))
if (res.success) { if (res.success) {
this.$Message.success('修改成功!') this.$Message.success("修改成功!");
this.modalAvatar = false this.modalAvatar = false;
this.$store.commit( this.userInfos.avatarUrl = fileUrlDown + this.imageModel.avatar_Url;
'setUserAvatar', this.$store.commit("admin/user/setUserAvatar", this.userInfos);
fileUrlDown + this.imageModel.avatar_Url
)
} else { } else {
this.$Message.error('修改失败!') this.$Message.error("修改失败!");
} }
}) });
} else { } else {
this.$Message.warning('请选择上传图片!') this.$Message.warning("请选择上传图片!");
} }
}, },
reload() { reload() {
this.isRouterAlive = false //先关闭, this.isRouterAlive = false; //先关闭,
this.$nextTick(function() { this.$nextTick(function() {
this.isRouterAlive = true //再打开 this.isRouterAlive = true; //再打开
}) });
} }
}, },
computed: {}, computed: {},
mounted() { mounted() {
this.initUserInfo() this.initUserInfo();
}, },
watch: { watch: {
imgName(newName, oldName) { imgName(newName, oldName) {
const imgPathsArr = JSON.parse(newName) const imgPathsArr = JSON.parse(newName);
this.userInfo.avatarUrl = imgPathsArr[0].filePath this.userInfo.avatarUrl = imgPathsArr[0].filePath;
this.imageModel.avatar_Url = imgPathsArr[0].filePath this.imageModel.avatar_Url = imgPathsArr[0].filePath;
this.avatorPath = fileUrlDown + imgPathsArr[0].filePath this.avatorPath = fileUrlDown + imgPathsArr[0].filePath;
} }
} }
} };
</script> </script>
<style lang="less" > <style lang="less" >
.ivu-card-body { .ivu-card-body {
...@@ -299,9 +297,9 @@ export default { ...@@ -299,9 +297,9 @@ export default {
.ivu-form-itemNo { .ivu-form-itemNo {
margin-bottom: 4px; margin-bottom: 4px;
} }
.user_info_right{ .user_info_right {
float:left; float: left;
margin-left:20px; margin-left: 20px;
width: calc(78% - 20px); width: calc(78% - 20px);
} }
</style> </style>
\ No newline at end of file
...@@ -514,14 +514,14 @@ export default { ...@@ -514,14 +514,14 @@ export default {
}, },
created() { created() {
window.screenHeight = window.innerHeight window.screenHeight = window.innerHeight
this.gridHeight = window.screenHeight - 240 this.gridHeight = window.screenHeight - 250
}, },
mounted() { mounted() {
// this.search(this.searchForm) // this.search(this.searchForm)
window.onresize = () => { window.onresize = () => {
return (() => { return (() => {
window.screenHeight = window.innerHeight window.screenHeight = window.innerHeight
this.gridHeight = window.screenHeight - 240 this.gridHeight = window.screenHeight - 250
})() })()
} }
} }
......
...@@ -107,13 +107,13 @@ ...@@ -107,13 +107,13 @@
</div> </div>
</template> </template>
<script> <script>
import Api from './api' import Api from "./api";
import Add from './add' import Add from "./add";
import Edit from './edit' import Edit from "./edit";
import Detail from './detail' import Detail from "./detail";
export default { export default {
name: 'list', name: "list",
components: { components: {
Add, Add,
Edit, Edit,
...@@ -124,14 +124,14 @@ export default { ...@@ -124,14 +124,14 @@ export default {
action: Api.index, action: Api.index,
list: [ list: [
{ {
name: 'jjk' name: "jjk"
} }
], ],
isactive: null, isactive: null,
keys: '', keys: "",
easySearch: { easySearch: {
keys: { op: 'name', value: null }, keys: { op: "name", value: null },
customerId: { op: 'Equal', value: null } customerId: { op: "Equal", value: null }
}, },
addModal: false, addModal: false,
editModal: false, editModal: false,
...@@ -139,110 +139,110 @@ export default { ...@@ -139,110 +139,110 @@ export default {
deletelModal: false, deletelModal: false,
curId: 0, curId: 0,
customerId: 0, customerId: 0,
columns: [{ key: 'id', title: this.l('id'), hide: true, align: 'left' }], columns: [{ key: "id", title: this.l("id"), hide: true, align: "left" }],
name: '', name: "",
getlists: { getlists: {
conditions: [ conditions: [
{ {
fieldName: '', fieldName: "",
fieldValue: '', fieldValue: "",
conditionalType: 'Equal' conditionalType: "Equal"
} }
], ],
pageSize: 1000 pageSize: 1000
} }
} };
}, },
computed: { computed: {
projectList() { projectList() {
return this.list.filter((u) => { return this.list.filter(u => {
return u.name.indexOf(this.keys) > -1 return u.name.indexOf(this.keys) > -1;
}) });
} }
}, },
mounted() { mounted() {
this.getList() this.getList();
}, },
async fetch({ store, params }) { async fetch({ store, params }) {
await store.dispatch('loadDictionary') // 加载数据字典 await store.dispatch("loadDictionary"); // 加载数据字典
}, },
methods: { methods: {
clickSearch() { clickSearch() {
this.getlists.conditions[0].fieldName = 'name' this.getlists.conditions[0].fieldName = "name";
this.getlists.conditions[0].fieldValue = this.name this.getlists.conditions[0].fieldValue = this.name;
this.getList() this.getList();
}, },
listData(li, index) { listData(li, index) {
this.easySearch.customerId.value = li.id this.easySearch.customerId.value = li.id;
this.isactive = index this.isactive = index;
this.customerId = li.id this.customerId = li.id;
this.search() this.search();
}, },
getList() { getList() {
Api.list(this.getlists).then((r) => { Api.list(this.getlists).then(r => {
if (r.success) { if (r.success) {
this.list = r.result this.list = r.result;
// this.easySearch.customerId.value = r.result[0].id // this.easySearch.customerId.value = r.result[0].id
this.search() this.search();
} }
}) });
}, },
easySearchs() {}, easySearchs() {},
addOk() { addOk() {
this.$refs.grid.load() this.$refs.grid.load();
this.addModal = false this.addModal = false;
this.detailModal = false this.detailModal = false;
this.editModal = false this.editModal = false;
this.curId = 0 this.curId = 0;
}, },
add() { add() {
if (this.isactive !== null) { if (this.isactive !== null) {
this.addModal = true this.addModal = true;
} else { } else {
this.$Message.info('请选择企业') this.$Message.info("请选择企业");
} }
}, },
search() { search() {
this.$refs.grid.reload(this.easySearch) this.$refs.grid.reload(this.easySearch);
}, },
detail(id) { detail(id) {
this.detailModal = true this.detailModal = true;
this.curId = id this.curId = id;
}, },
edit(id) { edit(id) {
this.editModal = true this.editModal = true;
this.curId = id this.curId = id;
}, },
remove(id) { remove(id) {
this.deletelModal = true this.deletelModal = true;
this.curId = id this.curId = id;
}, },
removeOk() { removeOk() {
Api.delete({ id: this.curId }).then((r) => { Api.delete({ id: this.curId }).then(r => {
if (r.success) { if (r.success) {
this.$refs.grid.load() this.$refs.grid.load();
this.deletelModal = false this.deletelModal = false;
this.$Message.success('删除成功') this.$Message.success("删除成功");
} }
}) });
}, },
removeCancel() { removeCancel() {
this.deletelModal = false this.deletelModal = false;
}, },
cancel() { cancel() {
this.curId = 0 this.curId = 0;
this.addModal = false this.addModal = false;
this.detailModal = false this.detailModal = false;
this.editModal = false this.editModal = false;
this.deletedlModal = false this.deletedlModal = false;
}, },
l(key) { l(key) {
let vkey = 'Project' + '.' + key let vkey = "Project" + "." + key;
return this.$t(vkey) || key return this.$t(vkey) || key;
} }
} }
} };
</script> </script>
<style lang="less"> <style lang="less">
.addclass { .addclass {
...@@ -254,7 +254,8 @@ export default { ...@@ -254,7 +254,8 @@ export default {
.project-steps { .project-steps {
display: flex; display: flex;
display: -webkit-flex; display: -webkit-flex;
height: 100%; height: 85vh;
overflow: hidden;
border-top: 1px solid #e4e6ed; border-top: 1px solid #e4e6ed;
h4 { h4 {
margin-bottom: 5px; margin-bottom: 5px;
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
</div> </div>
</template> </template>
<script> <script>
import ProjectList from './projectList.vue' import ProjectList from "./projectList.vue";
export default { export default {
components: { components: {
ProjectList ProjectList
...@@ -21,30 +21,31 @@ export default { ...@@ -21,30 +21,31 @@ export default {
return { return {
current: 0, current: 0,
stage: 1 stage: 1
} };
}, },
methods: { methods: {
next(name) { next(name) {
if (name == 1) { if (name == 1) {
this.current = 0 this.current = 0;
this.stage = 1 this.stage = 1;
} else if (name == 2) { } else if (name == 2) {
this.current = 1 this.current = 1;
this.stage = 2 this.stage = 2;
} else if (name == 3) { } else if (name == 3) {
this.current = 2 this.current = 2;
this.stage = 3 this.stage = 3;
} else if (name == 4) { } else if (name == 4) {
this.current = 3 this.current = 3;
this.stage = 4 this.stage = 4;
} }
} }
} }
} };
</script> </script>
<style lang='less' scoped> <style lang='less' scoped>
.sales { .sales {
height: 90%; height: 90%;
padding-top: 8px;
.steps-k { .steps-k {
margin: 10px 30px; margin: 10px 30px;
.title-c { .title-c {
......
...@@ -117,13 +117,13 @@ ...@@ -117,13 +117,13 @@
</div> </div>
</template> </template>
<script> <script>
import Api from './api' import Api from "./api";
import Add from './add' import Add from "./add";
import Edit from './edit' import Edit from "./edit";
import Detail from './detail' import Detail from "./detail";
import Search from './search' import Search from "./search";
export default { export default {
name: 'ProjectList', name: "ProjectList",
components: { components: {
Add, Add,
Edit, Edit,
...@@ -134,20 +134,20 @@ export default { ...@@ -134,20 +134,20 @@ export default {
stage: Number stage: Number
}, },
async fetch({ store, params }) { async fetch({ store, params }) {
await store.dispatch('loadDictionary') // 加载数据字典 await store.dispatch("loadDictionary"); // 加载数据字典
}, },
data() { data() {
return { return {
action: Api.index, action: Api.index,
activeindex: 0, activeindex: 0,
list: [], list: [],
keys: '', keys: "",
name: '', name: "",
status: '', //为空是全部排产,0为未排产;13为已排查; status: "", //为空是全部排产,0为未排产;13为已排查;
partTaskPk: '', //车间 partTaskPk: "", //车间
result: [], result: [],
isactive: null, isactive: null,
selectName: 'all', selectName: "all",
rowResult: {}, rowResult: {},
addId: { addId: {
projectId: 0, projectId: 0,
...@@ -157,148 +157,148 @@ export default { ...@@ -157,148 +157,148 @@ export default {
getSearch: { getSearch: {
conditions: [ conditions: [
{ {
fieldName: 'stage', fieldName: "stage",
fieldValue: '1', fieldValue: "1",
conditionalType: 'Equal' conditionalType: "Equal"
}, },
{ {
fieldName: '', fieldName: "",
fieldValue: '', fieldValue: "",
conditionalType: 'Equal' conditionalType: "Equal"
} }
], ],
pageSize: 1000 pageSize: 1000
}, },
listOperation: [], listOperation: [],
easySearch: { easySearch: {
keys: { op: 'deliverable', value: null }, keys: { op: "deliverable", value: null },
stage: { op: 'Equal', value: null }, stage: { op: "Equal", value: null },
projectId: { op: 'Equal', value: null } projectId: { op: "Equal", value: null }
}, },
addModal: false, addModal: false,
editModal: false, editModal: false,
detailModal: false, detailModal: false,
deletelModal: false, deletelModal: false,
curId: 0, curId: 0,
columns: [{ key: 'id', title: this.l('id'), hide: true, align: 'left' }] columns: [{ key: "id", title: this.l("id"), hide: true, align: "left" }]
} };
}, },
filters: { filters: {
filterFun: function(value) { filterFun: function(value) {
if (value && value.length > 8) { if (value && value.length > 8) {
value = value.substring(0, 8) + '...' value = value.substring(0, 8) + "...";
} }
return value return value;
}, },
filterFun2: function(value) { filterFun2: function(value) {
if (value && value.length > 15) { if (value && value.length > 15) {
value = value.substring(0, 15) + '...' value = value.substring(0, 15) + "...";
} }
return value return value;
} }
}, },
created() { created() {
this.getList(1) this.getList(1);
}, },
computed: { computed: {
productList() { productList() {
return this.list.filter((u) => { return this.list.filter(u => {
return u.name.indexOf(this.keys) > -1 return u.name.indexOf(this.keys) > -1;
}) });
} }
}, },
methods: { methods: {
clickSearch() { clickSearch() {
this.getSearch.conditions[1].fieldName = 'name' this.getSearch.conditions[1].fieldName = "name";
this.getSearch.conditions[1].fieldValue = this.name this.getSearch.conditions[1].fieldValue = this.name;
this.getList(this.getSearch.conditions[0].fieldValue) this.getList(this.getSearch.conditions[0].fieldValue);
}, },
getList(v) { getList(v) {
this.getSearch.conditions[0].fieldValue = v + '' this.getSearch.conditions[0].fieldValue = v + "";
Api.pagedList(this.getSearch).then((r) => { Api.pagedList(this.getSearch).then(r => {
if (r.success) { if (r.success) {
this.list = r.result this.list = r.result;
this.search() this.search();
} }
}) });
}, },
listData(li, index) { listData(li, index) {
this.easySearch.projectId.value = li.id this.easySearch.projectId.value = li.id;
this.easySearch.stage.value = li.stage this.easySearch.stage.value = li.stage;
this.$refs.add.entity.stage = li.stage this.$refs.add.entity.stage = li.stage;
this.addId.projectId = li.id this.addId.projectId = li.id;
this.addId.customerId = li.customerId this.addId.customerId = li.customerId;
this.addId.principal = li.principal this.addId.principal = li.principal;
this.isactive = index this.isactive = index;
this.search() this.search();
}, },
search() { search() {
this.$refs.grid.reload(this.easySearch) this.$refs.grid.reload(this.easySearch);
}, },
addOk() { addOk() {
this.$refs.grid.load() this.$refs.grid.load();
this.addModal = false this.addModal = false;
this.detailModal = false this.detailModal = false;
this.editModal = false this.editModal = false;
this.curId = 0 this.curId = 0;
}, },
add() { add() {
if (this.isactive !== null) { if (this.isactive !== null) {
this.addModal = true this.addModal = true;
} else { } else {
this.$Message.info('请选择项目') this.$Message.info("请选择项目");
} }
}, },
detail(id) { detail(id) {
this.detailModal = true this.detailModal = true;
this.curId = id this.curId = id;
}, },
edit(id) { edit(id) {
this.editModal = true this.editModal = true;
this.curId = id this.curId = id;
}, },
remove(id) { remove(id) {
this.deletelModal = true this.deletelModal = true;
this.curId = id this.curId = id;
}, },
removeOk() { removeOk() {
Api.delete({ id: this.curId }).then((r) => { Api.delete({ id: this.curId }).then(r => {
if (r.success) { if (r.success) {
this.$refs.grid.load() this.$refs.grid.load();
this.deletelModal = false this.deletelModal = false;
this.$Message.success('删除成功') this.$Message.success("删除成功");
} }
}) });
}, },
removeCancel() { removeCancel() {
this.deletelModal = false this.deletelModal = false;
}, },
cancel() { cancel() {
this.curId = 0 this.curId = 0;
this.addModal = false this.addModal = false;
this.detailModal = false this.detailModal = false;
this.editModal = false this.editModal = false;
this.deletedlModal = false this.deletedlModal = false;
}, },
l(key) { l(key) {
let vkey = 'Follow' + '.' + key let vkey = "Follow" + "." + key;
return this.$t(vkey) || key return this.$t(vkey) || key;
} }
}, },
watch: { watch: {
stage(v) { stage(v) {
this.getList(v) this.getList(v);
}, },
'easySearch.projectId.value'(v) { "easySearch.projectId.value"(v) {
if (v) { if (v) {
this.search() this.search();
} }
} }
} }
} };
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.addclass { .addclass {
...@@ -310,7 +310,8 @@ export default { ...@@ -310,7 +310,8 @@ export default {
.steps { .steps {
display: flex; display: flex;
display: -webkit-flex; display: -webkit-flex;
height: 100%; height: 80vh;
overflow: hidden;
border-top: 1px solid #e4e6ed; border-top: 1px solid #e4e6ed;
h4 { h4 {
margin-bottom: 5px; margin-bottom: 5px;
......
...@@ -51,23 +51,50 @@ ...@@ -51,23 +51,50 @@
width: 100%; width: 100%;
overflow: hidden; overflow: hidden;
.main_card{ .main_card{
width: 32%; width: calc(33% - 6px);
cursor: pointer; cursor: pointer;
float: left; float: left;
// display: inline-block; margin: 10px 4px;
margin: 10px 5px;
.leftIcon { .leftIcon {
width: 40px; width: 40px;
height: 40px; height: 40px;
border-radius: 50%; border-radius: 50%;
background: #249e91; // background: #249e91;
float: left; float: left;
margin: 12px 10px 0 5px; margin: 12px 10px 0 5px;
.img_bg01 {
display: inline-block;
width: 40px;
height: 40px;
border-radius: 50%;
background: #249e91;
}
.img_bg02 {
display: inline-block;
width: 40px;
height: 40px;
border-radius: 50%;
background: #0099FF;
}
.img_bg03 {
display: inline-block;
width: 40px;
height: 40px;
border-radius: 50%;
background: #FF7A8B;
}
.img_bg04 {
display: inline-block;
width: 40px;
height: 40px;
border-radius: 50%;
background: #FFC300;
}
.Icon_bg { .Icon_bg {
text-align: center; text-align: center;
padding: 10px 0 0; padding: 10px 0 0;
img.Icon_icon { img.Icon_icon {
width: 18px; width: 20px;
} }
} }
} }
......
...@@ -18,8 +18,10 @@ ...@@ -18,8 +18,10 @@
:key="index" :key="index"
> >
<div class="leftIcon"> <div class="leftIcon">
<div class="Icon_bg"> <div class="Icon_bg" :class="item.name=='物料复验' ? 'img_bg02':(item.name=='产品合格证' ? 'img_bg03':(item.name=='生产执行' ? 'img_bg04' : 'img_bg01'))" >
<img class="Icon_icon" :src="imgUrl + item.image" alt /> <!-- <div > -->
<img class="Icon_icon" src="@/assets/imgicon/u1640.png" alt="">
<!-- <img class="Icon_icon" :src="imgUrl + item.image" alt /> -->
</div> </div>
</div> </div>
<div class="h60"> <div class="h60">
......
...@@ -145,7 +145,7 @@ export default { ...@@ -145,7 +145,7 @@ export default {
}, },
data() { data() {
return { return {
currentUserId: JSON.parse(sessionStorage.getItem('userInfo')).userId, currentUserId: 0,
formMyCheck: { formMyCheck: {
radioSp: '通过', radioSp: '通过',
comment: '', comment: '',
...@@ -196,6 +196,7 @@ export default { ...@@ -196,6 +196,7 @@ export default {
await store.dispatch('loadDictionary') // 加载数据字典 await store.dispatch('loadDictionary') // 加载数据字典
}, },
created() { created() {
this.currentUserId=this.$store.state.userInfo.userId
this.detailId = this.$http.common.getquerystring('id') this.detailId = this.$http.common.getquerystring('id')
this.footerStatu = this.$http.common.getquerystring('statu') this.footerStatu = this.$http.common.getquerystring('statu')
this.getDetailInfos(this.detailId) this.getDetailInfos(this.detailId)
......
...@@ -84,7 +84,7 @@ export default { ...@@ -84,7 +84,7 @@ export default {
}, },
data() { data() {
return { return {
currentUserId: JSON.parse(sessionStorage.getItem('userInfo')).userId, currentUserId: 0,
formMyCheck: { formMyCheck: {
radioSp: '通过', radioSp: '通过',
comment: '', comment: '',
...@@ -134,6 +134,7 @@ export default { ...@@ -134,6 +134,7 @@ export default {
await store.dispatch('loadDictionary') // 加载数据字典 await store.dispatch('loadDictionary') // 加载数据字典
}, },
created() { created() {
this.currentUserId=this.$store.state.userInfo.userId
this.detailId = this.$http.common.getquerystring('id') this.detailId = this.$http.common.getquerystring('id')
this.footerStatu = this.$http.common.getquerystring('statu') this.footerStatu = this.$http.common.getquerystring('statu')
this.getDetailInfos(this.detailId) this.getDetailInfos(this.detailId)
......
...@@ -84,7 +84,7 @@ export default { ...@@ -84,7 +84,7 @@ export default {
}, },
data() { data() {
return { return {
currentUserId: JSON.parse(sessionStorage.getItem('userInfo')).userId, currentUserId: 0,
formMyCheck: { formMyCheck: {
radioSp: '通过', radioSp: '通过',
comment: '', comment: '',
...@@ -134,6 +134,7 @@ export default { ...@@ -134,6 +134,7 @@ export default {
await store.dispatch('loadDictionary') // 加载数据字典 await store.dispatch('loadDictionary') // 加载数据字典
}, },
created() { created() {
this.currentUserId=this.$store.state.userInfo.userId
this.detailId = this.$http.common.getquerystring('id') this.detailId = this.$http.common.getquerystring('id')
this.footerStatu = this.$http.common.getquerystring('statu') this.footerStatu = this.$http.common.getquerystring('statu')
this.getDetailInfos(this.detailId) this.getDetailInfos(this.detailId)
......
...@@ -84,7 +84,7 @@ export default { ...@@ -84,7 +84,7 @@ export default {
}, },
data() { data() {
return { return {
currentUserId: JSON.parse(sessionStorage.getItem('userInfo')).userId, currentUserId: 0,
formMyCheck: { formMyCheck: {
radioSp: '通过', radioSp: '通过',
comment: '', comment: '',
...@@ -134,6 +134,7 @@ export default { ...@@ -134,6 +134,7 @@ export default {
await store.dispatch('loadDictionary') // 加载数据字典 await store.dispatch('loadDictionary') // 加载数据字典
}, },
created() { created() {
this.currentUserId=this.$store.state.userInfo.userId
this.detailId = this.$http.common.getquerystring('id') this.detailId = this.$http.common.getquerystring('id')
this.footerStatu = this.$http.common.getquerystring('statu') this.footerStatu = this.$http.common.getquerystring('statu')
this.getDetailInfos(this.detailId) this.getDetailInfos(this.detailId)
......
...@@ -98,7 +98,7 @@ export default { ...@@ -98,7 +98,7 @@ export default {
}, },
data() { data() {
return { return {
currentUserId: JSON.parse(sessionStorage.getItem('userInfo')).userId, currentUserId: 0,
formMyCheck: { formMyCheck: {
radioSp: '通过', radioSp: '通过',
comment: '', comment: '',
...@@ -146,6 +146,7 @@ export default { ...@@ -146,6 +146,7 @@ export default {
await store.dispatch('loadDictionary') // 加载数据字典 await store.dispatch('loadDictionary') // 加载数据字典
}, },
created() { created() {
this.currentUserId=this.$store.state.userInfo.userId
this.detailId = this.$http.common.getquerystring('id') this.detailId = this.$http.common.getquerystring('id')
this.footerStatu = this.$http.common.getquerystring('statu') this.footerStatu = this.$http.common.getquerystring('statu')
this.getDetailInfos(this.detailId) this.getDetailInfos(this.detailId)
......
...@@ -97,7 +97,7 @@ export default { ...@@ -97,7 +97,7 @@ export default {
}, },
data() { data() {
return { return {
currentUserId: JSON.parse(sessionStorage.getItem('userInfo')).userId, currentUserId: 0,
formMyCheck: { formMyCheck: {
radioSp: '通过', radioSp: '通过',
comment: '', comment: '',
...@@ -145,6 +145,7 @@ export default { ...@@ -145,6 +145,7 @@ export default {
await store.dispatch('loadDictionary') // 加载数据字典 await store.dispatch('loadDictionary') // 加载数据字典
}, },
created() { created() {
this.currentUserId=this.$store.state.userInfo.userId
this.detailId = this.$http.common.getquerystring('id') this.detailId = this.$http.common.getquerystring('id')
this.footerStatu = this.$http.common.getquerystring('statu') this.footerStatu = this.$http.common.getquerystring('statu')
this.getDetailInfos(this.detailId) this.getDetailInfos(this.detailId)
......
...@@ -84,7 +84,7 @@ export default { ...@@ -84,7 +84,7 @@ export default {
}, },
data() { data() {
return { return {
currentUserId: JSON.parse(sessionStorage.getItem('userInfo')).userId, currentUserId:0,
formMyCheck: { formMyCheck: {
radioSp: '通过', radioSp: '通过',
comment: '', comment: '',
...@@ -116,6 +116,7 @@ export default { ...@@ -116,6 +116,7 @@ export default {
await store.dispatch('loadDictionary') // 加载数据字典 await store.dispatch('loadDictionary') // 加载数据字典
}, },
created() { created() {
this.currentUserId=this.$store.state.userInfo.userId
this.detailId = this.$http.common.getquerystring('id') this.detailId = this.$http.common.getquerystring('id')
this.footerStatu = this.$http.common.getquerystring('statu') this.footerStatu = this.$http.common.getquerystring('statu')
this.getDetailInfos(this.detailId) this.getDetailInfos(this.detailId)
......
...@@ -131,7 +131,7 @@ export default { ...@@ -131,7 +131,7 @@ export default {
}, },
data() { data() {
return { return {
currentUserId: JSON.parse(sessionStorage.getItem('userInfo')).userId, currentUserId: 0,
formMyCheck: { formMyCheck: {
radioSp: '通过', radioSp: '通过',
comment: '', comment: '',
...@@ -181,6 +181,7 @@ export default { ...@@ -181,6 +181,7 @@ export default {
await store.dispatch('loadDictionary') // 加载数据字典 await store.dispatch('loadDictionary') // 加载数据字典
}, },
created() { created() {
this.currentUserId=this.$store.state.userInfo.userId
this.detailId = this.$http.common.getquerystring('id') this.detailId = this.$http.common.getquerystring('id')
this.footerStatu = this.$http.common.getquerystring('statu') this.footerStatu = this.$http.common.getquerystring('statu')
console.log(this.detailId) console.log(this.detailId)
......
...@@ -155,7 +155,7 @@ export default { ...@@ -155,7 +155,7 @@ export default {
}, },
data() { data() {
return { return {
currentUserId: JSON.parse(sessionStorage.getItem('userInfo')).userId, currentUserId:0,
formMyCheck: { formMyCheck: {
radioSp: '通过', radioSp: '通过',
comment: '', comment: '',
...@@ -205,6 +205,7 @@ export default { ...@@ -205,6 +205,7 @@ export default {
await store.dispatch('loadDictionary') // 加载数据字典 await store.dispatch('loadDictionary') // 加载数据字典
}, },
created() { created() {
this.currentUserId=this.$store.state.userInfo.userId
this.detailId = this.$http.common.getquerystring('id') this.detailId = this.$http.common.getquerystring('id')
this.footerStatu = this.$http.common.getquerystring('statu') this.footerStatu = this.$http.common.getquerystring('statu')
this.getDetailInfos(this.detailId) this.getDetailInfos(this.detailId)
......
...@@ -156,7 +156,7 @@ export default { ...@@ -156,7 +156,7 @@ export default {
}, },
data() { data() {
return { return {
currentUserId: JSON.parse(sessionStorage.getItem('userInfo')).userId, currentUserId: 0,
formMyCheck: { formMyCheck: {
radioSp: '通过', radioSp: '通过',
comment: '', comment: '',
...@@ -214,6 +214,7 @@ export default { ...@@ -214,6 +214,7 @@ export default {
await store.dispatch('loadDictionary') // 加载数据字典 await store.dispatch('loadDictionary') // 加载数据字典
}, },
created() { created() {
this.currentUserId=this.$store.state.userInfo.userId
this.detailId = this.$http.common.getquerystring('id') this.detailId = this.$http.common.getquerystring('id')
this.footerStatu = this.$http.common.getquerystring('statu') this.footerStatu = this.$http.common.getquerystring('statu')
console.log(this.footerStatu) console.log(this.footerStatu)
......
...@@ -83,7 +83,7 @@ export default { ...@@ -83,7 +83,7 @@ export default {
}, },
data() { data() {
return { return {
currentUserId: JSON.parse(sessionStorage.getItem('userInfo')).userId, currentUserId: 0,
formMyCheck: { formMyCheck: {
radioSp: '通过', radioSp: '通过',
comment: '', comment: '',
...@@ -133,6 +133,7 @@ export default { ...@@ -133,6 +133,7 @@ export default {
await store.dispatch('loadDictionary') // 加载数据字典 await store.dispatch('loadDictionary') // 加载数据字典
}, },
created() { created() {
this.currentUserId=this.$store.state.userInfo.userId
this.detailId = this.$http.common.getquerystring('id') this.detailId = this.$http.common.getquerystring('id')
this.footerStatu = this.$http.common.getquerystring('statu') this.footerStatu = this.$http.common.getquerystring('statu')
this.getDetailInfos(this.detailId) this.getDetailInfos(this.detailId)
......
...@@ -96,7 +96,7 @@ export default { ...@@ -96,7 +96,7 @@ export default {
}, },
data() { data() {
return { return {
currentUserId: JSON.parse(sessionStorage.getItem('userInfo')).userId, currentUserId: 0,
formMyCheck: { formMyCheck: {
radioSp: '通过', radioSp: '通过',
comment: '', comment: '',
...@@ -132,6 +132,7 @@ export default { ...@@ -132,6 +132,7 @@ export default {
}, },
created() { created() {
this.getDetailInfos(this.idVal) this.getDetailInfos(this.idVal)
this.currentUserId=this.$store.state.userInfo.userId
}, },
methods: { methods: {
nextCheckOk() { nextCheckOk() {
......
...@@ -209,7 +209,7 @@ export default { ...@@ -209,7 +209,7 @@ export default {
created() { created() {
window.screenHeight = window.innerHeight window.screenHeight = window.innerHeight
this.iframeHeight = window.screenHeight - 58 this.iframeHeight = window.screenHeight - 58
this.gridHeight = window.screenHeight - 240 this.gridHeight = window.screenHeight - 260
}, },
mounted() { mounted() {
window.onresize = () => { window.onresize = () => {
...@@ -217,7 +217,7 @@ export default { ...@@ -217,7 +217,7 @@ export default {
return (() => { return (() => {
window.screenHeight = window.innerHeight window.screenHeight = window.innerHeight
this.iframeHeight = window.screenHeight - 58 this.iframeHeight = window.screenHeight - 58
this.gridHeight = window.screenHeight - 240 this.gridHeight = window.screenHeight - 260
})() })()
} }
this.getSchema() this.getSchema()
......
...@@ -13,8 +13,14 @@ ...@@ -13,8 +13,14 @@
<span class="auditedTime">{{item.auditedTime}}</span> <span class="auditedTime">{{item.auditedTime}}</span>
</p> </p>
<div class="content"> <div class="content">
<div class="records" v-if="index==0"> <div class="records" v-if="index==cur">
<span>审批人:</span>
<User
v-for="(item3, index3) in item.records"
:key="index3"
:value="item3.operatorId"
class="mr5"
/>
</div> </div>
<div v-else-if="index>cur"> <div v-else-if="index>cur">
<CheckboxGroup v-model="immutData"> <CheckboxGroup v-model="immutData">
...@@ -53,7 +59,7 @@ export default { ...@@ -53,7 +59,7 @@ export default {
components: {}, components: {},
data() { data() {
return { return {
currentUserId: JSON.parse(sessionStorage.getItem('userInfo')).userId, currentUserId: 0,
processTitle: '审批流程', processTitle: '审批流程',
currentNodeId: null, currentNodeId: null,
dataImmut: [], dataImmut: [],
...@@ -123,6 +129,7 @@ export default { ...@@ -123,6 +129,7 @@ export default {
} }
}, },
created() { created() {
this.currentUserId=this.$store.state.userInfo.userId
this.dataImmut = [] this.dataImmut = []
this.dataMut = [] this.dataMut = []
......
<style>
/* @font-face {
font-family: 'iconfont';
src: url('./iconfont/iconfont.eot');
src: url('./iconfont/iconfont.eot?#iefix') format('embedded-opentype'),
url('./iconfont/iconfont.woff2') format('woff2'),
url('./iconfont/iconfont.woff') format('woff'),
url('./iconfont/iconfont.ttf') format('truetype'),
url('./iconfont/iconfont.svg#iconfont') format('svg');
}
.iconfont {
font-family: "iconfont" !important;
font-size: 32px;
font-weight: bold;
/* font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
color:#249e91;
} */
.img_bg {
display: inline-block;
width: 48px;
height: 48px;
border-radius: 50%;
background: #249e91;
}
.img_icon {
width: 24px;
margin: 23% 0 0 0;
}
</style>
<template> <template>
<div style="width:100%"> <div style="width:100%">
<Card <Card
...@@ -41,9 +11,9 @@ ...@@ -41,9 +11,9 @@
<div class="leftIco"> <div class="leftIco">
<!-- color:rgba(36, 158, 145, 1) --> <!-- color:rgba(36, 158, 145, 1) -->
<!-- <span class="iconfont">&#xe607;</span> --> <!-- <span class="iconfont">&#xe607;</span> -->
<div class="img_bg"> <div :class="item.name=='物料复验' ? 'img_bg02':(item.name=='产品合格证' ? 'img_bg03':(item.name=='生产执行' ? 'img_bg04' : 'img_bg01'))" >
<img class="img_icon" :src="imgUrl + item.image" alt /> <!-- <img class="img_icon" :src="imgUrl + item.image" alt /> -->
<!-- <img class="img_icon" src="@/assets/imgicon/u1650.png" alt=""> --> <img class="img_icon" src="@/assets/imgicon/u1640.png" alt="">
</div> </div>
<!-- <command icon="@/assets/imgicon/u1638.png"> --> <!-- <command icon="@/assets/imgicon/u1638.png"> -->
<!-- <Icon type="md-analytics" size="36" color="#249e91" /> --> <!-- <Icon type="md-analytics" size="36" color="#249e91" /> -->
...@@ -82,6 +52,7 @@ export default { ...@@ -82,6 +52,7 @@ export default {
return (data.totalUrl = r.result) return (data.totalUrl = r.result)
}) })
}) })
console.log(list)
this.listTask = list this.listTask = list
}) })
}, },
...@@ -93,6 +64,38 @@ export default { ...@@ -93,6 +64,38 @@ export default {
} }
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.img_bg01 {
display: inline-block;
width: 48px;
height: 48px;
border-radius: 50%;
background: #249e91;
}
.img_bg02 {
display: inline-block;
width: 48px;
height: 48px;
border-radius: 50%;
background: #0099FF;
}
.img_bg03 {
display: inline-block;
width: 48px;
height: 48px;
border-radius: 50%;
background: #FF7A8B;
}
.img_bg04 {
display: inline-block;
width: 48px;
height: 48px;
border-radius: 50%;
background: #FFC300;
}
.img_icon {
width: 24px;
margin: 23% 0 0 0;
}
.waitTask { .waitTask {
cursor: pointer; cursor: pointer;
margin-bottom: 10px; margin-bottom: 10px;
......
...@@ -66,10 +66,8 @@ export default { ...@@ -66,10 +66,8 @@ export default {
data() { data() {
return { return {
entity: { entity: {
creator: parseInt( creator:"",
JSON.parse(sessionStorage.getItem('userInfo')).userId creatorUserId:0
),
creatorUserId: JSON.parse(sessionStorage.getItem('userInfo')).userId
}, },
rules: { rules: {
storeTitle: [{ required: true, message: '请选择库位', trigger: 'blur' }] storeTitle: [{ required: true, message: '请选择库位', trigger: 'blur' }]
...@@ -174,6 +172,10 @@ export default { ...@@ -174,6 +172,10 @@ export default {
} }
} }
}, },
created() {
this.creator = this.$store.state.userInfo.name
this.creatorUserId = this.$store.state.userInfo.userId
},
methods: { methods: {
handleSubmit() { handleSubmit() {
let listTemp = [] let listTemp = []
......
...@@ -66,10 +66,8 @@ export default { ...@@ -66,10 +66,8 @@ export default {
data() { data() {
return { return {
entity: { entity: {
creator: parseInt( creator:"",
JSON.parse(sessionStorage.getItem('userInfo')).userId creatorUserId: 0
),
creatorUserId: JSON.parse(sessionStorage.getItem('userInfo')).userId
}, },
conditions: { conditions: {
storeId: { op: 'Equal', value: null }, storeId: { op: 'Equal', value: null },
...@@ -166,6 +164,10 @@ export default { ...@@ -166,6 +164,10 @@ export default {
} }
} }
}, },
created() {
this.creator = this.$store.state.userInfo.name
this.creatorUserId = this.$store.state.userInfo.userId
},
methods: { methods: {
handleSubmit() { handleSubmit() {
let listTemp = [] let listTemp = []
......
...@@ -66,10 +66,8 @@ export default { ...@@ -66,10 +66,8 @@ export default {
data() { data() {
return { return {
entity: { entity: {
creator: parseInt( creator: '',
JSON.parse(sessionStorage.getItem('userInfo')).userId creatorUserId: 0
),
creatorUserId: JSON.parse(sessionStorage.getItem('userInfo')).userId
}, },
conditions: { conditions: {
storeId: { op: 'Equal', value: null }, storeId: { op: 'Equal', value: null },
...@@ -167,6 +165,10 @@ export default { ...@@ -167,6 +165,10 @@ export default {
} }
} }
}, },
created() {
this.creator = this.$store.state.userInfo.name
this.creatorUserId = this.$store.state.userInfo.userId
},
methods: { methods: {
handleSubmit() { handleSubmit() {
let listTemp = [] let listTemp = []
......
This diff is collapsed.
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<h3 class="zh-title">产品结构</h3> <h3 class="zh-title">产品结构</h3>
<div class="zh-box" > <div class="zh-box" >
<Input search placeholder="请输入查询条件" v-model="treeInputSearch" /> <Input search placeholder="请输入查询条件" v-model="treeInputSearch" />
<Tree :data="searchList" :style="{height:(treeHeight-95)+'px'}" style="overflow:auto;width:215px;" @on-select-change="selectTreeNode"></Tree> <Tree :data="searchList" :style="{height:(treeHeight-115)+'px'}" style="overflow:auto;width:215px;" @on-select-change="selectTreeNode"></Tree>
</div> </div>
</div> </div>
</Sider> </Sider>
...@@ -217,21 +217,21 @@ export default { ...@@ -217,21 +217,21 @@ export default {
} }
}, },
created() { created() {
this.treeHeight = window.innerHeight - 100 this.treeHeight = window.innerHeight - 150
}, },
async fetch({ store, params }) { async fetch({ store, params }) {
await store.dispatch('loadDictionary') // 加载数据字典 await store.dispatch('loadDictionary') // 加载数据字典
}, },
mounted() { mounted() {
this.initTree() this.initTree()
this.tableHeight = window.innerHeight - 160 this.tableHeight = window.innerHeight - 220
this.$refs.CustomTable.getTableHeight(this.tableHeight) this.$refs.CustomTable.getTableHeight(this.tableHeight)
window.onresize = () => { window.onresize = () => {
///浏览器窗口大小变化 ///浏览器窗口大小变化
return (() => { return (() => {
window.screenHeight = window.innerHeight window.screenHeight = window.innerHeight
this.treeHeight = window.screenHeight - 100 this.treeHeight = window.screenHeight - 150
this.tableHeight = window.screenHeight - 160 this.tableHeight = window.screenHeight - 220
this.$refs.CustomTable.getTableHeight(this.tableHeight) this.$refs.CustomTable.getTableHeight(this.tableHeight)
})() })()
} }
......
This diff is collapsed.
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
:data="data2" :data="data2"
highlight-row highlight-row
highlight-current-row highlight-current-row
:height="this.tbHeight" :height="tbHeight"
border border
class="tableCommon" class="tableCommon"
></Table> ></Table>
...@@ -335,7 +335,7 @@ export default { ...@@ -335,7 +335,7 @@ export default {
}, },
created(){ created(){
this.loadchangelist(); this.loadchangelist();
this.tbHeight = window.innerHeight - 175 this.tbHeight = window.innerHeight - 300
}, },
methods:{ methods:{
// 分页 // 分页
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<Tree <Tree
:data="searchList" :data="searchList"
:style="{height:(treeHeight-95)+'px'}" :style="{height:(treeHeight-115)+'px'}"
style="overflow:auto;width:215px;" style="overflow:auto;width:215px;"
@on-select-change="selectTreeNode" @on-select-change="selectTreeNode"
></Tree> ></Tree>
...@@ -422,8 +422,8 @@ export default { ...@@ -422,8 +422,8 @@ export default {
} }
}, },
created() { created() {
this.treeHeight = window.innerHeight - 100 this.treeHeight = window.innerHeight - 150
this.tableHeight = window.innerHeight - 190 this.tableHeight = window.innerHeight - 220
this.loaddata() this.loaddata()
this.getapprovalStatusdata() this.getapprovalStatusdata()
}, },
...@@ -435,8 +435,8 @@ export default { ...@@ -435,8 +435,8 @@ export default {
window.onresize = () => { window.onresize = () => {
///浏览器窗口大小变化 ///浏览器窗口大小变化
return (() => { return (() => {
this.treeHeight = window.innerHeight - 100 this.treeHeight = window.innerHeight - 150
this.tableHeight = window.innerHeight - 190 this.tableHeight = window.innerHeight - 220
})() })()
} }
}, },
...@@ -974,7 +974,7 @@ export default { ...@@ -974,7 +974,7 @@ export default {
} }
this.$refs.routingchangeorder.flag = 0 this.$refs.routingchangeorder.flag = 0
this.$refs.routingchangeorder.routing_header_Id = this.headerSelected.id this.$refs.routingchangeorder.routing_header_Id = this.headerSelected.id
var userId = JSON.parse(sessionStorage.getItem('userInfo')).userId var userId = this.$store.state.userInfo.userId
let parma = { let parma = {
Id: userId Id: userId
} }
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<div class="zh-box"> <div class="zh-box">
<Input search placeholder="请输入查询条件" clearable v-model="treeInputSearch" /> <Input search placeholder="请输入查询条件" clearable v-model="treeInputSearch" />
<Tree :data="searchList" @on-select-change="selectTreeNode" <Tree :data="searchList" @on-select-change="selectTreeNode"
:style="{height:(treeHeight-95)+'px'}" :style="{height:(treeHeight-115)+'px'}"
style="overflow:auto;width:215px;" style="overflow:auto;width:215px;"
></Tree> ></Tree>
</div> </div>
...@@ -240,8 +240,8 @@ export default { ...@@ -240,8 +240,8 @@ export default {
created() { created() {
this.laodaction() this.laodaction()
this.laodactiontype() this.laodactiontype()
this.tbHeight = window.innerHeight - 185 this.tbHeight = window.innerHeight - 220
this.treeHeight = window.innerHeight - 100 this.treeHeight = window.innerHeight - 140
}, },
methods: { methods: {
......
...@@ -611,12 +611,12 @@ export default { ...@@ -611,12 +611,12 @@ export default {
}, },
created(){ created(){
this.loadProduct() this.loadProduct()
this.divHeihgt= window.innerHeight - 100+"px"; this.divHeihgt= window.innerHeight - 130+"px";
}, },
mounted() { mounted() {
window.onresize = () => { window.onresize = () => {
return (() => { return (() => {
this.divHeihgt = window.innerHeight - 100+"px"; this.divHeihgt = window.innerHeight - 130+"px";
})() })()
} }
}, },
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<Tree <Tree
:data="searchList" :data="searchList"
:style="{height:(treeHeight-95)+'px'}" :style="{height:(treeHeight-115)+'px'}"
style="overflow:auto;width:215px;" style="overflow:auto;width:215px;"
@on-select-change="selectTreeNode" @on-select-change="selectTreeNode"
></Tree> ></Tree>
...@@ -21,7 +21,8 @@ ...@@ -21,7 +21,8 @@
<Input <Input
search search
enter-button enter-button
class="w240 mr10 fl" class=" mr10 fl"
style="width:240px"
v-model="searchIterms" v-model="searchIterms"
placeholder="请输入编号、名称" placeholder="请输入编号、名称"
@on-search="easySearch" @on-search="easySearch"
...@@ -407,8 +408,8 @@ export default { ...@@ -407,8 +408,8 @@ export default {
} }
}, },
created() { created() {
this.treeHeight = window.innerHeight - 100 this.treeHeight = window.innerHeight - 140
this.tableHeight = window.innerHeight - 190 this.tableHeight = window.innerHeight - 230
this.loaddata() this.loaddata()
this.getapprovalStatusdata() this.getapprovalStatusdata()
}, },
...@@ -420,8 +421,8 @@ export default { ...@@ -420,8 +421,8 @@ export default {
window.onresize = () => { window.onresize = () => {
///浏览器窗口大小变化 ///浏览器窗口大小变化
return (() => { return (() => {
this.treeHeight = window.innerHeight - 100 this.treeHeight = window.innerHeight - 140
this.tableHeight = window.innerHeight - 190 this.tableHeight = window.innerHeight - 230
})() })()
} }
}, },
...@@ -934,7 +935,7 @@ export default { ...@@ -934,7 +935,7 @@ export default {
} }
this.$refs.routingchangeorder.flag = 0 this.$refs.routingchangeorder.flag = 0
this.$refs.routingchangeorder.routing_header_Id = this.headerSelected.id this.$refs.routingchangeorder.routing_header_Id = this.headerSelected.id
var userId = JSON.parse(sessionStorage.getItem('userInfo')).userId var userId =this.$store.state.userInfo.userId
let parma = { let parma = {
Id: userId Id: userId
} }
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<Tree <Tree
:data="searchList" :data="searchList"
:style="{height:(treeHeight-95)+'px'}" :style="{height:(treeHeight-115)+'px'}"
style="overflow:auto;width:215px;" style="overflow:auto;width:215px;"
@on-select-change="selectTreeNode" @on-select-change="selectTreeNode"
></Tree> ></Tree>
...@@ -30,7 +30,8 @@ ...@@ -30,7 +30,8 @@
<Input <Input
search search
enter-button enter-button
class="w240 mr10 fl" class=" mr10 fl"
style="width:240px"
v-model="searchIterms" v-model="searchIterms"
placeholder="请输入订单编号" placeholder="请输入订单编号"
@on-search="easySearch" @on-search="easySearch"
...@@ -692,9 +693,15 @@ export default { ...@@ -692,9 +693,15 @@ export default {
} }
}, },
created() { created() {
<<<<<<< HEAD
this.treeHeight = window.innerHeight - 100 this.treeHeight = window.innerHeight - 100
this.tableHeight = window.innerHeight - 240 this.tableHeight = window.innerHeight - 240
this.newColumn = this.historycolumn; this.newColumn = this.historycolumn;
=======
this.treeHeight = window.innerHeight - 140
this.tableHeight = window.innerHeight - 230
this.newColumn = this.historycolumn
>>>>>>> 031cff9011a771c8d2267c38bbf2503998d55b60
this.column = this.newColumn this.column = this.newColumn
this.loaddata('') this.loaddata('')
}, },
...@@ -707,8 +714,8 @@ export default { ...@@ -707,8 +714,8 @@ export default {
///浏览器窗口大小变化 ///浏览器窗口大小变化
return (() => { return (() => {
window.screenHeight = window.innerHeight window.screenHeight = window.innerHeight
this.treeHeight = window.screenHeight - 100 this.treeHeight = window.screenHeight - 140
this.tableHeight = window.screenHeight - 240 this.tableHeight = window.screenHeight - 230
})() })()
} }
}, },
...@@ -1796,7 +1803,7 @@ export default { ...@@ -1796,7 +1803,7 @@ export default {
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.order-quotation { .order-quotation {
height: 100vh !important; // height: 100vh !important;
} }
.table { .table {
margin-top: 15px; margin-top: 15px;
......
...@@ -259,7 +259,7 @@ export default { ...@@ -259,7 +259,7 @@ export default {
}, },
created() { created() {
this.laoedPage() this.laoedPage()
this.tbHeight = window.innerHeight - 210 this.tbHeight = window.innerHeight - 280
}, },
async fetch({ store, params }) { async fetch({ store, params }) {
await store.dispatch('loadDictionary') // 加载数据字典 await store.dispatch('loadDictionary') // 加载数据字典
...@@ -365,12 +365,10 @@ export default { ...@@ -365,12 +365,10 @@ export default {
params.SkipCount = params.SkipCount || 0 params.SkipCount = params.SkipCount || 0
params.MaxResultCount = params.MaxResultCount || 10 params.MaxResultCount = params.MaxResultCount || 10
let url = let url =`${designUrl}/orderrouting/getwaitmaterialorderlist?` + QS.stringify(params)
`${designUrl}/orderrouting/getwaitmaterialorderlist?` +QS.stringify(params)
service.get(`${url}`).then((res) => { service.get(`${url}`).then((res) => {
this.mDatas = res.data.result.items this.mDatas = res.result.items
this.search.total = res.data.result.totalCount this.search.total = res.result.totalCount
}) })
}, },
columnChange(item, i) { columnChange(item, i) {
...@@ -396,6 +394,7 @@ export default { ...@@ -396,6 +394,7 @@ export default {
let id = data.materialbillId let id = data.materialbillId
let url02 = `${designUrl}/ordermaterial/getbyid?id=` + id let url02 = `${designUrl}/ordermaterial/getbyid?id=` + id
service.get(`${url02}`).then((res) => { service.get(`${url02}`).then((res) => {
console.log(res)
this.orderMaterial = res.data.result.orderMaterialList this.orderMaterial = res.data.result.orderMaterialList
this.rowData = res.data this.rowData = res.data
}) })
...@@ -419,7 +418,7 @@ export default { ...@@ -419,7 +418,7 @@ export default {
// 高级查询 // 高级查询
complexSearch() { complexSearch() {
this.orderSearchForm.SkipCount=0; this.orderSearchForm.SkipCount=0;
this.laoedPage() this.laoedPage()
this.close() this.close()
} }
}, },
...@@ -428,7 +427,7 @@ this.laoedPage() ...@@ -428,7 +427,7 @@ this.laoedPage()
window.onresize = () => { window.onresize = () => {
///浏览器窗口大小变化 ///浏览器窗口大小变化
return (() => { return (() => {
this.tbHeight = window.innerHeight - 210 this.tbHeight = window.innerHeight - 280
})() })()
} }
} }
......
...@@ -261,7 +261,7 @@ export default { ...@@ -261,7 +261,7 @@ export default {
}, },
created() { created() {
this.laoed() this.laoed()
this.tbHeight = window.innerHeight - 210 this.tbHeight = window.innerHeight - 280
}, },
async fetch({ store, params }) { async fetch({ store, params }) {
await store.dispatch('loadDictionary') // 加载数据字典 await store.dispatch('loadDictionary') // 加载数据字典
...@@ -369,8 +369,12 @@ export default { ...@@ -369,8 +369,12 @@ export default {
'&MaxResultCount=' + '&MaxResultCount=' +
pageData.MaxResultCount pageData.MaxResultCount
service.get(`${url}`).then((res) => { service.get(`${url}`).then((res) => {
this.mDatas = res.data.result.items if(res.success){
this.search.total = res.data.result.totalCount this.mDatas = res.result.items
this.search.total = res.result.totalCount
}else{
this.$Message.error("查询失败")
}
}) })
}, },
columnChange(item, i) { columnChange(item, i) {
...@@ -438,7 +442,7 @@ export default { ...@@ -438,7 +442,7 @@ export default {
///浏览器窗口大小变化 ///浏览器窗口大小变化
return (() => { return (() => {
// window.screenHeight = window.innerHeight // window.screenHeight = window.innerHeight
this.tbHeight = window.innerHeight - 210 this.tbHeight = window.innerHeight - 280
})() })()
} }
} }
......
...@@ -20,7 +20,7 @@ export default { ...@@ -20,7 +20,7 @@ export default {
} }
}, },
created() { created() {
this.tabHeight = window.innerHeight - 150 this.tabHeight = window.innerHeight - 260
}, },
async fetch({ store, params }) { async fetch({ store, params }) {
await store.dispatch('loadDictionary') // 加载数据字典 await store.dispatch('loadDictionary') // 加载数据字典
...@@ -30,7 +30,7 @@ export default { ...@@ -30,7 +30,7 @@ export default {
window.onresize = () => { window.onresize = () => {
///浏览器窗口大小变化 ///浏览器窗口大小变化
return (() => { return (() => {
this.tabHeight = window.innerHeight - 150 this.tabHeight = window.innerHeight - 260
})() })()
} }
}, },
......
...@@ -296,7 +296,7 @@ content="查看"; ...@@ -296,7 +296,7 @@ content="查看";
}, },
created(){ created(){
this.laode(); this.laode();
this.tbHeight = window.innerHeight - 160 this.tbHeight = window.innerHeight - 190
}, },
async fetch({ store, params }) { async fetch({ store, params }) {
await store.dispatch('loadDictionary') // 加载数据字典 await store.dispatch('loadDictionary') // 加载数据字典
...@@ -406,7 +406,7 @@ content="查看"; ...@@ -406,7 +406,7 @@ content="查看";
///浏览器窗口大小变化 ///浏览器窗口大小变化
return (() => { return (() => {
window.screenHeight = window.innerHeight window.screenHeight = window.innerHeight
this.tbHeight = window.screenHeight - 160 this.tbHeight = window.screenHeight - 190
})() })()
} }
}, },
......
<template> <template>
<div class="end-issued"> <div class="end-issued">
<DataGrid :columns="columns" ref="grid" :action="action" :conditions="easySearch" :high="false"></DataGrid> <DataGrid :columns="columns" ref="grid" :action="action" :conditions="easySearch" :high="false" :height="tdHeight"></DataGrid>
<Modal v-model="detailModal" title="查看合格证" footer-hide width="1000" :mask-closable="false"> <Modal v-model="detailModal" title="查看合格证" footer-hide width="1000" :mask-closable="false">
<Detail @on-close="cancel" @on-ok="addOk" :eid="curId" /> <Detail @on-close="cancel" @on-ok="addOk" :eid="curId" />
</Modal> </Modal>
...@@ -21,6 +21,7 @@ export default { ...@@ -21,6 +21,7 @@ export default {
detailModal: false, detailModal: false,
curId: 0, curId: 0,
modalInfo: false, modalInfo: false,
tdHeight:'',
rules: { rules: {
approveUser: [{ required: true, message: '必填', trigger: 'blur' }] approveUser: [{ required: true, message: '必填', trigger: 'blur' }]
}, },
...@@ -130,8 +131,9 @@ export default { ...@@ -130,8 +131,9 @@ export default {
} }
} }
}, },
mounted() { mounted() {},
console.log(this) created() {
this.tdHeight = window.innerHeight - 260
}, },
methods: { methods: {
addOk() { addOk() {
......
<template> <template>
<div class="wait-opened"> <div class="wait-opened">
<DataGrid :columns="columns" ref="grid" :action="action" :conditions="easySearch" :high="false"></DataGrid> <DataGrid :columns="columns" ref="grid" :action="action" :conditions="easySearch" :high="false" :height="tdHeight" ></DataGrid>
<Modal v-model="addModal" title="开合格证" fullscreen footer-hide :mask-closable="false"> <Modal v-model="addModal" title="开合格证" fullscreen footer-hide :mask-closable="false">
<Add @on-close="cancel" @on-ok="addOk" :eid="curId" ref="addFile" /> <Add @on-close="cancel" @on-ok="addOk" :eid="curId" ref="addFile" />
</Modal> </Modal>
...@@ -21,6 +21,7 @@ export default { ...@@ -21,6 +21,7 @@ export default {
checkLists: [], checkLists: [],
addModal: false, addModal: false,
curId: null, curId: null,
tdHeight:'',
columns: [ columns: [
{ key: 'id', title: this.l('id'), hide: true, align: 'left' }, { key: 'id', title: this.l('id'), hide: true, align: 'left' },
{ {
...@@ -127,8 +128,9 @@ export default { ...@@ -127,8 +128,9 @@ export default {
async fetch({ store, params }) { async fetch({ store, params }) {
await store.dispatch('loadDictionary') // 加载数据字典 await store.dispatch('loadDictionary') // 加载数据字典
}, },
mounted() { mounted() {},
console.log(this) created() {
this.tdHeight = window.innerHeight - 260
}, },
methods: { methods: {
addOk() { addOk() {
......
...@@ -193,13 +193,13 @@ export default { ...@@ -193,13 +193,13 @@ export default {
<style scoped> <style scoped>
.menuBg{ .menuBg{
background: none; background: none;
height: 550px; height: 630px;
} }
.menuBg .ivu-menu-item{ .menuBg .ivu-menu-item{
color: #000; color: #000;
} }
.revieweBox{ .revieweBox{
padding: 0 0 0 60px; padding: 0 0 0 60px;
height: 550px; height: 630px;
} }
</style> </style>
\ No newline at end of file
...@@ -10,9 +10,9 @@ ...@@ -10,9 +10,9 @@
</div> </div>
<Button type="primary" class="title_btn" @click='searchModel'>高级查询</Button> <Button type="primary" class="title_btn" @click='searchModel'>高级查询</Button>
</div> </div>
<div class="tableBox mb10"> <div class="tableBox mb10" :style="{height:tbHeight}">
<!-- :height="tbHeight" -->
<div class="table"> <div class="table">
<div v-if="listTask.length==0" class="wu_data">暂无数据</div>
<Card class="card" v-for="(item,index) in listTask" <Card class="card" v-for="(item,index) in listTask"
:key="index"> :key="index">
<h3 slot="title"> <h3 slot="title">
...@@ -227,6 +227,7 @@ export default { ...@@ -227,6 +227,7 @@ export default {
data1: [], data1: [],
noData: false, noData: false,
selectdata: [], selectdata: [],
tbHeight:"550px",
itemData:{},//追溯传的数据 itemData:{},//追溯传的数据
actValue:1,//追溯传的选中meniu actValue:1,//追溯传的选中meniu
orderSearchForm: { //高级搜索字段内容 orderSearchForm: { //高级搜索字段内容
...@@ -264,7 +265,7 @@ export default { ...@@ -264,7 +265,7 @@ export default {
}, },
created(){ created(){
this.laode(); this.laode();
// this.tbHeight = window.innerHeight - 500 this.tbHeight = window.innerHeight - 208 + 'px'
}, },
async fetch({ store, params }) { async fetch({ store, params }) {
await store.dispatch('loadDictionary') // 加载数据字典 await store.dispatch('loadDictionary') // 加载数据字典
...@@ -277,8 +278,9 @@ export default { ...@@ -277,8 +278,9 @@ export default {
"MaxResultCount": 20, "MaxResultCount": 20,
"SkipCount": 1, "SkipCount": 1,
}).then(res => { }).then(res => {
this.listTask = res.data.result.items // console.log(res)
this.search.total = res.data.result.totalCount this.listTask = res.result.items
this.search.total = res.result.totalCount
}); });
}, },
reviewFn(item){ //追溯 reviewFn(item){ //追溯
...@@ -381,9 +383,9 @@ export default { ...@@ -381,9 +383,9 @@ export default {
let url = `${PlanUrl}/orderexecute/pageddatamesorders`; let url = `${PlanUrl}/orderexecute/pageddatamesorders`;
// console.log(parmes) // console.log(parmes)
service.post(`${url}`,parmes).then(res => { service.post(`${url}`,parmes).then(res => {
console.log(res) // console.log(res)
this.listTask = res.data.result.items this.listTask = res.result.items
this.search.total = res.data.result.totalCount this.search.total = res.result.totalCount
if(this.search.total == 0){ if(this.search.total == 0){
this.noData = true this.noData = true
}else{ }else{
...@@ -405,16 +407,14 @@ export default { ...@@ -405,16 +407,14 @@ export default {
return arry return arry
}, },
}, },
// mounted() { mounted() {
// window.onresize = () => { window.onresize = () => {
// ///浏览器窗口大小变化 ///浏览器窗口大小变化
// return (() => { return (() => {
// window.screenHeight = window.innerHeight this.tbHeight = window.innerHeight - 208 + 'px'
// this.tbHeight = window.screenHeight - 500 })()
// console.log(this.tbHeight) }
// })() },
// }
// },
} }
</script> </script>
<style scoped> <style scoped>
...@@ -434,7 +434,7 @@ ul,li{ ...@@ -434,7 +434,7 @@ ul,li{
} }
.tableBox{ .tableBox{
/* height: 582px; 笔记本高度*/ /* height: 582px; 笔记本高度*/
height: 778px; /* height: 778px; */
border: #ddd solid 1px; border: #ddd solid 1px;
overflow-y: scroll; overflow-y: scroll;
overflow-x: hidden; overflow-x: hidden;
...@@ -451,9 +451,13 @@ ul,li{ ...@@ -451,9 +451,13 @@ ul,li{
line-height: 800px; line-height: 800px;
} }
.card{ .card{
width: 388px; width: 375px;
margin: 10px 0 10px 20px; margin: 10px 0 10px 20px;
} }
.wu_data{
margin: 200px auto;
font-size: 18px;
}
/* .card_body01{ /* .card_body01{
margin: 0 0 10px 0; margin: 0 0 10px 0;
} */ } */
...@@ -468,6 +472,6 @@ ul,li{ ...@@ -468,6 +472,6 @@ ul,li{
border-top: 1px solid #ccc; border-top: 1px solid #ccc;
display: block; display: block;
padding: 10px 0 0 0; padding: 10px 0 0 0;
color: #249E91; color: #0099FF;
} }
</style> </style>
\ No newline at end of file
...@@ -278,7 +278,7 @@ export default { ...@@ -278,7 +278,7 @@ export default {
}, },
created(){ created(){
this.laode(); this.laode();
this.tbHeight = window.innerHeight - 160 this.tbHeight = window.innerHeight - 200
}, },
async fetch({ store, params }) { async fetch({ store, params }) {
await store.dispatch('loadDictionary') // 加载数据字典 await store.dispatch('loadDictionary') // 加载数据字典
...@@ -292,8 +292,8 @@ export default { ...@@ -292,8 +292,8 @@ export default {
"skipCount":0, "skipCount":0,
"maxResultCount": 10 "maxResultCount": 10
}).then(res => { }).then(res => {
this.mDatas = res.data.result.items this.mDatas = res.result.items
this.search.total = res.data.result.totalCount this.search.total = res.result.totalCount
}); });
}, },
// 分页 // 分页
...@@ -389,7 +389,7 @@ export default { ...@@ -389,7 +389,7 @@ export default {
///浏览器窗口大小变化 ///浏览器窗口大小变化
return (() => { return (() => {
window.screenHeight = window.innerHeight window.screenHeight = window.innerHeight
this.tbHeight = window.screenHeight - 160 this.tbHeight = window.screenHeight - 200
})() })()
} }
}, },
......
...@@ -121,9 +121,7 @@ export default { ...@@ -121,9 +121,7 @@ export default {
data() { data() {
return { return {
entity: { entity: {
creator: parseInt( creator:this.$store.state.userInfo.userId,
JSON.parse(sessionStorage.getItem('userInfo')).userId
),
thickness: null, thickness: null,
inventory: null inventory: null
}, },
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<StoreHouseLeft @storeIds="storeIds" :type='1'></StoreHouseLeft> <StoreHouseLeft @storeIds="storeIds" :type='1'></StoreHouseLeft>
</Sider> </Sider>
<Content class="content"> <Content class="content">
<DataGrid :columns="columns" ref="grid" :action="action" :conditions="easySearch"> <DataGrid :columns="columns" ref="grid" :action="action" :conditions="easySearch" :height="tdHeight">
<template slot="searchForm"> <template slot="searchForm">
<Search /> <Search />
</template> </template>
...@@ -82,6 +82,7 @@ export default { ...@@ -82,6 +82,7 @@ export default {
deletelModal: false, deletelModal: false,
setNumModal: false, setNumModal: false,
inventoryModal: false, inventoryModal: false,
tdHeight: "",
curId: 0, curId: 0,
easySearch: { easySearch: {
keys: { op: 'code,name', value: '', default: true }, keys: { op: 'code,name', value: '', default: true },
...@@ -256,7 +257,7 @@ export default { ...@@ -256,7 +257,7 @@ export default {
}, },
mounted() {}, mounted() {},
created() { created() {
this.tdHeight = window.innerHeight - 260
}, },
methods: { methods: {
addOk() { addOk() {
......
...@@ -66,10 +66,8 @@ export default { ...@@ -66,10 +66,8 @@ export default {
data() { data() {
return { return {
entity: { entity: {
creator: parseInt( creator: '',
JSON.parse(sessionStorage.getItem('userInfo')).userId creatorUserId: 0
),
creatorUserId: JSON.parse(sessionStorage.getItem('userInfo')).userId
}, },
rules: { rules: {
storeTitle: [{ required: true, message: '请选择库位', trigger: 'blur' }] storeTitle: [{ required: true, message: '请选择库位', trigger: 'blur' }]
...@@ -174,6 +172,10 @@ export default { ...@@ -174,6 +172,10 @@ export default {
} }
} }
}, },
created() {
this.creator = this.$store.state.userInfo.name
this.creatorUserId = this.$store.state.userInfo.userId
},
methods: { methods: {
handleSubmit() { handleSubmit() {
let listTemp = [] let listTemp = []
......
...@@ -131,7 +131,7 @@ export default { ...@@ -131,7 +131,7 @@ export default {
entity: { entity: {
totalInventory: null, totalInventory: null,
unitPrice: null, unitPrice: null,
creator: parseInt(JSON.parse(sessionStorage.getItem('userInfo')).userId) creator:this.$store.state.userInfo.userId,
}, },
rules: { rules: {
storeTitle: [ storeTitle: [
......
This diff is collapsed.
...@@ -66,10 +66,8 @@ export default { ...@@ -66,10 +66,8 @@ export default {
data() { data() {
return { return {
entity: { entity: {
creator: parseInt( creator:'',
JSON.parse(sessionStorage.getItem('userInfo')).userId creatorUserId: 0
),
creatorUserId: JSON.parse(sessionStorage.getItem('userInfo')).userId
}, },
conditions: { conditions: {
storeId: { op: 'Equal', value: null }, storeId: { op: 'Equal', value: null },
...@@ -166,6 +164,10 @@ export default { ...@@ -166,6 +164,10 @@ export default {
} }
} }
}, },
created() {
this.creator = this.$store.state.userInfo.name
this.creatorUserId = this.$store.state.userInfo.userId
},
methods: { methods: {
handleSubmit() { handleSubmit() {
let listTemp = [] let listTemp = []
......
...@@ -105,9 +105,7 @@ export default { ...@@ -105,9 +105,7 @@ export default {
data() { data() {
return { return {
entity: { entity: {
creator: parseInt( creator:this.$store.state.userInfo.userId,
JSON.parse(sessionStorage.getItem('userInfo')).userId
),
inCount: null, inCount: null,
quantityCount: null, quantityCount: null,
price: null price: null
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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