|
|
|
@ -7,12 +7,13 @@ |
|
|
|
|
:width='1000' |
|
|
|
|
@ok="handleOk" |
|
|
|
|
@cancel="handleCancel"> |
|
|
|
|
<a-spin :spinning="confirmLoading"> |
|
|
|
|
<p class="title">制衣部件详情</p> |
|
|
|
|
<a-descriptions title="" bordered> |
|
|
|
|
<a-descriptions-item label="企业">{{model.enterpriseId_dictText}}</a-descriptions-item> |
|
|
|
|
<a-descriptions-item label="服装类型">{{model.clothsTypeId_dictText}}</a-descriptions-item> |
|
|
|
|
<a-descriptions-item label="企业">{{model.enterpriseId}}</a-descriptions-item> |
|
|
|
|
<a-descriptions-item label="服装类型">{{model.clothsTypeId}}</a-descriptions-item> |
|
|
|
|
<a-descriptions-item label="部件名称">{{model.partsName}}</a-descriptions-item> |
|
|
|
|
<a-descriptions-item label="模块">{{model.modularId_dictText}}</a-descriptions-item> |
|
|
|
|
<a-descriptions-item label="模块">{{model.modularId}}</a-descriptions-item> |
|
|
|
|
<a-descriptions-item label="描述" :span="2">{{model.description}}</a-descriptions-item> |
|
|
|
|
<a-descriptions-item label="图片" :span="3"> |
|
|
|
|
<img v-if="model.pictureUrl" :src="model.pictureUrl" alt="无法显示"></img> |
|
|
|
@ -20,8 +21,9 @@ |
|
|
|
|
</a-descriptions-item> |
|
|
|
|
</a-descriptions> |
|
|
|
|
<p class="title">部件工序详情</p> |
|
|
|
|
<a-table :columns="columns1" :data-source="data1" bordered :pagination="false"> |
|
|
|
|
<a-table :columns="columns1" :data-source="data1" rowKey="id" bordered :pagination="false"> |
|
|
|
|
</a-table> |
|
|
|
|
</a-spin> |
|
|
|
|
</a-modal> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
@ -38,20 +40,20 @@ |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '部件', |
|
|
|
|
dataIndex: 'nums', |
|
|
|
|
key: 'nums', |
|
|
|
|
dataIndex: 'componentId', |
|
|
|
|
key: 'componentId', |
|
|
|
|
align:'center' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '工序', |
|
|
|
|
dataIndex: 'modularId_dictText', |
|
|
|
|
key: 'modularId_dictText', |
|
|
|
|
dataIndex: 'processId', |
|
|
|
|
key: 'processId', |
|
|
|
|
align:'center' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '是否瓶颈工序', |
|
|
|
|
dataIndex: 'partsName', |
|
|
|
|
key: 'partsName', |
|
|
|
|
dataIndex: 'bottleneck', |
|
|
|
|
key: 'bottleneck', |
|
|
|
|
align:'center' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
@ -61,55 +63,41 @@ |
|
|
|
|
align:'center' |
|
|
|
|
}, |
|
|
|
|
]; |
|
|
|
|
const data1 = [ |
|
|
|
|
{ |
|
|
|
|
key: '1', |
|
|
|
|
nums:'gfhjf', |
|
|
|
|
modularId_dictText:'1-3合后育克', |
|
|
|
|
partsName:'是', |
|
|
|
|
createTime:'2022-12-06 19:00:07' |
|
|
|
|
}, |
|
|
|
|
// { |
|
|
|
|
// key: '2', |
|
|
|
|
// nums:'aaff', |
|
|
|
|
// modularId_dictText:'1-3合后育克', |
|
|
|
|
// partsName:'否', |
|
|
|
|
// createTime:'2022-12-06 18:30:49' |
|
|
|
|
// } |
|
|
|
|
] |
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
|
name: 'ZyClothsComponentListDetail',//此处填组件名称 |
|
|
|
|
data () { |
|
|
|
|
return { |
|
|
|
|
visible: false, |
|
|
|
|
confirmLoading: false, |
|
|
|
|
confirmLoading:true, |
|
|
|
|
model:{ |
|
|
|
|
}, |
|
|
|
|
data1, |
|
|
|
|
data1:[], |
|
|
|
|
columns1, |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
showModal(record) { |
|
|
|
|
showModal(id) { |
|
|
|
|
this.visible = true; |
|
|
|
|
this.model = record |
|
|
|
|
this.$http.get('/base/zyClothsComponent/detail?id='+record.id).then( |
|
|
|
|
this.$http.get('/base/zyClothsComponent/detail?id='+id).then( |
|
|
|
|
res=>{ |
|
|
|
|
// this.data = res.result |
|
|
|
|
this.model = res.result.zyClothsComponent |
|
|
|
|
this.data1 = res.result.zyProcessComponents |
|
|
|
|
this.confirmLoading = false |
|
|
|
|
// this.model = res.result.zyClothsComponent |
|
|
|
|
// this.ProcessData = res.result.zyProcess |
|
|
|
|
// this.basicActionData = res.result.zyClothActions |
|
|
|
|
// this.accessoriesData = res.result.zyFabrics |
|
|
|
|
// this.fabricData = res.result.zyAccessories |
|
|
|
|
console.log('工序详情页') |
|
|
|
|
console.log(this.data) |
|
|
|
|
console.log(this.accessoriesData) |
|
|
|
|
console.log(this.fabricData) |
|
|
|
|
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; |
|
|
|
|
console.log(res.result) |
|
|
|
|
// console.log(this.data) |
|
|
|
|
// console.log(this.accessoriesData) |
|
|
|
|
// console.log(this.fabricData) |
|
|
|
|
// 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; |
|
|
|
|
} |
|
|
|
|
) |
|
|
|
|
console.log('record') |
|
|
|
|
console.log(record.id) |
|
|
|
|
}, |
|
|
|
|
handleOk(e) { |
|
|
|
|
this.confirmLoading = true; |
|
|
|
|