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