|
|
@@ -191,7 +191,10 @@
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="所属工序">
|
|
|
- {{ '成型工序' }}
|
|
|
+ <!-- {{ '成型工序' }} -->
|
|
|
+ <WorkingProcedureSelect
|
|
|
+ v-model="zcInfo.roteId"
|
|
|
+ ></WorkingProcedureSelect>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
@@ -316,16 +319,12 @@
|
|
|
<span class="border-span">文档信息</span>
|
|
|
</div>
|
|
|
<div class="upload-container">
|
|
|
- <imgUpload
|
|
|
- v-model="imageUrl"
|
|
|
- :limit="1"
|
|
|
- :pictureStyle="{ width: '300px', height: '300px' }"
|
|
|
- />
|
|
|
+ <WithView v-model="imageUrl" :limit="1" />
|
|
|
<div class="file-list">
|
|
|
<div>
|
|
|
<el-form-item prop="image" label="使用说明书">
|
|
|
<fileUpload
|
|
|
- v-model="attUrl.operatingManual"
|
|
|
+ v-model="attUrl.operatingManual.value"
|
|
|
module="main"
|
|
|
:showLib="true"
|
|
|
/>
|
|
|
@@ -334,7 +333,7 @@
|
|
|
<div>
|
|
|
<el-form-item prop="image" label="生产许可证书">
|
|
|
<fileUpload
|
|
|
- v-model="attUrl.productionLicence"
|
|
|
+ v-model="attUrl.productionLicence.value"
|
|
|
module="main"
|
|
|
:showLib="true"
|
|
|
/>
|
|
|
@@ -343,7 +342,7 @@
|
|
|
<div>
|
|
|
<el-form-item prop="image" label="防爆合格证书">
|
|
|
<fileUpload
|
|
|
- v-model="attUrl.explosionProofCertificate"
|
|
|
+ v-model="attUrl.explosionProofCertificate.value"
|
|
|
module="main"
|
|
|
:showLib="true"
|
|
|
/>
|
|
|
@@ -352,7 +351,7 @@
|
|
|
<div>
|
|
|
<el-form-item prop="image" label="检验报告">
|
|
|
<fileUpload
|
|
|
- v-model="attUrl.surveyReport"
|
|
|
+ v-model="attUrl.surveyReport.value"
|
|
|
module="main"
|
|
|
:showLib="true"
|
|
|
/>
|
|
|
@@ -361,7 +360,7 @@
|
|
|
<div>
|
|
|
<el-form-item prop="image" label="检验周期说明">
|
|
|
<fileUpload
|
|
|
- v-model="attUrl.inspectionCycleManual"
|
|
|
+ v-model="attUrl.inspectionCycleManual.value"
|
|
|
module="main"
|
|
|
:showLib="true"
|
|
|
/>
|
|
|
@@ -370,7 +369,7 @@
|
|
|
<div>
|
|
|
<el-form-item prop="image" label="图纸资料">
|
|
|
<fileUpload
|
|
|
- v-model="attUrl.informationDrawing"
|
|
|
+ v-model="attUrl.informationDrawing.value"
|
|
|
module="main"
|
|
|
:showLib="true"
|
|
|
/>
|
|
|
@@ -379,7 +378,7 @@
|
|
|
<div>
|
|
|
<el-form-item prop="image" label="产品合格证">
|
|
|
<fileUpload
|
|
|
- v-model="attUrl.productCertificate"
|
|
|
+ v-model="attUrl.productCertificate.value"
|
|
|
module="main"
|
|
|
:showLib="true"
|
|
|
/>
|
|
|
@@ -476,8 +475,10 @@
|
|
|
import FactoryLineSelect from '@/components/CommomSelect/factory-line-select.vue';
|
|
|
import WorkshopSelect from '@/components/CommomSelect/workshop-select.vue';
|
|
|
import FactoryAreaSelect from '@/components/CommomSelect/factory-area-select.vue';
|
|
|
+ import WorkingProcedureSelect from '@/components/CommomSelect/working-procedure-select.vue';
|
|
|
import factorySelect from '@/components/CommomSelect/factory-select.vue';
|
|
|
import fileUpload from '@/components/upload/fileUpload';
|
|
|
+ import WithView from '@/components/upload/WithView';
|
|
|
import imgUpload from '@/components/upload/imgUpload';
|
|
|
// import selectUpload from "@/components/selectUpload";
|
|
|
// import UploadImg from "@/components/uploadImg/WithView.vue";
|
|
|
@@ -506,8 +507,10 @@
|
|
|
//selectUpload,
|
|
|
//UploadImg,
|
|
|
FactoryLineSelect,
|
|
|
+ WithView,
|
|
|
WorkshopSelect,
|
|
|
FactoryAreaSelect,
|
|
|
+ WorkingProcedureSelect,
|
|
|
fileUpload,
|
|
|
imgUpload,
|
|
|
factorySelect,
|
|
|
@@ -553,6 +556,8 @@
|
|
|
ownershipUserId: '',
|
|
|
// 设备用途
|
|
|
purpose: '',
|
|
|
+ // 工序
|
|
|
+ roteId: '',
|
|
|
//品牌
|
|
|
brand: '',
|
|
|
// 供应商code
|
|
|
@@ -578,13 +583,34 @@
|
|
|
imageUrl: null,
|
|
|
// 文档信息
|
|
|
attUrl: {
|
|
|
- operatingManual: null,
|
|
|
- productionLicence: null,
|
|
|
- explosionProofCertificate: null,
|
|
|
- surveyReport: null,
|
|
|
- inspectionCycleManual: null,
|
|
|
- informationDrawing: null,
|
|
|
- productCertificate: null
|
|
|
+ operatingManual: {
|
|
|
+ value: [],
|
|
|
+ sort: 1
|
|
|
+ },
|
|
|
+ productionLicence: {
|
|
|
+ value: [],
|
|
|
+ sort: 2
|
|
|
+ },
|
|
|
+ explosionProofCertificate: {
|
|
|
+ value: [],
|
|
|
+ sort: 3
|
|
|
+ },
|
|
|
+ surveyReport: {
|
|
|
+ value: [],
|
|
|
+ sort: 4
|
|
|
+ },
|
|
|
+ inspectionCycleManual: {
|
|
|
+ value: [],
|
|
|
+ sort: 5
|
|
|
+ },
|
|
|
+ informationDrawing: {
|
|
|
+ value: [],
|
|
|
+ sort: 6
|
|
|
+ },
|
|
|
+ productCertificate: {
|
|
|
+ value: [],
|
|
|
+ sort: 7
|
|
|
+ }
|
|
|
},
|
|
|
// 是否开始物联
|
|
|
isIotEnable: true,
|
|
|
@@ -629,14 +655,6 @@
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- setImgs (type, sort, info) {
|
|
|
- if (info[0]) {
|
|
|
- this.attUrl[type] = info[0];
|
|
|
- this.attUrl[type].sort = sort;
|
|
|
- } else {
|
|
|
- this.attUrl[type] = null;
|
|
|
- }
|
|
|
- },
|
|
|
handlwpbm () {
|
|
|
this.$refs.DialogGoods.open();
|
|
|
},
|
|
|
@@ -784,15 +802,10 @@
|
|
|
},
|
|
|
// 处理文档信息
|
|
|
setWd () {
|
|
|
- let attUrl = [];
|
|
|
- Object.entries(this.attUrl).forEach(([key, value], index) => {
|
|
|
- if (value) {
|
|
|
- attUrl.push(value);
|
|
|
- } else {
|
|
|
- attUrl.push({ sort: index + 1 });
|
|
|
- }
|
|
|
- });
|
|
|
- return attUrl;
|
|
|
+ return Object.values(this.attUrl).map((item) => ({
|
|
|
+ ...(item.value[0] || {}),
|
|
|
+ sort: item.sort
|
|
|
+ }));
|
|
|
},
|
|
|
// 获取设备详情
|
|
|
async getInfo () {
|
|
|
@@ -828,7 +841,6 @@
|
|
|
}
|
|
|
// 资产信息
|
|
|
for (const key of Object.keys(this.zcInfo)) {
|
|
|
- console.log(key, data[key]);
|
|
|
this.zcInfo[key] = data[key];
|
|
|
}
|
|
|
this.getwhbm();
|
|
|
@@ -836,19 +848,13 @@
|
|
|
if (data.attUrl && data.attUrl.length > 0) {
|
|
|
// 文档信息
|
|
|
Object.keys(this.attUrl).forEach((n, index) => {
|
|
|
- if (data.attUrl[index].accessUrl) {
|
|
|
- this.attUrl[n] = data.attUrl[index];
|
|
|
- }
|
|
|
+ this.attUrl[n].value =
|
|
|
+ (data.attUrl[index]?.storePath && [data.attUrl[index]]) || [];
|
|
|
});
|
|
|
}
|
|
|
|
|
|
// 设备图片
|
|
|
- this.imageUrl = [];
|
|
|
- if (this.imageUrl) {
|
|
|
- // imageView(this.imageUrl).then((res) => {
|
|
|
- // this.$refs.UploadImg.setImg(res);
|
|
|
- // });
|
|
|
- }
|
|
|
+ this.imageUrl = data.imageUrl;
|
|
|
// 物联参数
|
|
|
this.isIotEnable = data.isIotEnable;
|
|
|
this.iotId = data.iotId;
|