diff --git a/ant-design-vue-jeecg/src/components/procedure/processFabric.vue b/ant-design-vue-jeecg/src/components/procedure/processFabric.vue index ed6c6367..ad266a17 100644 --- a/ant-design-vue-jeecg/src/components/procedure/processFabric.vue +++ b/ant-design-vue-jeecg/src/components/procedure/processFabric.vue @@ -65,13 +65,12 @@ }, fabricId: function(newVal,oldVal){ this.id = newVal - // this.$http.get('/accessories/zyAccessories/queryById?id='+this.id).then( - // res=>{ - // // this.model = res.result - // console.log(this.id) - // console.log(res) - // console.log(res.result) - // }) + this.$http.get('/accessories/zyAccessories/queryById?id='+this.id).then( + res=>{ + //问题:对应辅料id查不到数据 + console.log(this.id) + console.log(res.result) + }) } }, methods: { diff --git a/ant-design-vue-jeecg/src/views/cloths/modules/ZyProcessFabricFormDetail.vue b/ant-design-vue-jeecg/src/views/cloths/modules/ZyProcessFabricFormDetail.vue index ab8afcf4..3816391b 100644 --- a/ant-design-vue-jeecg/src/views/cloths/modules/ZyProcessFabricFormDetail.vue +++ b/ant-design-vue-jeecg/src/views/cloths/modules/ZyProcessFabricFormDetail.vue @@ -3,26 +3,12 @@ title="工序辅料-详情" :visible="visible" :confirm-loading="confirmLoading" - :width='1000' + :width='1400' @ok="handleOk" @cancel="handleCancel"> -

黄淮学院服装智能制造管理平台 - 工序辅料

- -
- -
+

黄淮学院服装智能制造管理平台 - 工序辅料

+ + @@ -31,10 +17,11 @@ import { httpAction, getAction } from '@/api/manage' import { validateDuplicateValue } from '@/utils/util' import processFabric from '@/components/procedure/processFabric' +import zyProcess from '@/components/procedure/zyProcess' export default { name: 'ZyProcessFabricFormDetail', components: { - processFabric + processFabric,zyProcess }, data () { return { @@ -45,6 +32,9 @@ import processFabric from '@/components/procedure/processFabric' mp4:'',//视频地址 model:{ }, + processData:{}, + processId:'', + fabricId:'', visible:false, labelCol: { xs: { span: 24 }, @@ -61,10 +51,15 @@ import processFabric from '@/components/procedure/processFabric' }, methods: { showModal(id) { - this.visible = true; + this.visible = true;// this.$http.get('/pro/zyProcessFabric/queryById?id='+id).then( res=>{ - this.model = res.result + this.fabricId = res.result.fabricId + this.processId = res.result.processId + this.$http.get('/base/zyProcess/queryById?id='+this.processId).then( + res=>{ + this.processData = res.result.zyProcess + }) } ) }, @@ -85,4 +80,6 @@ import processFabric from '@/components/procedure/processFabric' .table{border-color:#d9d9d9;border-radius: 3px} .table td{padding: 10px 20px;max-width: 380px; } .table td span{color: #333} + .coin{width: 96%;margin:0 auto 30px;border: 1px solid #e8e8e8;} + .coin h2{text-align: left;border-bottom: 1px solid #e8e8e8;padding: 20px;background: rgba(247,247,247,1);margin: 0;} \ No newline at end of file diff --git a/ant-design-vue-jeecg/src/views/erp/fabric/ZyFabricList.vue b/ant-design-vue-jeecg/src/views/erp/fabric/ZyFabricList.vue index 7dbf9367..bc90a492 100644 --- a/ant-design-vue-jeecg/src/views/erp/fabric/ZyFabricList.vue +++ b/ant-design-vue-jeecg/src/views/erp/fabric/ZyFabricList.vue @@ -119,7 +119,7 @@ 复制 - 详情 + 详情 @@ -131,6 +131,7 @@ + @@ -142,12 +143,14 @@ import ZyFabricModal from './modules/ZyFabricModal' import {filterMultiDictText} from '@/components/dict/JDictSelectUtil' import ZyFabricFormDetail from './modules/ZyFabricFormDetail' +import ZyFabricFormDetailModel from './modules/ZyFabricFormDetailModel' export default { name: 'ZyFabricList', mixins:[JeecgListMixin, mixinDevice], components: { ZyFabricModal, - ZyFabricFormDetail + ZyFabricFormDetail, + ZyFabricFormDetailModel }, data () { return { @@ -312,6 +315,10 @@ import ZyFabricFormDetail from './modules/ZyFabricFormDetail' fieldList.push({type:'sel_depart',value:'supplierInfo',text:'供货商信息'}) fieldList.push({type:'string',value:'createTime',text:'创建时间',dictCode:''}) this.superFieldList = fieldList + }, + handleDetail(id){ + this.$refs.ZyFabricFormDetailModel.showModal(id) + // this.$children[0].showModal(id) } } } diff --git a/ant-design-vue-jeecg/src/views/erp/fabric/modules/ZyFabricFormDetailModel.vue b/ant-design-vue-jeecg/src/views/erp/fabric/modules/ZyFabricFormDetailModel.vue new file mode 100644 index 00000000..613c94c0 --- /dev/null +++ b/ant-design-vue-jeecg/src/views/erp/fabric/modules/ZyFabricFormDetailModel.vue @@ -0,0 +1,246 @@ + + + + \ No newline at end of file