|
@@ -3,9 +3,9 @@
|
|
|
<div class="my-title">详情</div>
|
|
|
<div style="margin-left: 20px; margin-right: 20px">
|
|
|
<e-desc title="基本信息" column="3">
|
|
|
- <e-desc-item label="方案编码">{{ dataForm.optionCode }}</e-desc-item>
|
|
|
- <e-desc-item label="物料名称">{{ dataForm.materialName }}</e-desc-item>
|
|
|
- <e-desc-item label="方案名称">{{ dataForm.optionName }}</e-desc-item>
|
|
|
+ <e-desc-item label="编码">{{ dataForm.cruxCode }}</e-desc-item>
|
|
|
+ <e-desc-item label="物料名称">{{ dataForm.productName }}</e-desc-item>
|
|
|
+ <e-desc-item label="关键特殊名称">{{ dataForm.cruxName }}</e-desc-item>
|
|
|
<e-desc-item label="备注说明" span="3">{{
|
|
|
dataForm.remark
|
|
|
}}</e-desc-item>
|
|
@@ -18,6 +18,14 @@
|
|
|
v-model="dataForm.attachList"
|
|
|
/>
|
|
|
</e-desc>
|
|
|
+ <e-desc title="变更单">
|
|
|
+ <upload-component
|
|
|
+ :display="true"
|
|
|
+ :display-title="false"
|
|
|
+ :accept="'*'"
|
|
|
+ v-model="dataForm.changeList"
|
|
|
+ />
|
|
|
+ </e-desc>
|
|
|
</div>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button @click="onChose">返回</el-button>
|
|
@@ -29,6 +37,7 @@
|
|
|
import EDesc from '../common/e-desc'
|
|
|
import EDescItem from '../common/e-desc-item'
|
|
|
import UploadComponent from '../common/upload-component-v2'
|
|
|
+import {getDetail} from '@/api/process'
|
|
|
export default {
|
|
|
name: 'process-detail',
|
|
|
components: {EDesc, EDescItem, UploadComponent},
|
|
@@ -49,11 +58,16 @@ export default {
|
|
|
onChose () {
|
|
|
this.$emit('onChose')
|
|
|
},
|
|
|
- async init (id, item) {
|
|
|
+ async init (id) {
|
|
|
this.id = id || 0
|
|
|
- if (id) {
|
|
|
- this.dataForm = {...item}
|
|
|
- }
|
|
|
+ this.getDetail(id)
|
|
|
+ },
|
|
|
+ getDetail (id) {
|
|
|
+ getDetail(id).then(({data}) => {
|
|
|
+ if (data && data.code === '200') {
|
|
|
+ this.dataForm = data.data
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
}
|