|
|
@@ -968,6 +968,106 @@
|
|
|
</template>
|
|
|
</ele-pro-table>
|
|
|
</el-tab-pane>
|
|
|
+
|
|
|
+
|
|
|
+ <el-tab-pane label="" name="工艺文件">
|
|
|
+ <ele-pro-table
|
|
|
+ ref="fileTable"
|
|
|
+ :columns="jobColumns1"
|
|
|
+ :datasource="datasource"
|
|
|
+ :need-page="false"
|
|
|
+ :immediate="true"
|
|
|
+ >
|
|
|
+ <!-- 表头工具栏 -->
|
|
|
+ <template v-if="!isView" v-slot:toolbar>
|
|
|
+ <el-button type="primary" @click="addFile">添加</el-button>
|
|
|
+ </template>
|
|
|
+ <template v-slot:action="{ row, $index }">
|
|
|
+ <el-link type="primary" @click="handleDel(row, $index)"
|
|
|
+ >删除</el-link
|
|
|
+ >
|
|
|
+ </template>
|
|
|
+ <template v-slot:type="{ row }">
|
|
|
+ <div v-if="isView">{{ row.type }}</div>
|
|
|
+ <el-input
|
|
|
+ v-else
|
|
|
+ v-model="row.type"
|
|
|
+ placeholder="请输入"
|
|
|
+ ></el-input>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <template v-slot:code="{ row }">
|
|
|
+ <div v-if="isView">{{ row.code }}</div>
|
|
|
+ <el-input
|
|
|
+ v-else
|
|
|
+ v-model="row.code"
|
|
|
+ placeholder="请输入"
|
|
|
+ ></el-input>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <template v-slot:versions="{ row }">
|
|
|
+ <div v-if="isView">{{ row.versions }}</div>
|
|
|
+ <el-input
|
|
|
+ v-else
|
|
|
+ v-model="row.versions"
|
|
|
+ placeholder="请输入"
|
|
|
+ ></el-input>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <template v-slot:status="{ row }">
|
|
|
+ <div v-if="isView">{{
|
|
|
+ statusOption.filter((item) => item.value == row.status)[0].label
|
|
|
+ }}</div>
|
|
|
+ <div v-else>
|
|
|
+ <template>
|
|
|
+ <el-select v-model="row.status" placeholder="请选择">
|
|
|
+ <el-option
|
|
|
+ v-for="item in statusOption"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value"
|
|
|
+ :key="item.value"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </template>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <template v-slot:path="{ row }">
|
|
|
+ <div v-if="isView">附件</div>
|
|
|
+ <div v-else
|
|
|
+ ><div class="downLoad">
|
|
|
+ <fileUpload
|
|
|
+ v-model="jobFiledList"
|
|
|
+ :show-file-list="false"
|
|
|
+ module="main"
|
|
|
+ @input="uploadedJobSuccess($event, row)"
|
|
|
+ :showLib="false"
|
|
|
+ :limit="1"
|
|
|
+ />
|
|
|
+ <div v-if="row.path">
|
|
|
+ <el-button
|
|
|
+ style="margin-left: 10px"
|
|
|
+ size="mini"
|
|
|
+ type="primary"
|
|
|
+ @click="downloadFile(row.path)"
|
|
|
+ >下载</el-button
|
|
|
+ >
|
|
|
+ </div></div
|
|
|
+ >
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <template v-slot:remark="{ row }">
|
|
|
+ <div v-if="isView">{{ row.remark }}</div>
|
|
|
+ <el-input
|
|
|
+ v-else
|
|
|
+ v-model="row.remark"
|
|
|
+ placeholder="请输入"
|
|
|
+ ></el-input>
|
|
|
+ </template>
|
|
|
+ </ele-pro-table>
|
|
|
+ </el-tab-pane>
|
|
|
</el-tabs>
|
|
|
</el-card>
|
|
|
<!-- 选择工艺参数 -->
|