质量模块修改

dev-scheduling
jinna 3 months ago
parent 3e90f9eeef
commit dde32c460d
  1. 2
      src/views/periodicTesting/components/addProjectCycleDialog.vue
  2. 13
      src/views/periodicTesting/projectCycle.vue
  3. 5
      src/views/periodicTesting/testProject.vue
  4. 10
      src/views/processManagement/platingTypeInfo.vue

@ -461,6 +461,8 @@ export default {
addMonth() {
let value = this.projectForm.monthValue + '日';
if (this.monthTags.find(item => item == value)) return;
if(this.projectForm.monthValue == '' || !this.projectForm.monthValue) return
console.log('this.projectForm.monthValue=========',this.projectForm.monthValue)
this.monthTags.push(this.projectForm.monthValue + '日')
},
//

@ -374,6 +374,7 @@ export default {
label: '试验周期',
prop: 'jobTypes',
type: 'select',
hide:true,
search: true,
sortable: true,
filter: true,
@ -530,13 +531,19 @@ export default {
},
//
handleExport(){
this.$confirm('是否导出周期性试验任务数据?', '提示', {
let param = {
...this.query,
jobType:this.query && this.query.jobTypes && this.query.jobTypes
}
const { jobTypes, ...validData } = param;
this.$confirm('是否导出试验项目周期数据?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
}).then(() => {
NProgress.start();
exportExcel(this.query).then(res =>{
exportExcel(validData).then(res =>{
downloadXls(res.data, `试验周期表${this.$dayjs().format('YYYY-MM-DD')}.xlsx`);
NProgress.done();
})
@ -726,7 +733,7 @@ export default {
this.loading = true;
let param = {
...this.query,
jobType:this.query.jobTypes
jobType:this.query && this.query.jobTypes && this.query.jobTypes
}
const { jobTypes, ...validData } = param;

@ -118,15 +118,16 @@ export default {
dialogWidth: 600,
dialogClickModal: false,
searchEnter: true,
filterBtn: true,
filterBtn: false,
searchShowBtn: false,
excelBtn: true,
excelBtn: false,
showOverflowTooltip: true,
align: 'center',
searchLabelPosition: 'left',
searchGutter: 24,
searchSpan: 6,
menuAlign: 'left',
menuWidth:150,
gridBtn: false,
searchMenuPosition: 'right',
column: [

@ -159,12 +159,12 @@ export default {
prop: "bcId",
sortable: true,
search: true,
width: 120,
width: 200,
type: "select",
filterable: true,
props: {
label: "code",
label: "name",
value: "id",
},
dicUrl: "/blade-desk/BA/BasicClazz/listForSelectPlatingAssort",
@ -469,7 +469,7 @@ export default {
this.form.flagCycleTest = 0
}
if (["edit", "view"].includes(type)) {
this.form.bcId = this.form.bcId + ''
}
done();
},
@ -501,6 +501,10 @@ export default {
size:this.page.pageSize,
...this.query
}).then(res =>{
res.data.data.records.map(item =>{
item.bcId = item.bcId + ''
item.subClass = item.subClass + ''
})
this.data = res.data.data.records
this.page.total = res.data.data.total
this.loading = false;

Loading…
Cancel
Save