|
@@ -90,7 +90,7 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row class="my-row">
|
|
|
- <el-col :span="12">
|
|
|
+ <el-col :span="8">
|
|
|
<el-form-item label="技术资料" prop="attachListTechnical">
|
|
|
<upload-component
|
|
|
:display="display"
|
|
@@ -101,7 +101,7 @@
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="12">
|
|
|
+ <el-col :span="8" :offset="4">
|
|
|
<el-form-item label="数模/图纸" prop="attachListDrawing">
|
|
|
<upload-component
|
|
|
:display="display"
|
|
@@ -114,7 +114,7 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row class="my-row">
|
|
|
- <el-col :span="12">
|
|
|
+ <el-col :span="8">
|
|
|
<el-form-item label="沟通表原件" prop="attachList">
|
|
|
<upload-component
|
|
|
:display="display"
|
|
@@ -125,7 +125,7 @@
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="12">
|
|
|
+ <el-col :span="8" :offset="4">
|
|
|
<el-form-item label="其他附件" prop="attachListOther">
|
|
|
<upload-component
|
|
|
:display="display"
|
|
@@ -351,7 +351,7 @@
|
|
|
<el-button
|
|
|
type="text"
|
|
|
size="small"
|
|
|
- @click="updateProductHandle(scope.row)"
|
|
|
+ @click="updateWorderHandle(scope.row)"
|
|
|
>编辑</el-button
|
|
|
>
|
|
|
<el-button
|
|
@@ -614,8 +614,16 @@ export default {
|
|
|
},
|
|
|
//添加工单
|
|
|
addWorderItem(item) {
|
|
|
- console.log(item);
|
|
|
- this.workInfoList.push({ ...item });
|
|
|
+ if (!item.recordId) {
|
|
|
+ item.recordId = Math.round(Math.random() * 1000000);
|
|
|
+ }
|
|
|
+ if (
|
|
|
+ this.workInfoList.findIndex(
|
|
|
+ (item1) => item1.recordId === item.recordId
|
|
|
+ ) === -1
|
|
|
+ ) {
|
|
|
+ this.workInfoList.push({ ...item });
|
|
|
+ }
|
|
|
},
|
|
|
uploadSuccessTechnical(fileList) {
|
|
|
this.attachListTechnical = fileList;
|
|
@@ -642,7 +650,13 @@ export default {
|
|
|
worderAdd() {
|
|
|
this.worderVisible = true;
|
|
|
this.$nextTick(() => {
|
|
|
- this.$refs.worder.init();
|
|
|
+ this.$refs.worder.init(0, null);
|
|
|
+ });
|
|
|
+ },
|
|
|
+ updateWorderHandle(row) {
|
|
|
+ this.worderVisible = true;
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.worder.init(1, row);
|
|
|
});
|
|
|
},
|
|
|
attachDetails(attachList) {
|