|
|
@@ -2,27 +2,29 @@
|
|
|
<div>
|
|
|
<el-breadcrumb class="heading">
|
|
|
<el-breadcrumb-item :to="{ path: '/' }">平台首页</el-breadcrumb-item>
|
|
|
- <el-breadcrumb-item :to="{ path: '/lims/limspipedrillpipe' }">石油专用管材钻杆检验记录</el-breadcrumb-item>
|
|
|
+ <el-breadcrumb-item :to="{ path: '/lims/wzjys/limspipedrillpipe' }">石油专用管材钻杆检验记录</el-breadcrumb-item>
|
|
|
</el-breadcrumb>
|
|
|
- <el-card class="box-card" style="height: calc(100vh - 115px);">
|
|
|
+ <el-card class="box-card">
|
|
|
<div slot="header">
|
|
|
<span>
|
|
|
<i class="icon icon-table2"></i> 石油专用管材钻杆检验记录
|
|
|
</span>
|
|
|
<span style="float: right;">
|
|
|
<el-button type="primary" size="mini" v-if="this.ischeck===1" @click="jiaoheshowdialog">校核</el-button>
|
|
|
- <el-button type="primary" size="mini" v-if="this.DataStatus==0||this.DataStatus==5||this.DataStatus==3" @click="setProoFreadShow">提交校核</el-button>
|
|
|
- <el-button type="plain" size="mini" style="margin-left:10px; margin-top: -4px;" v-if="this.DataStatus==0||this.DataStatus==5||this.DataStatus==3" @click="addDataEntity">添加明细</el-button>
|
|
|
+ <el-button type="primary" size="mini" v-if="this.DataStatus==0||this.DataStatus==5||this.DataStatus==3"
|
|
|
+ @click="setProoFreadShow">提交校核</el-button>
|
|
|
+ <el-button type="plain" size="mini" style="margin-left:10px; margin-top: -4px;"
|
|
|
+ v-if="this.DataStatus==0||this.DataStatus==5||this.DataStatus==3" @click="addDataEntity">添加明细</el-button>
|
|
|
<!--<el-button type="plain" @click="searchCommand('search')" size="mini"-->
|
|
|
<!--style="margin-left:10px; margin-top: -4px;">查询</el-button>-->
|
|
|
|
|
|
<router-link v-if="this.sign == '1'" :to="'/lims/dataentry/tacktodo'">
|
|
|
<el-button type="primary" size="mini" style="margin-left: 8px">返回</el-button>
|
|
|
</router-link>
|
|
|
- <router-link v-else-if="this.sign == '2'" :to="'/lims/dataentry'">
|
|
|
+ <router-link v-else-if="this.sign == '2'" :to="'/lims/dataentry'">
|
|
|
<el-button type="primary" size="mini" style="margin-left: 8px">返回</el-button>
|
|
|
</router-link>
|
|
|
- <router-link v-else-if="this.sign == '3'" :to="'/lims/dataentry/alltask'">
|
|
|
+ <router-link v-else-if="this.sign == '3'" :to="'/lims/dataentry/alltask'">
|
|
|
<el-button type="primary" size="mini" style="margin-left: 8px">返回</el-button>
|
|
|
</router-link>
|
|
|
<router-link v-else :to="'/lims/dataentry'">
|
|
|
@@ -32,7 +34,7 @@
|
|
|
<el-form ref="form" :inline="true" style="float: right; margin-top: -7px">
|
|
|
<el-form-item label="样品编号">
|
|
|
<!--<el-date-picker size="mini" style="width: 220px" v-model="CreateOn" type="daterange" range-separator="至"-->
|
|
|
- <!--start-placeholder="生成日期" end-placeholder="结束日期"></el-date-picker>-->
|
|
|
+ <!--start-placeholder="生成日期" end-placeholder="结束日期"></el-date-picker>-->
|
|
|
<el-input size="mini" v-model="searchForm.SampleNumber" style="width:100%" placeholder="请输入"></el-input>
|
|
|
</el-form-item>
|
|
|
|
|
|
@@ -49,7 +51,7 @@
|
|
|
</div>
|
|
|
|
|
|
<!--<data-main :DataEntryId="DataEntryId + ''" :EId="EId + ''" :DataDocId="DataDocId+''" :TaskBalanceId="TaskBalanceId+''"-->
|
|
|
- <!--:DataStatus="DataStatus" @init-data-main="initDatas"></data-main>-->
|
|
|
+ <!--:DataStatus="DataStatus" @init-data-main="initDatas"></data-main>-->
|
|
|
|
|
|
<el-card>
|
|
|
<div slot="header" class="clearfix">
|
|
|
@@ -59,58 +61,68 @@
|
|
|
<el-row>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="产品名称" prop="Product" :rules="{ required: true, message: '产品名称不能为空!'}">
|
|
|
- <el-input v-model="formDataMain.Product" placeholder="请输入" style="width: 100%" :disabled="DataStatus != 0 && DataStatus != 5 && DataStatus != 3">
|
|
|
+ <el-input v-model="formDataMain.Product" placeholder="请输入" style="width: 100%"
|
|
|
+ :disabled="DataStatus != 0 && DataStatus != 5 && DataStatus != 3">
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="规格型号">
|
|
|
- <el-input v-model="formDataMain.Spec" placeholder="请输入" style="width: 100%" :disabled="DataStatus != 0 && DataStatus != 5 && DataStatus != 3">
|
|
|
+ <el-input v-model="formDataMain.Spec" placeholder="请输入" style="width: 100%"
|
|
|
+ :disabled="DataStatus != 0 && DataStatus != 5 && DataStatus != 3">
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="抽样基数" prop="SamplingBase" :rules="[{ type: 'number', message: '必须为数字值'}]">
|
|
|
- <el-input v-model.number="formDataMain.SamplingBase" placeholder="请输入" style="width: 100%" :disabled="DataStatus != 0 && DataStatus != 5 && DataStatus != 3">
|
|
|
+ <el-input v-model.number="formDataMain.SamplingBase" placeholder="请输入" style="width: 100%"
|
|
|
+ :disabled="DataStatus != 0 && DataStatus != 5 && DataStatus != 3">
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="样品数量" prop="SampleQty" :rules="[{ type: 'number', message: '必须为数字值'}]">
|
|
|
- <el-input v-model="formDataMain.SampleQty" placeholder="请输入" style="width: 100%" :disabled="DataStatus != 0 && DataStatus != 5 && DataStatus != 3">
|
|
|
+ <el-input v-model.number="formDataMain.SampleQty" placeholder="请输入" style="width: 100%"
|
|
|
+ :disabled="DataStatus != 0 && DataStatus != 5 && DataStatus != 3">
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="外观检验" prop="Appearance">
|
|
|
- <el-input v-model="formDataMain.Appearance" placeholder="请输入" style="width: 100%" :disabled="DataStatus != 0 && DataStatus != 5 && DataStatus != 3">
|
|
|
+ <el-input v-model="formDataMain.Appearance" placeholder="请输入" style="width: 100%"
|
|
|
+ :disabled="DataStatus != 0 && DataStatus != 5 && DataStatus != 3">
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="检验日期" prop="InspectionDate">
|
|
|
- <el-date-picker v-model="formDataMain.InspectionDate" type="date"
|
|
|
- placeholder="选择日期" :disabled="DataStatus != 0 && DataStatus != 5 && DataStatus != 3">
|
|
|
+ <el-date-picker v-model="formDataMain.InspectionDate" type="date" placeholder="选择日期"
|
|
|
+ :disabled="DataStatus != 0 && DataStatus != 5 && DataStatus != 3">
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="24">
|
|
|
<el-form-item label="备注">
|
|
|
- <el-input type="textarea" v-model="formDataMain.MRemark" placeholder="请输入" style="width: 100%"></el-input>
|
|
|
+ <el-input type="textarea" v-model="formDataMain.MRemark" placeholder="请输入" style="width: 100%">
|
|
|
+ </el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="24" align="center">
|
|
|
- <el-button type="primary" size="mini" @click="saveMainInfo" :disabled="DataStatus != 0 && DataStatus != 5 && DataStatus != 3">保存</el-button>
|
|
|
- <el-button type="primary" size="mini" @click="getDataHistory" :disabled="DataStatus != 0 && DataStatus != 5 && DataStatus != 3">选择历史记录</el-button>
|
|
|
+ <el-button type="primary" size="mini" @click="saveMainInfo"
|
|
|
+ :disabled="DataStatus != 0 && DataStatus != 5 && DataStatus != 3">保存</el-button>
|
|
|
+ <el-button type="primary" size="mini" @click="getDataHistory"
|
|
|
+ :disabled="DataStatus != 0 && DataStatus != 5 && DataStatus != 3">选择历史记录</el-button>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</el-form>
|
|
|
</el-card>
|
|
|
<el-card>
|
|
|
- <el-table :data="entityList" border height="calc(100vh - 250px)" highlight-current-row style="width: 100%" @sort-change="orderby">
|
|
|
- <el-table-column v-if="this.DataStatus==0||this.DataStatus==5||this.DataStatus==3" label="操作" min-width="190" align="center" fixed>
|
|
|
+ <el-table :data="entityList" border height="calc(100vh - 250px)" highlight-current-row style="width: 100%"
|
|
|
+ @sort-change="orderby">
|
|
|
+ <el-table-column v-if="this.DataStatus==0||this.DataStatus==5||this.DataStatus==3" label="操作" min-width="190"
|
|
|
+ align="center" fixed>
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button type="primary" plain size="mini" title="编辑" @click="EditEntity(scope.row)">编辑</el-button>
|
|
|
+ <el-button type="primary" plain size="mini" title="编辑" @click="EditEntity(scope.row)">编辑</el-button>
|
|
|
<el-popover placement="top" title="提示">
|
|
|
<el-alert title="" description="确认要删除吗?" type="warning" :closable="false">
|
|
|
</el-alert>
|
|
|
@@ -124,168 +136,185 @@
|
|
|
</el-popover>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="SampleNumber" sortable min-width="110" label="样品编号" align="center" show-overflow-tooltip>
|
|
|
+ <el-table-column prop="SampleNumber" sortable min-width="110" label="样品编号" align="center"
|
|
|
+ show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3" v-model="scope.row.SampleNumber"
|
|
|
- style="width: 100%"></el-input>
|
|
|
+ <el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3"
|
|
|
+ v-model="scope.row.SampleNumber" style="width: 100%"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="紧密距(mm)" align="center">
|
|
|
- <el-table-column prop="CloseDistanceOut" sortable min-width="90" label="外螺纹" align="center" show-overflow-tooltip>
|
|
|
+ <el-table-column label="紧密距(mm)" align="center">
|
|
|
+ <el-table-column prop="CloseDistanceOut" sortable min-width="90" label="外螺纹" align="center"
|
|
|
+ show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3" v-model="scope.row.CloseDistanceOut"
|
|
|
- style="width: 100%"></el-input>
|
|
|
+ <el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3"
|
|
|
+ v-model="scope.row.CloseDistanceOut" style="width: 100%"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="CloseDistanceIn" sortable min-width="90" label="内螺纹" align="center" show-overflow-tooltip>
|
|
|
+ <el-table-column prop="CloseDistanceIn" sortable min-width="90" label="内螺纹" align="center"
|
|
|
+ show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3" v-model="scope.row.CloseDistanceIn"
|
|
|
- style="width: 100%"></el-input>
|
|
|
+ <el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3"
|
|
|
+ v-model="scope.row.CloseDistanceIn" style="width: 100%"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="锥度公差·10-3(in/in)" align="center">
|
|
|
- <el-table-column prop="TaperToleranceOut" sortable min-width="100" label="外螺纹" align="center" show-overflow-tooltip>
|
|
|
+ <el-table-column prop="TaperToleranceOut" sortable min-width="100" label="外螺纹" align="center"
|
|
|
+ show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3" v-model="scope.row.TaperToleranceOut"
|
|
|
- style="width: 100%"></el-input>
|
|
|
+ <el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3"
|
|
|
+ v-model="scope.row.TaperToleranceOut" style="width: 100%"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="TaperToleranceIn" sortable min-width="100" label="内螺纹" align="center" show-overflow-tooltip>
|
|
|
+ <el-table-column prop="TaperToleranceIn" sortable min-width="100" label="内螺纹" align="center"
|
|
|
+ show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3" v-model="scope.row.TaperToleranceIn"
|
|
|
- style="width: 100%"></el-input>
|
|
|
+ <el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3"
|
|
|
+ v-model="scope.row.TaperToleranceIn" style="width: 100%"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="螺距公差·10-3(in/in)" align="center">
|
|
|
- <el-table-column prop="PitchToleranceOut" sortable min-width="100" label="外螺纹" align="center" show-overflow-tooltip>
|
|
|
+ <el-table-column prop="PitchToleranceOut" sortable min-width="100" label="外螺纹" align="center"
|
|
|
+ show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3" v-model="scope.row.PitchToleranceOut"
|
|
|
- style="width: 100%"></el-input>
|
|
|
+ <el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3"
|
|
|
+ v-model="scope.row.PitchToleranceOut" style="width: 100%"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="PitchToleranceIn" sortable min-width="100" label="内螺纹" align="center" show-overflow-tooltip>
|
|
|
+ <el-table-column prop="PitchToleranceIn" sortable min-width="100" label="内螺纹" align="center"
|
|
|
+ show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3" v-model="scope.row.PitchToleranceIn"
|
|
|
- style="width: 100%"></el-input>
|
|
|
+ <el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3"
|
|
|
+ v-model="scope.row.PitchToleranceIn" style="width: 100%"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="ShoulderSurface" label="螺纹轴线(mm)" align="center">
|
|
|
<el-table-column sortable min-width="150" label="与台肩面垂直度" align="center" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3" v-model="scope.row.ShoulderSurface"
|
|
|
- style="width: 100%"></el-input>
|
|
|
+ <el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3"
|
|
|
+ v-model="scope.row.ShoulderSurface" style="width: 100%"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="EndFace" sortable min-width="150" label="与端面垂直度" align="center" show-overflow-tooltip>
|
|
|
+ <el-table-column prop="EndFace" sortable min-width="150" label="与端面垂直度" align="center"
|
|
|
+ show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3" v-model="scope.row.EndFace"
|
|
|
- style="width: 100%"></el-input>
|
|
|
+ <el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3"
|
|
|
+ v-model="scope.row.EndFace" style="width: 100%"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="TubeDiameter" sortable min-width="160" label="管体外径(mm)" align="center" show-overflow-tooltip>
|
|
|
+ <el-table-column prop="TubeDiameter" sortable min-width="160" label="管体外径(mm)" align="center"
|
|
|
+ show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3" v-model="scope.row.TubeDiameter"
|
|
|
- style="width: 100%"></el-input>
|
|
|
+ <el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3"
|
|
|
+ v-model="scope.row.TubeDiameter" style="width: 100%"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="LPC" sortable min-width="130" label="LPC(mm)" align="center" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3" v-model="scope.row.LPC"
|
|
|
- style="width: 100%"></el-input>
|
|
|
+ <el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3"
|
|
|
+ v-model="scope.row.LPC" style="width: 100%"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="DF" sortable min-width="120" label="DF(mm)" align="center" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3" v-model="scope.row.DF"
|
|
|
- style="width: 100%"></el-input>
|
|
|
+ <el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3"
|
|
|
+ v-model="scope.row.DF" style="width: 100%"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="QC" sortable min-width="125" label="QC(mm)" align="center" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3" v-model="scope.row.QC"
|
|
|
- style="width: 100%"></el-input>
|
|
|
+ <el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3"
|
|
|
+ v-model="scope.row.QC" style="width: 100%"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="LPB" sortable min-width="140" label="LPB(mm)" align="center" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3" v-model="scope.row.LPB"
|
|
|
- style="width: 100%"></el-input>
|
|
|
+ <el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3"
|
|
|
+ v-model="scope.row.LPB" style="width: 100%"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="LB" sortable min-width="120" label="LB(mm)" align="center" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3" v-model="scope.row.LB"
|
|
|
- style="width: 100%"></el-input>
|
|
|
+ <el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3"
|
|
|
+ v-model="scope.row.LB" style="width: 100%"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="TubeLength" sortable min-width="150" label="管体长度(m)" align="center" show-overflow-tooltip>
|
|
|
+ <el-table-column prop="TubeLength" sortable min-width="150" label="管体长度(m)" align="center"
|
|
|
+ show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3" v-model="scope.row.TubeLength"
|
|
|
- style="width: 100%"></el-input>
|
|
|
+ <el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3"
|
|
|
+ v-model="scope.row.TubeLength" style="width: 100%"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="InnerDiameter" sortable min-width="160" label="接头内径(mm)" align="center" show-overflow-tooltip>
|
|
|
+ <el-table-column prop="InnerDiameter" sortable min-width="160" label="接头内径(mm)" align="center"
|
|
|
+ show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3" v-model="scope.row.InnerDiameter"
|
|
|
- style="width: 100%"></el-input>
|
|
|
+ <el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3"
|
|
|
+ v-model="scope.row.InnerDiameter" style="width: 100%"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="WallThickness" sortable min-width="130" label="壁厚(mm)" align="center" show-overflow-tooltip>
|
|
|
+ <el-table-column prop="WallThickness" sortable min-width="130" label="壁厚(mm)" align="center"
|
|
|
+ show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3" v-model="scope.row.WallThickness"
|
|
|
- style="width: 100%"></el-input>
|
|
|
+ <el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3"
|
|
|
+ v-model="scope.row.WallThickness" style="width: 100%"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="接头外径(mm)" align="center">
|
|
|
- <el-table-column prop="JointDiameterM" sortable min-width="100" label="公端" align="center" show-overflow-tooltip>
|
|
|
+ <el-table-column prop="JointDiameterM" sortable min-width="100" label="公端" align="center"
|
|
|
+ show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3" v-model="scope.row.JointDiameterM"
|
|
|
- style="width: 100%"></el-input>
|
|
|
+ <el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3"
|
|
|
+ v-model="scope.row.JointDiameterM" style="width: 100%"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="JointDiameterF" sortable min-width="100" label="母端" align="center" show-overflow-tooltip>
|
|
|
+ <el-table-column prop="JointDiameterF" sortable min-width="100" label="母端" align="center"
|
|
|
+ show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3" v-model="scope.row.JointDiameterF"
|
|
|
- style="width: 100%"></el-input>
|
|
|
+ <el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3"
|
|
|
+ v-model="scope.row.JointDiameterF" style="width: 100%"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="焊接不同轴度(mm)" align="center">
|
|
|
<el-table-column prop="WallDifF" sortable min-width="100" label="公端" align="center" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3" v-model="scope.row.WallDifF"
|
|
|
- style="width: 100%"></el-input>
|
|
|
+ <el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3"
|
|
|
+ v-model="scope.row.WallDifF" style="width: 100%"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="WallDifM" sortable min-width="100" label="母端" align="center" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3" v-model="scope.row.WallDifM"
|
|
|
- style="width: 100%"></el-input>
|
|
|
+ <el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3"
|
|
|
+ v-model="scope.row.WallDifM" style="width: 100%"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="外径偏心度(mm)" align="center">
|
|
|
- <el-table-column prop="OuterDiameterF" sortable min-width="100" label="公端" align="center" show-overflow-tooltip>
|
|
|
+ <el-table-column prop="OuterDiameterF" sortable min-width="100" label="公端" align="center"
|
|
|
+ show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3" v-model="scope.row.OuterDiameterF"
|
|
|
- style="width: 100%"></el-input>
|
|
|
+ <el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3"
|
|
|
+ v-model="scope.row.OuterDiameterF" style="width: 100%"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="OuterDiameterM" sortable min-width="100" label="母端" align="center" show-overflow-tooltip>
|
|
|
+ <el-table-column prop="OuterDiameterM" sortable min-width="100" label="母端" align="center"
|
|
|
+ show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3" v-model="scope.row.OuterDiameterM"
|
|
|
- style="width: 100%"></el-input>
|
|
|
+ <el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3"
|
|
|
+ v-model="scope.row.OuterDiameterM" style="width: 100%"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table-column>
|
|
|
|
|
|
</el-table>
|
|
|
<el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage"
|
|
|
- :page-sizes="[10, 15, 20, 25]" :page-size="size" layout="total, sizes, prev, pager, next, jumper" :total="currentItemCount">
|
|
|
+ :page-sizes="[10, 15, 20, 25]" :page-size="size" layout="total, sizes, prev, pager, next, jumper"
|
|
|
+ :total="currentItemCount">
|
|
|
</el-pagination>
|
|
|
</el-card>
|
|
|
</el-card>
|
|
|
@@ -302,43 +331,50 @@
|
|
|
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="紧密距外螺纹" label-width="120px">
|
|
|
- <el-input size="mini" v-model="searchForm.CloseDistanceOut" style="width:100%" placeholder="请输入"></el-input>
|
|
|
+ <el-input size="mini" v-model="searchForm.CloseDistanceOut" style="width:100%" placeholder="请输入">
|
|
|
+ </el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="紧密距内螺纹" label-width="120px">
|
|
|
- <el-input size="mini" v-model="searchForm.CloseDistanceIn" style="width:100%" placeholder="请输入"></el-input>
|
|
|
+ <el-input size="mini" v-model="searchForm.CloseDistanceIn" style="width:100%" placeholder="请输入">
|
|
|
+ </el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="锥度公差外螺纹" label-width="140px">
|
|
|
- <el-input size="mini" v-model="searchForm.TaperToleranceOut" style="width:100%" placeholder="请输入"></el-input>
|
|
|
+ <el-input size="mini" v-model="searchForm.TaperToleranceOut" style="width:100%" placeholder="请输入">
|
|
|
+ </el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="锥度公差内螺纹" label-width="140px">
|
|
|
- <el-input size="mini" v-model="searchForm.TaperToleranceIn" style="width:100%" placeholder="请输入"></el-input>
|
|
|
+ <el-input size="mini" v-model="searchForm.TaperToleranceIn" style="width:100%" placeholder="请输入">
|
|
|
+ </el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="螺距公差外螺纹" label-width="140px">
|
|
|
- <el-input size="mini" v-model="searchForm.PitchToleranceOut" style="width:100%" placeholder="请输入"></el-input>
|
|
|
+ <el-input size="mini" v-model="searchForm.PitchToleranceOut" style="width:100%" placeholder="请输入">
|
|
|
+ </el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="螺距公差内螺纹" label-width="140px">
|
|
|
- <el-input size="mini" v-model="searchForm.PitchToleranceIn" style="width:100%" placeholder="请输入"></el-input>
|
|
|
+ <el-input size="mini" v-model="searchForm.PitchToleranceIn" style="width:100%" placeholder="请输入">
|
|
|
+ </el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="螺纹轴线与台肩面垂直度" label-width="170px">
|
|
|
- <el-input size="mini" v-model="searchForm.ShoulderSurface" style="width:100%" placeholder="请输入"></el-input>
|
|
|
+ <el-input size="mini" v-model="searchForm.ShoulderSurface" style="width:100%" placeholder="请输入">
|
|
|
+ </el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
@@ -452,13 +488,16 @@
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
|
|
|
- <data-opera ref="DataoperaCompoment" :DataEntryId="DataEntryId+''" :TaskBalanceId="TaskBalanceId+''" :EId="EId+''" @init-data="initDatas"></data-opera>
|
|
|
+ <data-opera ref="DataoperaCompoment" :DataEntryId="DataEntryId+''" :TaskBalanceId="TaskBalanceId+''" :EId="EId+''"
|
|
|
+ @init-data="initDatas"></data-opera>
|
|
|
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
- import { mapGetters } from 'vuex'
|
|
|
- import api from '@/api/lims/limspipedrillpipe'
|
|
|
+ import {
|
|
|
+ mapGetters
|
|
|
+ } from 'vuex'
|
|
|
+ import api from '@/api/wzjys/limspipedrillpipe'
|
|
|
import DataOpera from './operation.vue'
|
|
|
|
|
|
export default {
|
|
|
@@ -471,7 +510,7 @@
|
|
|
components: {
|
|
|
DataOpera
|
|
|
},
|
|
|
- data () {
|
|
|
+ data() {
|
|
|
return {
|
|
|
dialogVisible: false,
|
|
|
activeName: '1',
|
|
|
@@ -544,7 +583,7 @@
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- created () {
|
|
|
+ created() {
|
|
|
this.EId = this.$route.query.eid
|
|
|
this.TaskBalanceId = this.$route.query.tbid
|
|
|
this.DataEntryId = this.$route.query.deid
|
|
|
@@ -560,7 +599,7 @@
|
|
|
// this.getDictOptions()
|
|
|
},
|
|
|
methods: {
|
|
|
- saveMainInfo () {
|
|
|
+ saveMainInfo() {
|
|
|
this.$refs['formDataMain'].validate((valid) => {
|
|
|
if (valid) {
|
|
|
this.$axios.post('/limsdataentry/updateEntity/' + this.DataEntryId, this.formDataMain).then(res => {
|
|
|
@@ -582,7 +621,7 @@
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- getDataEntry () {
|
|
|
+ getDataEntry() {
|
|
|
this.$axios.get('/limsdataentry/getdataentry/' + this.DataEntryId).then(res => {
|
|
|
this.formDataMain = res.data
|
|
|
// this.params.Id = res.data.Id
|
|
|
@@ -590,10 +629,10 @@
|
|
|
console.log(error)
|
|
|
})
|
|
|
},
|
|
|
- getDataHistory () {
|
|
|
+ getDataHistory() {
|
|
|
|
|
|
},
|
|
|
- initDatas () {
|
|
|
+ initDatas() {
|
|
|
// 分页及列表条件
|
|
|
let params = {
|
|
|
_currentPage: this.currentPage,
|
|
|
@@ -620,17 +659,17 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- addDataEntity () {
|
|
|
+ addDataEntity() {
|
|
|
// 刷新子列表
|
|
|
this.$refs['DataoperaCompoment'].resetFormData()
|
|
|
this.$refs['DataoperaCompoment'].dialogVisible = true
|
|
|
},
|
|
|
|
|
|
- setProoFreadShow () {
|
|
|
+ setProoFreadShow() {
|
|
|
|
|
|
},
|
|
|
|
|
|
- getDictOptions () {
|
|
|
+ getDictOptions() {
|
|
|
api.getDictList(this.$axios).then(res => {
|
|
|
|
|
|
}).catch(err => {
|
|
|
@@ -638,7 +677,7 @@
|
|
|
})
|
|
|
},
|
|
|
|
|
|
- searchCommand (command) {
|
|
|
+ searchCommand(command) {
|
|
|
if (command === 'search') {
|
|
|
this.dialogVisible = true
|
|
|
} else if (command === 'clear') {
|
|
|
@@ -646,7 +685,7 @@
|
|
|
}
|
|
|
},
|
|
|
// 列表排序功能
|
|
|
- orderby (column) {
|
|
|
+ orderby(column) {
|
|
|
if (column.order === 'ascending') {
|
|
|
this.Column.Order = 'asc'
|
|
|
} else if (column.order === 'descending') {
|
|
|
@@ -655,27 +694,27 @@
|
|
|
this.Column.Prop = column.prop
|
|
|
this.initDatas()
|
|
|
},
|
|
|
- clearSearch () {
|
|
|
+ clearSearch() {
|
|
|
Object.assign(this.searchForm, this.searchFormReset)
|
|
|
// this.searchForm = this.searchFormReset;
|
|
|
this.CreateOn = ''
|
|
|
this.initDatas()
|
|
|
},
|
|
|
- handleSearch () {
|
|
|
+ handleSearch() {
|
|
|
this.currentPage = 1
|
|
|
this.dialogVisible = false
|
|
|
this.initDatas()
|
|
|
},
|
|
|
- handleCurrentChange (value) {
|
|
|
+ handleCurrentChange(value) {
|
|
|
this.currentPage = value
|
|
|
this.initDatas()
|
|
|
},
|
|
|
- handleSizeChange (value) {
|
|
|
+ handleSizeChange(value) {
|
|
|
this.size = value
|
|
|
this.currentPage = 1
|
|
|
this.initDatas()
|
|
|
},
|
|
|
- deleteEntity (row) {
|
|
|
+ deleteEntity(row) {
|
|
|
row.deleteConfirmFlag = false
|
|
|
api.deleteEntity(row.Id, this.$axios).then(res => {
|
|
|
if (res.data.code === 0) {
|
|
|
@@ -694,12 +733,12 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- EditEntity (row) {
|
|
|
+ EditEntity(row) {
|
|
|
this.$refs['DataoperaCompoment'].subListEditEntity(row.Id)
|
|
|
this.$refs['DataoperaCompoment'].dialogVisible = true
|
|
|
},
|
|
|
|
|
|
- jstimehandle (val) {
|
|
|
+ jstimehandle(val) {
|
|
|
if (val === '') {
|
|
|
return '----'
|
|
|
} else if (val === '0001-01-01T08:00:00+08:00') {
|
|
|
@@ -712,7 +751,7 @@
|
|
|
}
|
|
|
},
|
|
|
|
|
|
- formatDateTime (date) {
|
|
|
+ formatDateTime(date) {
|
|
|
var y = date.getFullYear()
|
|
|
var m = date.getMonth() + 1
|
|
|
m = m < 10 ? ('0' + m) : m
|
|
|
@@ -725,9 +764,9 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
|
|
</style>
|
|
|
-
|