|
|
@ -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("删除成功");
|
|
|
|