Commit 90462a65 authored by 仇晓婷's avatar 仇晓婷

Merge branch 'master' of http://git.mes123.com/zhouyx/mes-ui into qin

parents e215613d 18c1339a
...@@ -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 image diff could not be displayed because it is too large. You can view the blob instead.
...@@ -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" >
<Tree <Tree
ref="tree" ref="tree"
:data="tree" :data="tree"
......
...@@ -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="ad">
<img src="@/assets/images/login/ad.png" />
</div>
<div class="login">
<div class="page-account-top"> <div class="page-account-top">
<div class="page-account-top-logo"> <div class="page-account-top-logo tc">
<img src="@/assets/images/logo.png" alt="logo" /> <img src="@/assets/images/logo.png" alt="logo" />
</div> </div>
<div class="page-account-top-desc">SaaS MES 制造执行系统</div> <div class="page-account-top-desc tc">SaaS MES 制造执行系统</div>
</div> </div>
<h3 class="mb10">用户登陆</h3>
<Login @on-submit="oidc"> <Login @on-submit="oidc">
<UserName name="username" value="admin" /> <UserName name="username" value="admin" />
<Password name="password" value="admin" enter-to-submit /> <Password name="password" value="admin" enter-to-submit />
...@@ -19,15 +38,8 @@ ...@@ -19,15 +38,8 @@
</div> </div>
<Submit>{{ $t('page.login.submit') }}</Submit> <Submit>{{ $t('page.login.submit') }}</Submit>
</Login> </Login>
<div class="page-account-other">
<!-- <span>{{ $t('page.login.other') }}</span>
<img src="@/assets/svg/icon-social-wechat.svg" alt="wechat" />
<img src="@/assets/svg/icon-social-qq.svg" alt="qq" />
<img src="@/assets/svg/icon-social-weibo.svg" alt="weibo" /> -->
<!-- <router-link class="page-account-register" to="./register">{{ $t('page.login.signup') }}</router-link> -->
</div> </div>
</div> </div>
<!-- <i-copyright /> -->
</div> </div>
</template> </template>
<script> <script>
...@@ -55,6 +67,7 @@ export default { ...@@ -55,6 +67,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 +119,56 @@ export default { ...@@ -106,3 +119,56 @@ export default {
} }
}; };
</script> </script>
<style lang="less">
@jianju:50px;
.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.png");
}
.main {
position: absolute;
z-index: 55;
top: @jianju;
left: @jianju;
right: @jianju;
bottom: @jianju;
background: rgba(0, 0, 0, 0.35);
display: flex;
.ad{
flex: 1;
text-align: center;
img{margin-top: 400px;}
}
.login {
background-color: white;
width: 600px;
padding: 100px 50px;
}
}
}
</style>
\ No newline at end of file
...@@ -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">
......
...@@ -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)
})() })()
} }
......
<template> <template>
<div class> <div class="vtr">
<div class="contentRight"> <div class="contentRight">
<div class="form_title"> <div class="form_title">
<Input v-model="value1" placeholder="请输入技术协调单编号" clearable style="width: 240px" /> <Input v-model="value1" placeholder="请输入技术协调单编号" clearable style="width: 240px" />
...@@ -36,7 +36,13 @@ ...@@ -36,7 +36,13 @@
<Form :model="formdata" :label-width="150" :rules="ruleValidate" inline> <Form :model="formdata" :label-width="150" :rules="ruleValidate" inline>
<Row> <Row>
<FormItem label="技术协调单编号"> <FormItem label="技术协调单编号">
<Input v-model="formdata.technical_coordination_code" placeholder size="large" style="width:240px" readonly></Input> <Input
v-model="formdata.technical_coordination_code"
placeholder
size="large"
style="width:240px"
readonly
></Input>
</FormItem> </FormItem>
<FormItem label="任务号"> <FormItem label="任务号">
<Input v-model="formdata.taskCode" placeholder="输入任务号" size="large" style="width:240px"></Input> <Input v-model="formdata.taskCode" placeholder="输入任务号" size="large" style="width:240px"></Input>
...@@ -55,7 +61,12 @@ ...@@ -55,7 +61,12 @@
<Input v-model="formdata.drawing" placeholder="输入图号" size="large" style="width:240px"></Input> <Input v-model="formdata.drawing" placeholder="输入图号" size="large" style="width:240px"></Input>
</FormItem> </FormItem>
<FormItem label="产品名称"> <FormItem label="产品名称">
<Input v-model="formdata.product_name" placeholder="输入产品名称" size="large" style="width:240px"></Input> <Input
v-model="formdata.product_name"
placeholder="输入产品名称"
size="large"
style="width:240px"
></Input>
</FormItem> </FormItem>
</Row> </Row>
<!-- <Row> <!-- <Row>
...@@ -67,10 +78,15 @@ ...@@ -67,10 +78,15 @@
<FormItem label="在制品处理意见"> <FormItem label="在制品处理意见">
<textarea v-model="formdata.handling_suggestion" style="width: 600px"></textarea> <textarea v-model="formdata.handling_suggestion" style="width: 600px"></textarea>
</FormItem> </FormItem>
</Row> --> </Row>-->
<Row> <Row>
<FormItem label="产品标识"> <FormItem label="产品标识">
<Input v-model="formdata.product_mark" placeholder="输入产品标识" size="large" style="width:240px"></Input> <Input
v-model="formdata.product_mark"
placeholder="输入产品标识"
size="large"
style="width:240px"
></Input>
</FormItem> </FormItem>
</Row> </Row>
<Row> <Row>
...@@ -83,7 +99,7 @@ ...@@ -83,7 +99,7 @@
<Option value="是"></Option> <Option value="是"></Option>
<Option value="否"></Option> <Option value="否"></Option>
</Select> </Select>
</FormItem> --> </FormItem>-->
<!-- <Row> <!-- <Row>
<FormItem label="是否更改工艺文件"> <FormItem label="是否更改工艺文件">
<Select v-model="formdata.change_process_file" placeholder="请选择" style="width:225px;"> <Select v-model="formdata.change_process_file" placeholder="请选择" style="width:225px;">
...@@ -101,10 +117,16 @@ ...@@ -101,10 +117,16 @@
<Option value="否"></Option> <Option value="否"></Option>
</Select> </Select>
</FormItem> </FormItem>
</Row> --> </Row>-->
<Row> <Row>
<FormItem label="检验员"> <FormItem label="检验员">
<Input v-model="formdata.inspection_person_name" placeholder size="large" style="width:240px" readonly></Input> <Input
v-model="formdata.inspection_person_name"
placeholder
size="large"
style="width:240px"
readonly
></Input>
</FormItem> </FormItem>
<FormItem label="检验日期"> <FormItem label="检验日期">
<DatePicker <DatePicker
...@@ -135,11 +157,11 @@ ...@@ -135,11 +157,11 @@
</div> </div>
</template> </template>
<script> <script>
import service from '@/plugins/request' import service from "@/plugins/request";
import Department from '@/components/modalTree/department.vue' import Department from "@/components/modalTree/department.vue";
import Process from '@/components/orderOperator/process' import Process from "@/components/orderOperator/process";
import techSendReview from './techSendReview.vue' import techSendReview from "./techSendReview.vue";
import coordinate from './coordinate.vue' import coordinate from "./coordinate.vue";
export default { export default {
components: { components: {
Department, Department,
...@@ -154,20 +176,20 @@ export default { ...@@ -154,20 +176,20 @@ export default {
modalInfo: false, //校验送审弹框 modalInfo: false, //校验送审弹框
formExamine: {}, formExamine: {},
rules: { rules: {
approveUser: [{ required: true, message: '必填', trigger: 'blur' }] approveUser: [{ required: true, message: "必填", trigger: "blur" }]
}, },
technical_coordination_code: '', technical_coordination_code: "",
total: 0, total: 0,
page: 1, page: 1,
pageSize: 10, pageSize: 10,
flag: 0, flag: 0,
id: '', id: "",
data1: [], data1: [],
value1: '', value1: "",
editId: '', editId: "",
up_id: '', up_id: "",
treeData: [], //下拉表格树数据 treeData: [], //下拉表格树数据
title: '新增设备类型', title: "新增设备类型",
show: false, show: false,
// show2: false, // show2: false,
upweb: false, upweb: false,
...@@ -175,120 +197,120 @@ export default { ...@@ -175,120 +197,120 @@ export default {
selectModel02: false, selectModel02: false,
isedit0: false, isedit0: false,
showDeptTree: false, showDeptTree: false,
tbHeight: '', tbHeight: "",
seleId: 0, seleId: 0,
cityList: [], cityList: [],
isShow: true, isShow: true,
seldata: [], //父权限菜单树 seldata: [], //父权限菜单树
parent_name: '', //父权限名 parent_name: "", //父权限名
ruleValidate: { ruleValidate: {
equip_type_id: [ equip_type_id: [
{ {
required: true, required: true,
message: '设备类型编号不能为空!', message: "设备类型编号不能为空!",
trigger: 'blur' trigger: "blur"
} }
] ]
}, },
formdata: { formdata: {
technical_coordination_code: '', technical_coordination_code: "",
id:0, id: 0,
taskCode: '', taskCode: "",
quantity: 0, quantity: 0,
phase: '', phase: "",
drawing: '', drawing: "",
product_name: '', product_name: "",
product_mark: '', product_mark: "",
coordinate_content: '', coordinate_content: "",
coordinate_results: '', coordinate_results: "",
handling_suggestion: '', handling_suggestion: "",
change_design_file: '', change_design_file: "",
change_process_file: '', change_process_file: "",
compilation_temporary_process: '', compilation_temporary_process: "",
inspection_date: '', inspection_date: "",
inspection_person_name: '', inspection_person_name: "",
status: 0, status: 0,
note: '', note: "",
dispatch_id: 0, dispatch_id: 0,
execute_id: 0, execute_id: 0,
order_id: '' order_id: ""
}, },
sysdata: [ sysdata: [
{ {
value: '1', value: "1",
label: '粉末' label: "粉末"
}, },
{ {
value: '2', value: "2",
label: '基板' label: "基板"
}, },
{ {
value: '3', value: "3",
label: '刮刀' label: "刮刀"
} }
], ],
column2: [ column2: [
{ {
type: 'index', type: "index",
title: '序号', title: "序号",
width: '65', width: "65",
align: 'center' align: "center"
}, },
{ {
title: '技术协调单编号', title: "技术协调单编号",
key: 'technical_coordination_code', key: "technical_coordination_code",
align: 'center', align: "center",
width: '200' width: "200"
}, },
{ {
title: '任务号', title: "任务号",
key: 'taskCode', key: "taskCode",
align: 'center', align: "center",
width: '200' width: "200"
}, },
{ {
title: '数量', title: "数量",
key: 'quantity', key: "quantity",
align: 'center', align: "center",
width: '200' width: "200"
}, },
{ {
title: '阶段', title: "阶段",
key: 'phase', key: "phase",
align: 'center', align: "center",
width: '110' width: "110"
}, },
{ {
title: '图号', title: "图号",
key: 'drawing', key: "drawing",
align: 'center', align: "center",
width: '110' width: "110"
}, },
{ {
title: '产品名称', title: "产品名称",
key: 'product_name', key: "product_name",
align: 'center', align: "center",
width: '110' width: "110"
}, },
{ {
title: '产品标识', title: "产品标识",
key: 'product_mark', key: "product_mark",
align: 'center', align: "center",
width: '110' width: "110"
}, },
{ {
title: '状态', title: "状态",
key: 'status', key: "status",
align: 'center', align: "center",
width: 110, width: 110,
render: (h,params) => { render: (h, params) => {
return h('state', { return h("state", {
props: { props: {
code: 'unProduct.repairstatus', code: "unProduct.repairstatus",
type: 'text', type: "text",
value: params.row.status + '' value: params.row.status + ""
} }
}) });
// let statuse = params.row.status // let statuse = params.row.status
// let text = statuse == 1 ? '待送审' : (statuse==2? '审核中':(statuse==3? '通过':(statuse==4? '驳回':(statuse==5? '终止':'')))) // let text = statuse == 1 ? '待送审' : (statuse==2? '审核中':(statuse==3? '通过':(statuse==4? '驳回':(statuse==5? '终止':''))))
// return h('span',{},text) // return h('span',{},text)
...@@ -337,81 +359,82 @@ export default { ...@@ -337,81 +359,82 @@ export default {
// width: '110' // width: '110'
// }, // },
{ {
title: '操作', title: "操作",
key: 'id', key: "id",
align: 'center', align: "center",
width: '280', width: "280",
render: (h, params) => { render: (h, params) => {
let actions = [] let actions = [];
if (params.row.status == 3) { if (params.row.status == 3) {
actions.push( actions.push(
h( h(
'op', "op",
{ {
attrs: { attrs: {
oprate: 'detail' oprate: "detail"
}, },
on: { on: {
click: () => { click: () => {
// e.stopPropagation() // e.stopPropagation()
this.editRow1(params) this.editRow1(params);
} }
} }
}, },
'预览' "预览"
), )
)} );
if (params.row.status == 1 ||params.row.status == 4 ) { }
if (params.row.status == 1 || params.row.status == 4) {
actions.push( actions.push(
h( h(
'op', "op",
{ {
attrs: { attrs: {
oprate: 'detail' oprate: "detail"
}, },
on: { on: {
click: () => { click: () => {
// e.stopPropagation() // e.stopPropagation()
this.editRow(params) this.editRow(params);
} }
} }
}, },
'编辑' "编辑"
), )
)} );
return h('div', { class: 'action' }, actions) }
return h("div", { class: "action" }, actions);
} }
} }
], ],
data2: [], data2: [],
data3: [], data3: [],
userlist: [] userlist: []
} };
}, },
created() { created() {
this.tbHeight = window.innerHeight - 175;
this.tbHeight = window.innerHeight - 175
}, },
methods: { methods: {
// 分页 // 分页
pageChange(num) { pageChange(num) {
//console.log(num); //console.log(num);
this.page = num this.page = num;
this.loadchangelist() this.loadchangelist();
}, },
pageSizeChange(limit) { pageSizeChange(limit) {
//console.log(limit) //console.log(limit)
this.pageSize = limit this.pageSize = limit;
this.loadchangelist() this.loadchangelist();
}, },
//查询 //查询
searchData() { searchData() {
this.page = 1 this.page = 1;
this.pageSize = 10 this.pageSize = 10;
this.loadchangelist() this.loadchangelist();
}, },
loadchangelist() { loadchangelist() {
let url = `${designUrl}/technicalcoordination/getpaged` let url = `${designUrl}/technicalcoordination/getpaged`;
service service
.get(`${url}`, { .get(`${url}`, {
...@@ -422,185 +445,190 @@ export default { ...@@ -422,185 +445,190 @@ export default {
pageSize: this.pageSize pageSize: this.pageSize
} }
}) })
.then((res) => { .then(res => {
this.data2 = res.data.result.items this.data2 = res.data.result.items;
this.total = res.data.result.totalCount this.total = res.data.result.totalCount;
}) });
}, },
//新增库位 //新增库位
addData() { addData() {
this.submitShow = true this.submitShow = true;
this.title = '生产过程技术协调单' this.title = "生产过程技术协调单";
this.show = true this.show = true;
if(this.formdata.dispatch_id==0) if (this.formdata.dispatch_id == 0) {
{ this.formdata.taskCode = "";
this.formdata.taskCode = '' this.formdata.drawing = "";
this.formdata.drawing = '' this.formdata.product_name = "";
this.formdata.product_name = '' }
} this.formdata.technical_coordination_code = "";
this.formdata.technical_coordination_code = '' this.formdata.id = "";
this.formdata.id=''; this.formdata.quantity = 0;
this.formdata.quantity = 0 this.formdata.phase = "";
this.formdata.phase = ''
this.formdata.product_mark = '' this.formdata.product_mark = "";
this.formdata.coordinate_content = '' this.formdata.coordinate_content = "";
this.formdata.coordinate_results = '' this.formdata.coordinate_results = "";
this.formdata.handling_suggestion = '' this.formdata.handling_suggestion = "";
this.formdata.change_design_file = '' this.formdata.change_design_file = "";
this.formdata.change_process_file = '' this.formdata.change_process_file = "";
this.formdata.compilation_temporary_process = '' this.formdata.compilation_temporary_process = "";
this.formdata.inspection_date = '' this.formdata.inspection_date = "";
this.formdata.inspection_person_name = localStorage.getItem('userName') this.formdata.inspection_person_name = localStorage.getItem("userName");
this.formdata.status = 1 this.formdata.status = 1;
this.formdata.note = '' this.formdata.note = "";
var url1 = `${designUrl}/routingheader/GetCodeByType?code=JJXTD` var url1 = `${designUrl}/routingheader/GetCodeByType?code=JJXTD`;
service.get(`${url1}`).then((response) => { service.get(`${url1}`).then(response => {
this.formdata.technical_coordination_code = response.data.result this.formdata.technical_coordination_code = response.data.result;
}) });
}, },
handleChange1(date) { handleChange1(date) {
this.formdata.inspection_date = date this.formdata.inspection_date = date;
}, },
// 添加/编辑 弹框的保存 // 添加/编辑 弹框的保存
saveOk() { saveOk() {
var url = `${designUrl}/technicalcoordination/createorupdate` var url = `${designUrl}/technicalcoordination/createorupdate`;
service service
.post(`${url}`, JSON.stringify({ technicalCoordination: this.formdata })) .post(
.then((res) => { `${url}`,
JSON.stringify({ technicalCoordination: this.formdata })
)
.then(res => {
if (res.data.success) { if (res.data.success) {
this.loadchangelist();
this.loadchangelist() this.$Message.success("保存成功");
this.$Message.success('保存成功') this.show = false;
this.show = false if (this.checked == true) {
if(this.checked == true){ let url = `${designUrl}/technicalcoordination/getpaged`;
let url = `${designUrl}/technicalcoordination/getpaged`
service service
.get(`${url}`, { params: {technical_coordination_code: this.formdata.technical_coordination_code, pageindex:1,pageSize:10 } }) .get(`${url}`, {
.then((res) => { params: {
console.log(res) technical_coordination_code: this.formdata
this.$refs.techSendReview.info.changeInfo = res.data.result.items[0]; .technical_coordination_code,
this.$refs.techSendReview.technical_coordination_code = this.formdata.technical_coordination_code; pageindex: 1,
pageSize: 10
}
}) })
this.$refs.techSendReview.modalInfo = true .then(res => {
console.log(res);
this.$refs.techSendReview.info.changeInfo =
res.data.result.items[0];
this.$refs.techSendReview.technical_coordination_code = this.formdata.technical_coordination_code;
});
this.$refs.techSendReview.modalInfo = true;
} }
} }
}) });
}, },
changeOption(data) {}, changeOption(data) {},
selectDepart() { selectDepart() {
this.showDeptTree = true this.showDeptTree = true;
}, },
editRow(params) { editRow(params) {
this.title = '生产过程技术协调单' this.title = "生产过程技术协调单";
this.submitShow = true this.submitShow = true;
this.flag = 1 this.flag = 1;
var url2 = `${designUrl}/technicalcoordination/getforedit` var url2 = `${designUrl}/technicalcoordination/getforedit`;
service service
.get(`${url2}`, { params: { Id: params.row.id } }) .get(`${url2}`, { params: { Id: params.row.id } })
.then((response) => { .then(response => {
this.formdata = response.data.result.technicalCoordination this.formdata = response.data.result.technicalCoordination;
}) });
this.show = true this.show = true;
}, },
editRow1(params) { editRow1(params) {
this.$refs.coordinate.formdata=[]; this.$refs.coordinate.formdata = [];
this.$refs.coordinate.formcontextdata=[]; this.$refs.coordinate.formcontextdata = [];
this.$refs.coordinate.formcontextclosedata=[]; this.$refs.coordinate.formcontextclosedata = [];
this.$refs.coordinate.auditedTime=''; this.$refs.coordinate.auditedTime = "";
this.$refs.coordinate.hqauditedTime=''; this.$refs.coordinate.hqauditedTime = "";
this.$refs.coordinate.name=''; this.$refs.coordinate.name = "";
this.$refs.coordinate.name1=''; this.$refs.coordinate.name1 = "";
this.flag=1; this.flag = 1;
var url2 = `${designUrl}/technicalcoordination/getbyid` var url2 = `${designUrl}/technicalcoordination/getbyid`;
service service
.get(`${url2}`, { params: { Id: params.row.id } }) .get(`${url2}`, { params: { Id: params.row.id } })
.then((response) => { .then(response => {
this.$refs.coordinate.formdata = response.data.result this.$refs.coordinate.formdata = response.data.result;
}) });
var url3 = `${workflowUrl}/instance/getdetailbycode` var url3 = `${workflowUrl}/instance/getdetailbycode`;
service service
.get(`${url3}`, { params: { code: params.row.technical_coordination_code } }) .get(`${url3}`, {
.then((response) => { params: { code: params.row.technical_coordination_code }
console.log(response) })
.then(response => {
console.log(response);
for (var i = 0; i < response.data.result.nodes.length; i++) { for (var i = 0; i < response.data.result.nodes.length; i++) {
var id= response.data.result.nodes[i].id var id = response.data.result.nodes[i].id;
var status= response.data.result.nodes[i].status var status = response.data.result.nodes[i].status;
if(id==163&&status==2) if (id == 163 && status == 2) {
{ var context = response.data.result.nodes[i].contextData;
var context=response.data.result.nodes[i].contextData this.$refs.coordinate.formcontextdata = JSON.parse(context);
this.$refs.coordinate.formcontextdata=JSON.parse(context);
} }
if(id==164&&status==2) if (id == 164 && status == 2) {
{ this.$refs.coordinate.hqauditedTime =
this.$refs.coordinate.hqauditedTime=response.data.result.nodes[i].auditedTime response.data.result.nodes[i].auditedTime;
var nameid=response.data.result.nodes[i].defaultUsers.immutable[0] var nameid =
var url5 = `${systemUrl}/user/getuser` response.data.result.nodes[i].defaultUsers.immutable[0];
var url5 = `${systemUrl}/user/getuser`;
service service
.get(`${url5}`, { params: { id: nameid} }) .get(`${url5}`, { params: { id: nameid } })
.then((response) => { .then(response => {
var name=response.data.result.name var name = response.data.result.name;
console.log(name) console.log(name);
this.$refs.coordinate.name1=name this.$refs.coordinate.name1 = name;
}) });
// console.log(this.$refs.coordinate.hqauditedTime) // console.log(this.$refs.coordinate.hqauditedTime)
} }
if(id==165&&status==2) if (id == 165 && status == 2) {
{ var context = response.data.result.nodes[i].contextData;
var context=response.data.result.nodes[i].contextData var nameid =
var nameid=response.data.result.nodes[i].defaultUsers.immutable[0] response.data.result.nodes[i].defaultUsers.immutable[0];
this.$refs.coordinate.formcontextclosedata=JSON.parse(context); this.$refs.coordinate.formcontextclosedata = JSON.parse(context);
this.$refs.coordinate.auditedTime=response.data.result.nodes[i].auditedTime this.$refs.coordinate.auditedTime =
var url4 = `${systemUrl}/user/getuser` response.data.result.nodes[i].auditedTime;
var url4 = `${systemUrl}/user/getuser`;
service service
.get(`${url4}`, { params: { id: nameid} }) .get(`${url4}`, { params: { id: nameid } })
.then((response) => { .then(response => {
var name=response.data.result.name var name = response.data.result.name;
console.log(name) console.log(name);
this.$refs.coordinate.name=name this.$refs.coordinate.name = name;
}) });
} }
} }
//this.$refs.coordinate.formdata = response.data.result //this.$refs.coordinate.formdata = response.data.result
}) });
this.$refs.coordinate.modelChange1 = true this.$refs.coordinate.modelChange1 = true;
}, }
}, },
mounted() { mounted() {
window.onresize = () => { window.onresize = () => {
///浏览器窗口大小变化 ///浏览器窗口大小变化
return (() => { return (() => {
window.screenHeight = window.innerHeight window.screenHeight = window.innerHeight;
this.tbHeight = window.screenHeight - 175 this.tbHeight = window.screenHeight - 175;
})() })();
};
} }
} };
}
</script> </script>
<style scoped> <style lang="less">
/deep/.vertical-center-modal { .vtr {
.vertical-center-modal {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
/deep/ .vertical-center-modal .ivu-modal { .vertical-center-modal .ivu-modal {
top: 0; top: 0;
} }
/deep/.fontcolor { .fontcolor {
color: #249e91; color: #249e91;
margin: 0 6px; margin: 0 6px;
} }
.fr {
float: right;
}
.ml10 {
margin-left: 10px;
}
.mt10 {
margin-top: 10px;
} }
</style> </style>
<template> <template>
<div class> <div class="unq">
<div class="contentRight"> <div class="contentRight">
<div class="form_title"> <div class="form_title">
<Input v-model="value1" placeholder="请输入不合格审理单编号" clearable style="width: 240px" /> <Input v-model="value1" placeholder="请输入不合格审理单编号" clearable style="width: 240px" />
...@@ -11,15 +11,18 @@ ...@@ -11,15 +11,18 @@
</div> </div>
<div class="content_box mt10"> <div class="content_box mt10">
<Table <Table
ref="table" border ref="table"
border
:columns="column2" :columns="column2"
:data="data2" highlight-row :data="data2"
highlight-row
highlight-current-row highlight-current-row
:height="this.tbHeight" :height="this.tbHeight"
class="tableCommon"> class="tableCommon"
>
<!-- <template slot-scope="{ row,index }" slot="status"> @on-selection-change="selectFunction" <!-- <template slot-scope="{ row,index }" slot="status"> @on-selection-change="selectFunction"
<state code="unProduct.repairstatus" type="text" class="bold" :value="row.status"></state> <state code="unProduct.repairstatus" type="text" class="bold" :value="row.status"></state>
</template> --> </template>-->
</Table> </Table>
<Page <Page
:total="this.total" :total="this.total"
...@@ -38,26 +41,58 @@ ...@@ -38,26 +41,58 @@
<Form :model="formdata" :label-width="150" :rules="ruleValidate" inline> <Form :model="formdata" :label-width="150" :rules="ruleValidate" inline>
<Row> <Row>
<FormItem label="审理单编号"> <FormItem label="审理单编号">
<Input v-model="formdata.unqualified_order_code" placeholder size="large" style="width:240px" readonly></Input> <Input
v-model="formdata.unqualified_order_code"
placeholder
size="large"
style="width:240px"
readonly
></Input>
</FormItem> </FormItem>
<FormItem label="申请部门"> <FormItem label="申请部门">
<Input v-model="formdata.department_name" placeholder size="large" style="width:240px" readonly></Input> <Input
v-model="formdata.department_name"
placeholder
size="large"
style="width:240px"
readonly
></Input>
</FormItem> </FormItem>
</Row> </Row>
<Row> <Row>
<FormItem label="客户名称"> <FormItem label="客户名称">
<Input v-model="formdata.customer_name" placeholder="输入客户名称" size="large" style="width:240px"></Input> <Input
v-model="formdata.customer_name"
placeholder="输入客户名称"
size="large"
style="width:240px"
></Input>
</FormItem> </FormItem>
<FormItem label="外包供方名称"> <FormItem label="外包供方名称">
<Input v-model="formdata.outsourcing_name" placeholder="输入外包供方名称" size="large" style="width:240px"></Input> <Input
v-model="formdata.outsourcing_name"
placeholder="输入外包供方名称"
size="large"
style="width:240px"
></Input>
</FormItem> </FormItem>
</Row> </Row>
<Row> <Row>
<FormItem label="产品名称"> <FormItem label="产品名称">
<Input v-model="formdata.product_name" placeholder="输入产品名称" size="large" style="width:240px"></Input> <Input
v-model="formdata.product_name"
placeholder="输入产品名称"
size="large"
style="width:240px"
></Input>
</FormItem> </FormItem>
<FormItem label="材料牌号"> <FormItem label="材料牌号">
<Input v-model="formdata.material" placeholder="输入材料牌号" size="large" style="width:240px"></Input> <Input
v-model="formdata.material"
placeholder="输入材料牌号"
size="large"
style="width:240px"
></Input>
</FormItem> </FormItem>
</Row> </Row>
<Row> <Row>
...@@ -70,13 +105,25 @@ ...@@ -70,13 +105,25 @@
</Row> </Row>
<Row> <Row>
<FormItem label="问题描述"> <FormItem label="问题描述">
<Input type="textarea" :autosize="{minRows: 1,maxRows: 6}" v-model="formdata.problem_desc" size="large" style="width: 645px"/> <Input
type="textarea"
:autosize="{minRows: 1,maxRows: 6}"
v-model="formdata.problem_desc"
size="large"
style="width: 645px"
/>
<!-- <textarea v-model="formdata.problem_desc" style="width: 600px"></textarea> --> <!-- <textarea v-model="formdata.problem_desc" style="width: 600px"></textarea> -->
</FormItem> </FormItem>
</Row> </Row>
<Row> <Row>
<FormItem label="检验员"> <FormItem label="检验员">
<Input v-model="formdata.inspection_person_name" placeholder size="large" style="width:240px" readonly></Input> <Input
v-model="formdata.inspection_person_name"
placeholder
size="large"
style="width:240px"
readonly
></Input>
</FormItem> </FormItem>
<FormItem label="检验日期"> <FormItem label="检验日期">
<DatePicker <DatePicker
...@@ -89,7 +136,6 @@ ...@@ -89,7 +136,6 @@
></DatePicker> ></DatePicker>
</FormItem> </FormItem>
</Row> </Row>
</Form> </Form>
<div slot="footer"> <div slot="footer">
<Button @click="show=false">取消</Button> <Button @click="show=false">取消</Button>
...@@ -111,7 +157,8 @@ ...@@ -111,7 +157,8 @@
width="800" width="800"
:mask-closable="false" :mask-closable="false"
:scrollable="true" :scrollable="true"
fullscreen > fullscreen
>
<OrderSendReview ref="orderSendReview"></OrderSendReview> <OrderSendReview ref="orderSendReview"></OrderSendReview>
<div slot="footer"> <div slot="footer">
<Button @click="canCelFn">取消</Button> <Button @click="canCelFn">取消</Button>
...@@ -122,11 +169,11 @@ ...@@ -122,11 +169,11 @@
</div> </div>
</template> </template>
<script> <script>
import service from '@/plugins/request' import service from "@/plugins/request";
import Department from '@/components/modalTree/department.vue' import Department from "@/components/modalTree/department.vue";
import Process from '@/components/orderOperator/process' import Process from "@/components/orderOperator/process";
import OrderSendReview from '../components/orderSendReview'//送审页面 import OrderSendReview from "../components/orderSendReview"; //送审页面
import trialOrder from './trialOrder' import trialOrder from "./trialOrder";
export default { export default {
components: { components: {
Department, Department,
...@@ -140,15 +187,15 @@ export default { ...@@ -140,15 +187,15 @@ export default {
total: 0, total: 0,
page: 1, page: 1,
pageSize: 10, pageSize: 10,
unqualified_order_code: '', unqualified_order_code: "",
id: '', id: "",
flag: 0, flag: 0,
data1: [], data1: [],
value1: '', value1: "",
editId: '', editId: "",
up_id: '', up_id: "",
treeData: [], //下拉表格树数据 treeData: [], //下拉表格树数据
title: '新增设备类型', title: "新增设备类型",
show: false, show: false,
// show2: false, // show2: false,
upweb: false, upweb: false,
...@@ -156,7 +203,7 @@ export default { ...@@ -156,7 +203,7 @@ export default {
selectModel02: false, selectModel02: false,
isedit0: false, isedit0: false,
showDeptTree: false, showDeptTree: false,
tbHeight: '', tbHeight: "",
seleId: 0, seleId: 0,
cityList: [], cityList: [],
isShow: true, isShow: true,
...@@ -164,57 +211,59 @@ export default { ...@@ -164,57 +211,59 @@ export default {
checked: true, //送审选择框 checked: true, //送审选择框
modalInfo: false, //校验送审弹框 modalInfo: false, //校验送审弹框
dataListRetrunNew: { dataListRetrunNew: {
schemaId: 'c2e09c9b-02a9-4188-97a6-cdb68d50a64a', //不合格品送审的schemaId schemaId: "c2e09c9b-02a9-4188-97a6-cdb68d50a64a", //不合格品送审的schemaId
idList: [], //不合格品id List idList: [], //不合格品id List
code: '', //不合格品编号List code: "", //不合格品编号List
operatorIdList: [] //操作员id operatorIdList: [] //操作员id
}, //确定保存后返回数据 }, //确定保存后返回数据
footerModel: false, footerModel: false,
formExamine: {}, formExamine: {},
rules: { rules: {
approveUser: [{ required: true, message: '必填', trigger: 'blur' }] approveUser: [{ required: true, message: "必填", trigger: "blur" }]
}, },
seldata: [], //父权限菜单树 seldata: [], //父权限菜单树
parent_name: '', //父权限名 parent_name: "", //父权限名
ruleValidate: { ruleValidate: {
equip_type_id: [ equip_type_id: [
{ {
required: true, required: true,
message: '设备类型编号不能为空!', message: "设备类型编号不能为空!",
trigger: 'blur' trigger: "blur"
} }
] ]
}, },
formdata: { formdata: {
unqualified_order_code: '', unqualified_order_code: "",
customer_name: '', customer_name: "",
outsourcing_name: '', outsourcing_name: "",
product_name: '', product_name: "",
material: '', material: "",
quantity: 0, quantity: 0,
code: '', code: "",
problem_desc: '', problem_desc: "",
inspection_person: 0, inspection_person: 0,
inspection_person_name: '', inspection_person_name: "",
inspection_date: '', inspection_date: "",
department_id: '', //部门ID department_id: "", //部门ID
department_name: '', //部门名称 department_name: "", //部门名称
status: 0, status: 0,
note: '', note: "",
dispatch_id: 0, dispatch_id: 0,
execute_id: 0, execute_id: 0,
order_id: '' order_id: ""
}, },
sysdata: [ sysdata: [
{ {
value: '1', value: "1",
label: '粉末' label: "粉末"
},{ },
value: '2', {
label: '基板' value: "2",
},{ label: "基板"
value: '3', },
label: '刮刀' {
value: "3",
label: "刮刀"
} }
], ],
column2: [ column2: [
...@@ -224,146 +273,157 @@ export default { ...@@ -224,146 +273,157 @@ export default {
// align: 'center', // align: 'center',
// }, // },
{ {
type: 'index', type: "index",
title: '序号', title: "序号",
width: '65', width: "65",
align: 'center' align: "center"
},{ },
title: '不合格审理单编号', {
key: 'unqualified_order_code', title: "不合格审理单编号",
align: 'center', key: "unqualified_order_code",
width: '200' align: "center",
},{ width: "200"
title: '发起人', },
key: 'inspection_person_name', {
align: 'center', title: "发起人",
width: '200' key: "inspection_person_name",
},{ align: "center",
title: '客户名称', width: "200"
key: 'customer_name', },
align: 'center', {
width: '200' title: "客户名称",
},{ key: "customer_name",
title: '外包供方名称', align: "center",
key: 'outsourcing_name', width: "200"
align: 'center', },
width: '200' {
},{ title: "外包供方名称",
title: '产品名称', key: "outsourcing_name",
key: 'product_name', align: "center",
align: 'center', width: "200"
width: '110' },
},{ {
title: '状态', title: "产品名称",
key: 'status', key: "product_name",
align: 'center', align: "center",
width: "110"
},
{
title: "状态",
key: "status",
align: "center",
width: 110, width: 110,
render: (h,params) => { render: (h, params) => {
return h('state', { return h("state", {
props: { props: {
code: 'unProduct.repairstatus', code: "unProduct.repairstatus",
type: 'text', type: "text",
value: params.row.status + '' value: params.row.status + ""
} }
}) });
// let statuse = params.row.status // let statuse = params.row.status
// let text = statuse == 1 ? '待送审' : (statuse==2? '审核中':(statuse==3? '通过':(statuse==4? '驳回':(statuse==5? '终止':'')))) // let text = statuse == 1 ? '待送审' : (statuse==2? '审核中':(statuse==3? '通过':(statuse==4? '驳回':(statuse==5? '终止':''))))
// return h('span',{},text) // return h('span',{},text)
} }
},{ },
title: '材料牌号', {
key: 'material', title: "材料牌号",
align: 'center', key: "material",
width: '110' align: "center",
},{ width: "110"
title: '数量', },
key: 'quantity', {
align: 'center', title: "数量",
width: '110' key: "quantity",
},{ align: "center",
title: '代号', width: "110"
key: 'code', },
align: 'center', {
width: '110' title: "代号",
},{ key: "code",
title: '操作', align: "center",
key: 'id', width: "110"
align: 'center', },
width: '230', {
title: "操作",
key: "id",
align: "center",
width: "230",
render: (h, params) => { render: (h, params) => {
let actions = [] let actions = [];
if (params.row.status == 3) { if (params.row.status == 3) {
actions.push( actions.push(
h( h(
'op', "op",
{ {
attrs: { attrs: {
oprate: 'detail' oprate: "detail"
}, },
on: { on: {
click: () => { click: () => {
// e.stopPropagation() // e.stopPropagation()
this.editRow1(params) this.editRow1(params);
} }
} }
}, },
'预览' "预览"
), )
)} );
if (params.row.status == 1 ||params.row.status == 4 ) { }
if (params.row.status == 1 || params.row.status == 4) {
actions.push( actions.push(
h( h(
'op', "op",
{ {
attrs: { attrs: {
oprate: 'detail' oprate: "detail"
}, },
on: { on: {
click: () => { click: () => {
// e.stopPropagation() // e.stopPropagation()
this.editRow(params) this.editRow(params);
} }
} }
}, },
'编辑' "编辑"
)) )
);
} }
return h('div', { class: 'action' }, actions) return h("div", { class: "action" }, actions);
} }
} }
], ],
data2: [], data2: [],
data3: [], data3: [],
userlist: [] userlist: []
} };
}, },
created() { created() {
this.tbHeight = window.innerHeight - 305 this.tbHeight = window.innerHeight - 305;
}, },
async fetch({ store, params }) { async fetch({ store, params }) {
await store.dispatch('loadDictionary') // 加载数据字典 await store.dispatch("loadDictionary"); // 加载数据字典
}, },
methods: { methods: {
// 分页 // 分页
pageChange(num) { pageChange(num) {
//console.log(num); //console.log(num);
this.page = num this.page = num;
this.loadchangelist() this.loadchangelist();
}, },
pageSizeChange(limit) { pageSizeChange(limit) {
//console.log(limit) //console.log(limit)
this.pageSize = limit this.pageSize = limit;
this.loadchangelist() this.loadchangelist();
}, },
//查询 //查询
searchData() { searchData() {
this.page = 1 this.page = 1;
this.pageSize = 10 this.pageSize = 10;
this.loadchangelist() this.loadchangelist();
}, },
loadchangelist() { loadchangelist() {
let url = `${designUrl}/unqualifiedorder/getpaged`;
let url = `${designUrl}/unqualifiedorder/getpaged`
service service
.get(`${url}`, { .get(`${url}`, {
params: { params: {
...@@ -373,225 +433,223 @@ export default { ...@@ -373,225 +433,223 @@ export default {
pageSize: this.pageSize pageSize: this.pageSize
} }
}) })
.then((res) => { .then(res => {
this.data2 = res.data.result.items this.data2 = res.data.result.items;
this.total = res.data.result.totalCount this.total = res.data.result.totalCount;
}) });
}, },
handleChange1(date) { handleChange1(date) {
this.formdata.inspection_date = date this.formdata.inspection_date = date;
}, },
//新增不合格审理单 //新增不合格审理单
addData() { addData() {
this.title = '不合格审理单' this.title = "不合格审理单";
this.show = true this.show = true;
// this.submitShow = true // this.submitShow = true
this.flag = 0 this.flag = 0;
this.formdata.unqualified_order_code = '' this.formdata.unqualified_order_code = "";
this.formdata.customer_name = '' this.formdata.customer_name = "";
this.formdata.outsourcing_name = '' this.formdata.outsourcing_name = "";
if (this.formdata.dispatch_id == 0) { if (this.formdata.dispatch_id == 0) {
this.formdata.product_name = '' this.formdata.product_name = "";
} }
this.formdata.material = '' this.formdata.material = "";
this.formdata.quantity = 0 this.formdata.quantity = 0;
this.formdata.code = '' this.formdata.code = "";
this.formdata.problem_desc = '' this.formdata.problem_desc = "";
this.formdata.inspection_person = 0 this.formdata.inspection_person = 0;
this.formdata.inspection_person_name = '' this.formdata.inspection_person_name = "";
this.formdata.inspection_date = '' this.formdata.inspection_date = "";
this.formdata.department_id = '' //部门ID this.formdata.department_id = ""; //部门ID
this.formdata.department_name = '' //部门名称departmentTitle this.formdata.department_name = ""; //部门名称departmentTitle
this.formdata.status = 1 this.formdata.status = 1;
this.formdata.note = '' this.formdata.note = "";
var userId = JSON.parse(sessionStorage.getItem('userInfo')).userId var userId = JSON.parse(sessionStorage.getItem("userInfo")).userId;
let parma = { let parma = {
Id: userId Id: userId
} };
this.$http.sysUser.getuserinfo(parma).then((res) => { this.$http.sysUser.getuserinfo(parma).then(res => {
// console.log(res) // console.log(res)
if (res.result) { if (res.result) {
this.formdata.department_name= res.result.departmentTitle; this.formdata.department_name = res.result.departmentTitle;
this.formdata.inspection_person_name= res.result.userName; this.formdata.inspection_person_name = res.result.userName;
} }
}) });
var url1 = `${designUrl}/routingheader/GetCodeByType?code=BHGSLD` var url1 = `${designUrl}/routingheader/GetCodeByType?code=BHGSLD`;
service.get(`${url1}`).then((response) => { service.get(`${url1}`).then(response => {
this.formdata.unqualified_order_code = response.data.result this.formdata.unqualified_order_code = response.data.result;
}) });
}, },
// 添加/编辑 弹框的保存 // 添加/编辑 弹框的保存
saveOk() { saveOk() {
var url = `${designUrl}/unqualifiedorder/createorupdate` var url = `${designUrl}/unqualifiedorder/createorupdate`;
service.post(`${url}`, JSON.stringify({ unqualifiedOrder: this.formdata })) service
.then((res) => { .post(`${url}`, JSON.stringify({ unqualifiedOrder: this.formdata }))
console.log(res) .then(res => {
console.log(res);
if (res.data.success) { if (res.data.success) {
let itemId = res.data.result.id let itemId = res.data.result.id;
this.dataListRetrunNew.idList.push(itemId); this.dataListRetrunNew.idList.push(itemId);
this.loadchangelist() this.loadchangelist();
this.$Message.success('保存成功') this.$Message.success("保存成功");
this.show = false this.show = false;
} }
}) });
// 如果选择送审,则打开送审页面 // 如果选择送审,则打开送审页面
if (this.checked == true) { if (this.checked == true) {
this.$refs.orderSendReview.intData(this.formdata) this.$refs.orderSendReview.intData(this.formdata);
this.show = false this.show = false;
this.modalInfo = true this.modalInfo = true;
// return //暂时先屏蔽保存 // return //暂时先屏蔽保存
} }
}, },
upSave() { upSave() {
let operatorIdList = this.$refs.orderSendReview.returnDataList() let operatorIdList = this.$refs.orderSendReview.returnDataList();
let itemCode = this.formdata.unqualified_order_code let itemCode = this.formdata.unqualified_order_code;
this.dataListRetrunNew.code = itemCode this.dataListRetrunNew.code = itemCode;
this.dataListRetrunNew.operatorIdList = operatorIdList this.dataListRetrunNew.operatorIdList = operatorIdList;
this.$http.order.batchOrderStart(this.dataListRetrunNew) this.$http.order
.batchOrderStart(this.dataListRetrunNew)
.then(response => { .then(response => {
if(response.success){ if (response.success) {
this.loadchangelist() this.loadchangelist();
this.$Message.info("送审成功!") this.$Message.info("送审成功!");
this.dataListRetrunNew.idList = [] this.dataListRetrunNew.idList = [];
} else { } else {
this.$Message.error('送审失败!') this.$Message.error("送审失败!");
} }
this.modalInfo = false this.modalInfo = false;
}) });
}, },
//多选处理--表格选择项变化方法 //多选处理--表格选择项变化方法
canCelFn(){ canCelFn() {
modalInfo = false modalInfo = false;
this.dataListRetrunNew.idList = [] this.dataListRetrunNew.idList = [];
}, },
changeOption(data) { changeOption(data) {
console.log(data) console.log(data);
}, },
selectDepart() { selectDepart() {
this.showDeptTree = true this.showDeptTree = true;
}, },
editRow(params) { editRow(params) {
// this.submitShow = false // this.submitShow = false
this.title = '不合格审理单' this.title = "不合格审理单";
this.flag = 1 this.flag = 1;
var url2 = `${designUrl}/unqualifiedorder/getbyid` var url2 = `${designUrl}/unqualifiedorder/getbyid`;
service service
.get(`${url2}`, { params: { Id: params.row.id } }) .get(`${url2}`, { params: { Id: params.row.id } })
.then((response) => { .then(response => {
this.formdata = response.data.result this.formdata = response.data.result;
}) });
this.show = true this.show = true;
}, },
editRow1(params) { editRow1(params) {
this.$refs.trialOrder.formdata=[]; this.$refs.trialOrder.formdata = [];
this.$refs.trialOrder.formcontextdata=[]; this.$refs.trialOrder.formcontextdata = [];
this.$refs.trialOrder.formcontextclosedata=[]; this.$refs.trialOrder.formcontextclosedata = [];
this.$refs.trialOrder.gyauditedTime=''; this.$refs.trialOrder.gyauditedTime = "";
this.$refs.trialOrder.jyauditedTime=''; this.$refs.trialOrder.jyauditedTime = "";
this.$refs.trialOrder.hqauditedTime=''; this.$refs.trialOrder.hqauditedTime = "";
this.$refs.trialOrder.name1=''; this.$refs.trialOrder.name1 = "";
this.$refs.trialOrder.name2=''; this.$refs.trialOrder.name2 = "";
this.$refs.trialOrder.name3=''; this.$refs.trialOrder.name3 = "";
this.flag=1; this.flag = 1;
var url2 = `${designUrl}/unqualifiedorder/getbyid` var url2 = `${designUrl}/unqualifiedorder/getbyid`;
service service
.get(`${url2}`, { params: { Id: params.row.id } }) .get(`${url2}`, { params: { Id: params.row.id } })
.then((response) => { .then(response => {
this.$refs.trialOrder.formdata = response.data.result this.$refs.trialOrder.formdata = response.data.result;
}) });
var url3 = `${workflowUrl}/instance/getdetailbycode` var url3 = `${workflowUrl}/instance/getdetailbycode`;
service service
.get(`${url3}`, { params: { code: params.row.unqualified_order_code } }) .get(`${url3}`, { params: { code: params.row.unqualified_order_code } })
.then((response) => { .then(response => {
console.log(response) console.log(response);
for (var i = 0; i < response.data.result.nodes.length; i++) { for (var i = 0; i < response.data.result.nodes.length; i++) {
var id= response.data.result.nodes[i].id var id = response.data.result.nodes[i].id;
var status= response.data.result.nodes[i].status var status = response.data.result.nodes[i].status;
if(id==157&&status==2) if (id == 157 && status == 2) {
{ var context = response.data.result.nodes[i].contextData;
var context=response.data.result.nodes[i].contextData this.$refs.trialOrder.formcontextdata = JSON.parse(context);
this.$refs.trialOrder.formcontextdata=JSON.parse(context); this.$refs.trialOrder.gyauditedTime =
this.$refs.trialOrder.gyauditedTime=response.data.result.nodes[i].auditedTime response.data.result.nodes[i].auditedTime;
var nameid=response.data.result.nodes[i].defaultUsers.immutable[0] var nameid =
console.log(nameid) response.data.result.nodes[i].defaultUsers.immutable[0];
var url5 = `${systemUrl}/user/getuser` console.log(nameid);
var url5 = `${systemUrl}/user/getuser`;
service service
.get(`${url5}`, { params: { id: nameid} }) .get(`${url5}`, { params: { id: nameid } })
.then((response) => { .then(response => {
var name=response.data.result.name var name = response.data.result.name;
console.log(nameid) console.log(nameid);
this.$refs.trialOrder.name3=name this.$refs.trialOrder.name3 = name;
}) });
} }
if(id==158&&status==2) if (id == 158 && status == 2) {
{ this.$refs.trialOrder.hqauditedTime =
this.$refs.trialOrder.hqauditedTime=response.data.result.nodes[i].auditedTime response.data.result.nodes[i].auditedTime;
var nameid=response.data.result.nodes[i].defaultUsers.immutable[0] var nameid =
var url5 = `${systemUrl}/user/getuser` response.data.result.nodes[i].defaultUsers.immutable[0];
var url5 = `${systemUrl}/user/getuser`;
service service
.get(`${url5}`, { params: { id: nameid} }) .get(`${url5}`, { params: { id: nameid } })
.then((response) => { .then(response => {
var name=response.data.result.name var name = response.data.result.name;
//console.log(name) //console.log(name)
this.$refs.trialOrder.name2=name this.$refs.trialOrder.name2 = name;
}) });
} }
if(id==159&&status==2) if (id == 159 && status == 2) {
{ var context = response.data.result.nodes[i].contextData;
var context=response.data.result.nodes[i].contextData this.$refs.trialOrder.formcontextclosedata = JSON.parse(context);
this.$refs.trialOrder.formcontextclosedata=JSON.parse(context); this.$refs.trialOrder.jyauditedTime =
this.$refs.trialOrder.jyauditedTime=response.data.result.nodes[i].auditedTime response.data.result.nodes[i].auditedTime;
var nameid=response.data.result.nodes[i].defaultUsers.immutable[0] var nameid =
var url5 = `${systemUrl}/user/getuser` response.data.result.nodes[i].defaultUsers.immutable[0];
var url5 = `${systemUrl}/user/getuser`;
service service
.get(`${url5}`, { params: { id: nameid} }) .get(`${url5}`, { params: { id: nameid } })
.then((response) => { .then(response => {
var name=response.data.result.name var name = response.data.result.name;
//console.log(name) //console.log(name)
this.$refs.trialOrder.name1=name this.$refs.trialOrder.name1 = name;
}) });
} }
} }
//this.$refs.trialOrder.formdata = response.data.result //this.$refs.trialOrder.formdata = response.data.result
}) });
this.$refs.trialOrder.modelChange1 = true this.$refs.trialOrder.modelChange1 = true;
}, }
}, },
mounted() { mounted() {
window.onresize = () => { window.onresize = () => {
///浏览器窗口大小变化 ///浏览器窗口大小变化
return (() => { return (() => {
window.screenHeight = window.innerHeight window.screenHeight = window.innerHeight;
this.tbHeight = window.screenHeight - 175 this.tbHeight = window.screenHeight - 175;
})() })();
};
} }
} };
}
</script> </script>
<style scoped> <style lang="less">
/deep/.vertical-center-modal { .unq {
.vertical-center-modal {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
/deep/ .vertical-center-modal .ivu-modal { .vertical-center-modal .ivu-modal {
top: 0; top: 0;
} }
/deep/.fontcolor { .fontcolor {
color: #249e91; color: #249e91;
margin: 0 6px; margin: 0 6px;
} }
.fr {
float: right;
}
.ml10 {
margin-left: 10px;
}
.mt10 {
margin-top: 10px;
} }
</style> </style>
<template> <template>
<div class=""> <div class="ctb">
<div class="contentRight"> <div class="contentRight">
<div class="form_title"> <div class="form_title">
<Input v-model="value1" placeholder="请输入设备类型名称" clearable style="width: 240px" /> <Input v-model="value1" placeholder="请输入设备类型名称" clearable style="width: 240px" />
<Button type="primary" class="" @click="searchData">查询</Button> <Button type="primary" class @click="searchData">查询</Button>
<div class="paddingbtn fr"> <div class="paddingbtn fr">
<Button type="primary" @click="addData">新增设备类型</Button> <Button type="primary" @click="addData">新增设备类型</Button>
</div> </div>
...@@ -26,12 +26,14 @@ ...@@ -26,12 +26,14 @@
:title="title" :title="title"
:width="500" :width="500"
:mask-closable="false" :mask-closable="false"
ok-text="保存" @on-ok="saveOk" ok-text="保存"
cancel-text="取消" > @on-ok="saveOk"
cancel-text="取消"
>
<Form :model="formItem" :label-width="150" :rules="ruleValidate"> <Form :model="formItem" :label-width="150" :rules="ruleValidate">
<Row> <Row>
<Col span="20"> <Col span="20">
<FormItem label="设备类型编号" prop='equip_type_id'> <FormItem label="设备类型编号" prop="equip_type_id">
<Input v-model="formItem.equip_type_id" placeholder="输入设备类型编号"></Input> <Input v-model="formItem.equip_type_id" placeholder="输入设备类型编号"></Input>
</FormItem> </FormItem>
</Col> </Col>
...@@ -61,273 +63,279 @@ ...@@ -61,273 +63,279 @@
</div> </div>
</template> </template>
<script> <script>
import treeGrid from './components/treeGrid' import treeGrid from "./components/treeGrid";
import service from '@/plugins/request' import service from "@/plugins/request";
import Department from '@/components/modalTree/department.vue' import Department from "@/components/modalTree/department.vue";
export default { export default {
components: { components: {
treeGrid, Department, treeGrid,
Department
}, },
data() { data() {
return { return {
data1: [], data1: [],
value1:"", value1: "",
editId:'', editId: "",
up_id:'', up_id: "",
treeData:[],//下拉表格树数据 treeData: [], //下拉表格树数据
title:"新增设备类型", title: "新增设备类型",
show: false, show: false,
// show2: false, // show2: false,
upweb: false, upweb: false,
selectModel: true, selectModel: true,
selectModel02: false, selectModel02: false,
isedit0:false, isedit0: false,
showDeptTree: false, showDeptTree: false,
tbHeight: '', tbHeight: "",
seleId: 0, seleId: 0,
cityList:[], cityList: [],
isShow:true, isShow: true,
seldata: [],//父权限菜单树 seldata: [], //父权限菜单树
parent_name: '',//父权限名 parent_name: "", //父权限名
ruleValidate: { ruleValidate: {
equip_type_id: [ equip_type_id: [
{ {
required: true, required: true,
message: '设备类型编号不能为空!', message: "设备类型编号不能为空!",
trigger: 'blur' trigger: "blur"
} }
] ]
}, },
formItem:{ formItem: {
equip_type_id: '',//设备类型编号 equip_type_id: "", //设备类型编号
equip_type_name:'',//设备类型名称 equip_type_name: "", //设备类型名称
notes: '',//备注 notes: "" //备注
}, },
sysdata: [ sysdata: [
{ {
value: '1', value: "1",
label: '粉末' label: "粉末"
},{ },
value: '2', {
label: '基板' value: "2",
},{ label: "基板"
value: '3', },
label: '刮刀' {
value: "3",
label: "刮刀"
} }
], ],
columns: [ columns: [
{ {
title: '设备类型编号', title: "设备类型编号",
key: 'equip_type_id', key: "equip_type_id"
},{ },
title: '设备类型名称', {
key: 'equip_type_name', title: "设备类型名称",
align:"left", key: "equip_type_name",
},{ align: "left"
title: '备注', },
key: 'notes', {
align:"left", title: "备注",
}, { key: "notes",
title: '操作', align: "left"
key: 'action', },
align: 'center', {
width:400, title: "操作",
key: "action",
align: "center",
width: 400,
render: (h, params) => { render: (h, params) => {
return h('div',{ class: 'action' }, [ return h("div", { class: "action" }, [
h( h(
'op', "op",
{ {
attrs:{ attrs: {
oprate:'detail', oprate: "detail",
class:'edit' class: "edit"
} , },
on: { on: {
click: () => { click: () => {
this.edit(params) this.edit(params);
} }
} }
}, },
'编辑' "编辑"
), ),
h( h(
'op', "op",
{ {
attrs:{ attrs: {
oprate:'delete' oprate: "delete"
}, },
style: { style: {
color: 'red', color: "red"
}, },
on: { on: {
click: () => { click: () => {
this.del(params) this.del(params);
} }
} }
}, },
'删除' "删除"
) )
]) ]);
} }
},
],
} }
]
};
}, },
created(){ created() {
this.laodaction(); this.laodaction();
this.tbHeight = window.innerHeight - 175 this.tbHeight = window.innerHeight - 175;
}, },
methods:{ methods: {
//查询 //查询
searchData(){ searchData() {
var name = this.value1; var name = this.value1;
this.laodaction(name) this.laodaction(name);
}, },
laodaction(name){ laodaction(name) {
let url = `${systemUrl}/equiptype/getpaged`; let url = `${systemUrl}/equiptype/getpaged`;
service.get(`${url}`, { params:{ equip_type_name:name }}).then(res => { service.get(`${url}`, { params: { equip_type_name: name } }).then(res => {
// console.log(res) // console.log(res)
this.data1 = res.data.result.items this.data1 = res.data.result.items;
}); });
}, },
//新增库位 //新增库位
addData(){ addData() {
this.title = '新增设备类型'; this.title = "新增设备类型";
this.show = true; this.show = true;
this.upweb = false; this.upweb = false;
this.selectModel = false; this.selectModel = false;
this.selectModel02 = true; this.selectModel02 = true;
this.editId=''; this.editId = "";
this.formItem = { this.formItem = {
equip_type_id: '',//设备类型编号 equip_type_id: "", //设备类型编号
equip_type_name:'',//设备类型名称 equip_type_name: "", //设备类型名称
notes: '',//备注 notes: "" //备注
}; };
}, },
// 添加/编辑 弹框的保存 // 添加/编辑 弹框的保存
saveOk(){ saveOk() {
if (!this.formItem.equip_type_id) { if (!this.formItem.equip_type_id) {
this.$Message.error('设备类型编号不能为空!') this.$Message.error("设备类型编号不能为空!");
return return;
} }
let saveId = this.editId, let saveId = this.editId,
url = `${systemUrl}/equiptype/createorupdate`; url = `${systemUrl}/equiptype/createorupdate`;
if(!saveId){ saveId == "" } if (!saveId) {
if(this.title == '编辑设备类型'){ saveId == "";
}
if (this.title == "编辑设备类型") {
// if(this.formItem.selectName){ // if(this.formItem.selectName){
var ar1 = this.data1.find((val) => { var ar1 = this.data1.find(val => {
if(val.id!=saveId) if (val.id != saveId)
return val.equip_type_id == this.formItem.equip_type_id return val.equip_type_id == this.formItem.equip_type_id;
}) });
if (ar1) { if (ar1) {
this.$Message.error('设备类型编号已存在!'); this.$Message.error("设备类型编号已存在!");
return return;
} }
let paramsdata = { let paramsdata = {
"id": saveId, id: saveId,
"equip_type_id": this.formItem.equip_type_id, equip_type_id: this.formItem.equip_type_id,
"equip_type_name": this.formItem.equip_type_name, equip_type_name: this.formItem.equip_type_name,
"notes": this.formItem.notes, notes: this.formItem.notes
}; };
service.post(`${url}`, JSON.stringify({equipType: paramsdata})).then(res=>{ service
if(res.data.success) { .post(`${url}`, JSON.stringify({ equipType: paramsdata }))
.then(res => {
if (res.data.success) {
this.laodaction(); this.laodaction();
this.$Message.success('编辑成功') this.$Message.success("编辑成功");
} }
}); });
// } // }
} }
if(this.title == '新增设备类型'){ if (this.title == "新增设备类型") {
// console.log('第一个:' + saveId + '第二个:' + this.formItem.selectName) // console.log('第一个:' + saveId + '第二个:' + this.formItem.selectName)
var ar = this.data1.find((val) => { var ar = this.data1.find(val => {
return val.equip_type_id == this.formItem.equip_type_id return val.equip_type_id == this.formItem.equip_type_id;
}) });
if (ar) { if (ar) {
this.$Message.error('设备类型编号已存在!'); this.$Message.error("设备类型编号已存在!");
return return;
} }
let paramsdata = { let paramsdata = {
"id": saveId, id: saveId,
"equip_type_id": this.formItem.equip_type_id, equip_type_id: this.formItem.equip_type_id,
"equip_type_name": this.formItem.equip_type_name, equip_type_name: this.formItem.equip_type_name,
"notes": this.formItem.notes, notes: this.formItem.notes
}; };
service.post(`${url}`, JSON.stringify({equipType: paramsdata})).then(res=>{ service
if(res.data.success) { .post(`${url}`, JSON.stringify({ equipType: paramsdata }))
.then(res => {
if (res.data.success) {
this.laodaction(); this.laodaction();
this.$Message.success('新增成功') this.$Message.success("新增成功");
} }
}); });
} else {
return;
} }
else{ return }
}, },
changeOption(data){ changeOption(data) {
console.log(data) console.log(data);
}, },
selectDepart() { selectDepart() {
this.showDeptTree = true this.showDeptTree = true;
}, },
edit(data){ edit(data) {
this.title = '编辑设备类型'; this.title = "编辑设备类型";
//console.log(data) //console.log(data)
this.isedit0 = true; this.isedit0 = true;
this.show = true; this.show = true;
this.upweb = true; this.upweb = true;
this.formItem = { this.formItem = {
equip_type_id: data.row.equip_type_id,//设备类型编号 equip_type_id: data.row.equip_type_id, //设备类型编号
equip_type_name:data.row.equip_type_name,//设备类型名称 equip_type_name: data.row.equip_type_name, //设备类型名称
notes: data.row.notes,//备注 notes: data.row.notes //备注
}; };
this.editId = data.row.id; this.editId = data.row.id;
}, },
del(data) {
del(data){
this.seleId = data.row.id; this.seleId = data.row.id;
let url = `${systemUrl}/equiptype/delete`, let url = `${systemUrl}/equiptype/delete`,
uId = this.seleId; uId = this.seleId;
service.delete(`${systemUrl}/equiptype/delete?id=${uId}`).then(res=>{ service.delete(`${systemUrl}/equiptype/delete?id=${uId}`).then(res => {
console.log(res) console.log(res);
if(res.data.result==1) { if (res.data.result == 1) {
this.laodaction(); this.laodaction();
this.$Message.success('删除成功') this.$Message.success("删除成功");
} } else {
else{ this.$Message.error("该类型有设备使用,不可删除。");
this.$Message.error('该类型有设备使用,不可删除。')
} }
}); });
}, }
}, },
mounted() { mounted() {
window.onresize = () => { window.onresize = () => {
///浏览器窗口大小变化 ///浏览器窗口大小变化
return (() => { return (() => {
window.screenHeight = window.innerHeight window.screenHeight = window.innerHeight;
this.tbHeight = window.screenHeight - 175 this.tbHeight = window.screenHeight - 175;
})() })();
} };
} }
} };
</script> </script>
<style scoped> <style lang="less">
.ctb {
/deep/.vertical-center-modal{ .vertical-center-modal {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
/deep/ .vertical-center-modal .ivu-modal{ .vertical-center-modal .ivu-modal {
top: 0; top: 0;
} }
/deep/.fontcolor { color:#249e91;margin: 0 6px} .fontcolor {
.fr{ color: #249e91;
float: right; margin: 0 6px;
}
.ml10{
margin-left: 10px;
}
.mt10{
margin-top: 10px;
} }
}
</style> </style>
html body {
min-width: 1240px;
}
.__nuxt-error-page .title {
font-size: 16px;
}
#__nuxt,
#__layout {
height: 100%;
}
/*字体*/
.ib {
display: inline;
}
.f14 {
font-size: 14px;
}
.f16 {
font-size: 16px;
}
.f18 {
font-size: 18px;
}
.f20 {
font-size: 20px;
}
.f24 {
font-size: 24px;
}
.fw5 {
font-weight: 500;
}
.fwBold {
font-weight: bold;
}
.ico:hover {
color: #f23a3a;
cursor: pointer;
}
.lh10 {
line-height: 10px;
}
.lh15 {
line-height: 15px;
}
.lh20 {
line-height: 20px;
}
.lh25 {
line-height: 25px;
}
.lh30 {
line-height: 30px;
}
.lh40 {
line-height: 40px;
}
/*边距*/
.m10 {
margin: 10px;
}
.mt4 {
margin-top: 4px;
}
.mt5 {
margin-top: 5px;
}
.mt10 {
margin-top: 10px;
}
.mt15 {
margin-top: 15px;
}
.mt20 {
margin-top: 20px;
}
.mt30 {
margin-top: 30px;
}
.mt50 {
margin-top: 50px;
}
.mb0 {
margin-bottom: 0px;
}
.mb10 {
margin-bottom: 10px;
}
.mb15 {
margin-bottom: 15px;
}
.mb20 {
margin-bottom: 20px;
}
.ml0 {
margin-left: 0;
}
.ml5 {
margin-left: 5px;
}
.ml10 {
margin-left: 10px;
}
.ml15 {
margin-left: 15px;
}
.ml20 {
margin-left: 20px;
}
.ml30 {
margin-left: 30px;
}
.ml110 {
margin-left: 110px;
}
.mr0 {
margin-right: 0px;
}
.mr5 {
margin-right: 5px;
}
.mr10 {
margin-right: 10px;
}
.mr15 {
margin-right: 15px;
}
.mr20 {
margin-right: 20px;
}
.mr30 {
margin-right: 30px;
}
.mtb10 {
margin: 10px 0;
}
.m15 {
margin: 15px;
}
/*内边距*/
.ptb10 {
padding: 10px 0px;
}
.pd5 {
padding: 5px;
}
.pt10 {
padding: 10px 0px 0;
}
.ptb5 {
padding-top: 5px;
padding-bottom: 5px;
}
.pd10 {
padding: 10px;
}
.p10 {
padding: 10px;
}
.p20 {
padding: 20px;
}
.pl30 {
padding-left: 30px;
}
.pl5 {
padding-left: 5px;
}
.pl10 {
padding-left: 10px;
}
.pl20 {
padding-left: 20px;
}
.bnone {
border: none;
}
.marnone {
margin: 0;
}
.hide {
display: none;
}
.show {
display: block;
}
.hidden {
overflow: hidden;
}
.zh-scroll-y {
overflow-y: scroll;
}
.h-stack {
overflow: visible;
}
.zh-ellip {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.ver-m {
vertical-align: middle;
}
/*栅格化*/
.col-xs6 .col-4 {
width: 25%;
display: inline-block;
}
.col-3 {
width: 33.33333%;
display: inline-block;
}
/*宽度*/
.w50 {
width: 50px;
}
.w80 {
width: 80px;
}
.w100 {
width: 100px;
}
.w120 {
width: 120px;
}
.w160 {
width: 160px;
}
.w180 {
width: 180px;
}
.w200 {
width: 200px;
}
.w240 {
width: 240px;
}
.w270 {
width: 270px;
}
.w300 {
width: 300px;
}
.w800 {
width: 800px;
}
/*高度*/
.h17 {
height: 17px;
line-height: 17px;
}
.h28 {
height: 28px;
}
.h36 {
height: 36px;
}
.h50 {
height: 50px;
}
.h200 {
height: 200px;
}
.h400 {
height: 400px;
overflow: auto;
}
/*最小高度*/
.minh300 {
min-height: 300px;
}
.minh100 {
min-height: 100px;
}
.minh200 {
min-height: 200px;
}
/*最小宽度*/
.minW100 {
min-width: 100px;
}
.minW140 {
min-width: 140px;
}
.minW200 {
min-width: 200px;
}
/*最大宽度*/
.maxW50 {
max-width: 50px;
}
.maxW80 {
max-width: 80px;
}
/*按钮*/
.button-box {
display: inline-block;
text-align: center;
}
.button-box-block {
display: block;
text-align: center;
}
.button-box-block .layui-btn,
.button-box .layui-btn {
min-width: 80px;
}
.d-button {
min-width: 55px;
height: 28px;
padding: 0 10px;
line-height: 30px;
text-align: center;
display: inline-block;
border-radius: 2px;
font-size: 14px;
background: #e6e6e6;
color: #333;
margin: 0 5px;
-webkit-box-sizing: content-box;
-moz-box-sizing: content-box;
box-sizing: content-box;
cursor: pointer;
-webkit-transition: all 0.2s;
-ms-transition: all 0.2s;
transition: all 0.2s;
}
.d-button:active {
transform: scale(0.96);
}
/*按钮颜色*/
.bluebg {
background: #237bdf;
color: #fff;
}
.bluebg:hover {
background: #0c79b1;
}
.redbg {
background: #e2440a;
}
.red {
color: #f23a3a;
}
.redbg:hover {
background: #d7342e;
}
.qingbg {
background: #169bd5;
color: #fff;
}
.white {
color: #fff;
}
.qingbg:hover {
background: #2f93bf;
}
.blue-tab {
color: #1e9fff;
}
.blue-modal-text {
color: #358deb;
}
.blue-dark {
color: #0e2b55;
}
.blue-shadow {
color: #7eccfc;
}
.orangetext {
color: #fca509;
}
.orangebg {
background: #ff9900;
}
.orangebg:hover {
background: #e0690c;
}
.greenbg {
background: #4f9536;
}
.green {
color: #4f9536;
}
.greenbg:hover {
background: #4aaa4a;
}
.darkblue {
background: #5eb95e;
}
.redbd {
border: 1px dashed #f23a3a;
color: #f23a3a;
cursor: pointer;
}
.greenbd {
border: 1px dashed #5eb95e;
color: #5eb95e;
}
.new-blue {
color: #2786f2;
}
.new-green {
color: #5eae36;
}
.new-red {
color: #fe4b04;
}
.new-orange {
color: #ff9900;
}
/*图标*/
i.iconfont {
cursor: pointer;
display: inline-block;
vertical-align: middle;
}
i.iconfont:active {
-webkit-transform: scale(0.96);
-ms-transform: scale(0.96);
-o-transform: scale(0.96);
transform: scale(0.96);
}
/*蓝色图标*/
i.icon-start,
i.icon-yundown,
i.icon-save {
color: #1E9FFF;
}
/*红色图标*/
i.icon-tingzhi,
i.icon-lajitong {
color: #FF5722;
}
/*青色图标*/
i.icon-edit {
color: #518dd8;
}
i.icon-huanvar {
color: #4470a7;
font-size: 20px;
}
i.icon-fault {
color: #f71a4b;
}
i.icon-yujing {
color: #ff9906;
}
i.icon-dian {
opacity: 0.5;
}
/*刷新按钮*/
.ico-ratate {
animation-name: repRotate;
}
i.icon-gengxin {
animation: linear 0.8s infinite;
}
/*浮动*/
.fl {
float: left;
}
.fr {
float: right;
}
.fn {
float: none;
}
.tl {
text-align: left;
}
.tr {
text-align: right;
}
.tc {
text-align: center;
}
/*清除浮动*/
.clear {
clear: both;
}
/*块*/
.block {
display: block;
}
.inline {
display: inline-block;
}
.cursor {
cursor: pointer;
}
/* 定位 */
.pr {
position: relative;
}
.pa {
position: absolute;
}
/* 展示框title */
.show-title {
background: #031019;
letter-spacing: 2px;
color: #b6dff8;
text-align: center;
}
input::-webkit-input-placeholder,
select input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
color: #7dbbfb;
}
[v-cloak] {
display: none;
}
.zh-tree {
position: relative;
display: block;
width: 250px;
float: left;
transform: translateX(0);
transition: all 0.2s;
box-sizing: border-box;
border: #E4E6ED solid 1px;
background: #fff;
padding: 0px 10px 20px 10px;
margin-top: 10px;
}
.zh-tree .zh-title {
font-size: 14px;
padding: 0 5px;
line-height: 45px;
text-align: left;
font-weight: 600;
border-bottom: #e4e6ed solid 1px;
}
.zh-tree .zh-box {
height: -110%;
width: 100%;
overflow-y: auto;
padding: 15px;
margin-bottom: -5000px;
padding-bottom: 5000px;
}
.content-right {
margin-left: 10px;
width: calc(100% - 260px);
height: 100%;
float: left;
box-sizing: border-box;
transition: all 0.2s;
background: #fff;
padding: 0px 10px 10px 0px;
margin-top: 10px;
}
.contentRight {
width: calc(100%);
height: 100%;
float: left;
box-sizing: border-box;
transition: all 0.2s;
background: #fff;
padding: 0px 10px 10px 0px;
margin-top: 10px;
}
.topTitle {
height: 32px;
text-align: right;
}
.tableCommon tr th {
line-height: 30px;
font-size: 14px;
background: #f5f6fa;
}
.tableCommon .tableCommon tr th {
line-height: 30px;
font-size: 14px;
background: #EEEDF0;
}
.tableCommon .tableCommon tr td {
padding: 0 2px;
background: #D5E6FB;
}
.tableCommon tr td {
line-height: 25px;
font-size: 14px;
padding: 0 2px;
}
.tableCommon tr td .ivu-table-cell {
padding: 0 2px;
}
.cellInfoTitle {
padding: 0 10px;
text-align: right;
border: #E4E6ED solid 1px;
background: #F5F6FA;
color: #515A6E;
font-weight: bold;
height: 35px;
line-height: 34px;
margin: -1px;
}
.cellInfoContent {
padding: 0 10px;
text-align: left;
border-top: #E4E6ED solid 1px;
border-bottom: #E4E6ED solid 1px;
border-right: #E4E6ED solid 1px;
height: 34px;
line-height: 34px;
margin: -1px;
}
/* 三列合并内容 */
.cellInfoContent1 {
padding: 0 10px;
text-align: left;
border-top: #E4E6ED solid 1px;
border-bottom: #E4E6ED solid 1px;
border-right: #E4E6ED solid 1px;
height: 34px;
line-height: 34px;
margin: -1px -5px;
}
/* 右侧设置自定义显示列ico */
.divIco {
border: #D0D2D9 solid 1px;
border-radius: 4px;
height: 28px;
line-height: 24px;
width: 40px;
float: right;
text-align: center;
margin-left: 5px;
}
.divIco:hover {
background: #F5F6FA;
}
.icoListInfo {
font-weight: bold;
color: #515A6E;
font-size: 24px;
}
[type=reset],
[type=submit],
button,
html [type=button] {
-webkit-appearance: button;
}
.waitTask {
/*flex 布局*/
display: flex;
align-items: center;
width: 200px;
height: 100px;
float: left;
margin-right: 10px;
word-break: break-word;
}
.leftIco {
width: 60px;
float: left;
text-align: center;
}
.bold {
font-weight: bold;
}
.action a {
margin: 0 5px;
color: #1890FF;
}
.action a.detail {
color: #1890FF;
}
.action a.add {
color: #249E91;
}
.action a.add:hover {
color: #27AB9D;
}
.action a.edit {
color: #0693d4;
}
.action a.edit:hover {
color: #35BD90;
}
.action a.remove,
.action a.delete {
color: #FF7A8B;
}
.action a.delete {
color: #FF7A8B;
}
.action a.empower {
color: #FFBD59;
}
.action a.disable {
color: #CAD1D9;
}
.action a.icon {
display: inline-block;
width: 28px;
height: 28px;
line-height: 28px;
margin: 0px 0 0 -4px;
border-radius: 50%;
color: #515A6E;
background: #F5F6FA;
}
.action a.icon .ivu-icon {
font-weight: bold;
font-size: 18px;
}
.action a.icon:hover {
background: #27AB9D;
color: #fff;
}
.action a.icon:active {
background: #229185;
color: #fff;
}
.icon_box a.icon {
display: inline-grid;
width: 28px;
height: 28px;
line-height: 28px;
margin: 0;
}
.icon_box a.icon .ivu-icon-ios-eye {
font-weight: bold;
font-size: 24px;
color: #249e91;
}
.body-box .bj-box {
position: relative;
height: 45px;
}
.body-box .bj-box .dan-hao,
.body-box .bj-box .ri-qi,
.body-box .bj-box .dao-chu {
position: absolute;
right: 10px;
width: 235px;
font-size: 14px;
color: #333;
font-weight: bold;
text-align: right;
}
.body-box .bj-box .dao-chu {
top: 0px;
text-align: right;
}
.body-box .bj-box .dan-hao {
top: 60px;
}
.body-box .bj-box .ri-qi {
top: 95px;
}
.body-box .title-name {
text-align: center;
font-size: 28px;
margin-bottom: 10px;
}
.body-box .js-title {
text-align: center;
font-size: 20px;
font-weight: bold;
margin-bottom: 10px;
}
.body-box .box-title {
height: 45px;
line-height: 45px;
padding: 0 10px;
font-size: 14px;
color: #333;
border: 1px solid #d3d1d1;
}
.body-box .box-dz {
height: 40px;
line-height: 40px;
padding: 0 10px;
border-right: 1px solid #d3d1d1;
border-left: 1px solid #d3d1d1;
font-size: 14px;
font-weight: bold;
color: #333;
}
.zong-ji {
height: 45px;
line-height: 45px;
padding: 0 10px;
font-size: 14px;
color: #333;
border: 1px solid #d3d1d1;
border-top: none;
display: flex;
}
.zong-ji .xiao-ji {
width: 202px;
border-right: 1px solid #d3d1d1;
}
.zong-ji .da-xie {
width: 70%;
padding-left: 15px;
font-weight: bold;
}
.zong-ji .xiao-xie {
padding-left: 15px;
font-weight: bold;
}
.bei-zhu {
font-size: 14px;
color: #333;
font-weight: bold;
margin-top: 10px;
}
.zhi-dan {
margin-top: 18px;
font-size: 14px;
color: #333;
font-weight: bold;
}
.selectBox div.ivu-select-dropdown {
height: auto;
}
.footers {
width: 100%;
position: fixed;
bottom: 0;
left: 0;
text-align: center;
padding: 20px 0;
background: #d0d2d9;
}
.footers div {
height: 25px;
font-size: 14px;
color: #333;
line-height: 28px;
}
.outPdf table,
.outPdf table tr th,
.outPdf table tr td {
border: 1px solid #d3d1d1;
padding: 0 3px;
}
.outPdf table {
width: 100%;
line-height: 25px;
text-align: center;
border-collapse: collapse;
padding: 2px;
}
.outPdf table thead tr th {
line-height: 40px;
}
.outP table,
.outP table tr th,
.outP table tr td {
border: 1px solid #000000;
padding: 0 3px;
}
.outP table {
width: 100%;
line-height: 25px;
text-align: center;
border-collapse: collapse;
padding: 2px;
}
.outP table thead tr th {
line-height: 25px;
}
.full {
height: 100%;
background: white;
margin-top: 45px;
}
.full .menu {
border: 1px solid #ddd;
padding: 0 5px;
overflow: auto;
}
.full .menu .title {
line-height: 45px;
font-size: 14px;
padding: 0 5px;
border-bottom: #e4e6ed solid 1px;
}
.full .menu .title .fr {
float: right;
margin-top: 10px;
cursor: pointer;
}
.full .menu .title .fr:hover {
color: #249e91;
}
.full .menu .tree {
height: calc(100% - 150px);
overflow: auto;
}
.full .content {
background: white;
padding: 0 0 0 10px;
left: 250px;
right: 10px;
}
.full .content .auto {
flex: 1;
overflow: auto;
position: relative;
min-height: 600px;
}
.full .content .fly {
position: relative;
overflow: inherit;
}
.full .content .ivu-btn-small {
padding: 0;
background: red;
}
.time {
font-size: 14px;
font-weight: bold;
}
.content {
padding-left: 5px;
}
...@@ -7,6 +7,12 @@ export const mutations={ ...@@ -7,6 +7,12 @@ export const mutations={
}, },
setUser(state,info){ setUser(state,info){
state.info=info; state.info=info;
},
setUserAvatar(state,user){
let info=state.info;
info.name=user.userName;
info.avatar=user.avatarUrl;
state.info=info;
} }
} }
export const actions={ export const actions={
......
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