|
|
@@ -1,7 +1,56 @@
|
|
|
<template>
|
|
|
<el-dialog title="详情" :visible.sync="visible" :before-close="handleClose" :close-on-click-modal="false"
|
|
|
:close-on-press-escape="false" append-to-body width="80%">
|
|
|
+
|
|
|
+ <el-form ref="form" label-width="100px" class="create-form"
|
|
|
+ >
|
|
|
+ <headerTitle title="基本信息" style="margin-top: 15px"></headerTitle>
|
|
|
+
|
|
|
+ <el-row :gutter="15">
|
|
|
+
|
|
|
+
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="委外单编码:" prop="code">
|
|
|
+ <el-input v-model="row.code" disabled />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="委外单名称:" prop="name">
|
|
|
+ <el-input v-model="row.name" disabled />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="工单编码:" prop="factoriesName">
|
|
|
+ <el-input v-model="row.workOrderCode" style="width: 100%" disabled>
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="预计到货日期:" prop="factoriesName">
|
|
|
+ <el-input v-model="row.requireDeliveryTime" style="width: 100%" disabled>
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="创建时间:" prop="factoriesName">
|
|
|
+ <el-input v-model="row.createTime" style="width: 100%" disabled>
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="工序:" prop="status">
|
|
|
+ <el-tag>{{ row.status == 1 ? '已发布' : '未发布' }}</el-tag>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+
|
|
|
+ </el-row>
|
|
|
|
|
|
+ </el-form>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
<!-- 数据表格 -->
|
|
|
<ele-pro-table ref="table" v-if="detailType == 1" :columns="columns" cache-key="detailsTable"
|
|
|
height="calc(100vh - 350px)">
|
|
|
@@ -9,12 +58,12 @@
|
|
|
{{ row.totalCount }}{{ row.measuringUnit }}
|
|
|
</template>
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
<template v-slot:sourceType="{ row }">
|
|
|
- <el-tag v-if="row.sourceType == 1" size="mini" type="success">物品清单</el-tag>
|
|
|
- <el-tag v-if="row.sourceType == 2" size="mini" type="warning">带料清单</el-tag>
|
|
|
- <el-tag v-if="row.sourceType == 3" size="mini" type="danger">产出清单</el-tag>
|
|
|
+ <el-tag v-if="row.sourceType == 1" size="mini" type="success">物品清单</el-tag>
|
|
|
+ <el-tag v-if="row.sourceType == 2" size="mini" type="warning">带料清单</el-tag>
|
|
|
+ <el-tag v-if="row.sourceType == 3" size="mini" type="danger">产出清单</el-tag>
|
|
|
</template>
|
|
|
|
|
|
|
|
|
@@ -30,8 +79,8 @@
|
|
|
|
|
|
<template v-slot:sourceType="{ row }">
|
|
|
<el-tag v-if="row.sourceType == 1" size="mini" type="success">物品清单</el-tag>
|
|
|
- <el-tag v-if="row.sourceType == 2" size="mini" type="warning">带料清单</el-tag>
|
|
|
- <el-tag v-if="row.sourceType == 3" size="mini" type="danger">产出清单</el-tag>
|
|
|
+ <el-tag v-if="row.sourceType == 2" size="mini" type="warning">带料清单</el-tag>
|
|
|
+ <el-tag v-if="row.sourceType == 3" size="mini" type="danger">产出清单</el-tag>
|
|
|
</template>
|
|
|
|
|
|
</ele-pro-table>
|
|
|
@@ -40,7 +89,7 @@
|
|
|
|
|
|
</el-dialog>
|
|
|
</template>
|
|
|
-
|
|
|
+
|
|
|
<script>
|
|
|
|
|
|
|
|
|
@@ -51,7 +100,7 @@ export default {
|
|
|
return {
|
|
|
visible: false,
|
|
|
detailType: null,
|
|
|
-
|
|
|
+ row:{}
|
|
|
}
|
|
|
},
|
|
|
|
|
|
@@ -147,7 +196,7 @@ export default {
|
|
|
align: 'center'
|
|
|
},
|
|
|
|
|
|
-
|
|
|
+
|
|
|
{
|
|
|
prop: 'sourceType',
|
|
|
slot: 'sourceType',
|
|
|
@@ -236,7 +285,7 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+ this.row = row;
|
|
|
|
|
|
},
|
|
|
|
|
|
@@ -256,6 +305,5 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
-
|
|
|
-<style lang="scss" scoped></style>
|
|
|
-
|
|
|
+
|
|
|
+<style lang="scss" scoped></style>
|