|
|
|
@ -132,7 +132,13 @@
|
|
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
|
|
<el-table-column label="recordId" align="center" prop="recordId" v-if="false"/>
|
|
|
|
|
<el-table-column label="checkType" align="center" prop="checkType" v-if="false"/>
|
|
|
|
|
<el-table-column label="检验任务编号" align="center" prop="checkNo" width="120"/>
|
|
|
|
|
<el-table-column label="检验任务编号" align="center" prop="checkNo" width="120">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button type="text" @click="handleView(scope.row)">{{
|
|
|
|
|
scope.row.checkNo
|
|
|
|
|
}}</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="来料批次号" align="center" prop="incomeBatchNo" width="120"/>
|
|
|
|
|
<el-table-column label="订单号" align="center" prop="orderNo" width="120"/>
|
|
|
|
|
<el-table-column label="物料号" align="center" prop="materialCode" width="170"/>
|
|
|
|
@ -196,7 +202,7 @@
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<pagination
|
|
|
|
|
v-show="total>0"
|
|
|
|
|
:total="total"
|
|
|
|
@ -246,24 +252,24 @@
|
|
|
|
|
<el-input v-model="form.materialCode" placeholder="请输入物料号" disabled/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="来料批次号" prop="incomeBatchNo">
|
|
|
|
|
<el-input v-model="form.incomeBatchNo" placeholder="请输入来料批次号" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-form-item label="收货数量" prop="quality">
|
|
|
|
|
<el-input type="number" v-model="form.quality" placeholder="请输入收货数量" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-form-item label="抽样数量" prop="sampleQuality">
|
|
|
|
|
<el-input type="number" v-model="form.sampleQuality" placeholder="请输入抽样数量" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-form-item label="不合格数量" prop="noOkQuality">
|
|
|
|
|
<el-input type="number" v-model="form.noOkQuality" placeholder="请输入不合格数量" />
|
|
|
|
|
</el-form-item>
|
|
|
|
@ -289,11 +295,11 @@
|
|
|
|
|
</el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="供应商编码" prop="supplierCode">
|
|
|
|
|
<el-input v-model="form.supplierCode" placeholder="请输入供应商编码" disabled/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="来料时间" prop="incomeTime">
|
|
|
|
|
<el-date-picker clearable
|
|
|
|
@ -304,7 +310,7 @@
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="检测人姓名" prop="checkManName">
|
|
|
|
@ -318,12 +324,12 @@
|
|
|
|
|
<el-input v-model="form.checkManCode" placeholder="请输入检测人工号" disabled/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="检测地点" prop="checkLoc">
|
|
|
|
|
<el-input v-model="form.checkLoc" placeholder="请输入检测地点" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
</el-row>
|
|
|
|
|
</el-form>
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
|
|
|
@ -420,7 +426,7 @@ export default {
|
|
|
|
|
// 表单校验
|
|
|
|
|
rules: {
|
|
|
|
|
checkType:[
|
|
|
|
|
{ required: true, message: "检验类型不能为空", trigger: "blur" }
|
|
|
|
|
{ required: true, message: "检验类型不能为空", trigger: "blur" }
|
|
|
|
|
],
|
|
|
|
|
incomeBatchNo: [
|
|
|
|
|
{ required: true, message: "来料批次号不能为空", trigger: "blur" }
|
|
|
|
@ -645,7 +651,7 @@ export default {
|
|
|
|
|
this.form.supplierCode = obj.code;
|
|
|
|
|
this.form.supplierName = obj.name;
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**人员选择弹出框**/
|
|
|
|
|
handleSelectUser() {
|
|
|
|
|
this.$refs.itemSelectUser.showFlag = true;
|
|
|
|
@ -666,6 +672,11 @@ export default {
|
|
|
|
|
this.$refs.itemSelectProject.showFlag = true;
|
|
|
|
|
this.$refs.itemSelectProject.init(row,'material');
|
|
|
|
|
},
|
|
|
|
|
//查看检验项目弹窗
|
|
|
|
|
handleView(row){
|
|
|
|
|
this.$refs.itemSelectProject.showFlag = true;
|
|
|
|
|
this.$refs.itemSelectProject.view(row,'produce');
|
|
|
|
|
},
|
|
|
|
|
//提交检测结果
|
|
|
|
|
saveCheck(){
|
|
|
|
|
this.getList();
|
|
|
|
|