|
|
@ -145,26 +145,37 @@
|
|
|
|
v-hasPermi="['quality:qcIncome:edit']"
|
|
|
|
v-hasPermi="['quality:qcIncome:edit']"
|
|
|
|
>合并任务</el-button>
|
|
|
|
>合并任务</el-button>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
type="danger"
|
|
|
|
|
|
|
|
plain
|
|
|
|
|
|
|
|
icon="el-icon-delete"
|
|
|
|
|
|
|
|
size="mini"
|
|
|
|
|
|
|
|
:disabled="single"
|
|
|
|
|
|
|
|
@click="handleChangeTaskDetail"
|
|
|
|
|
|
|
|
v-hasPermi="['quality:qcIncome:edit']"
|
|
|
|
|
|
|
|
>应用最新检验方案</el-button>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
<el-table v-loading="loading" :data="incomeList" @selection-change="handleSelectionChange">
|
|
|
|
<el-table v-loading="loading" :data="incomeList" @selection-change="handleSelectionChange" height="500px">
|
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
|
<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="recordId" align="center" prop="recordId" v-if="false"/>
|
|
|
|
<el-table-column label="checkType" align="center" prop="checkType" 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" fixed>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<el-button type="text" @click="handleView(scope.row)">{{
|
|
|
|
<el-button type="text" @click="handleView(scope.row)">{{
|
|
|
|
scope.row.checkNo
|
|
|
|
scope.row.checkNo
|
|
|
|
}}</el-button>
|
|
|
|
}}</el-button>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="来料批次号" align="center" prop="incomeBatchNo" width="120"/>
|
|
|
|
<el-table-column label="来料批次号" align="center" prop="incomeBatchNo" width="120" fixed/>
|
|
|
|
<el-table-column label="订单号" align="center" prop="orderNo" width="120"/>
|
|
|
|
<el-table-column label="订单号" align="center" prop="orderNo" width="120" fixed/>
|
|
|
|
<el-table-column label="物料号" align="center" prop="materialCode" width="170"
|
|
|
|
<el-table-column label="物料号" align="center" prop="materialCode" width="170"
|
|
|
|
:formatter="productCodeFormate"
|
|
|
|
:formatter="productCodeFormate" fixed
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
<el-table-column label="物料名称" align="center" prop="materialName" width="150" :show-overflow-tooltip="true"/>
|
|
|
|
<el-table-column label="物料名称" align="center" prop="materialName" width="150" :show-overflow-tooltip="true" fixed/>
|
|
|
|
<el-table-column label="收货数量" align="center" prop="quality" />
|
|
|
|
<el-table-column label="收货数量" align="center" prop="quality" />
|
|
|
|
<el-table-column label="单位" align="center" prop="unit" />
|
|
|
|
<el-table-column label="单位" align="center" prop="unit" />
|
|
|
|
<el-table-column label="样本量编码" align="center" prop="sampleCode" width="120"/>
|
|
|
|
<el-table-column label="样本量编码" align="center" prop="sampleCode" width="120"/>
|
|
|
@ -401,8 +412,8 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import { listIncome, getIncome, delIncome, addIncome,
|
|
|
|
import { listIncome, getIncome, delIncome, addIncome,
|
|
|
|
updateIncome ,changeIncomeStatus,togetherTask
|
|
|
|
updateIncome ,changeIncomeStatus,togetherTask,changeTaskDetail
|
|
|
|
} from "@/api/quality/income";
|
|
|
|
} from "@/api/quality/income";
|
|
|
|
import { getCheckTypes } from "@/api/quality/qcProduce";
|
|
|
|
import { getCheckTypes } from "@/api/quality/qcProduce";
|
|
|
|
import ItemSelectWorkOrder from "./selectLLWorkOrder.vue";
|
|
|
|
import ItemSelectWorkOrder from "./selectLLWorkOrder.vue";
|
|
|
@ -763,7 +774,17 @@ export default {
|
|
|
|
getDefectTypeListByDefectType(defectType).then(response => {
|
|
|
|
getDefectTypeListByDefectType(defectType).then(response => {
|
|
|
|
this.defectTypeList = response.rows;
|
|
|
|
this.defectTypeList = response.rows;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
/** 合并按钮操作 */
|
|
|
|
|
|
|
|
handleChangeTaskDetail(row) {
|
|
|
|
|
|
|
|
const recordIds = row.recordId || this.ids;
|
|
|
|
|
|
|
|
this.$modal.confirm('是否确认应用最新检验方案重新生产检验任务(无法撤销)?').then(function() {
|
|
|
|
|
|
|
|
return changeTaskDetail(recordIds[0]);
|
|
|
|
|
|
|
|
}).then(() => {
|
|
|
|
|
|
|
|
this.getList();
|
|
|
|
|
|
|
|
this.$modal.msgSuccess("应用成功");
|
|
|
|
|
|
|
|
}).catch(() => {});
|
|
|
|
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|