Commit 6428865d authored by renjintao's avatar renjintao

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

parents 6945e821 a6f9a5ea
......@@ -87,27 +87,4 @@ export default {
}
}
}
</script>
<style lang="less">
.detail {
display: table;
border-collapse: collapse;
.ivu-row {
display: table-row;
.filed-col {
display: table-cell;
border: 1px solid #ddd;
margin: 0 0 -1px -1px;
line-height: 30px;
box-sizing: border-box;
.label {
background: #e8eaf1;
display: inline-block;
width: 120px;
text-align: right;
padding: 0 5px;
}
}
}
}
</style>
\ No newline at end of file
</script>
\ No newline at end of file
<template>
<Col :span="span" class="filed-col">
<div v-text="name" class="label"></div>
<p>
<div class="label">
<label v-text="name"></label>
</div>
<div class="value">
<slot></slot>
</p>
</div>
</Col>
</template>
<script>
......@@ -25,6 +27,7 @@ export default {
display: table;
height: 100%;
border-collapse: collapse;
background: white;
.ivu-row {
border: 1px solid #ddd;
border-top: none;
......@@ -33,31 +36,27 @@ export default {
border: 1px solid #ddd;
border-right: none;
margin: 0 -1px -1px -1px;
box-sizing: border-box;
// box-sizing: border-box;
display: flex;
flex-direction: row;
line-height: 40px;
.label {
>.label {
background: #f7f7f7;
display: inline-block;
width: 110px;
flex-grow: 0;
width: 120px;
text-align: right;
padding: 0 10px 0 0;
padding: 0 8px;
border-right: 1px solid #ddd;
flex-shrink: 0;
}
p {
>.value {
word-break: break-all;
word-wrap: break-word;
flex-grow: 1;
padding-left: 10px;
}
}
.ivu-col-span-24 {
.label {
height: 100%;
padding: 0.5% 5px;
}
p {
padding-top: 1%;
>div{
line-height: 30px;
}
}
}
}
......@@ -68,7 +67,7 @@ export default {
.filed-col {
box-sizing: border-box;
line-height: 70px;
.label {
>.label {
display: inline-block;
width: 100px;
text-align: right;
......@@ -76,7 +75,7 @@ export default {
height: 100%;
font-weight: bold;
}
p {
>p {
text-align: left;
height: 100%;
word-break: break-all;
......
......@@ -5611,9 +5611,9 @@
"dev": true
},
"dayjs": {
"version": "1.8.25",
"resolved": "http://r.cnpmjs.org/dayjs/download/dayjs-1.8.25.tgz",
"integrity": "sha1-0JqGls7nGRvBKJ5zn5ZiY5G5xzw="
"version": "1.8.26",
"resolved": "http://r.cnpmjs.org/dayjs/download/dayjs-1.8.26.tgz",
"integrity": "sha1-xtYszfBYynKo0Uu5OiNQEFjbnx4="
},
"de-indent": {
"version": "1.0.2",
......@@ -8153,6 +8153,16 @@
"vue": "^2.6.10"
}
},
"gantt-elastic-header": {
"version": "0.1.11",
"resolved": "http://r.cnpmjs.org/gantt-elastic-header/download/gantt-elastic-header-0.1.11.tgz",
"integrity": "sha1-i5/sjlFwm4L/WaA4bwZoUK5pxtE=",
"requires": {
"vue": "^2.6.10",
"vue-slider-component": "^3.0.31",
"vue-switches": "^2.0.1"
}
},
"gensync": {
"version": "1.0.0-beta.1",
"resolved": "http://r.cnpmjs.org/gensync/download/gensync-1.0.0-beta.1.tgz",
......@@ -9548,8 +9558,7 @@
"dependencies": {
"deepmerge": {
"version": "2.2.1",
"resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-2.2.1.tgz",
"integrity": "sha512-R9hc1Xa/NOBi9WRVUWg19rl1UB7Tt4kuPd+thNJgFZoxXsTz7ncaPaeIm+40oSGuP33DfMb4sZt1QIGiJzC4EA=="
"resolved": false
}
}
},
......
......@@ -18,10 +18,11 @@
"awe-dnd": "^0.3.4",
"better-scroll": "^1.12.1",
"cross-env": "^5.2.0",
"dayjs": "^1.8.22",
"dayjs": "^1.8.26",
"echarts": "^4.7.0",
"echarts-liquidfill": "^2.0.5",
"gantt-elastic": "^1.0.11",
"gantt-elastic-header": "^0.1.11",
"gojs": "^2.1.10",
"iview-loader": "^1.3.0",
"iview-pro": "file:./iview-pro",
......
......@@ -277,6 +277,7 @@ export default {
//拆分工序
split(item, i) {
this.chaiModal = true;
this.curIndex = i;
this.maxnum = this.result[i].quantity - 1;
},
......@@ -284,30 +285,34 @@ export default {
okChai() {
let items = this.$u.clone(this.result);
let curItem = items[this.curIndex];
console.log(curItem);
let addItem = this.$u.clone(curItem);
curItem.quantity -= this.chaiNum;
curItem.chaiCount += 1;
addItem.seq = addItem.task_seq + curItem.chaiCount * 0.1;
addItem.quantity = this.chaiNum;
addItem.chai = true;
items.splice(this.curIndex + curItem.chaiCount, 0, addItem);
let total = null;
if (curItem.chaiCount) {
total = this.curIndex + curItem.chaiCount;
} else {
total = this.curIndex;
}
items.splice(total, 0, addItem);
this.result = items;
},
//删除工序
remove(item, index) {
console.log(item);
var root = -1;
for (let i = 0; i < this.result.length; i++) {
const element = this.result[i];
if (element.indexId == item.indexId) {
root = i;
break;
let vroot = -1;
this.result.map((u, i) => {
if (!u.chai && u.detailId === item.detailId) {
vroot = i;
}
}
var rootItem = this.result[root];
this.result[root].quantity = rootItem.quantity + item.quantity;
this.result.splice(index, 1);
u.chaiCount = u.chaiCount - 1;
});
this.result[vroot].quantity += item.quantity;
var list = this.$u.clone(this.result);
list.splice(index, 1);
this.result = list;
},
//下发
lowerHair() {
......
......@@ -77,27 +77,4 @@ export default {
},
watch: {}
}
</script>
<style lang="less">
.detail {
display: table;
border-collapse: collapse;
.ivu-row {
display: table-row;
.filed-col {
display: table-cell;
border: 1px solid #ddd;
margin: 0 0 -1px -1px;
line-height: 30px;
box-sizing: border-box;
.label {
background: #e8eaf1;
display: inline-block;
width: 120px;
text-align: right;
padding: 0 5px;
}
}
}
}
</style>
</script>
\ No newline at end of file
......@@ -103,27 +103,4 @@ export default {
},
watch: {}
};
</script>
<style lang="less">
.detail {
display: table;
border-collapse: collapse;
.ivu-row {
display: table-row;
.filed-col {
display: table-cell;
border: 1px solid #ddd;
margin: 0 0 -1px -1px;
line-height: 30px;
box-sizing: border-box;
.label {
background: #e8eaf1;
display: inline-block;
width: 120px;
text-align: right;
padding: 0 5px;
}
}
}
}
</style>
</script>
\ No newline at end of file
......@@ -103,27 +103,4 @@ export default {
},
watch: {}
};
</script>
<style lang="less">
.detail {
display: table;
border-collapse: collapse;
.ivu-row {
display: table-row;
.filed-col {
display: table-cell;
border: 1px solid #ddd;
margin: 0 0 -1px -1px;
line-height: 30px;
box-sizing: border-box;
.label {
background: #e8eaf1;
display: inline-block;
width: 120px;
text-align: right;
padding: 0 5px;
}
}
}
}
</style>
</script>
\ No newline at end of file
......@@ -104,27 +104,4 @@ export default {
},
watch: {}
};
</script>
<style lang="less">
.detail {
display: table;
border-collapse: collapse;
.ivu-row {
display: table-row;
.filed-col {
display: table-cell;
border: 1px solid #ddd;
margin: 0 0 -1px -1px;
line-height: 30px;
box-sizing: border-box;
.label {
background: #e8eaf1;
display: inline-block;
width: 120px;
text-align: right;
padding: 0 5px;
}
}
}
}
</style>
</script>
\ No newline at end of file
......@@ -80,27 +80,4 @@ export default {
},
watch: {}
}
</script>
<style lang="less">
.detail {
display: table;
border-collapse: collapse;
.ivu-row {
display: table-row;
.filed-col {
display: table-cell;
border: 1px solid #ddd;
margin: 0 0 -1px -1px;
line-height: 30px;
box-sizing: border-box;
.label {
background: #e8eaf1;
display: inline-block;
width: 120px;
text-align: right;
padding: 0 5px;
}
}
}
}
</style>
</script>
\ No newline at end of file
......@@ -79,27 +79,4 @@ export default {
},
watch: {}
}
</script>
<style lang="less">
.detail {
display: table;
border-collapse: collapse;
.ivu-row {
display: table-row;
.filed-col {
display: table-cell;
border: 1px solid #ddd;
margin: 0 0 -1px -1px;
line-height: 30px;
box-sizing: border-box;
.label {
background: #e8eaf1;
display: inline-block;
width: 120px;
text-align: right;
padding: 0 5px;
}
}
}
}
</style>
</script>
\ No newline at end of file
<template>
<div class="detail"style="width:90%;margin:0 auto" >
<Row>
<Filed :span="120" :name="'工艺更改单'">{{results.changeorder_code}}</Filed>
<Filed :span="120" :name="'提出人'">{{results.propose_user_name}}</Filed>
<Filed :span="120" :name="'申请部门'">{{results.department_name}}</Filed>
<Filed :span="120" :name="'技术文件名称'">{{results.technical_name}}</Filed>
</Row>
<Row>
<Filed :span="120" :name="'数量'">{{results.quantity}}</Filed>
<Filed :span="120" :name="'发行日期'">{{results.print_data}}</Filed>
<Filed :span="120" :name="'更改原因'">{{results.change_reason}}</Filed>
<Filed :span="120" :name="'技术文件编号'">{{results.technical_code}}</Filed>
</Row>
<Row>
<Filed :span="120" :name="'有效日期'">{{results.effective_date}}</Filed>
<Filed :span="120" :name="'执行部门'">{{results.executive_branch}}</Filed>
<Filed :span="120" :name="'更改后版本号'"><state code="Process.Routing.version" :value="results.changed_version+''" type="text"></state></Filed>
<Filed :span="120" :name="'在制品意见'"><state code="Process.Routing.opinion" :value="results.handling_opinions+''" type="text"></state></Filed>
<Filed :span="12" :name="'工艺更改单'">{{results.changeorder_code}}</Filed>
<Filed :span="12" :name="'提出人'">{{results.propose_user_name}}</Filed>
<Filed :span="12" :name="'申请部门'">{{results.department_name}}</Filed>
<Filed :span="12" :name="'技术文件名称'">{{results.technical_name}}</Filed>
<Filed :span="12" :name="'数量'">{{results.quantity}}</Filed>
<Filed :span="12" :name="'发行日期'">{{results.print_data}}</Filed>
<Filed :span="12" :name="'更改原因'">{{results.change_reason}}</Filed>
<Filed :span="12" :name="'技术文件编号'">{{results.technical_code}}</Filed>
<Filed :span="12" :name="'有效日期'">{{results.effective_date}}</Filed>
<Filed :span="12" :name="'执行部门'">{{results.executive_branch}}</Filed>
<Filed :span="12" :name="'更改后版本号'"><state code="Process.Routing.version" :value="results.changed_version+''" type="text"></state></Filed>
<Filed :span="12" :name="'在制品意见'"><state code="Process.Routing.opinion" :value="results.handling_opinions+''" type="text"></state></Filed>
</Row>
<!-- <Row>
<Filed :span="120" :name="'变更前描述'">{{info.changeInfo.before_change_content}}</Filed>
<Filed :span="12" :name="'变更前描述'">{{info.changeInfo.before_change_content}}</Filed>
<Filed :span="120 " :name="'变更后描述'">{{info.changeInfo.after_change_content}}</Filed>
</Row> -->
</div>
......@@ -118,27 +115,4 @@ export default {
}
}
}
</style>
<style lang="less">
.detail {
display: table;
border-collapse: collapse;
.ivu-row {
display: table-row;
.filed-col {
display: table-cell;
border: 1px solid #ddd;
margin: 0 0 -1px -1px;
line-height: 30px;
box-sizing:border-box;
.label {
background: #E8EAF1;
display: inline-block;
width: 120px;
text-align: right;
padding: 0 5px;
}
}
}
}
</style>
</style>
\ No newline at end of file
......@@ -64,27 +64,4 @@ export default {
},
watch: {}
}
</script>
<style lang="less">
.detail {
display: table;
border-collapse: collapse;
.ivu-row {
display: table-row;
.filed-col {
display: table-cell;
border: 1px solid #ddd;
margin: 0 0 -1px -1px;
line-height: 30px;
box-sizing: border-box;
.label {
background: #e8eaf1;
display: inline-block;
width: 120px;
text-align: right;
padding: 0 5px;
}
}
}
}
</style>
</script>
\ No newline at end of file
<template>
<div class="detail" style="width:90%;margin:0 auto" >
<div class="detail" style="width:90%;margin:0 auto">
<Row>
<Filed :span="120" :name="'生产协调单'">{{results.technical_coordination_code}}</Filed>
<Filed :span="120" :name="'任务号'">{{results.taskCode}}</Filed>
<Filed :span="120" :name="'数量'">{{results.quantity}}</Filed>
<Filed :span="120" :name="'阶段'">{{results.phase}}</Filed>
</Row>
<Row>
<Filed :span="120" :name="'产品名称'">{{results.product_name}}</Filed>
<Filed :span="120" :name="'产品标识'">{{results.product_mark}}</Filed>
<Filed :span="120" :name="'协调内容'">{{results.coordinate_content}}</Filed>
<Filed :span="120" :name="'图号'">{{results.drawing}}</Filed>
<!-- <Filed :span="120" :name="'协调结果'">{{results.coordinate_results}}</Filed>
<Filed :span="120" :name="'在制品意见'">{{results.handling_suggestion}}</Filed> -->
<Filed :span="12" :name="'生产协调单'">{{results.technical_coordination_code}}</Filed>
<Filed :span="12" :name="'任务号'">{{results.taskCode}}</Filed>
<Filed :span="12" :name="'数量'">{{results.quantity}}</Filed>
<Filed :span="12" :name="'阶段'">{{results.phase}}</Filed>
<Filed :span="12" :name="'产品名称'">{{results.product_name}}</Filed>
<Filed :span="12" :name="'产品标识'">{{results.product_mark}}</Filed>
<Filed :span="12" :name="'协调内容'">{{results.coordinate_content}}</Filed>
<Filed :span="12" :name="'图号'">{{results.drawing}}</Filed>
<!-- <Filed :span="12" :name="'协调结果'">{{results.coordinate_results}}</Filed>
<Filed :span="12" :name="'在制品意见'">{{results.handling_suggestion}}</Filed>-->
<!-- <Filed :span="12" :name="'更改设计文件'">{{results.change_design_file}}</Filed>
<Filed :span="12" :name="'更改工艺文件'">{{results.change_process_file}}</Filed>
<Filed :span="12" :name="'编写临时工艺'">{{results.compilation_temporary_process}}</Filed>-->
<Filed :span="12" :name="'检验员'">{{results.inspection_person_name}}</Filed>
<Filed :span="12" :name="'检验时间'">{{results.inspection_date}}</Filed>
<!--
<Filed :span="12" :name="'变更前描述'">{{info.changeInfo.before_change_content}}</Filed>
<Filed :span="12" :name="'变更后描述'">{{info.changeInfo.after_change_content}}</Filed>-->
</Row>
<Row>
<!-- <Filed :span="120" :name="'更改设计文件'">{{results.change_design_file}}</Filed>
<Filed :span="120" :name="'更改工艺文件'">{{results.change_process_file}}</Filed>
<Filed :span="120" :name="'编写临时工艺'">{{results.compilation_temporary_process}}</Filed> -->
<Filed :span="120" :name="'检验员'">{{results.inspection_person_name}}</Filed>
<Filed :span="120" :name="'检验时间'">{{results.inspection_date}}</Filed>
</Row>
<!-- <Row>
<Filed :span="120" :name="'变更前描述'">{{info.changeInfo.before_change_content}}</Filed>
<Filed :span="120 " :name="'变更后描述'">{{info.changeInfo.after_change_content}}</Filed>
</Row> -->
</div>
</template>
<script>
import Api from '../api'
import Api from "../api";
export default {
name: 'detail',
name: "detail",
components: {},
props: {
idVal: {
type: String,
default: ''
default: ""
}
},
async fetch({ store, params }) {
await store.dispatch('loadDictionary') // 加载数据字典
await store.dispatch("loadDictionary"); // 加载数据字典
},
data() {
return {
results: {
state: ''
state: ""
}
}
};
},
created() {
this.dataImmut = []
this.dataMut = []
this.dataImmut = [];
this.dataMut = [];
Api.get({ Id: this.idVal }).then((r) => {
Api.get({ Id: this.idVal }).then(r => {
if (r.success) {
this.results = JSON.parse(r.result.formData)
this.results = JSON.parse(r.result.formData);
// let formStr = r.result.formData.replace(/\"/g, '"')
// this.results = JSON.parse(formStr)[0]
} else {
this.$Message.error('加载失败')
this.$Message.error("加载失败");
}
})
});
},
methods: {
load(v) {},
l(key) {
key = 'waitOpened' + '.' + key
return this.$t(key)
key = "waitOpened" + "." + key;
return this.$t(key);
}
},
watch: {}
}
};
</script>
<style lang="less" scoped>
.pdf-detail {
......@@ -119,27 +116,4 @@ export default {
}
}
}
</style>
<style lang="less">
.detail {
display: table;
border-collapse: collapse;
.ivu-row {
display: table-row;
.filed-col {
display: table-cell;
border: 1px solid #ddd;
margin: 0 0 -1px -1px;
line-height: 30px;
box-sizing:border-box;
.label {
background: #E8EAF1;
display: inline-block;
width: 120px;
text-align: right;
padding: 0 5px;
}
}
}
}
</style>
</style>
\ No newline at end of file
<template>
<div class="Design" style="width:80%;margin:50px auto;">
<div class="Design">
<h3>{{ processTitle }}</h3>
<Divider />
<Timeline>
......@@ -192,3 +192,11 @@ export default {
watch: {}
}
</script>
<style lang="less">
.Design{
margin:20px auto; width:90%;
.ivu-timeline-item-head{
background-color: transparent;
}
}
</style>
\ No newline at end of file
......@@ -53,27 +53,4 @@ export default {
}
}
}
</script>
<style lang="less">
.detail {
display: table;
border-collapse: collapse;
.ivu-row {
display: table-row;
.filed-col {
display: table-cell;
border: 1px solid #ddd;
margin: 0 0 -1px -1px;
line-height: 30px;
box-sizing:border-box;
.label {
background: #E8EAF1;
display: inline-block;
width: 120px;
text-align: right;
padding: 0 5px;
}
}
}
}
</style>
\ No newline at end of file
</script>
\ No newline at end of file
<template>
<div class="detail" >
<Row>
<Filed :span="120" :name="'生产协调单'">{{info.changeInfo.technical_coordination_code}}</Filed>
<Filed :span="120" :name="'任务号'">{{info.changeInfo.taskCode}}</Filed>
<Filed :span="120" :name="'数量'">{{info.changeInfo.quantity}}</Filed>
<Filed :span="120" :name="'阶段'">{{info.changeInfo.phase}}</Filed>
<Filed :span="12" :name="'生产协调单'">{{info.changeInfo.technical_coordination_code}}</Filed>
<Filed :span="12" :name="'任务号'">{{info.changeInfo.taskCode}}</Filed>
<Filed :span="12" :name="'数量'">{{info.changeInfo.quantity}}</Filed>
<Filed :span="12" :name="'阶段'">{{info.changeInfo.phase}}</Filed>
</Row>
<Row>
<Filed :span="120" :name="'产品名称'">{{info.changeInfo.product_name}}</Filed>
<Filed :span="120" :name="'产品标识'">{{info.changeInfo.product_mark}}</Filed>
<Filed :span="120" :name="'协调内容'">{{info.changeInfo.coordinate_content}}</Filed>
<Filed :span="120" :name="'图号'">{{info.changeInfo.drawing}}</Filed>
<!-- <Filed :span="120" :name="'协调结果'">{{info.changeInfo.coordinate_results}}</Filed>
<Filed :span="120" :name="'在制品意见'">{{info.changeInfo.handling_suggestion}}</Filed> -->
<Filed :span="12" :name="'产品名称'">{{info.changeInfo.product_name}}</Filed>
<Filed :span="12" :name="'产品标识'">{{info.changeInfo.product_mark}}</Filed>
<Filed :span="12" :name="'协调内容'">{{info.changeInfo.coordinate_content}}</Filed>
<Filed :span="12" :name="'图号'">{{info.changeInfo.drawing}}</Filed>
<!-- <Filed :span="12" :name="'协调结果'">{{info.changeInfo.coordinate_results}}</Filed>
<Filed :span="12" :name="'在制品意见'">{{info.changeInfo.handling_suggestion}}</Filed> -->
<!-- <Filed :span="12" :name="'更改设计文件'">{{info.changeInfo.change_design_file}}</Filed>
<Filed :span="12" :name="'更改工艺文件'">{{info.changeInfo.change_process_file}}</Filed>
<Filed :span="12" :name="'编写临时工艺'">{{info.changeInfo.compilation_temporary_process}}</Filed> -->
<Filed :span="12" :name="'检验员'">{{info.changeInfo.inspection_person_name}}</Filed>
<Filed :span="12" :name="'检验时间'">{{info.changeInfo.inspection_date}}</Filed>
<!-- <Filed :span="12" :name="'变更前描述'">{{info.changeInfo.before_change_content}}</Filed>
<Filed :span="12 " :name="'变更后描述'">{{info.changeInfo.after_change_content}}</Filed> -->
</Row>
<Row>
<!-- <Filed :span="120" :name="'更改设计文件'">{{info.changeInfo.change_design_file}}</Filed>
<Filed :span="120" :name="'更改工艺文件'">{{info.changeInfo.change_process_file}}</Filed>
<Filed :span="120" :name="'编写临时工艺'">{{info.changeInfo.compilation_temporary_process}}</Filed> -->
<Filed :span="120" :name="'检验员'">{{info.changeInfo.inspection_person_name}}</Filed>
<Filed :span="120" :name="'检验时间'">{{info.changeInfo.inspection_date}}</Filed>
</Row>
<!-- <Row>
<Filed :span="120" :name="'变更前描述'">{{info.changeInfo.before_change_content}}</Filed>
<Filed :span="120 " :name="'变更后描述'">{{info.changeInfo.after_change_content}}</Filed>
</Row> -->
</div>
</template>
......@@ -57,27 +55,4 @@ export default {
}
}
}
</script>
<style lang="less">
.detail {
display: table;
border-collapse: collapse;
.ivu-row {
display: table-row;
.filed-col {
display: table-cell;
border: 1px solid #ddd;
margin: 0 0 -1px -1px;
line-height: 30px;
box-sizing:border-box;
.label {
background: #E8EAF1;
display: inline-block;
width: 120px;
text-align: right;
padding: 0 5px;
}
}
}
}
</style>
\ No newline at end of file
</script>
\ No newline at end of file
<template>
<div class="detail" >
<div class="detail">
<Row>
<Filed :span="120" :name="'工艺更改单'">{{info.changeInfo.changeorder_code}}</Filed>
<Filed :span="120" :name="'提出人'">{{info.changeInfo.propose_user_name}}</Filed>
<Filed :span="120" :name="'申请部门'">{{info.changeInfo.department_name}}</Filed>
<Filed :span="120" :name="'技术文件名称'">{{info.changeInfo.technical_name}}</Filed>
<Filed :span="120" :name="'技术文件编号'">{{info.changeInfo.technical_code}}</Filed>
</Row>
<Row>
<Filed :span="120" :name="'执行部门'">{{info.changeInfo.executive_branch}}</Filed>
<Filed :span="120" :name="'数量'">{{info.changeInfo.quantity}}</Filed>
<Filed :span="120" :name="'发行日期'">{{info.changeInfo.print_data}}</Filed>
<Filed :span="120" :name="'更改原因'">{{info.changeInfo.change_reason}}</Filed>
<Filed :span="120" :name="'有效日期'">{{info.changeInfo.effective_date}}</Filed>
<Filed :span="12" :name="'工艺更改单'">{{info.changeInfo.changeorder_code}}</Filed>
<Filed :span="12" :name="'提出人'">{{info.changeInfo.propose_user_name}}</Filed>
<Filed :span="12" :name="'申请部门'">{{info.changeInfo.department_name}}</Filed>
<Filed :span="12" :name="'技术文件名称'">{{info.changeInfo.technical_name}}</Filed>
<Filed :span="12" :name="'技术文件编号'">{{info.changeInfo.technical_code}}</Filed>
<Filed :span="12" :name="'执行部门'">{{info.changeInfo.executive_branch}}</Filed>
<Filed :span="12" :name="'数量'">{{info.changeInfo.quantity}}</Filed>
<Filed :span="12" :name="'发行日期'">{{info.changeInfo.print_data}}</Filed>
<Filed :span="12" :name="'更改原因'">{{info.changeInfo.change_reason}}</Filed>
<Filed :span="12" :name="'有效日期'">{{info.changeInfo.effective_date}}</Filed>
<Filed :span="12" :name="'更改后版本号'">
<state
code="Process.Routing.version"
:value="info.changeInfo.changed_version+''"
type="text"
></state>
</Filed>
<Filed :span="12" :name="'在制品意见'">
<state
code="Process.Routing.opinion"
:value="info.changeInfo.handling_opinions+''"
type="text"
></state>
</Filed>
<!-- <Filed :span="12" :name="'变更前描述'">{{info.changeInfo.before_change_content}}</Filed>
<Filed :span="12 " :name="'变更后描述'">{{info.changeInfo.after_change_content}}</Filed>-->
</Row>
<Row>
<Filed :span="120" :name="'更改后版本号'"><state code="Process.Routing.version" :value="info.changeInfo.changed_version+''" type="text"></state></Filed>
<Filed :span="120" :name="'在制品意见'"><state code="Process.Routing.opinion" :value="info.changeInfo.handling_opinions+''" type="text"></state></Filed>
</Row>
<!-- <Row>
<Filed :span="120" :name="'变更前描述'">{{info.changeInfo.before_change_content}}</Filed>
<Filed :span="120 " :name="'变更后描述'">{{info.changeInfo.after_change_content}}</Filed>
</Row> -->
</div>
</template>
<script>
export default {
name: 'changeInfos',
props: ['info'],
async fetch({ store, params }) {
await store.dispatch('loadDictionary') // 加载数据字典
name: "changeInfos",
props: ["info"],
async fetch({ store, params }) {
await store.dispatch("loadDictionary"); // 加载数据字典
},
data(){
return{
}
data() {
return {};
},
methods: {
arry2Name(arryList, values) {
methods: {
arry2Name(arryList, values) {
//预警类别转换
var codes = arryList
var name = ''
var codes = arryList;
var name = "";
for (let i in codes) {
if (values == codes[i].value) {
name = codes[i].name
name = codes[i].name;
}
}
return name
return name;
},
l(key) {
key = 'orderInfo' + '.' + key
return this.$t(key)
}
}
}
</script>
<style lang="less">
.detail {
display: table;
border-collapse: collapse;
.ivu-row {
display: table-row;
.filed-col {
display: table-cell;
border: 1px solid #ddd;
margin: 0 0 -1px -1px;
line-height: 30px;
box-sizing:border-box;
.label {
background: #E8EAF1;
display: inline-block;
width: 120px;
text-align: right;
padding: 0 5px;
}
l(key) {
key = "orderInfo" + "." + key;
return this.$t(key);
}
}
}
</style>
\ No newline at end of file
};
</script>
\ No newline at end of file
......@@ -161,27 +161,4 @@ export default {
}
}
}
</script>
<style lang="less">
.detail {
display: table;
border-collapse: collapse;
.ivu-row {
display: table-row;
.filed-col {
display: table-cell;
border: 1px solid #ddd;
margin: 0 0 -1px -1px;
line-height: 30px;
box-sizing: border-box;
.label {
background: #e8eaf1;
display: inline-block;
width: 120px;
text-align: right;
padding: 0 5px;
}
}
}
}
</style>
\ No newline at end of file
</script>
\ No newline at end of file
......@@ -58,27 +58,4 @@ export default {
}
}
}
</script>
<style lang="less">
.detail {
display: table;
border-collapse: collapse;
.ivu-row {
display: table-row;
.filed-col {
display: table-cell;
border: 1px solid #ddd;
margin: 0 0 -1px -1px;
line-height: 30px;
box-sizing:border-box;
.label {
background: #E8EAF1;
display: inline-block;
width: 120px;
text-align: right;
padding: 0 5px;
}
}
}
}
</style>
\ No newline at end of file
</script>
\ No newline at end of file
......@@ -161,27 +161,4 @@ export default {
}
}
}
</script>
<style lang="less">
.detail {
display: table;
border-collapse: collapse;
.ivu-row {
display: table-row;
.filed-col {
display: table-cell;
border: 1px solid #ddd;
margin: 0 0 -1px -1px;
line-height: 30px;
box-sizing: border-box;
.label {
background: #e8eaf1;
display: inline-block;
width: 120px;
text-align: right;
padding: 0 5px;
}
}
}
}
</style>
\ No newline at end of file
</script>
\ No newline at end of file
......@@ -58,27 +58,4 @@ export default {
}
}
}
</script>
<style lang="less">
.detail {
display: table;
border-collapse: collapse;
.ivu-row {
display: table-row;
.filed-col {
display: table-cell;
border: 1px solid #ddd;
margin: 0 0 -1px -1px;
line-height: 30px;
box-sizing:border-box;
.label {
background: #E8EAF1;
display: inline-block;
width: 120px;
text-align: right;
padding: 0 5px;
}
}
}
}
</style>
\ No newline at end of file
</script>
\ No newline at end of file
<style lang="less">
@import "../execute.less";
</style>
<template>
<div class="">
<div class="star" v-if="!starmodal">
......
<style lang="less">
@import "../execute.less";
</style>
<template>
<div class="">
<div class="star" v-if="!starmodal">
......
<style lang="less">
@import "../execute.less";
</style>
<template>
<div class="">
<div class="star" v-if="!starmodal">
......
<style lang="less">
@import "../execute.less";
</style>
<template>
<div class="addd">
<ul>
......
<style lang="less">
@import "../execute.less";
</style>
<template>
<div class="order_list">
<!-- <div slot="header">
......
<style lang="less">
@import "../execute.less";
</style>
<template>
<div class="">
<div class="star" v-if="!starmodal">
......
......@@ -100,15 +100,6 @@
.ivu-drawer-body {
padding: 0;
height: calc(100% - 210px);
// .order_title {
// border-bottom: 1px solid #ccc;
// height: 50px;
// line-height: 50px;
// padding: 0 0 0 15px;
// .gd_tt{
// margin: 0 55px 0 0;
// }
// }
.order_list{
.select_t {
padding: 15px 20px;
......@@ -179,4 +170,41 @@
background: #2680EB;
}
}
}
.gs_set{
height: 100vh;
.gs_top{
margin: 15px auto;
width: 1000px;
height: 120px;
background: #2680EB;
color: #fff;
border-radius:4px;
.line_slit{
height: 5em;
float: left;
}
.gs_top_box{
float: left;
width: 46%;
text-align: center;
line-height: 140px;
i{
font-size: 71px;
}
.gs_bo01{
display: inline-block;
}
span{
display: inline-block;
}
.shi{
}
.number{
font-size: 32px;
}
}
}
}
\ No newline at end of file
<style lang="less">
@import "../execute.less";
</style>
<template>
<div class="">
<div class="star" v-if="!starmodal">
......
<style lang="less">
@import "../execute.less";
</style>
<template>
<div class="">
<div class="star" v-if="!starmodal">
......
<style lang="less">
@import "../execute.less";
</style>
<template>
<div class="">
<div class="star" v-if="!starmodal">
......
<style lang="less">
@import "../execute.less";
</style>
<template>
<div class="">
<div class="star" v-if="!starmodal">
......
<style lang="less">
@import "../execute.less";
</style>
<template>
<div class="">
<div class="star" v-if="!starmodal">
<a class="start" @click="starFun" >
<Icon type="md-play" />
工时分配</a>
<div class="gs_set">
<div class="gs_top">
<div class="gs_top_box total_time">
<Icon type="md-pie" />
<div class="gs_bo01">
<span class="shi">总工时</span>
<span class="number">250</span>
</div>
</div>
<div class="star flex fc-b" v-else-if="starmodal">
<Button class="button" size='large' type="primary"><Icon type="ios-pause" /> 暂停</Button>
<Button class="button" size='large' type="primary"><Icon type="logo-angular" /> 交检</Button>
<Button class="button" size='large' type="primary"><Icon type="ios-checkmark-circle-outline" /> 完工</Button>
<Button class="button" size='large' type="primary"><Icon type="md-swap" /> 转序交接</Button>
</div>
<div class="footer_box">
<div class="ul_box fl">
<ul>
<li>名称:名称1</li>
<li>图号:UIGT-763245</li>
<li>状态:未开工</li>
<li>订单编号:097543346</li>
<li>订单属性1:</li>
<li>订单属性2:</li>
<li>订单属性3:</li>
<li>计划数量:10</li>
<li>节点日期:2020-02-25</li>
</ul>
</div>
<div class="ul_box fl">
<ul>
<li>工序名称:名称1</li>
<li>工序序号:UIGT-763245</li>
<li>派工数量:66</li>
<li>资源名称:23366</li>
<li>资源编号:986732038</li>
<li>人员信息:</li>
<li>开始时间:</li>
<li>结束时间:</li>
<li>单件工时:10</li>
<li>准备工时:2020-02-25</li>
</ul>
</div>
<div class="img_box fl">
图片区
<Divider type="vertical" class="line_slit"/>
<div class="gs_top_box allocated">
<Icon type="md-pie" />
<div class="gs_bo01">
<span class="shi">待分配</span>
<span class="number">200</span>
</div>
</div>
</div>
<div class="gs_card_box"></div>
</div>
</template>
<script>
......
<style lang="less">
@import "../execute.less";
</style>
<template>
<div class="">
<div class="star" v-if="!starmodal">
......
......@@ -79,7 +79,7 @@
</Col>
<Col span="24">
<FormItem :label="l('afterChangeContent')" prop="afterChangeContent">
<i-quill v-model="entity.afterChangeContent" :height="200" border v-paste="handleImg" />
<i-quill v-model="entity.afterChangeContent" :height="200" border v-paste="handleImg1" />
</FormItem>
</Col>
......@@ -235,24 +235,45 @@ export default {
},
handleImg(e) {
console.warn(e);
// let file = null
// if (
// e.clipboardData &&
// e.clipboardData.items[0] &&
// e.clipboardData.items[0].type &&
// e.clipboardData.items[0].type.indexOf('image') > -1
// ) {
// //这里就是判断是否有粘贴进来的文件且文件为图片格式
// file = e.clipboardData.items[0].getAsFile()
// let reader = new FileReader()
// reader.readAsDataURL(file)
// setTimeout(() => {
// var img = '<img src="' + reader.result + '" alt=""/>'
// this.bugForm.content += img
// }, 1000)
let file = null
if (
e.clipboardData &&
e.clipboardData.items[0] &&
e.clipboardData.items[0].type &&
e.clipboardData.items[0].type.indexOf('image') > -1
) {
//这里就是判断是否有粘贴进来的文件且文件为图片格式
file = e.clipboardData.items[0].getAsFile()
let reader = new FileReader()
reader.readAsDataURL(file)
setTimeout(() => {
var img = '<img src="' + reader.result + '" alt=""/>'
this.entity.beforeChangeContent += img
}, 1000)
// // new R
// }
// new R
}
},
handleImg1(e) {
console.warn(e);
let file = null
if (
e.clipboardData &&
e.clipboardData.items[0] &&
e.clipboardData.items[0].type &&
e.clipboardData.items[0].type.indexOf('image') > -1
) {
//这里就是判断是否有粘贴进来的文件且文件为图片格式
file = e.clipboardData.items[0].getAsFile()
let reader = new FileReader()
reader.readAsDataURL(file)
setTimeout(() => {
var img = '<img src="' + reader.result + '" alt=""/>'
this.entity.afterChangeContent += img
}, 1000)
// new R
}
},
departChange(v,items)
{
......
......@@ -52,25 +52,25 @@ export default {
}
};
</script>
<style lang="less">
.detail {
display: table;
border-collapse: collapse;
.ivu-row {
display: table-row;
.filed-col {
display: table-cell;
margin: 0 0 -1px 0;
line-height: 30px;
box-sizing: border-box;
.label {
background: #e8eaf1;
display: inline-block;
width: 120px;
text-align: right;
padding: 0 5px;
}
}
}
}
</style>
\ No newline at end of file
// <style lang="less">
// .detail {
// display: table;
// border-collapse: collapse;
// .ivu-row {
// display: table-row;
// .filed-col {
// display: table-cell;
// margin: 0 0 -1px 0;
// line-height: 30px;
// box-sizing: border-box;
// .label {
// background: #e8eaf1;
// display: inline-block;
// width: 120px;
// text-align: right;
// padding: 0 5px;
// }
// }
// }
// }
// </style>
\ No newline at end of file
<template>
<div class="detail">
<Row>
<Filed :span="12" :name="l('routingHeaderId')">{{entity.routingHeaderId}}</Filed>
<!-- <Filed :span="12" :name="l('routingHeaderId')">{{entity.routingHeaderId}}</Filed>
<Filed :span="12" :name="l('classId')">{{entity.classId}}</Filed>
<Filed :span="12" :name="l('proposeUserId')">{{entity.proposeUserId}}</Filed>
<Filed :span="12" :name="l('proposeUserName')">{{entity.proposeUserName}}</Filed>
<Filed :span="12" :name="l('departmentId')">{{entity.departmentId}}</Filed>
<Filed :span="12" :name="l('departmentId')">{{entity.departmentId}}</Filed> -->
<Filed :span="12" :name="l('departmentName')">{{entity.departmentName}}</Filed>
<Filed :span="12" :name="l('technicalName')">{{entity.technicalName}}</Filed>
<Filed :span="12" :name="l('technicalCode')">{{entity.technicalCode}}</Filed>
......@@ -13,18 +13,24 @@
<Filed :span="12" :name="l('quantity')">{{entity.quantity}}</Filed>
<Filed :span="12" :name="l('printData')">{{entity.printData}}</Filed>
<Filed :span="12" :name="l('executiveBranch')">{{entity.executiveBranch}}</Filed>
<Filed :span="12" :name="l('executiveBranchId')">{{entity.executiveBranchId}}</Filed>
<Filed :span="12" :name="l('handlingOpinionsId')">{{entity.handlingOpinionsId}}</Filed>
<!-- <Filed :span="12" :name="l('executiveBranchId')">{{entity.executiveBranchId}}</Filed> -->
<!-- <Filed :span="12" :name="l('handlingOpinionsId')">{{entity.handlingOpinionsId}}</Filed> -->
<Filed :span="12" :name="l('handlingOpinions')">{{entity.handlingOpinions}}</Filed>
<Filed :span="12" :name="l('beforeChangeContent')">{{entity.beforeChangeContent}}</Filed>
<Filed :span="12" :name="l('afterChangeContent')">{{entity.afterChangeContent}}</Filed>
<Filed :span="24" :name="l('beforeChangeContent')">
<div v-html="entity.beforeChangeContent"></div>
</Filed>
<Filed :span="24" :name="l('afterChangeContent')">
<div v-html="entity.afterChangeContent"></div>
</Filed>
<Filed :span="12" :name="l('changeorderCode')">{{entity.changeorderCode}}</Filed>
<Filed :span="24" :name="l('changeReason')">{{entity.changeReason}}</Filed>
<Filed :span="12" :name="l('effectiveDate')">{{entity.effectiveDate}}</Filed>
<Filed :span="12" :name="l('checkPerson')">{{entity.checkPerson}}</Filed>
<Filed :span="12" :name="l('approvalPerson')">{{entity.approvalPerson}}</Filed>
<Filed :span="12" :name="l('status')">{{entity.status}}</Filed>
<Filed :span="24" :name="l('note')">{{entity.note}}</Filed>
<Filed :span="12" :name="l('status')">
<State code="unProduct.repairstatus" :value="entity.status"/>
</Filed>
<!-- <Filed :span="24" :name="l('note')">{{entity.note}}</Filed> -->
</Row>
</div>
</template>
......
......@@ -107,6 +107,7 @@ export default {
</script>
<style lang="less">
.Design {
background: white;
padding: 20px 50px;
.node {
.title {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment