value
2023-08-29 f6b6162c08fb8fd93369064d4daef6c94b100eea
bug修复
已修改5个文件
42 ■■■■■ 文件已修改
src/App.vue 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/experiment/inspectionApplication/index.vue 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/home/index.vue 补丁 | 查看 | 原始文档 | blame | 历史
src/views/inspectionManagement/commissionInspection/addCommision.vue 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/inspectionManagement/commissionInspection/index.vue 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/App.vue
@@ -6,7 +6,10 @@
<script>
export default {
  name: 'App'
  name: 'App',
    mounted() {
        document.title = "装备电缆 lims 系统"
    }
}
</script>
src/views/experiment/inspectionApplication/index.vue
@@ -50,11 +50,12 @@
                        </div>
                    </div>
                    <div class="table-box">
                        <el-table ref="inspectionTable" :max-height="800" :cell-style="{textAlign: 'center'}"
                        <el-table ref="inspectionTable" style="width: 100%;overflow-y: auto;min-height: calc(100% - 50px)"
                            max-height="calc(100% - 50px)" :cell-style="{textAlign: 'center'}"
                            :header-cell-style="{border:'0px',background:'#f5f7fa',color:'#606266',boxShadow: 'inset 0 1px 0 #ebeef5',textAlign: 'center'}"
                            :data="inspectionTable" style="width: 100%">
                            :data="inspectionTable">
                            <el-table-column type="selection" min-width="30px" />
                            <el-table-column prop="icode" label="申请单号" min-width="100px" />
                            <el-table-column prop="icode" label="申请单号" min-width="150px" />
                            <el-table-column prop="type" label="检验类型" min-width="80px">
                                <template slot-scope="scope">
                                    <div v-if="scope.row.type === 0"><span>原材料检验</span></div>
@@ -62,7 +63,7 @@
                                    <div v-if="scope.row.type === 2"><span>成品检验</span></div>
                                </template>
                            </el-table-column>
                            <el-table-column prop="formTime" label="来料日期" min-width="100px" />
                            <el-table-column prop="formTime" label="来料日期" min-width="80px" />
                            <el-table-column prop="supplier" label="供应商名称" min-width="150px" />
                            <el-table-column prop="mcode" label="原材料编码" min-width="150px" />
                            <el-table-column prop="name" label="原材料名称" min-width="80px" />
@@ -70,13 +71,13 @@
                            <el-table-column prop="unit" label="单位" min-width="50px" />
                            <el-table-column prop="num" label="数量" min-width="50px" />
                            <el-table-column prop="createTime" label="登记日期" min-width="80px" />
                            <el-table-column prop="userName" label="登记人" min-width="80px" />
                            <el-table-column prop="inspection_status" label="检验结果" min-width="80px">
                                <template slot-scope="scope">
                                    <el-tag class="tag" :type="scope.row.inspection_status === 0 ? 'danger' : 'success'"
                                        disable-transitions>{{ scope.row.inspection_status === 0 ? '不合格' : '合格' }}</el-tag>
                                </template>
                            </el-table-column>
                            <el-table-column prop="userName" label="登记人" min-width="80px" />
                            <el-table-column prop="checkdate" label="检验日期" min-width="150px" />
                            <el-table-column label="操作" min-width="150" fixed="right">
                                <template slot-scope="scope">
@@ -302,7 +303,6 @@
                    </el-dialog>
                </div>
            </div>
            <!-- 确定跳转基本库弹窗 -->
            <el-dialog title="标准库" :visible.sync="Standardframe" width="49%">
                <el-card>
@@ -310,7 +310,6 @@
                        <span>版本选择:</span>
                        <el-select @change="ccc" v-model="selectedValue" size="small" slot="append" style="width: 220px;">
                            <el-option v-for="item in BANben" :key="item" :label="item" :value="item"></el-option>
                        </el-select>
                    </template>
                </el-card>
@@ -438,7 +437,6 @@
    } from '@/api/experiment/planAssignments'
    export default {
        data() {
            return {
                showDetail: false,
                searchData: {
@@ -501,7 +499,7 @@
                }],
                currentPage: 1,
                total: 20, // 总条数
                pageSize: 8, // 每页的数据条数
                pageSize: 10, // 每页的数据条数
                radioValue: '全部',
                checkTypeVisible: false,
                type: 0, // 默认不选中的状态
src/views/home/index.vue
src/views/inspectionManagement/commissionInspection/addCommision.vue
@@ -41,7 +41,8 @@
                        <el-table-column prop="remarks" label="备注" min-width="8%" />
                        <el-table-column label="操作" min-width="8%">
                            <template slot-scope="scope">
                                <el-button type="text" size="small" @click="deleteRow(scope.row)">删除</el-button>
                                <el-button type="text" size="small"
                                    @click.native.prevent="deleteRow(scope.$index, detectionInfo)">删除</el-button>
                            </template>
                        </el-table-column>
                    </el-table>
@@ -174,7 +175,8 @@
                            </el-col>
                            <el-col :span="11">
                                <el-form-item label="规格型号:">
                                    <el-select v-model="addPointerForm.specificationsModels" size="small" placeholder="请先选择样品名称" @change="getProductList">
                                    <el-select v-model="addPointerForm.specificationsModels" size="small" placeholder="请先选择样品名称"
                                        @change="getProductList">
                                        <el-option v-for="options in model_sta_options" :value="options.key" :label="options.value"
                                            :key="options.key">{{ options.value }}</el-option>
                                    </el-select>
@@ -194,7 +196,7 @@
                            </el-col>
                        </el-row>
                        <el-row :gutter="50">
                            <el-col :span="9">
                            <el-col :span="11">
                                <el-form-item label="添加项目:">
                                    <el-checkbox-group v-model="addPointerForm.experiment" style="display: flex; flex-direction: column;">
                                        <el-checkbox v-for="(expers, ai) in productList" :label="expers"
@@ -202,7 +204,7 @@
                                    </el-checkbox-group>
                                </el-form-item>
                            </el-col>
                            <el-col :span="41">
                            <el-col :span="11">
                                <el-form-item label="备注:">
                                    <el-input type="textarea" :autosize="{ minRows: 4, maxRows: 20}" style="width: 200px;"
                                        v-model="addPointerForm.remarks" placeholder="请输入备注" autocomplete="off" />
@@ -426,8 +428,8 @@
            handleCurrentChange(pageNo) {
                this.pageParams.pageNo = pageNo
            },
            deleteRow(row) {
            deleteRow(index, rows) {
                rows.splice(index, 1);
            },
            upMaterialName(val) {
                this.sampleoptions.forEach(a => {
@@ -438,7 +440,9 @@
                this.getModelSpecification(val)
            },
            getProductList(val){
                getProductList({modelId: val}).then(res=>{
                getProductList({
                    modelId: val
                }).then(res => {
                    this.productList = res.data.map(item=>{
                        return item.name
                    })
src/views/inspectionManagement/commissionInspection/index.vue
@@ -327,6 +327,9 @@
                if (document.execCommand('copy')) {
                    this.$message.success('已复制到剪贴板')
                }
            },
            handleClick(row){
                console.log(row);
            }
        }
    }