Commit d2cda5bd authored by 周远喜's avatar 周远喜

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

parents dcc121fe 15405870
...@@ -5611,9 +5611,9 @@ ...@@ -5611,9 +5611,9 @@
"dev": true "dev": true
}, },
"dayjs": { "dayjs": {
"version": "1.8.26", "version": "1.8.27",
"resolved": "http://r.cnpmjs.org/dayjs/download/dayjs-1.8.26.tgz", "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.8.27.tgz",
"integrity": "sha1-xtYszfBYynKo0Uu5OiNQEFjbnx4=" "integrity": "sha512-Jpa2acjWIeOkg8KURUHICk0EqnEFSSF5eMEscsOgyJ92ZukXwmpmRkPSUka7KHSfbj5eKH30ieosYip+ky9emQ=="
}, },
"de-indent": { "de-indent": {
"version": "1.0.2", "version": "1.0.2",
...@@ -8155,8 +8155,8 @@ ...@@ -8155,8 +8155,8 @@
}, },
"gantt-elastic-header": { "gantt-elastic-header": {
"version": "0.1.11", "version": "0.1.11",
"resolved": "http://r.cnpmjs.org/gantt-elastic-header/download/gantt-elastic-header-0.1.11.tgz", "resolved": "https://registry.npmjs.org/gantt-elastic-header/-/gantt-elastic-header-0.1.11.tgz",
"integrity": "sha1-i5/sjlFwm4L/WaA4bwZoUK5pxtE=", "integrity": "sha512-mDzraF/ZxrY9Pmp2Kjb1Hm8pFSeH2Ze5S0Lw/qiW63qyYxj0uLMp8w6xJq4rt2aB0lcHhonf0YMOjCjAk1WZfQ==",
"requires": { "requires": {
"vue": "^2.6.10", "vue": "^2.6.10",
"vue-slider-component": "^3.0.31", "vue-slider-component": "^3.0.31",
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
"awe-dnd": "^0.3.4", "awe-dnd": "^0.3.4",
"better-scroll": "^1.12.1", "better-scroll": "^1.12.1",
"cross-env": "^5.2.0", "cross-env": "^5.2.0",
"dayjs": "^1.8.26", "dayjs": "^1.8.27",
"echarts": "^4.7.0", "echarts": "^4.7.0",
"echarts-liquidfill": "^2.0.5", "echarts-liquidfill": "^2.0.5",
"gantt-elastic": "^1.0.11", "gantt-elastic": "^1.0.11",
......
...@@ -178,10 +178,8 @@ ...@@ -178,10 +178,8 @@
<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="checkUser"> <Checkbox v-model="item.checked" border class="checkUser">
<!-- <Tooltip :content="item.userName" placement="top-start"> -->
<span class="svg_name" :title="item.userName">{{item.userName}}</span> <span class="svg_name" :title="item.userName">{{item.userName}}</span>
<!-- <span class="svg">{{item.id}}</span> --> <!-- <span class="svg">{{item.id}}</span> -->
<!-- </Tooltip> -->
</Checkbox> </Checkbox>
</CheckboxGroup> </CheckboxGroup>
</Col> </Col>
......
...@@ -214,6 +214,7 @@ export default { ...@@ -214,6 +214,7 @@ export default {
}, },
changeMode(a) { changeMode(a) {
this.mode = a; this.mode = a;
this.tagTata(this.orderId);
}, },
//工序列表 //工序列表
tagTata(id) { tagTata(id) {
...@@ -223,6 +224,7 @@ export default { ...@@ -223,6 +224,7 @@ export default {
u.seq = u.task_seq; u.seq = u.task_seq;
u.chaiCount = 0; u.chaiCount = 0;
u.chai = false; u.chai = false;
u.aps = 0;
}); });
this.result = r.result; this.result = r.result;
} }
...@@ -277,7 +279,6 @@ export default { ...@@ -277,7 +279,6 @@ export default {
//拆分工序 //拆分工序
split(item, i) { split(item, i) {
this.chaiModal = true; this.chaiModal = true;
this.curIndex = i; this.curIndex = i;
this.maxnum = this.result[i].quantity - 1; this.maxnum = this.result[i].quantity - 1;
}, },
...@@ -285,6 +286,9 @@ export default { ...@@ -285,6 +286,9 @@ export default {
okChai() { okChai() {
let items = this.$u.clone(this.result); let items = this.$u.clone(this.result);
let curItem = items[this.curIndex]; let curItem = items[this.curIndex];
curItem.aps = this.mode;
console.log(curItem.aps);
let addItem = this.$u.clone(curItem); let addItem = this.$u.clone(curItem);
curItem.quantity -= this.chaiNum; curItem.quantity -= this.chaiNum;
curItem.chaiCount += 1; curItem.chaiCount += 1;
......
...@@ -25,7 +25,13 @@ ...@@ -25,7 +25,13 @@
<Record :eid="recordId" /> <Record :eid="recordId" />
</Modal> </Modal>
<Modal v-model="SpeedModal" title="工单信息" fullscreen footer-hide class="recordM"> <Modal v-model="SpeedModal" title="工单信息" fullscreen footer-hide class="recordM">
<Speed :result="result" :load="loading" @on-close="clsoeSpeedModal" :executeId="dispatchExecuteId" :orderId="orderId" /> <Speed
:result="result"
:load="loading"
@on-close="clsoeSpeedModal"
:executeId="dispatchExecuteId"
:orderId="orderId"
/>
</Modal> </Modal>
<Modal v-model="recycleModal" title="确定回收订单" width="600" class="suspend"> <Modal v-model="recycleModal" title="确定回收订单" width="600" class="suspend">
<Form ref="form" :model="recovery" :rules="rulesRecycle" :label-width="120"> <Form ref="form" :model="recovery" :rules="rulesRecycle" :label-width="120">
...@@ -383,7 +389,10 @@ export default { ...@@ -383,7 +389,10 @@ export default {
render: (h, params) => { render: (h, params) => {
return h("div", { class: "action" }, [ return h("div", { class: "action" }, [
h( h(
params.row.status == 5 && params.row.upSplitId == 0 (params.row.status == 5 && params.row.upSplitId == 0) ||
(params.row.status == 5 &&
params.row.upSplitId > 0 &&
params.row.splitCardStatus == 1)
? "Button" ? "Button"
: "", //订单状态暂停,启动 : "", //订单状态暂停,启动
{ {
...@@ -408,7 +417,7 @@ export default { ...@@ -408,7 +417,7 @@ export default {
"" ""
), ),
h( h(
params.row.status == 6 && params.row.upSplitId == 0 params.row.status == 6
? "Button" ? "Button"
: "", //订单状态执行中,暂停 : "", //订单状态执行中,暂停
{ {
...@@ -434,7 +443,7 @@ export default { ...@@ -434,7 +443,7 @@ export default {
"" ""
), ),
h( h(
params.row.status == 5 && params.row.upSplitId > 0 ? "op" : "", //订单状态执行中,暂停 params.row.status == 5 && params.row.splitCardStatus == 0 ? "op" : "", //订单状态执行中,暂停
{ {
attrs: { attrs: {
icon: "md-sync", icon: "md-sync",
...@@ -542,9 +551,8 @@ export default { ...@@ -542,9 +551,8 @@ export default {
} }
}); });
}, },
clsoeSpeedModal() clsoeSpeedModal() {
{ this.SpeedModal = false;
this.SpeedModal=false;
}, },
suspend(row) { suspend(row) {
console.log(row); console.log(row);
...@@ -634,5 +642,4 @@ export default { ...@@ -634,5 +642,4 @@ export default {
.ivu-btn-group { .ivu-btn-group {
height: 21px !important; height: 21px !important;
} }
</style> </style>
\ No newline at end of file
<template> <template>
<div class="record"> <div class="record">
<Tabs value="name1"> <Tabs value="name1" @on-click="tabSwitch">
<TabPane label="订单暂停记录" name="name1"> <TabPane label="订单暂停记录" name="name1">
<DataGrid :columns="columns" ref="grid" :action="action" :tool="false" :height="tdHeight"></DataGrid> <DataGrid :columns="columns" ref="grid" :action="action" :tool="false" :height="tdHeight"></DataGrid>
</TabPane> </TabPane>
...@@ -127,18 +127,18 @@ export default { ...@@ -127,18 +127,18 @@ export default {
} }
], ],
columnsProcess: [ columnsProcess: [
{ {
key: "processcode", key: "processcode",
title: "工艺文件编号", title: "工艺文件编号",
align: "left", align: "left",
width: 200, width: 200,
tooltip:true, tooltip: true
}, },
{ {
key: "processname", key: "processname",
title: "工艺名称", title: "工艺名称",
align: "left", align: "left",
tooltip:true, tooltip: true
}, },
{ {
key: "taskSeq", key: "taskSeq",
...@@ -151,14 +151,14 @@ export default { ...@@ -151,14 +151,14 @@ export default {
title: "工序名称", title: "工序名称",
align: "left", align: "left",
width: 350, width: 350,
tooltip:true, tooltip: true
}, },
{ {
key: "desc", key: "desc",
title: "暂停原因", title: "暂停原因",
align: "left", align: "left",
tooltip:true, tooltip: true
}, },
{ {
key: "creatorUserId", key: "creatorUserId",
...@@ -183,7 +183,7 @@ export default { ...@@ -183,7 +183,7 @@ export default {
}, },
mounted() { mounted() {
this.$refs.grid.reload(this.easySearch); this.$refs.grid.reload(this.easySearch);
this.loadList() this.loadList();
window.onresize = () => { window.onresize = () => {
///浏览器窗口大小变化 ///浏览器窗口大小变化
return (() => { return (() => {
...@@ -201,7 +201,7 @@ export default { ...@@ -201,7 +201,7 @@ export default {
methods: { methods: {
loadList() { loadList() {
let params = { let params = {
FilterText: 'order_id="'+this.eid+'"' FilterText: 'order_id="' + this.eid + '"'
}; };
Api.pauseCauseGetpaged(params) Api.pauseCauseGetpaged(params)
.then(res => { .then(res => {
...@@ -215,6 +215,12 @@ export default { ...@@ -215,6 +215,12 @@ export default {
this.$Message.error("连接失败"); this.$Message.error("连接失败");
}); });
}, },
tabSwitch(val) {
//tab切换
if (val == "name2") {
this.loadList();
}
},
search() { search() {
this.$refs.grid.reload(this.easySearch); this.$refs.grid.reload(this.easySearch);
}, },
...@@ -231,7 +237,7 @@ export default { ...@@ -231,7 +237,7 @@ export default {
eid(v) { eid(v) {
this.condition.orderId.value = v; this.condition.orderId.value = v;
this.$refs.grid.reload(this.condition); this.$refs.grid.reload(this.condition);
this.loadList() this.loadList();
} }
} }
}; };
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<DataGrid :columns="columns" :data="result" border :tool="false" :height="820" :page="false"></DataGrid> <DataGrid :columns="columns" :data="result" border :tool="false" :height="820" :page="false"></DataGrid>
</div> </div>
<Modal v-model="workOrderPauseModal" title="工单暂停原因" width="800" footer-hide class="suspend"> <Modal v-model="workOrderPauseModal" title="工单暂停原因" width="800" footer-hide class="suspend">
<EntryPause @on-ok="pauseOk" ref="addBug" :info="info" /> <EntryPause @on-ok="pauseOk" ref="addBug" :info="info" />
</Modal> </Modal>
<Modal v-model="modalSplit" title="订单分卡" width="650" footer-hide> <Modal v-model="modalSplit" title="订单分卡" width="650" footer-hide>
<div slot="close"> <div slot="close">
...@@ -310,11 +310,11 @@ export default { ...@@ -310,11 +310,11 @@ export default {
split(row, index) { split(row, index) {
//工单分卡 //工单分卡
this.getProduct(row.id); this.getProduct(row.id);
(this.initeId = { this.initeId = {
routingDetailId: row.detailId, routingDetailId: row.detailId,
dispatchId: row.id dispatchId: row.id
}), };
(this.modalSplit = true); this.modalSplit = true;
}, },
onchangeAction(val) { onchangeAction(val) {
//选择移入排产时显示排产模型下拉框 //选择移入排产时显示排产模型下拉框
...@@ -353,7 +353,7 @@ export default { ...@@ -353,7 +353,7 @@ export default {
.then(res => { .then(res => {
if (res.success) { if (res.success) {
this.$Message.success("分卡成功"); this.$Message.success("分卡成功");
this.$emit("on-close") this.$emit("on-close");
} else { } else {
this.$Message.error("分卡失败"); this.$Message.error("分卡失败");
} }
......
...@@ -5,13 +5,10 @@ ...@@ -5,13 +5,10 @@
<div class="sear_btn"> <div class="sear_btn">
<Input search class="search_box mr10" enter-button placeholder="请输入文件名" /> <Input search class="search_box mr10" enter-button placeholder="请输入文件名" />
<a @click="allChecked" ><Icon type="md-checkbox-outline" />全选</a> <a @click="allChecked" ><Icon type="md-checkbox-outline" />全选</a>
<a @click="copyCard" ><Icon type="ios-browsers-outline" />复制</a> <!-- <a @click="copyCard" ><Icon type="ios-browsers-outline" />复制</a> -->
<a @click="deliteCard" ><Icon type="ios-trash-outline" />删除</a>
<a @click="importCard" ><Icon type="ios-log-in" />导入</a> <a @click="importCard" ><Icon type="ios-log-in" />导入</a>
<a @click="exportCard" ><Icon type="ios-log-out" />导出</a>
<a @click="addCard" ><Icon type="ios-add-circle-outline" />新建</a> <a @click="addCard" ><Icon type="ios-add-circle-outline" />新建</a>
<span>{{cardlist.length}} 个案例;</span> <span>{{cardlist.length}} 个案例;</span>
<span>已选择 {{checkCards}} 个案例</span>
</div> </div>
<a class="slip fr" @click="starFun" ><Icon type="md-swap" /></a> <a class="slip fr" @click="starFun" ><Icon type="md-swap" /></a>
</div> </div>
...@@ -38,7 +35,8 @@ ...@@ -38,7 +35,8 @@
v-for="(item,index) in cardlist" :label="item.id" :key="index"> v-for="(item,index) in cardlist" :label="item.id" :key="index">
<div class="file"> <div class="file">
<Icon type="ios-paper" v-if="item.id%3==0"/> <Icon type="ios-paper" v-if="item.id%3==0"/>
<Icon type="ios-film" v-else/> <!-- <Icon type="ios-film" v-else/> -->
<Icon type="md-film" v-else/>
</div> </div>
<div class="list"> <div class="list">
<ul> <ul>
...@@ -49,8 +47,13 @@ ...@@ -49,8 +47,13 @@
</div> </div>
</Checkbox> </Checkbox>
</CheckboxGroup> </CheckboxGroup>
</div> </div>
<FooterToolbar style="height:65px" v-show="checkCards!=0">
<span>已选择 {{checkCards}} 个案例</span>
<Button class="span ml20" type="primary" @click="deliteCard"><Icon type="ios-trash-outline" />删除</Button>
<Button class="span ml20" type="primary" @click="exportCard"><Icon type="ios-log-out" />导出</Button>
<Button @click="cancel">取消</Button>
</FooterToolbar>
</div> </div>
</template> </template>
<script> <script>
...@@ -60,6 +63,7 @@ export default { ...@@ -60,6 +63,7 @@ export default {
return{ return{
caseLise:[], caseLise:[],
checkCards:0, checkCards:0,
footerToolbar:false,
cardlist:[ cardlist:[
{ {
name:'工艺文档名称', name:'工艺文档名称',
...@@ -252,12 +256,15 @@ export default { ...@@ -252,12 +256,15 @@ export default {
addCard(){ addCard(){
this.$Message.success("新建工艺案例") this.$Message.success("新建工艺案例")
}, },
changeCards(list){ changeCards(list){//多选方法
this.checkCards = list.length this.checkCards = list.length
}, },
changeCard(value){ changeCard(value){
console.log(111) console.log(111)
}, },
cancel(){//底部取消
this.checkCards = 0;
}
}, },
} }
</script> </script>
<template> <template>
<div class="wu_bg"> <div class="wu_bg">
<div class="wu_top"> <!-- <div class="wu_top">
工艺查看 工艺查看 /technology/details/setup/setupDetails
</div> </div> -->
<Layout class="tech_box">
<Header>
<div class="tech_body">
<Menu mode="horizontal" theme="light" active-name="1">
<MenuItem name="1" to="/produce/execute/ProcessCheck/setupDetails">工艺规程</MenuItem>
<MenuItem name="2" to="/produce/execute/ProcessCheck/setupDetails">作业指导书</MenuItem>
<MenuItem name="3" to="/produce/execute/ProcessCheck/setupDetails">工步导航</MenuItem>
<MenuItem name="4" to="/produce/execute/ProcessCheck/setupDetails">工艺提醒</MenuItem>
</Menu>
</div>
</Header>
<Layout class="bottom_box" >
<nuxt-child keep-alive></nuxt-child>
</Layout>
</Layout>
</div> </div>
</template> </template>
<script> <script>
......
<template>
<div class="">
<div class="">
工艺规程
</div>
</div>
</template>
<script>
export default {
name:'starOrder',
data(){
return{
starmodal: false,
}
},
created() {
// this.treeHeight = window.innerHeight - 120;
},
async fetch({ store, params }) {
await store.dispatch("loadDictionary"); // 加载数据字典
},
mounted() {
window.onresize = () => {
///浏览器窗口大小变化
return (() => {
this.treeHeight = window.innerHeight - 120;
})();
};
},
methods: {
starFun(){
this.$Message.success("开工...")
},
},
}
</script>
...@@ -334,6 +334,48 @@ ...@@ -334,6 +334,48 @@
.wu_bg{ .wu_bg{
height: calc(100vh - 165px); height: calc(100vh - 165px);
} }
.tech_box{
height: calc(100vh - 165px);
.tech_body{
// padding: 0 20px;
.ivu-layout-header{
height: 0;
}
.ivu-menu-horizontal{
height: 40px;
line-height: 40px;
.ivu-menu-item{
width: 115px;
text-align: center;
}
a.ivu-menu-item-active::before{
content: "";
display: block;
border-width: 5px 6px 0;
border-style: solid;
border-color: #2d8cf0 transparent transparent;
width: 0;
height: 0;
position: absolute;
bottom: -6px;
left: 43%;
}
a.ivu-menu-item-active::after{
content: "";
display: block;
border-width: 4px 4px 0;
border-style: solid;
border-color: #fff transparent transparent;
width: 0;
height: 0;
position: absolute;
bottom: -4px;
left: 44%;
}
}
}
}
.case_top{ .case_top{
padding: 15px 70px 10px; padding: 15px 70px 10px;
.sear_btn{ .sear_btn{
...@@ -355,7 +397,7 @@ ...@@ -355,7 +397,7 @@
} }
} }
.slip{ .slip{
margin-right: 20px; margin-right: 10px;
i.ivu-icon{ i.ivu-icon{
font-size: 32px; font-size: 32px;
transform:rotate(90deg); transform:rotate(90deg);
...@@ -367,13 +409,13 @@ ...@@ -367,13 +409,13 @@
} }
} }
.case_box{ .case_box{
padding: 10px 20px; padding: 10px 20px 44px;
height: calc(100vh - 210px); height: calc(100vh - 210px);
overflow-y: auto; overflow-y: auto;
.file_card{ .file_card{
background: #F5F6FA; background: #F5F6FA;
margin: 10px 50px; margin: 15px 50px;
width: 360px; width: 367px;
padding: 18px; padding: 18px;
height: 110px; height: 110px;
line-height: 24px; line-height: 24px;
...@@ -387,7 +429,7 @@ ...@@ -387,7 +429,7 @@
float: left; float: left;
margin: 0 8px 0 0; margin: 0 8px 0 0;
i{ i{
font-size: 58px; font-size: 62px;
} }
} }
} }
......
<style lang="less"> <style lang="less">
@import './technolog.less'; @import "./technolog.less";
.details_box{ .details_box {
background: #f5f7f9; background: #f5f7f9;
display: flex; display: flex;
margin: 0 20px; margin: 0 20px;
flex-direction: column; flex-direction: column;
.details_body{ .details_body {
flex-grow: 1; flex-grow: 1;
// width: 561px; // width: 561px;
text-align: center; text-align: center;
background: white; background: white;
.ivu-menu-horizontal { .ivu-menu-horizontal {
height: 50px; height: 50px;
line-height: 50px; line-height: 50px;
border-left: 1px solid #ccc; border-left: 1px solid #ccc;
background: #f5f7f9; background: #f5f7f9;
z-index: 888; z-index: 888;
.ivu-menu-item{ .ivu-menu-item {
width: 140px; width: 140px;
border-right: 1px solid #E0E0E0; border-right: 1px solid #e0e0e0;
border-bottom: 1px solid #E0E0E0; border-bottom: 1px solid #e0e0e0;
border-top: 1px solid #E0E0E0; border-top: 1px solid #e0e0e0;
background: rgba(243,243,243,1); background: rgba(243, 243, 243, 1);
} }
.ivu-menu-item-active.ivu-menu-item-selected{ .ivu-menu-item-active.ivu-menu-item-selected {
background: #fff; background: #fff;
border-top: 2px solid #2d8cf0; border-top: 2px solid #2d8cf0;
border-bottom: 1px solid #fff; border-bottom: 1px solid #fff;
} }
}
}
.bottom_box{
padding: 5px 20px;
background: white;
border: 1px solid #ccc;
border-top: 0;
} }
}
.bottom_box {
padding: 5px 20px;
background: white;
border: 1px solid #ccc;
border-top: 0;
}
} }
</style> </style>
<template> <template>
<div class="details_box"> <div class="details_box">
<div class="details_body"> <div class="details_body">
<Menu mode="horizontal" theme="light" active-name="0"> <Menu mode="horizontal" theme="light" active-name="0">
<MenuItem name="0" :to="'/technology/details?id='+headerId">工序</MenuItem> <MenuItem name="0" :to="'/technology/details?id='+headerId">工序</MenuItem>
<!-- <MenuItem name="1" :to="'/technology/details/routingStep?id='+headerId">工步</MenuItem> --> <!-- <MenuItem name="1" :to="'/technology/details/routingStep?id='+headerId">工步</MenuItem> -->
<MenuItem name="2" :to="'/technology/details/routingqccard?id='+headerId">质控卡</MenuItem> <MenuItem name="2" :to="'/technology/details/routingqccard?id='+headerId">质控卡</MenuItem>
<MenuItem name="3" :to="'/technology/details/routingsupporting?id='+headerId">工艺BOM</MenuItem> <MenuItem name="3" :to="'/technology/details/routingsupporting?id='+headerId">工艺BOM</MenuItem>
<!-- <MenuItem name="4" to="/technology/details/setup/setupDetails">生产准备</MenuItem> --> <!-- <MenuItem name="4" to="/technology/details/setup/setupDetails">生产准备</MenuItem> -->
<MenuItem name="5" :to="'/technology/details/routinghcorder?id='+headerId">工艺更改单</MenuItem> <MenuItem name="5" :to="'/technology/details/routinghcorder?id='+headerId">工艺更改单</MenuItem>
</Menu> </Menu>
</div>
<div class="bottom_box">
<nuxt-child keep-alive :headerid="headerId"></nuxt-child>
</div>
</div> </div>
<div class="bottom_box">
<nuxt-child keep-alive :headerid="headerId"></nuxt-child>
</div>
</div>
</template> </template>
<script> <script>
import Api from "./api"; import Api from "./api";
export default { export default {
layout:"empty", layout: "empty",
components: {}, components: {},
data() { data() {
return { return {
showMenu:true, showMenu: true,
treeHeight: '', treeHeight: "",
actNum:'1', actNum: "1",
headerId:-1 headerId: -1
} };
}, },
created() { created() {
console.log("xiang",this.$route,this.router) console.log("xiang", this.$route, this.router);
this.headerId=this.$route.query.id; this.headerId = this.$route.query.id;
}, },
async fetch({ store, params }) { async fetch({ store, params }) {
await store.dispatch('loadDictionary') // 加载数据字典 await store.dispatch("loadDictionary"); // 加载数据字典
},
mounted() {
}, },
computed: { }, mounted() {},
methods: { computed: {},
}, methods: {},
watch:{ watch: {}
};
}
}
</script> </script>
<style>
/* 弹框title */
.ivu-modal-header-inner {
color: #2680eb !important;
}
</style>
<template> <template>
<div class="details"> <div class="details">
<Form ref="form" :model="entity" :rules="rules" :label-width="110"> <Form ref="form" :model="entity" :rules="rules" :label-width="120">
<Row> <Row>
<!-- <!--
<Col :span="12"> <Col :span="12">
...@@ -75,23 +75,23 @@ ...@@ -75,23 +75,23 @@
--> -->
<Col :span="8"> <Col :span="8">
<FormItem :label="l('taskSeq')" prop="taskSeq"> <FormItem :label="l('taskSeq')" prop="taskSeq">
<InputNumber v-model="maxNum" style="width:100%"></InputNumber> <InputNumber v-model="maxNum" style="width:235px"></InputNumber>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="8"> <Col :span="8">
<FormItem :label="l('name')" prop="name"> <FormItem :label="l('name')" prop="name">
<Input v-model="entity.name"></Input> <Input v-model="entity.name" style="width:235px"></Input>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="8"> <Col :span="8">
<FormItem :label="l('equipType')" prop="equipTypeId"> <FormItem :label="l('equipType')" prop="equipTypeId">
<EquipSelect v-model="entity.equipTypeId" @on-change="equipChange"></EquipSelect> <EquipSelect v-model="entity.equipTypeId" @on-change="equipChange" style="width:235px"></EquipSelect>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="8"> <Col :span="8">
<FormItem :label="l('resourceType')" prop="resourceType"> <FormItem :label="l('resourceType')" prop="resourceType">
<!-- <Dictionary code="Process.routing_detail.resource_type" v-model="entity.resourceType"></Dictionary> --> <!-- <Dictionary code="Process.routing_detail.resource_type" v-model="entity.resourceType"></Dictionary> -->
<ResourceSelect v-model="entity.resourceId" @on-change="resourceChange"></ResourceSelect> <ResourceSelect v-model="entity.resourceId" @on-change="resourceChange" style="width:235px"></ResourceSelect>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="8"> <Col :span="8">
...@@ -147,14 +147,15 @@ ...@@ -147,14 +147,15 @@
</Col> </Col>
<Col :span="8"> <Col :span="8">
<FormItem :label="l('efficiencyValue')" prop="efficiencyValue"> <FormItem :label="l('efficiencyValue')" prop="efficiencyValue">
<InputNumber v-model="entity.efficiencyValue" style="width:100%"></InputNumber> <InputNumber v-model="entity.efficiencyValue" style="width:235px"></InputNumber>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="8"> <Col :span="8">
<FormItem :label="l('singleOut')" prop="singleOut"> <FormItem :label="l('singleOut')" prop="singleOut">
<InputNumber v-model="entity.singleOut" style="width:100%"></InputNumber> <InputNumber v-model="entity.singleOut" style="width:235px"></InputNumber>
</FormItem> </FormItem>
</Col> </Col>
<Divider />
<Col :span="24"> <Col :span="24">
<FormItem :label="l('taskContent')" prop="taskContent"> <FormItem :label="l('taskContent')" prop="taskContent">
<i-quill v-model="entity.taskContent" :height="200" v-paste="handleImg" border /> <i-quill v-model="entity.taskContent" :height="200" v-paste="handleImg" border />
......
<template> <template>
<Form ref="form" :model="entity" :rules="rules" :label-width="100"> <Form ref="form" :model="entity" :rules="rules" :label-width="120" class="eid-form">
<Row> <Row>
<Col :span="8"> <Col :span="8">
<FormItem :label="l('taskSeq')" prop="taskSeq"> <FormItem :label="l('taskSeq')" prop="taskSeq">
<InputNumber v-model="entity.taskSeq"></InputNumber> <InputNumber v-model="entity.taskSeq" style="width:235px"></InputNumber >
</FormItem> </FormItem>
</Col> </Col>
<Col :span="8"> <Col :span="8">
<FormItem :label="l('name')" prop="name"> <FormItem :label="l('name')" prop="name">
<Input v-model="entity.name"></Input> <Input v-model="entity.name" style="width:235px"></Input>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="8"> <Col :span="8">
<FormItem :label="l('equipType')" prop="equipTypeId"> <FormItem :label="l('equipType')" prop="equipTypeId">
<EquipSelect v-model="entity.equipTypeId" @on-change="equipChange"></EquipSelect> <EquipSelect v-model="entity.equipTypeId" @on-change="equipChange" style="width:235px"></EquipSelect>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="8"> <Col :span="8">
<FormItem :label="l('resourceType')" prop="resourceType"> <FormItem :label="l('resourceType')" prop="resourceType">
<ResourceSelect v-model="entity.resourceId" @on-change="resourceChange"></ResourceSelect> <ResourceSelect v-model="entity.resourceId" @on-change="resourceChange" style="width:235px"></ResourceSelect>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="8"> <Col :span="8">
...@@ -82,6 +82,7 @@ ...@@ -82,6 +82,7 @@
<InputNumber v-model="entity.singleOut"></InputNumber> <InputNumber v-model="entity.singleOut"></InputNumber>
</FormItem> </FormItem>
</Col> </Col>
<Divider />
<Col :span="24"> <Col :span="24">
<FormItem :label="l('taskContent')" prop="taskContent"> <FormItem :label="l('taskContent')" prop="taskContent">
<i-quill v-model="entity.taskContent" :height="200" border v-paste="handleImg" /> <i-quill v-model="entity.taskContent" :height="200" border v-paste="handleImg" />
...@@ -199,4 +200,4 @@ export default { ...@@ -199,4 +200,4 @@ export default {
} }
} }
}; };
</script> </script>
\ No newline at end of file
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<Button type="primary" @click="add">新增</Button> <Button type="primary" @click="add">新增</Button>
</template> </template>
</DataGrid> </DataGrid>
<Modal v-model="modal" :title="title" width="1200" footer-hide> <Modal v-model="modal" :title="title" width="1300" footer-hide>
<component <component
:is="detail" :is="detail"
:eid="curId" :eid="curId"
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
@import '../../../technolog.less'; @import '../../../technolog.less';
</style> </style>
<template> <template>
<div>主材</div> <div>主材121</div>
</template> </template>
<script> <script>
......
...@@ -75,13 +75,13 @@ ...@@ -75,13 +75,13 @@
height: 40px; height: 40px;
line-height: 40px; line-height: 40px;
.ivu-menu-item{ .ivu-menu-item{
width: 97px; width: 115px;
text-align: center; text-align: center;
} }
a.ivu-menu-item-active::before{ a.ivu-menu-item-active::before{
content: ""; content: "";
display: block; display: block;
border-width: 5px 5px 0; border-width: 5px 6px 0;
border-style: solid; border-style: solid;
border-color: #2d8cf0 transparent transparent; border-color: #2d8cf0 transparent transparent;
width: 0; width: 0;
......
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