20220913-syy

zhc4dev
暖暖 2 years ago
parent 6db5496fa4
commit 3027467b3b
  1. 102
      ant-design-vue-jeecg/src/components/procedure/basicAction.vue
  2. 58
      ant-design-vue-jeecg/src/components/procedure/processAccessories.vue
  3. 59
      ant-design-vue-jeecg/src/components/procedure/processFabric.vue
  4. 20
      ant-design-vue-jeecg/src/views/cloths/modules/ZyProcessAccessoriesFormDetail.vue
  5. 22
      ant-design-vue-jeecg/src/views/cloths/modules/ZyProcessFabricFormDetail.vue
  6. 5
      ant-design-vue-jeecg/src/views/process/modules/ZyClothActionFormDetail.vue
  7. 37
      ant-design-vue-jeecg/src/views/process/modules/ZyProcessDetail.vue

@ -1,53 +1,60 @@
<template> <template>
<div style="padding: 15px 25px;display: flex;justify-content: space-between"> <div>
<img :src="img == ''?img1:img" style="width:30%;"> <div v-for="(item,index) in tableModel" :key="index">
<video v-if="mp4 != ''" :src="mp4" style="border:1px solid #d9d9d9;width:30%;"/> <h3 v-if="index>0">动作{{index+1}}</h3>
<p v-else style="padding-top: 20px"> 暂无视频</p> <div style="padding: 15px 25px;display: flex;justify-content: space-between" >
<table border="1" style="width:30%;font-size:14px;margin-bottom: 20px;" class="table"> <img :src="img == ''?img1:img" style="width:30%;">
<!-- <tr>--> <video v-if="mp4 != ''" :src="mp4" style="border:1px solid #d9d9d9;width:30%;"/>
<!-- <td style="text-align: center">添加人:</td>--> <p v-else style="padding-top: 20px"> 暂无视频</p>
<!-- <td>{{model.addPeople}}</td>--> <table border="1" style="width:30%;font-size:14px;margin-bottom: 20px;" class="table" >
<!-- </tr>--> <!-- <tr>-->
<tr> <!-- <td style="text-align: center">添加人:</td>-->
<td style="text-align: center">频率:</td> <!-- <td>{{model.addPeople}}</td>-->
<td>{{tableModel.freq}}</td> <!-- </tr>-->
</tr> <tr>
<tr> <td style="text-align: center">频率:</td>
<td style="text-align: center">描述:</td> <td>{{item.freq}}</td>
<td>{{tableModel.descr}}</td> </tr>
</tr> <tr>
<tr> <td style="text-align: center">描述:</td>
<td style="text-align: center">机器TMU:</td> <td>{{item.descr}}</td>
<td>{{tableModel.machineTmu}}</td> </tr>
</tr> <tr>
<tr> <td style="text-align: center">机器TMU:</td>
<td style="text-align: center">手工TMU:</td> <td>{{item.machineTmu}}</td>
<td>{{tableModel.machineTmu}}</td> </tr>
</tr> <tr>
<tr> <td style="text-align: center">手工TMU:</td>
<td style="text-align: center">编号:</td> <td>{{item.machineTmu}}</td>
<td>{{tableModel.nums}}</td> </tr>
</tr> <tr>
</table> <td style="text-align: center">编号:</td>
<td>{{item.nums}}</td>
</tr>
</table>
</div>
</div>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
name: 'basicAction', name: 'basicAction',
// props:{ // props: {
// tableModel:{ // model: {
// type:Array, // type: Array,
// default: () =>({}) // default() {
// } // return []
// }, // }
props:['tableModel'], // }},
props:['model'],
data () { data () {
return { return {
model:{
},
img:'',// img:'',//
img1:require('@/assets/9-2.png'),// img1:require('@/assets/9-2.png'),//
mp4:'',// mp4:'',//
tableModel:[],
visible: false, visible: false,
confirmLoading: false, confirmLoading: false,
validatorRules: { validatorRules: {
@ -55,7 +62,22 @@
}}, }},
created() { created() {
}, },
methods: {} watch: {
// tableModel
model: function(newVal,oldVal){
if(Array.isArray(newVal)){
this.tableModel = newVal;
}else{
this.tableModel.push(newVal)
}
newVal && this.getTableModel();
}
},
methods: {
getTableModel(){
//
}
},
} }
</script> </script>
<style scoped> <style scoped>

@ -1,36 +1,60 @@
<template> <template>
<div style="padding: 15px 25px;display: flex;justify-content: space-between"> <div>
<img :src="img == ''?img1:img" style="width:30%;"> <div v-for="(item,index) in tableModel" :key="index">
<video v-if="mp4 != ''" :src="mp4" style="border:1px solid #d9d9d9;width:30%;"/> <h3 v-if="index>0">面料{{index+1}}</h3>
<p v-else style="padding-top: 20px"> 暂无视频</p> <div style="padding: 15px 25px;display: flex;justify-content: space-between">
<table border="1" style="font-size:14px;" class="table" > <!-- <img :src="img == ''?img1:img" style="width:30%;">-->
<tr> <!-- <video v-if="mp4 != ''" :src="mp4" style="border:1px solid #d9d9d9;width:30%;"/>-->
<td style="text-align: center">工序:</td> <!-- <p v-else style="padding-top: 20px"> 暂无视频</p>-->
<td>{{tableModel.processId}}</td> <!-- <table border="1" style="font-size:14px;" class="table" >-->
</tr> <!-- <tr>-->
<tr> <!-- <td style="text-align: center">工序:</td>-->
<td style="text-align: center">面料:</td> <!-- <td>{{item.processId}}</td>-->
<td>{{tableModel.accessoriesId}}</td> <!-- </tr>-->
</tr> <!-- <tr>-->
</table> <!-- <td style="text-align: center">面料:</td>-->
<!-- <td>{{item.accessoriesId}}</td>-->
<!-- </tr>-->
<!-- </table>-->
</div>
</div>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
name: 'processAccessories', name: 'processAccessories',
props:['tableModel'], props:['model'],
data () { data () {
return { return {
model:{
},
img:'',// img:'',//
img1:require('@/assets/9-2.png'),// img1:require('@/assets/9-2.png'),//
mp4:'',// mp4:'',//
tableModel:[],
visible: false, visible: false,
confirmLoading: false, confirmLoading: false,
validatorRules: { validatorRules: {
}, },
}}, }},
created() {
},
watch: {
// cData
model: function(newVal,oldVal){
if(Array.isArray(newVal)){
this.tableModel = newVal;
console.log('面料组件')
console.log(this.tableModel)
}else{
this.tableModel.push(newVal)
}
newVal && this.getTableModel();
}
},
methods: {
getTableModel(){
//
}
},
} }
</script> </script>
<style scoped> <style scoped>

@ -1,45 +1,68 @@
<template> <template>
<div style="padding: 15px 25px;display: flex;justify-content: space-between"> <div>
<img :src="img == ''?img1:img" style="width:30%;"> <div v-for="(item,index) in tableModel" :key="index">
<video v-if="mp4 != ''" :src="mp4" style="border:1px solid #d9d9d9;width:30%;"/> <h3>辅料{{index+1}}</h3>
<p v-else style="padding-top: 20px"> 暂无视频</p> <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" > <table border="1" style="font-size:14px;" class="table" >
<tr> <tr>
<td style="text-align: center">工序:</td> <td style="text-align: center">编号:</td>
<td>{{tableModel.processId}}</td> <td>{{item.nums}}</td>
<td style="text-align: center">名称:</td>
<td>{{item.contents}}</td>
<td style="text-align: center">图片:</td>
<td>{{item.picture}}</td>
<td style="text-align: center">材质:</td>
<td>{{item.material}}</td>
</tr> </tr>
<tr> <tr>
<td style="text-align: center">辅料:</td> <td style="text-align: center">规格:</td>
<td>{{tableModel.fabricId}}</td> <td>{{item.specs}}</td>
<td style="text-align: center">库存量:</td>
<td>{{item.store}}</td>
<td style="text-align: center">供货商:</td>
<td colspan="3">{{item.supplierInfo}}</td>
</tr> </tr>
</table> </table>
</div> </div>
</div>
</div>
</template> </template>
<script> <script>
export default { export default {
name: 'processFabric', name: 'processFabric',
props:['tableModel'], props:['model'],
data () { data () {
return { return {
model:{
},
img:'',// img:'',//
img1:require('@/assets/9-2.png'),// img1:require('@/assets/9-2.png'),//
mp4:'',// mp4:'',//
tableModel:[],
visible: false, visible: false,
confirmLoading: false, confirmLoading: false,
validatorRules: { validatorRules: {
}, },
}}, }},
created() { created() {
console.log('this.tableModel')
console.log(this.tableModel)
}, },
mounted() { watch: {
console.log('this.tableModel') // cData
console.log(this.tableModel) model: function(newVal,oldVal){
if(Array.isArray(newVal)){
} this.tableModel = newVal;
}else{
this.tableModel.push(newVal)
}
newVal && this.getTableModel();
}
},
methods: {
getTableModel(){
//
}
},
} }
</script> </script>
<style scoped> <style scoped>

@ -7,7 +7,22 @@
@ok="handleOk" @ok="handleOk"
@cancel="handleCancel"> @cancel="handleCancel">
<h1 style="text-align: center;margin-bottom: 50px;border-bottom: 1px solid #e8e8e8;padding-bottom: 20px;font-size: 22px">黄淮学院服装智能制造管理平台 - <span>工序面料</span></h1> <h1 style="text-align: center;margin-bottom: 50px;border-bottom: 1px solid #e8e8e8;padding-bottom: 20px;font-size: 22px">黄淮学院服装智能制造管理平台 - <span>工序面料</span></h1>
<processAccessories :tableModel="model"></processAccessories> <!-- <processAccessories :model="model"></processAccessories>-->
<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>{{model.processId}}</td>
</tr>
<tr>
<td style="text-align: center">面料:</td>
<td>{{model.accessoriesId}}</td>
</tr>
</table>
</div>
</a-modal> </a-modal>
</template> </template>
@ -25,6 +40,9 @@ import processAccessories from '@/components/procedure/processAccessories'
return { return {
code:'', code:'',
id:'', id:'',
img:'',//
img1:require('@/assets/9-2.png'),//
mp4:'',//
model:{ model:{
}, },
visible:false, visible:false,

@ -7,7 +7,22 @@
@ok="handleOk" @ok="handleOk"
@cancel="handleCancel"> @cancel="handleCancel">
<h1 style="text-align: center;margin-bottom: 50px;border-bottom: 1px solid #e8e8e8;padding-bottom: 20px;font-size: 22px">黄淮学院服装智能制造管理平台 - <span>工序辅料</span></h1> <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> <!-- <processFabric :model="model"></processFabric>-->
<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>{{model.processId}}</td>
</tr>
<tr>
<td style="text-align: center">面料:</td>
<td>{{model.fabricId}}</td>
</tr>
</table>
</div>
</a-modal> </a-modal>
</template> </template>
@ -25,6 +40,9 @@ import processFabric from '@/components/procedure/processFabric'
return { return {
code:'', code:'',
id:'', id:'',
img:'',//
img1:require('@/assets/9-2.png'),//
mp4:'',//
model:{ model:{
}, },
visible:false, visible:false,
@ -44,7 +62,7 @@ import processFabric from '@/components/procedure/processFabric'
methods: { methods: {
showModal(id) { showModal(id) {
this.visible = true; this.visible = true;
this.$http.get('pro/zyProcessFabric/queryById?id='+id).then( this.$http.get('/pro/zyProcessFabric/queryById?id='+id).then(
res=>{ res=>{
this.model = res.result this.model = res.result
} }

@ -7,7 +7,7 @@
@ok="handleOk" @ok="handleOk"
@cancel="handleCancel"> @cancel="handleCancel">
<h1 style="text-align: center;margin-bottom: 30px;border-bottom: 1px solid #e8e8e8;padding-bottom: 20px;">黄淮学院服装智能制造管理平台 - <span>基础动作</span></h1> <h1 style="text-align: center;margin-bottom: 30px;border-bottom: 1px solid #e8e8e8;padding-bottom: 20px;">黄淮学院服装智能制造管理平台 - <span>基础动作</span></h1>
<basicAction :tableModel="model"></basicAction> <basicAction :model="model"></basicAction>
</a-modal> </a-modal>
</template> </template>
@ -25,6 +25,7 @@ import basicAction from '@/components/procedure/basicAction'
return { return {
model:{ model:{
}, },
id:'',
img:'',// img:'',//
img1:require('@/assets/9-2.png'),// img1:require('@/assets/9-2.png'),//
mp4:'',// mp4:'',//
@ -40,6 +41,8 @@ import basicAction from '@/components/procedure/basicAction'
this.$http.get('base/zyClothAction/queryById?id='+id).then( this.$http.get('base/zyClothAction/queryById?id='+id).then(
res=>{ res=>{
this.model = res.result this.model = res.result
console.log('this.model')
console.log(this.model)
} }
) )
}, },

@ -28,24 +28,28 @@
<!-- </div>--> <!-- </div>-->
<!-- </a-card>--> <!-- </a-card>-->
<!-- 基础动作--> <!-- 基础动作-->
<div style="width: 96%;margin:0 auto 30px"> <div class="coin">
<h2 style="text-align: left;margin-bottom: 30px;border-bottom: 1px solid #e8e8e8;padding-bottom: 20px">基础动作</h2> <h2>基础动作</h2>
<basicAction :tableModel="basicActionData"></basicAction> <basicAction :model="basicActionData"></basicAction>
</div> </div>
<div style="width: 96%;margin:0 auto 30px"> <div class="coin">
<h2 style="text-align: left;margin-bottom: 30px;border-bottom: 1px solid #e8e8e8;padding-bottom: 20px">工序面料</h2> <h2>工序面料</h2>
<processFabric :tableModel="accessoriesData"></processFabric> <processAccessories :model="accessoriesData"></processAccessories>
</div>
<div class="coin">
<h2>工序辅料</h2>
<processFabric :model="fabricData"></processFabric>
</div> </div>
</a-modal> </a-modal>
</div> </div>
</template> </template>
<script> <script>
import zyProcess from '@/components/procedure/zyProcess' import zyProcess from '@/components/procedure/zyProcess'
import basicAction from '@/components/procedure/basicAction' import basicAction from '@/components/procedure/basicAction'
import processAccessories from '@/components/procedure/processAccessories'
import processFabric from '@/components/procedure/processFabric' import processFabric from '@/components/procedure/processFabric'
export default { export default {
components:{zyProcess,basicAction,processFabric}, components:{zyProcess,basicAction,processAccessories,processFabric},
data() { data() {
return{ return{
ModalText: 'Content of the modal', ModalText: 'Content of the modal',
@ -56,9 +60,10 @@
img1:require('@/assets/9-2.png'),// img1:require('@/assets/9-2.png'),//
mp4:'', mp4:'',
data:{}, data:{},
ProcessData:{}, ProcessData:{},//
basicActionData:[], basicActionData:[],//
accessoriesData:[], accessoriesData:[],//
fabricData:[],//
headStyle:{ headStyle:{
height:'10px' height:'10px'
}, },
@ -73,11 +78,13 @@
res=>{ res=>{
this.data = res.result this.data = res.result
this.ProcessData = res.result.zyProcess this.ProcessData = res.result.zyProcess
this.basicActionData = res.result.zyProcessAction this.basicActionData = res.result.zyClothActions
this.accessoriesData = res.result.zyProcessAccessories this.accessoriesData = res.result.zyFabrics
console.log('this.data') this.fabricData = res.result.zyAccessories
console.log('工序详情页')
console.log(this.data) console.log(this.data)
console.log(this.accessoriesData) console.log(this.accessoriesData)
console.log(this.fabricData)
this.img = "http://10.100.200.112/jeecg-boot/sys/common/static/"+this.data.image; this.img = "http://10.100.200.112/jeecg-boot/sys/common/static/"+this.data.image;
this.mp4 = "http://10.100.200.112/jeecg-boot/sys/common/static/"+this.data.vedio; this.mp4 = "http://10.100.200.112/jeecg-boot/sys/common/static/"+this.data.vedio;
} }
@ -101,4 +108,6 @@
.table{border-color:#d9d9d9;border-radius: 3px} .table{border-color:#d9d9d9;border-radius: 3px}
.table td{padding: 10px 20px;max-width: 380px;white-space:nowrap} .table td{padding: 10px 20px;max-width: 380px;white-space:nowrap}
.table td span{color: #333} .table td span{color: #333}
.coin{width: 96%;margin:0 auto 30px;border-bottom: 1px solid #e8e8e8;}
.coin h2{text-align: left;margin-bottom: 30px;border-bottom: 1px solid #e8e8e8;padding-bottom: 20px}
</style> </style>
Loading…
Cancel
Save