Merge remote-tracking branch 'origin/master'

zhc4dev
赵玉瑞 2 years ago
commit efe7428905
  1. 58
      ant-design-vue-jeecg/src/components/procedure/basicAction.vue
  2. 40
      ant-design-vue-jeecg/src/components/procedure/processFabric.vue
  3. 10
      ant-design-vue-jeecg/src/views/cloths/ZyProcessFabricList.vue
  4. 70
      ant-design-vue-jeecg/src/views/cloths/modules/ZyProcessFabricFormDetail.vue
  5. 11
      ant-design-vue-jeecg/src/views/process/ZyClothActionList.vue
  6. 63
      ant-design-vue-jeecg/src/views/process/modules/ZyClothActionFormDetail.vue
  7. 110
      ant-design-vue-jeecg/src/views/process/modules/ZyProcessDetail.vue

@ -0,0 +1,58 @@
<template>
<div style="padding: 15px 25px;display: flex;justify-content: space-between">
<img :src="img == ''?img1:img" style="width:30%;">
<video v-if="mp4 != ''" :src="mp4" style="border:1px solid #d9d9d9;width:30%;"/>
<p v-else style="padding-top: 20px"> 暂无视频</p>
<table border="1" style="width:30%;font-size:14px;margin-bottom: 20px;" class="table">
<!-- <tr>-->
<!-- <td style="text-align: center">添加人:</td>-->
<!-- <td>{{model.addPeople}}</td>-->
<!-- </tr>-->
<tr>
<td style="text-align: center">频率:</td>
<td>{{tableModel.freq}}</td>
</tr>
<tr>
<td style="text-align: center">描述:</td>
<td>{{tableModel.descr}}</td>
</tr>
<tr>
<td style="text-align: center">机器TMU:</td>
<td>{{tableModel.machineTmu}}</td>
</tr>
<tr>
<td style="text-align: center">手工TMU:</td>
<td>{{tableModel.machineTmu}}</td>
</tr>
<tr>
<td style="text-align: center">编号:</td>
<td>{{tableModel.nums}}</td>
</tr>
</table>
</div>
</template>
<script>
export default {
name: 'basicAction',
props:['tableModel'],
data () {
return {
model:{
},
img:'',//
img1:require('@/assets/9-2.png'),//
mp4:'',//
visible: false,
confirmLoading: false,
validatorRules: {
},
}},
methods: {
}
}
</script>
<style scoped>
.table{border-color:#d9d9d9;border-radius: 3px}
.table td{padding: 10px 20px;max-width: 380px; }
.table td span{color: #333}
</style>

@ -0,0 +1,40 @@
<template>
<div style="padding: 15px 25px;display: flex;justify-content: space-between">
<img :src="img == ''?img1:img" style="width:30%;">
<video v-if="mp4 != ''" :src="mp4" style="border:1px solid #d9d9d9;width:30%;"/>
<p v-else style="padding-top: 20px"> 暂无视频</p>
<table border="1" style="font-size:14px;" class="table" >
<tr>
<td style="text-align: center">工序:</td>
<td>{{tableModel.processId}}</td>
</tr>
<tr>
<td style="text-align: center">辅料:</td>
<td>{{tableModel.fabricId}}</td>
</tr>
</table>
</div>
</template>
<script>
export default {
name: 'processFabric',
props:['tableModel'],
data () {
return {
model:{
},
img:'',//
img1:require('@/assets/9-2.png'),//
mp4:'',//
visible: false,
confirmLoading: false,
validatorRules: {
},
}},
}
</script>
<style scoped>
.table{border-color:#d9d9d9;border-radius: 3px}
.table td{padding: 10px 20px;max-width: 380px;}
.table td span{color: #333}
</style>

@ -88,7 +88,7 @@
<a-divider type="vertical" /> <a-divider type="vertical" />
<a @click="handleDetail(record)">详情</a> <a @click="handleDetail(record.id)">详情</a>
<a-divider type="vertical" /> <a-divider type="vertical" />
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
<a>删除</a> <a>删除</a>
@ -100,6 +100,7 @@
</div> </div>
<zy-process-fabric-modal ref="modalForm" @ok="modalFormOk"></zy-process-fabric-modal> <zy-process-fabric-modal ref="modalForm" @ok="modalFormOk"></zy-process-fabric-modal>
<ZyProcessFabricFormDetail ref="ZyProcessFabricFormDetail"></ZyProcessFabricFormDetail>
</a-card> </a-card>
</template> </template>
@ -110,12 +111,12 @@
import { JeecgListMixin } from '@/mixins/JeecgListMixin' import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import ZyProcessFabricModal from './modules/ZyProcessFabricModal' import ZyProcessFabricModal from './modules/ZyProcessFabricModal'
import {filterMultiDictText} from '@/components/dict/JDictSelectUtil' import {filterMultiDictText} from '@/components/dict/JDictSelectUtil'
import ZyProcessFabricFormDetail from './modules/ZyProcessFabricFormDetail'
export default { export default {
name: 'ZyProcessFabricList', name: 'ZyProcessFabricList',
mixins:[JeecgListMixin, mixinDevice], mixins:[JeecgListMixin, mixinDevice],
components: { components: {
ZyProcessFabricModal ZyProcessFabricModal,ZyProcessFabricFormDetail
}, },
data () { data () {
return { return {
@ -197,6 +198,9 @@
fieldList.push({type:'string',value:'processId',text:'工序',dictCode:'zy_process,process_name,id'}) fieldList.push({type:'string',value:'processId',text:'工序',dictCode:'zy_process,process_name,id'})
fieldList.push({type:'string',value:'fabricId',text:'辅料',dictCode:'zy_fabric,name,id'}) fieldList.push({type:'string',value:'fabricId',text:'辅料',dictCode:'zy_fabric,name,id'})
this.superFieldList = fieldList this.superFieldList = fieldList
},
handleDetail(id){
this.$refs.ZyProcessFabricFormDetail.showModal(id)
} }
} }
} }

@ -0,0 +1,70 @@
<template>
<a-modal
title="工序辅料-详情"
:visible="visible"
:confirm-loading="confirmLoading"
:width='1000'
@ok="handleOk"
@cancel="handleCancel">
<h1 style="text-align: center;margin-bottom: 50px;border-bottom: 1px solid #e8e8e8;padding-bottom: 20px;font-size: 22px">黄淮学院服装智能制造管理平台 - <span>工序辅料</span></h1>
<processFabric :tableModel="model"></processFabric>
</a-modal>
</template>
<script>
import { httpAction, getAction } from '@/api/manage'
import { validateDuplicateValue } from '@/utils/util'
import processFabric from '@/components/procedure/processFabric'
export default {
name: 'ZyProcessFabricFormDetail',
components: {
processFabric
},
data () {
return {
code:'',
id:'',
model:{
},
visible:false,
labelCol: {
xs: { span: 24 },
sm: { span: 5 },
},
wrapperCol: {
xs: { span: 24 },
sm: { span: 16 },
},
confirmLoading: false,
validatorRules: {
},
}
},
methods: {
showModal(id) {
this.visible = true;
this.$http.get('pro/zyProcessFabric/queryById?id='+id).then(
res=>{
this.model = res.result
}
)
},
handleOk() {
this.confirmLoading = true;
setTimeout(() => {
this.visible = false;
this.confirmLoading = false;
}, 1);
},
handleCancel() {
this.visible = false;
},
}
}
</script>
<style scoped>
.table{border-color:#d9d9d9;border-radius: 3px}
.table td{padding: 10px 20px;max-width: 380px; }
.table td span{color: #333}
</style>

@ -88,7 +88,7 @@
<a-divider type="vertical" /> <a-divider type="vertical" />
<a @click="handleDetail(record)">详情</a> <a @click="handleDetail(record.id)">详情</a>
<a-divider type="vertical" /> <a-divider type="vertical" />
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
<a>删除</a> <a>删除</a>
@ -100,6 +100,7 @@
</div> </div>
<zy-cloth-action-modal ref="modalForm" @ok="modalFormOk"></zy-cloth-action-modal> <zy-cloth-action-modal ref="modalForm" @ok="modalFormOk"></zy-cloth-action-modal>
<ZyClothActionFormDetail ref="ZyClothActionFormDetail"></ZyClothActionFormDetail>
</a-card> </a-card>
</template> </template>
@ -109,12 +110,13 @@
import { mixinDevice } from '@/utils/mixin' import { mixinDevice } from '@/utils/mixin'
import { JeecgListMixin } from '@/mixins/JeecgListMixin' import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import ZyClothActionModal from './modules/ZyClothActionModal' import ZyClothActionModal from './modules/ZyClothActionModal'
import ZyClothActionFormDetail from './modules/ZyClothActionFormDetail'
export default { export default {
name: 'ZyClothActionList', name: 'ZyClothActionList',
mixins:[JeecgListMixin, mixinDevice], mixins:[JeecgListMixin, mixinDevice],
components: { components: {
ZyClothActionModal ZyClothActionModal,ZyClothActionFormDetail
}, },
data () { data () {
return { return {
@ -217,10 +219,13 @@
fieldList.push({type:'int',value:'manualTmu',text:'手工TMU',dictCode:''}) fieldList.push({type:'int',value:'manualTmu',text:'手工TMU',dictCode:''})
fieldList.push({type:'string',value:'nums',text:'编号',dictCode:''}) fieldList.push({type:'string',value:'nums',text:'编号',dictCode:''})
this.superFieldList = fieldList this.superFieldList = fieldList
},
handleDetail(id){
this.$refs.ZyClothActionFormDetail.showModal(id)
} }
} }
} }
</script> </script>
<style scoped> <style scoped lang="less">
@import '~@assets/less/common.less'; @import '~@assets/less/common.less';
</style> </style>

@ -0,0 +1,63 @@
<template>
<a-modal
title="基础动作-详情"
:visible="visible"
:confirm-loading="confirmLoading"
:width='1200'
@ok="handleOk"
@cancel="handleCancel">
<h1 style="text-align: center;margin-bottom: 30px;border-bottom: 1px solid #e8e8e8;padding-bottom: 20px;">黄淮学院服装智能制造管理平台 - <span>基础动作</span></h1>
<basicAction :tableModel="model"></basicAction>
</a-modal>
</template>
<script>
import { httpAction, getAction } from '@/api/manage'
import { validateDuplicateValue } from '@/utils/util'
import basicAction from '@/components/procedure/basicAction'
export default {
name: 'ZyClothActionFormDetail',
components: {
basicAction
},
data () {
return {
model:{
},
img:'',//
img1:require('@/assets/9-2.png'),//
mp4:'',//
visible: false,
confirmLoading: false,
validatorRules: {
},
}
},
methods: {
showModal(id) {
this.visible = true;
this.$http.get('base/zyClothAction/queryById?id='+id).then(
res=>{
this.model = res.result
}
)
},
handleOk() {
this.confirmLoading = true;
setTimeout(() => {
this.visible = false;
this.confirmLoading = false;
}, 1);
},
handleCancel() {
this.visible = false;
},
}
}
</script>
<style scoped>
.table{border-color:#d9d9d9;border-radius: 3px}
.table td{padding: 10px 20px;max-width: 380px; }
.table td span{color: #333}
</style>

@ -9,58 +9,72 @@
@cancel="handleCancel" @cancel="handleCancel"
style="display:flex;" style="display:flex;"
> >
<div style="height:300px;width: 100%;display:flex;"> <div style="width: 96%;margin:0 auto 30px;border-bottom: 1px solid #e8e8e8;padding-bottom: 30px">
<table border="1" style="width: 85%;height:100%;font-size:14px;"> <h1 style="text-align: center;margin-bottom: 30px;border-bottom: 1px solid #e8e8e8;padding-bottom: 20px">黄淮学院服装智能制造管理平台 - <span>基本工序</span></h1>
<div style="width:100%;height:100%;display: flex;align-items: start;justify-content: space-between;margin-bottom: 20px;" class="coin">
<img :src="img == ''?img:img1" style="width:32%;">
<table border="1" style="width: 66%;height:100%;font-size:14px;margin-bottom: 20px" class="table">
<tr> <tr>
<td><span style="font-weight:bold;">工序代码</span>{{data.processCode}}</td> <td><span>工序代码</span>{{data.processCode}}</td>
<td><span style="font-weight:bold;">工序名称</span>{{data.processName}}</td> <td><span>工序名称</span>{{data.processName}}</td>
<td><span style="font-weight:bold;">工艺描述</span>{{data.processDescribe}}</td> <td><span>工序时间</span>{{data.processTime}}</td>
<td><span style="font-weight:bold;">做工说明</span>{{data.mkExplain}}</td> <td><span>工序单价</span>{{data.price}}</td>
<td><span style="font-weight:bold;">品质要求</span>{{data.qualityRequire}}</td>
</tr> </tr>
<tr> <tr>
<td><span style="font-weight:bold;">工序时间</span>{{data.processTime}}</td> <td><span>工序等级</span>{{data.grade}}</td>
<td><span style="font-weight:bold;">工序单价</span>{{data.price}}</td> <td><span>面料代码</span>{{data.fabricNum}}</td>
<td><span style="font-weight:bold;">工序等级</span>{{data.grade}}</td> <td><span>面料等级</span>{{data.fabricGrade}}</td>
<td><span style="font-weight:bold;">面料代码</span>{{data.fabricNum}}</td> <td><span>针距(厘米)</span>{{data.needlePitch}}</td>
<td><span style="font-weight:bold;">面料等级</span>{{data.fabricGrade}}</td>
</tr> </tr>
<tr> <tr>
<td><span style="font-weight:bold;">针距(厘米)</span>{{data.needlePitch}}</td> <td><span>机器名称</span>{{data.machineId}}</td>
<td><span style="font-weight:bold;">机器名称</span>{{data.machineId}}</td> <td><span>手工宽放</span>{{data.manualWide}}</td>
<td><span style="font-weight:bold;">手工宽放</span>{{data.manualWide}}</td> <td><span>手工时间</span>{{data.manualTime}}</td>
<td><span style="font-weight:bold;">手工时间</span>{{data.manualTime}}</td> <td><span>机器转速</span>{{data.machineSpeed}}</td>
<td><span style="font-weight:bold;">机器转速</span>{{data.machineSpeed}}</td>
</tr> </tr>
<tr> <tr>
<td><span style="font-weight:bold;">机器宽放</span>{{data.machineWide}}</td> <td><span>机器宽放</span>{{data.machineWide}}</td>
<td><span style="font-weight:bold;">机器时间</span>{{data.machineTime}}</td> <td><span>机器时间</span>{{data.machineTime}}</td>
<td><span style="font-weight:bold;">机器浮于</span>{{data.machineFloat}}</td> <td><span>机器浮于</span>{{data.machineFloat}}</td>
<td><span style="font-weight:bold;">绑包宽放</span>{{data.bundleWide}}</td> <td><span>绑包宽放</span>{{data.bundleWide}}</td>
<td><span style="font-weight:bold;">绑包时间</span>{{data.bundleTime}}</td>
</tr> </tr>
<tr> <tr>
<td><span style="font-weight:bold;">部件表名</span>{{data.componentId}}</td> <td><span>绑包时间</span>{{data.bundleTime}}</td>
<td><span style="font-weight:bold;">是否瓶颈</span>{{data.isBottleneck}}</td> <td><span>部件表名</span>{{data.componentId}}</td>
<td><span style="font-weight:bold;">企业名称</span>{{data.enterpriseId}}</td> <td><span>是否瓶颈</span>{{data.isBottleneck}}</td>
<td><span style="font-weight:bold;">工具名称</span>{{data.toolId}}</td> <td><span>企业名称</span>{{data.enterpriseId}}</td>
<td><span style="font-weight:bold;">款式名称</span>{{data.styleId}}</td>
</tr> </tr>
<tr> <tr>
<td><span style="font-weight:bold;">工段代码</span>{{data.worksectionCode}}</td> <td><span>工具名称</span>{{data.toolId}}</td>
<td><span style="font-weight:bold;">合同号</span>{{data.totalManualTmu}}</td> <td><span>款式名称</span>{{data.styleId}}</td>
<td><span style="font-weight:bold;">合计(手工TMU)</span>{{data.totalManualTmu}}</td> <td><span>工段代码</span>{{data.worksectionCode}}</td>
<td><span style="font-weight:bold;">合计(机器TMU)</span>{{data.totalMachineTmu}}</td> <td><span>合同号</span>{{data.totalManualTmu}}</td>
<td><span style="font-weight:bold;">合计(手工秒)</span>{{data.totalMaunal}}</td>
</tr> </tr>
<tr> <tr>
<td><span style="font-weight:bold;">合计(机器秒)</span>{{data.totalMachine}}</td> <td><span>合计(手工TMU)</span>{{data.totalManualTmu}}</td>
<td><span>合计(机器TMU)</span>{{data.totalMachineTmu}}</td>
<td><span>合计(手工秒)</span>{{data.totalMaunal}}</td>
<td><span>合计(机器秒)</span>{{data.totalMachine}}</td>
</tr>
</table>
</div>
<div style="width:100%;height:100%;display: flex;align-items: start;justify-content: space-between">
<video v-if="mp4 != ''" :src="mp4" style="border:1px solid #d9d9d9;width:32%;"/>
<p v-else style="padding-top: 20px"> 暂无视频</p>
<table border="1" style="width: 66%;height:100%;font-size:14px;margin-bottom: 20px" class="table">
<tr>
<td style="text-align: center;width: 120px"><span>工艺描述</span></td>
<td><span>{{data.processDescribe}}</span></td>
</tr>
<tr>
<td style="text-align: center;width: 120px"><span>做工说明</span></td>
<td>{{data.mkExplain}}</td>
</tr>
<tr>
<td style="text-align: center;width: 120px"><span>品质要求</span></td>
<td>{{data.qualityRequire}}</td>
</tr> </tr>
</table> </table>
<div style="width:14.9%;height:100%;">
<img :src="img" style="width:90%;height:75%;margin:5% 0 0 10%;">
<video :src="mp4" style="border:1px solid #213;width:80%;height:30%;margin:0 0 0 15%"/>
</div> </div>
</div> </div>
<a-card :title="`动作`+(index+1)" v-for="(item,index) in data.zyClothAction" :key="item.id" :headStyle="headStyle"> <a-card :title="`动作`+(index+1)" v-for="(item,index) in data.zyClothAction" :key="item.id" :headStyle="headStyle">
@ -74,14 +88,11 @@
<td style="width:20%">描述{{item.descr}}</td> <td style="width:20%">描述{{item.descr}}</td>
</tr> </tr>
</table> </table>
<!-- <p>编号{{item.nums}}</p>
<p>频率{{item.freq}}</p>
<p>机器TMU{{item.machineTmu}}</p>
<p>手工TMU{{item.machineTmu}}</p>
<p>描述{{item.descr}}</p> -->
</div> </div>
</a-card> </a-card>
<div style="width: 96%;margin:0 auto 30px">
<h2 style="text-align: left;margin-bottom: 30px;border-bottom: 1px solid #e8e8e8;padding-bottom: 20px">基础动作</h2>
</div>
</a-modal> </a-modal>
</div> </div>
</template> </template>
@ -94,6 +105,7 @@ export default {
confirmLoading: false, confirmLoading: false,
selectId:'2', selectId:'2',
img:'', img:'',
img1:require('@/assets/9-2.png'),//
mp4:'', mp4:'',
data:{}, data:{},
headStyle:{ headStyle:{
@ -105,7 +117,6 @@ created(){
}, },
methods: { methods: {
showModal(id) { showModal(id) {
// console.log(this.selectId)
this.visible = true; this.visible = true;
this.$http.get('/base/zyProcess/queryById?id='+id).then( this.$http.get('/base/zyProcess/queryById?id='+id).then(
res=>{ res=>{
@ -116,19 +127,22 @@ methods: {
} }
) )
}, },
handleOk(e) { handleOk() {
this.ModalText = 'The modal will be closed after two seconds'; this.ModalText = 'The modal will be closed after two seconds';
this.confirmLoading = true; this.confirmLoading = true;
console.log(this.data)
setTimeout(() => { setTimeout(() => {
this.visible = false; this.visible = false;
this.confirmLoading = false; this.confirmLoading = false;
}, 1); }, 1);
}, },
handleCancel(e) { handleCancel() {
console.log('Clicked cancel button');
this.visible = false; this.visible = false;
}, },
}, },
} }
</script> </script>
<style scoped>
.table{border-color:#d9d9d9;border-radius: 3px}
.table td{padding: 10px 20px;max-width: 380px;white-space:nowrap}
.table td span{color: #333}
</style>
Loading…
Cancel
Save