Mr.Zhang
2023-08-14 287934f48daa9889f824e12d1af687bc5aa3bbe2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<template>
  <GlobalWindow
    :title="title"
    :visible.sync="visible"
    width="600px"
    @confirm="confirm"
  >
    <div class="title-style">
      <span class="title-code-style">{{ form.code }}</span>
      <span class="title-result-style">{{ (form.checkType==0 ? ' 检具检' : ' 外观检') + (form.doneType==0 ? '-合格' : '-不合格') }}</span>
    </div>
    <el-form :model="form" ref="form" label-suffix=":" inline>
      <el-form-item label="检验类型" style="width:48%" prop="code">
        {{ form.type==0 ? '生产终检' : '-' }}
      </el-form-item>
      <el-form-item label="物料编码" style="width:48%" prop="status">
        {{ form.materialCode }}
      </el-form-item>
      <el-form-item label="物料名称" style="width:48%" prop="status">
        {{ form.materialName }}
      </el-form-item>
      <el-form-item label="工单编号" style="width:48%" prop="userName">
        {{ form.workOrderCode }}
      </el-form-item>
      <el-form-item label="送检数量" style="width:48%" prop="content">
         {{ form.num + (form.unitName || '') }}
      </el-form-item>
      <el-form-item label="检验日期" style="width:48%" prop="content">
         {{ form.createTime }}
      </el-form-item>
      <el-form-item label="检验人员" style="width:48%" prop="content">
         {{ form.userName + '-' + form.departmentName }}
      </el-form-item>
      <el-form-item label="检验备注" style="width:95%">
         {{ form.remark }}
      </el-form-item>
    </el-form>
    <div class="space-line"></div>
    <div class="detail-title-style">检验详细信息</div>
    <el-table
      :data="form.endCheckDetailList"
      stripe
      border
    >
      <el-table-column prop="appliancesCode" label="工装编码" fixed="left" show-overflow-tooltip min-width="100px"></el-table-column>
      <el-table-column prop="qualifiedNum" label="合格数量" min-width="100px"></el-table-column>
      <el-table-column prop="unqualifiedNum" label="不良数量" min-width="100px"></el-table-column>
      <el-table-column prop="unAppliancesCode" label="不良篮筐" min-width="100px">
        <template slot-scope="{row}">
          {{ row.unAppliancesCode || '-' }}
        </template>
      </el-table-column>
      <el-table-column prop="checkInfo" label="不良原因" min-width="160px">
        <template slot-scope="{row}">
          {{ row.checkInfo || '-' }}
        </template>
      </el-table-column>
    </el-table>
    <div slot="footer" class="window__header">
      <el-button type="primary" @click="cancel">返回</el-button>
    </div>
  </GlobalWindow>
</template>
 
<script>
import BaseOpera from '@/components/base/BaseOpera'
import GlobalWindow from '@/components/common/GlobalWindow'
export default {
  name: 'OperaEndCheckDetailWindow',
  extends: BaseOpera,
  components: { GlobalWindow },
  data () {
    return {
      // 表单数据
      form: {
        code: '',
        checkType: 0,
        doneType: 0,
        type: 0,
        materialName: '',
        materialCode: '',
        workOrderCode: '',
        num: '',
        unitName: '',
        userName: '',
        createTime: '',
        departmentName: '',
        remark: '',
        endCheckDetailList: [],
        id: ''
      },
      folder: ''
    }
  },
  created () {
    this.config({
      api: '/ext/companyPositionExt',
      'field.id': 'id'
    })
  },
  methods: {
    cancel () {
      this.$refs.form.resetFields()
      this.visible = false
      // let that = this
    }
  }
}
</script>
 
<style lang="scss" scoped>
.title-style {
  margin-bottom: 10px;
  vertical-align: bottom;
  .title-code-style {
    font-size: 20px;
    color: rgb(75, 164, 235);
    font-weight: 500;
  }
  .title-result-style {
    font-size: 15px;
    color: rgb(128, 180, 54);
    // font-weight: 500;
  }
}
.detail-title-style {
  margin: 10px 0;
  font-size: 15px;
  color: #999;
}
.el-form-item {
  width: 47%;
  margin-bottom: 0px !important;
}
.space-line {
  margin: 10px 0;
  width:100%;
  height:1px;
  background-color:#ccc
}
</style>