检验报告

master
zhaoxiaolin 1 year ago
parent 65d8489532
commit 4dde633634

@ -1,93 +1,45 @@
import request from '@/utils/request' import request from '@/utils/request'
// 查询来料报告列表 // 查询来料报告列表
export function listIncome(query) { export function listProduce(query) {
return request({ return request({
url: '/quality/qcIncomeReport/list', url: '/quality/qcProduceReport/list',
method: 'get', method: 'get',
params: query params: query
}); });
} }
// 查询来料报告详细 // 查询来料报告详细
export function getIncome(recordId) { export function getProduce(recordId) {
return request({ return request({
url: '/quality/qcIncomeReport/' + recordId, url: '/quality/qcProduceReport/' + recordId,
method: 'get' method: 'get'
}); });
} }
// 新增来料报告 // 新增来料报告
export function addIncome(data) { export function addProduce(data) {
return request({ return request({
url: '/quality/qcIncomeReport', url: '/quality/qcProduceReport',
method: 'post', method: 'post',
data: data data: data
}); });
} }
// 修改来料报告 // 修改来料报告
export function updateIncome(data) { export function updateProduce(data) {
return request({ return request({
url: '/quality/qcIncomeReport', url: '/quality/qcProduceReport',
method: 'put', method: 'put',
data: data data: data
}); });
} }
// 删除来料报告 // 删除来料报告
export function delIncome(recordId) { export function delProduce(recordId) {
return request({ return request({
url: '/quality/qcIncomeReport/' + recordId, url: '/quality/qcProduceReport/' + recordId,
method: 'delete' method: 'delete'
}); });
} }
// 查询BOM物料管理列表
export function getQcListBom(query) {
return request({
url: '/quality/qcIncomeReport/getQcListBom',
method: 'get',
params: query
});
}
// 查询供应商管理列表
export function getQcListSupplier(query) {
return request({
url: '/quality/qcIncomeReport/getQcListSupplier',
method: 'get',
params: query
});
}
// 查询人员列表
export function getQcListUser(query) {
return request({
url: '/quality/qcIncomeReport/getQcListUser',
method: 'get',
params: query
});
}
//状态修改
export function changeIncomeStatus(recordId, status) {
const data = {
recordId,
status
}
return request({
url: '/quality/qcIncomeReport/changeIncomeStatus',
method: 'put',
data: data
})
}
// 查询检测项列表
export function getCkeckProjectList(query) {
return request({
url: '/quality/qcIncomeReport/getCkeckProjectList',
method: 'get',
params: query
});
}

@ -1,93 +1,45 @@
import request from '@/utils/request' import request from '@/utils/request'
// 查询来料报告列表 // 查询生产入库报告列表
export function listIncome(query) { export function listProduct(query) {
return request({ return request({
url: '/quality/qcIncomeReport/list', url: '/quality/qcProductReport/list',
method: 'get', method: 'get',
params: query params: query
}); });
} }
// 查询来料报告详细 // 查询生产入库报告详细
export function getIncome(recordId) { export function getProduct(recordId) {
return request({ return request({
url: '/quality/qcIncomeReport/' + recordId, url: '/quality/qcProductReport/' + recordId,
method: 'get' method: 'get'
}); });
} }
// 新增来料报告 // 新增生产入库报告
export function addIncome(data) { export function addProduct(data) {
return request({ return request({
url: '/quality/qcIncomeReport', url: '/quality/qcProductReport',
method: 'post', method: 'post',
data: data data: data
}); });
} }
// 修改来料报告 // 修改生产入库报告
export function updateIncome(data) { export function updateProduct(data) {
return request({ return request({
url: '/quality/qcIncomeReport', url: '/quality/qcProductReport',
method: 'put', method: 'put',
data: data data: data
}); });
} }
// 删除来料报告 // 删除生产入库报告
export function delIncome(recordId) { export function delProduct(recordId) {
return request({ return request({
url: '/quality/qcIncomeReport/' + recordId, url: '/quality/qcProductReport/' + recordId,
method: 'delete' method: 'delete'
}); });
} }
// 查询BOM物料管理列表
export function getQcListBom(query) {
return request({
url: '/quality/qcIncomeReport/getQcListBom',
method: 'get',
params: query
});
}
// 查询供应商管理列表
export function getQcListSupplier(query) {
return request({
url: '/quality/qcIncomeReport/getQcListSupplier',
method: 'get',
params: query
});
}
// 查询人员列表
export function getQcListUser(query) {
return request({
url: '/quality/qcIncomeReport/getQcListUser',
method: 'get',
params: query
});
}
//状态修改
export function changeIncomeStatus(recordId, status) {
const data = {
recordId,
status
}
return request({
url: '/quality/qcIncomeReport/changeIncomeStatus',
method: 'put',
data: data
})
}
// 查询检测项列表
export function getCkeckProjectList(query) {
return request({
url: '/quality/qcIncomeReport/getCkeckProjectList',
method: 'get',
params: query
});
}

@ -73,7 +73,7 @@
icon="el-icon-download" icon="el-icon-download"
size="mini" size="mini"
@click="handleExport" @click="handleExport"
v-hasPermi="['quality:qcIncomeReport:export']" v-hasPermi="['quality:incomeReport:export']"
>导出</el-button> >导出</el-button>
</el-col> </el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
@ -101,7 +101,7 @@
type="text" type="text"
icon="el-icon-edit" icon="el-icon-edit"
@click="handleLook(scope.row)" @click="handleLook(scope.row)"
v-hasPermi="['quality:qcIncomeReport:edit']" v-hasPermi="['quality:incomeReport:edit']"
>查看</el-button> >查看</el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -245,7 +245,7 @@
</template> </template>
<script> <script>
import { listIncome, getIncome, delIncome, addIncome, updateIncome,getCkeckProjectList,getWorkOrders} from "@/api/quality/incomeReport"; import { listIncome, getIncome, delIncome, addIncome, updateIncome,getCkeckProjectList} from "@/api/quality/incomeReport";
import { getCheckTypes } from "@/api/quality/qcProduce"; import { getCheckTypes } from "@/api/quality/qcProduce";
import moment from 'moment'; import moment from 'moment';
export default { export default {

@ -245,7 +245,8 @@
</template> </template>
<script> <script>
import { listIncome, getIncome, delIncome, addIncome, updateIncome,getCkeckProjectList,getWorkOrders} from "@/api/quality/produceReport"; import { listProduce, getProduce, delProduce, addProduce, updateIncome} from "@/api/quality/produceReport";
import { getCkeckProjectList} from "@/api/quality/incomeReport";
import { getCheckTypes } from "@/api/quality/qcProduce"; import { getCheckTypes } from "@/api/quality/qcProduce";
import moment from 'moment'; import moment from 'moment';
export default { export default {
@ -365,7 +366,7 @@ export default {
this.queryParams.checkTimeEnd = moment(this.queryParams.checkTimeArray[1]).format('YYYY-MM-DD HH:mm:ss'); this.queryParams.checkTimeEnd = moment(this.queryParams.checkTimeArray[1]).format('YYYY-MM-DD HH:mm:ss');
} }
listIncome(this.queryParams).then(response => { listProduce(this.queryParams).then(response => {
this.incomeList = response.rows; this.incomeList = response.rows;
this.total = response.total; this.total = response.total;
this.loading = false; this.loading = false;
@ -438,7 +439,7 @@ export default {
this.reset(); this.reset();
const recordId = row.recordId || this.ids const recordId = row.recordId || this.ids
this.queryParams.recordId = recordId; this.queryParams.recordId = recordId;
getIncome(recordId).then(response => { getProduce(recordId).then(response => {
this.form = response.data; this.form = response.data;
this.form.printable = 'printFrom'; // this.form.printable = 'printFrom'; //
this.form.ignore = ['no-print'];// this.form.ignore = ['no-print'];//
@ -458,7 +459,7 @@ export default {
this.getList(); this.getList();
}); });
} else { } else {
addIncome(this.form).then(response => { addProduce(this.form).then(response => {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.open = false; this.open = false;
this.getList(); this.getList();
@ -471,7 +472,7 @@ export default {
handleDelete(row) { handleDelete(row) {
const recordIds = row.recordId || this.ids; const recordIds = row.recordId || this.ids;
this.$modal.confirm('是否确认删除来料检验编号为"' + recordIds + '"的数据项?').then(function() { this.$modal.confirm('是否确认删除来料检验编号为"' + recordIds + '"的数据项?').then(function() {
return delIncome(recordIds); return delProduce(recordIds);
}).then(() => { }).then(() => {
this.getList(); this.getList();
this.$modal.msgSuccess("删除成功"); this.$modal.msgSuccess("删除成功");

@ -73,7 +73,7 @@
icon="el-icon-download" icon="el-icon-download"
size="mini" size="mini"
@click="handleExport" @click="handleExport"
v-hasPermi="['quality:qcIncomeReport:export']" v-hasPermi="['quality:productReport:export']"
>导出</el-button> >导出</el-button>
</el-col> </el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
@ -101,7 +101,7 @@
type="text" type="text"
icon="el-icon-edit" icon="el-icon-edit"
@click="handleLook(scope.row)" @click="handleLook(scope.row)"
v-hasPermi="['quality:qcIncomeReport:edit']" v-hasPermi="['quality:productReport:edit']"
>查看</el-button> >查看</el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -245,7 +245,8 @@
</template> </template>
<script> <script>
import { listIncome, getIncome, delIncome, addIncome, updateIncome,getCkeckProjectList,getWorkOrders} from "@/api/quality/productReport"; import { listProduct, getProduct, delProduct, addProduct, updateProduct,getWorkOrders} from "@/api/quality/productReport";
import { getCkeckProjectList} from "@/api/quality/incomeReport";
import { getCheckTypes } from "@/api/quality/qcProduce"; import { getCheckTypes } from "@/api/quality/qcProduce";
import moment from 'moment'; import moment from 'moment';
export default { export default {
@ -365,7 +366,7 @@ export default {
this.queryParams.checkTimeEnd = moment(this.queryParams.checkTimeArray[1]).format('YYYY-MM-DD HH:mm:ss'); this.queryParams.checkTimeEnd = moment(this.queryParams.checkTimeArray[1]).format('YYYY-MM-DD HH:mm:ss');
} }
listIncome(this.queryParams).then(response => { listProduct(this.queryParams).then(response => {
this.incomeList = response.rows; this.incomeList = response.rows;
this.total = response.total; this.total = response.total;
this.loading = false; this.loading = false;
@ -438,7 +439,7 @@ export default {
this.reset(); this.reset();
const recordId = row.recordId || this.ids const recordId = row.recordId || this.ids
this.queryParams.recordId = recordId; this.queryParams.recordId = recordId;
getIncome(recordId).then(response => { getProduct(recordId).then(response => {
this.form = response.data; this.form = response.data;
this.form.printable = 'printFrom'; // this.form.printable = 'printFrom'; //
this.form.ignore = ['no-print'];// this.form.ignore = ['no-print'];//
@ -452,13 +453,13 @@ export default {
this.$refs["form"].validate(valid => { this.$refs["form"].validate(valid => {
if (valid) { if (valid) {
if (this.form.recordId != null) { if (this.form.recordId != null) {
updateIncome(this.form).then(response => { updateProduct(this.form).then(response => {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}); });
} else { } else {
addIncome(this.form).then(response => { addProduct(this.form).then(response => {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.open = false; this.open = false;
this.getList(); this.getList();
@ -471,7 +472,7 @@ export default {
handleDelete(row) { handleDelete(row) {
const recordIds = row.recordId || this.ids; const recordIds = row.recordId || this.ids;
this.$modal.confirm('是否确认删除来料检验编号为"' + recordIds + '"的数据项?').then(function() { this.$modal.confirm('是否确认删除来料检验编号为"' + recordIds + '"的数据项?').then(function() {
return delIncome(recordIds); return delProduct(recordIds);
}).then(() => { }).then(() => {
this.getList(); this.getList();
this.$modal.msgSuccess("删除成功"); this.$modal.msgSuccess("删除成功");

Loading…
Cancel
Save