接口联调

master
jinna 4 months ago
parent 50c3e9ca83
commit 4668c972b7
  1. 50
      src/api/productionTesting/InspectionTemplate.js
  2. 28
      src/api/qualityManagement/inspectionArchiving/auditFile.js
  3. 37
      src/api/qualityManagement/inspectionArchiving/rbFilePreserve.js
  4. 10
      src/api/qualityManagement/remindRedeem/remindRedeem.js
  5. 9
      src/api/tankSolutionSystem/tankSolutionTaskAssignment.js
  6. 446
      src/views/productionTesting/InspectionTemplate.vue
  7. 790
      src/views/qualityManagement/inspectionArchiving/ERecord/index.vue
  8. 497
      src/views/qualityManagement/inspectionArchiving/auditFile/index.vue
  9. 3439
      src/views/qualityManagement/inspectionArchiving/rbFilePreserve/index.vue
  10. 26
      src/views/qualityManagement/remindRedeem/index.vue
  11. 19
      src/views/qualityManagement/tankSolutionSystem/components/batchDialog.vue
  12. 12
      src/views/qualityManagement/tankSolutionSystem/components/disposeDialog.vue
  13. 2
      src/views/qualityManagement/tankSolutionSystem/components/getMedicineDialog.vue
  14. 2
      src/views/qualityManagement/tankSolutionSystem/inspectionReport.vue
  15. 31
      src/views/qualityManagement/tankSolutionSystem/tankSolutionTaskDispose.vue

@ -1,6 +1,6 @@
import request from '@/axios';
// 查询槽液信息列表接口
// 查询列表接口
export const getList = params =>{
return request({
url:'/api/blade-desk/QA/InspectionTemplate/list',
@ -21,6 +21,52 @@ export const addTemplate = (data) =>{
// 标准下拉
export const getStandard = (params) =>{
return request({
url:"/api/blade-desk/QA/Standard/listForSelect",
method:'get',
params
})
}
// 项目下拉
export const getItem = (params) =>{
return request({
url:"/api/blade-desk/QA/InspectionItem/listForSelect",
method:'get',
params
})
}
// 详情
export const getDetail = (params) =>{
return request({
url:'/api/blade-desk/QA/InspectionTemplate/detail',
method:'get',
params
})
}
// 获取检验模板分类字典
export const getCategory = (params) =>{
return request({
url:'/api/blade-system/dict/dictionary?code=InspectionTemplate-Category',
method:'get'
})
}
// 批量设置分类
export const setType = (data) =>{
return request({
url:'/api/blade-desk/QA/InspectionTemplate/updateBat',
method:"post",
data
})
}
// 删除
export const deleteItem = (params) =>{
return request({
url:'/api/blade-desk/QA/InspectionTemplate/remove',
method:'post',
params
})
}

@ -0,0 +1,28 @@
import request from '@/axios';
// 获取列表
export const getList = (params) => {
return request({
url: '/api/blade-desk/QA/AuditFile/list',
method: 'get',
params
});
};
// 新增
export const addFile = (data) =>{
return request({
url:"/api/blade-desk/QA/AuditFile/save",
method:"post",
data
})
}
// 删除
export const deleteFile = (params) =>{
return request({
url:"/api/blade-desk/QA/AuditFile/remove",
method:"post",
params
})
}

@ -0,0 +1,37 @@
import request from '@/axios';
// 获取列表
export const getList = (params) => {
return request({
url: '/api/blade-desk/QA/ProReTemplate/list',
method: 'get',
params
});
};
// 新增
export const addRecords = (data) =>{
return request({
url:'/api/blade-desk/QA/ProReTemplate/save',
method:'post',
data
})
}
// 修改
export const editRecords = (data) =>{
return request({
url:'/api/blade-desk/QA/ProReTemplate/update',
method:'post',
data
})
}
// 删除
export const deleteRecords = (params) =>{
return request({
url:"/api/blade-desk/QA/ProReTemplate/remove",
method:"post",
params
})
}

@ -0,0 +1,10 @@
import request from '@/axios';
// 获取列表
export const getList = (params) => {
return request({
url: '/api/blade-desk/QA/RemindMsg/list',
method: 'get',
params
});
};

@ -115,4 +115,13 @@ export const receiveDrugBat = (data) =>{
method:'post',
data
})
}
// 编辑加药量
export const editDrugBat = (data) =>{
return request({
url:"/api/blade-desk/QA/LiquidTankTask/editDrugBat",
method:'post',
data
})
}

@ -5,6 +5,7 @@
:table-loading="loading"
:data="data"
v-model:page="page"
v-model:search="search"
:before-open="beforeOpen"
v-model="form"
ref="crud"
@ -24,8 +25,8 @@
<el-button type="primary" @click="handleSet">批量设置分类</el-button>
</template>
<template #menu="{row}">
<el-button type="text" @click="editRow(row.timId)">修改</el-button>
<el-button type="text" @click="deleteRow(row.timId)">删除</el-button>
<el-button type="text" @click="editRow(row)">修改</el-button>
<el-button type="text" @click="deleteRow(row)">删除</el-button>
</template>
<template #userName="{row}">
{{ row.updateMan.userName}}
@ -63,23 +64,22 @@
<el-table-column type="selection" width="55px"></el-table-column>
<el-table-column label="项目编号" prop="inspectionTemplateCode">
<template #default="scope">
<el-input v-model="scope.row.inspectionTemplateCode"></el-input>
<el-input v-model="scope.row.itemCode" @blur="validateRow(scope.$index)"></el-input>
</template>
</el-table-column>
<el-table-column label="项目" prop="nameAmId">
<el-table-column label="项目" prop="inspectionItemId">
<template #default="scope">
<el-select v-model="scope.row.nameAmId" @change="(value) =>changeProject(value,scope.$index)">
<el-option v-for="item in projectArr" :key="item.twoData" :value="item.oneData" :label="item.oneData + '-' + item.twoData"></el-option>
<el-select v-model="scope.row.inspectionItemId" @change="(value) =>changeProject(value,scope.$index)">
<el-option v-for="item in projectArr" :key="item.id" :value="item.id" :label="item.name"></el-option>
</el-select>
<!-- <el-input v-if="scope.row.tidName" v-model="scope.row.tidName"></el-input> -->
</template>
</el-table-column>
<el-table-column label="标准" prop="tidCanon">
<el-table-column label="标准" prop="standardId">
<template #default="scope">
<el-select v-if="!trialItemList.includes(scope.row.tidName)" v-model="scope.row.tidCanon">
<el-option></el-option>
<el-select v-model="scope.row.standardId">
<el-option v-for="item in standardList" :key="item.id" :label="item.name" :value="item.id"></el-option>
</el-select>
<el-input v-else v-model="scope.row.tidCanon"></el-input>
</template>
</el-table-column>
</el-table>
@ -91,18 +91,18 @@
</span>
</template>
</el-dialog>
<el-dialog title="修改" append-to-body v-model="setDialog" width="500px">
<el-form ref="addForm" :rules="setRules" :model="setData" >
<el-form-item label="分类">
<el-select v-model="setData.type">
<el-option v-for="item in typeData" :key="item.id" :label="item.label" :value="item.value"></el-option>
<el-dialog title="批量设置分类" append-to-body v-model="setDialog" width="500px">
<el-form ref="typeForm" :rules="setRules" :model="setData" >
<el-form-item label="分类" prop="category">
<el-select v-model="setData.category">
<el-option v-for="item in typeData" :key="item.id" :label="item.dictValue" :value="item.dictKey"></el-option>
</el-select>
</el-form-item>
</el-form>
<template #footer>
<span class="dialog-footer">
<el-button @click="setDialog = false"> </el-button>
<el-button type="primary" @click="setDialog = false"> </el-button>
<el-button type="primary" @click="sunmitType"> </el-button>
</span>
</template>
</el-dialog>
@ -110,7 +110,7 @@
</template>
<script>
import {getList,addTemplate} from '@/api/productionTesting/InspectionTemplate'
import {getList,addTemplate,getStandard,getItem,getDetail,getCategory,setType,deleteItem} from '@/api/productionTesting/InspectionTemplate'
export default {
data(){
return{
@ -123,6 +123,7 @@ export default {
currentPage: 1,
total: 0,
},
search:{},
showDialog:false,
setDialog:false,
formData:{},
@ -148,13 +149,17 @@ export default {
'温冲试验检测',
'其他检测'
],
setRules:{
category: [{ required: true, trigger: 'blur', message:'请选择分类' }],
},
standardList:[],
formRules:{
timCode: [{ required: true, message: '请输入模板编码', trigger: 'blur' }],
timName: [{ required: true, trigger: 'blur', message:'请输入模板名称' }],
inspectionTemplateCode: [{ required: true, message: '请输入模板编码', trigger: 'blur' }],
name: [{ required: true, trigger: 'blur', message:'请输入模板名称' }],
},
selectionList:[],
typeData:[
{label:'A',value:'A',id:'001'}
// {label:'A',value:'A',id:'001'}
],
setData:{},
option:{
@ -202,7 +207,7 @@ export default {
column: [
{
label: '模板编码',
prop: 'timCode',
prop: 'inspectionTemplateCode',
addDisplay: false,
editDisplay: false,
span: 24,
@ -218,7 +223,7 @@ export default {
},
{
label: '模板名称',
prop: 'timName',
prop: 'name',
addDisplay: false,
editDisplay: false,
span: 24,
@ -234,7 +239,7 @@ export default {
},
{
label: '工序数',
prop: 'proQuantity',
prop: 'processNum',
addDisplay: false,
editDisplay: false,
span: 24,
@ -266,22 +271,28 @@ export default {
},
{
label: '分类',
prop: 'timType',
prop: 'category',
type:'select',
addDisplay: false,
editDisplay: false,
span: 24,
search:true,
rules: [
{
{
required: true,
message: '请输入分类',
trigger: 'click',
},
},
],
dicUrl:'/api/blade-system/dict/dictionary?code=InspectionTemplate-Category',
props:{
label:'dictValue',
value:'dictKey'
}
},
{
label: '修改人',
prop: 'userName',
prop: 'updateUserRealName',
addDisplay: false,
editDisplay: false,
span: 24,
@ -298,9 +309,31 @@ export default {
{
label: '修改时间',
prop: 'updateTime',
type:'date',
addDisplay: false,
editDisplay: false,
span: 24,
// search:true,
width:200,
rules: [
{
required: true,
message: '请输入修改时间',
trigger: 'click',
},
],
},
{
label: '修改时间',
prop: 'updateTime',
type:'date',
searchRange:true,
format:'YYYY-MM-DD',
valueFormat:"YYYY-MM-DD",
addDisplay: false,
editDisplay: false,
span: 24,
hide:true,
search:true,
width:200,
rules: [
@ -316,46 +349,97 @@ export default {
}
},
mounted(){
this.projectArr = [
{
"amId": 4,
"douOneData": null,
"fourData": null,
"keyValue": 4,
"memo": null,
"oneData": "003",
"threeData": null,
"twoData": "泄漏率检测",
"type": 2,
"updateTime": "2024-02-27 16:20:30"
},
{
"amId": 5,
"douOneData": null,
"fourData": null,
"keyValue": 5,
"memo": null,
"oneData": "002",
"threeData": null,
"twoData": "外观检测",
"type": 2,
"updateTime": "2024-02-27 16:20:30"
},
{
"amId": 6,
"douOneData": null,
"fourData": null,
"keyValue": 6,
"memo": null,
"oneData": "001",
"threeData": null,
"twoData": "厚度检测",
"type": 2,
"updateTime": "2024-02-27 16:20:30"
}
]
this.getItemList()
this.getCategoryList()
this.getStandardList()
},
methods:{
getStandardList(){
getStandard().then(res =>{
this.standardList = res.data.data
})
},
getCategoryList(){
getCategory().then(res =>{
this.typeData = res.data.data
})
},
getItemList(){
getItem().then(res =>{
this.projectArr = res.data.data
})
},
//
// +
validateRow(index) {
const digitOnly = /^\d+$/;
const row = this.tidList[index];
const id = (row?.itemCode || '').trim();
//
// this.$delete(this.errors, index);
//
if (!id) return;
//
if (!digitOnly.test(id)) {
// this.$set(this.errors, index, '');
this.$message.error(`第【${index + 1}】行编号必须为纯数字`)
return;
}
const currentNum = Number(id);
// 🔼 vs
if (index > 0) {
const prevId = (this.tidList[index - 1]?.itemCode || '').trim();
if (prevId) {
if (!digitOnly.test(prevId)) {
// this.$set(this.errors, index, '');
this.$message.error(`第【${index + 1}】行编号格式无效`)
return;
}
if (currentNum <= Number(prevId)) {
// this.$set(
// this.errors,
// index,
// `${prevId}`
// );
this.$message.error(`第【${index + 1}】行编号必须大于上一行`)
return;
}
}
}
// 🔽 vs
if (index < this.tidList.length - 1) {
const nextId = (this.tidList[index + 1]?.itemCode || '').trim();
if (nextId) {
if (!digitOnly.test(nextId)) {
//
// this.$set(this.errors, index + 1, '');
this.$message.error(`第【${index + 1}】行编号必须为纯数字`)
} else {
const nextNum = Number(nextId);
if (nextNum <= currentNum) {
// this.$set(
// this.errors,
// index + 1,
// `${id}`
// );
this.$message.error(`第【${index + 2}】行编号必须大于上一行`)
} else {
//
// this.$delete(this.errors, index + 1);
}
}
} else {
//
// this.$delete(this.errors, index + 1);
}
}
},
selectionChangeProject(list){
this.selectionProjectList = list
},
@ -374,7 +458,7 @@ export default {
} else if (tidCode.toString().length == 4) {
tidCode = '' + tidCode;
}
const record = { tidCode,_select:false };
const record = { itemCode:tidCode,_select:false };
this.tidList.push(record)
},
//
@ -402,25 +486,124 @@ export default {
this.$message.error('请至少选择一条数据进行操作!')
}
},
//
handleIdBlur(index) {
this.validateRow(index);
},
//
validateAll() {
const newErrors = {};
const digitOnly = /^\d+$/;
for (let i = 0; i < this.tidList.length; i++) {
const id = (this.tidList[i]?.itemCode || '').trim();
if (!id) continue; //
if (!digitOnly.test(id)) {
// newErrors[i] = '';
this.$message.error(`第【${i + 1}】行编号必须为纯数字`)
break;
}
const num = Number(id);
//
if (i > 0) {
const prevId = (this.tidList[i - 1]?.itemCode || '').trim();
if (prevId) {
if (!digitOnly.test(prevId)) {
// newErrors[i] = '';
this.$message.error(`第【${i + 1}】行编号格式无效`)
continue;
}
if (num <= Number(prevId)) {
// newErrors[i] = `${prevId}`;
this.$message.error(`第【${i + 1}】行编号必须大于上一行`)
continue;
}
}
}
// >
// i > i-1
}
// //
// let lastNum = -1;
// for (let i = 0; i < this.tidList.length; i++) {
// const id = (this.tidList[i]?.id || '').trim();
// if (!id) continue;
// if (!digitOnly.test(id)) {
// // newErrors[i] = '';
// this.$message.error(`${i + 1}`)
// break;
// }
// const num = Number(id);
// if (num <= lastNum) {
// // newErrors[i] = i === 0 ? '' : `${this.tidList[i - 1].id}`;
// this.$message.error(i === 0 ? '' : `${i + 1}`)
// break;
// }
// lastNum = num;
// }
// this.errors = newErrors;
return Object.keys(newErrors).length === 0;
},
handleSave(){
this.$refs.addForm.validate(valid => {
if(valid){
// if(this.tidList)
const deleteIdArr = []
this.deleteTidArr.map(item =>{
deleteIdArr.push(item.tidId)
})
console.log('dele----------------------',deleteIdArr)
console.log('tidList----------------------',this.tidList)
// let filteredObjArr = this.tidList.filter(item => !deleteIdArr.some(val => val === item.id));
// console.log('filteredObjArr====================',filteredObjArr)
let params = {
deleteIds:deleteIdArr,
dsTrialitemModel:this.formData,
list:this.tidList
if(this.validateAll()){
let params = {
inspectionTemplateCode:this.formData.inspectionTemplateCode,
name:this.formData.name,
priority:this.formData.priority,
detailList:this.tidList.length > 0 ? this.tidList : []
}
addTemplate(params).then(res =>{
if(res.data.code == 200){
this.$message.success('新增成功')
this.showDialog = false
this.onLoad()
}
})
}
// // if(this.tidList)
// const deleteIdArr = []
// this.deleteTidArr.map(item =>{
// deleteIdArr.push(item.tidId)
// })
// console.log('dele----------------------',deleteIdArr)
// console.log('tidList----------------------',this.tidList)
// // let filteredObjArr = this.tidList.filter(item => !deleteIdArr.some(val => val === item.id));
// // console.log('filteredObjArr====================',filteredObjArr)
// let params = {
// deleteIds:deleteIdArr,
// dsTrialitemModel:this.formData,
// list:this.tidList
// }
// console.log('paramd--------------------',params)
}
})
},
sunmitType(){
this.$refs.typeForm.validate(valid =>{
if(valid){
this.selectionList.map(item =>{
item.category = this.setData.category
})
console.log('paramd--------------------',params)
setType(this.selectionList).then(res =>{
if(res.data.code == 200){
this.$message.success('设置成功')
this.setDialog = false
this.onLoad()
}
})
console.log('slee=================',this.selectionList)
}
})
},
@ -456,7 +639,12 @@ export default {
cancelButtonText: '取消',
type: 'warning',
}).then(() =>{
deleteItem({ids:val.id}).then(res =>{
if(res.data.code == 200){
this.$message.success('删除成功')
this.onLoad()
}
})
})
},
handleAdd(){
@ -466,105 +654,33 @@ export default {
this.deleteTidArr = []
},
handleSet(){
if(this.selectionChange.length == 0){
if(this.selectionList.length == 0){
this.$message.error('请至少选择一条数据')
}else{
this.setDialog = true
}
},
editRow(val){
console.log('val====================',val)
this.selectId = val
this.showDialog = true
this.formData = {
timCode: "002",
timId: 2,
timName: "化学镍含涂色标类试验项目",
priority: 2
}
this.tidList = [
{
"canonAmId": null,
"createTime": "2023-02-17 17:19:57",
"keyValue": 8,
"nameAmId": '003',
"tidCanon": "参照文件010-02235435《热表分厂表处理零件检验规范》执行",
"tidCode": "003",
"tidId": 8,
"tidName": "厚度检测",
},
{
"canonAmId": null,
"createTime": "2023-02-17 17:19:57",
"keyValue": 8,
"nameAmId": '003',
"tidCanon": "参照文件010-02235435《热表分厂表处理零件检验规范》执行",
"tidCode": "003",
"tidId": 8,
"tidName": "厚度检测",
}
]
this.dialogData = [
{
"canonAmId": null,
"createTime": "2023-02-17 17:19:57",
"keyValue": 8,
"nameAmId": '003',
"tidCanon": "参照文件010-02235435《热表分厂表处理零件检验规范》执行",
"tidCode": "003",
"tidId": 8,
"tidName": "厚度检测",
},
{
"canonAmId": null,
"createTime": "2023-02-17 17:19:57",
"keyValue": 8,
"nameAmId": '003',
"tidCanon": "参照文件010-02235435《热表分厂表处理零件检验规范》执行",
"tidCode": "003",
"tidId": 8,
"tidName": "厚度检测",
},
]
editRow(row){
getDetail({id:row.id}).then(res =>{
this.formData = res.data.data
this.showDialog = true
})
},
onLoad(){
this.loading = true
getList({
current:this.page.currentPage,
size:this.page.pageSize
size:this.page.pageSize,
inspectionTemplateCode:this.query.inspectionTemplateCode,
name:this.query.name,
processNum:this.query.processNum,
category:this.query.category,
updateUserRealName:this.query.updateUserRealName,
}).then(res =>{
this.data = res.data.data.records
this.page.total = res.data.data.total
this.loading = false
})
// this.data = [
// {
// id:1,timId: 1,timCode:'001',timName:'',proQuantity:7,priority:1,
// timType:'A',updateMan:{
// userName:'殿',
// },
// updateTime:'2024-01-22 12:35:40'
// },
// {
// id:2,timId: 2,timCode:'002',timName:'',proQuantity:7,priority:1,
// timType:'A',updateMan:{
// userName:'殿',
// },
// updateTime:'2024-01-22 12:35:40'
// },
// {
// id:3,timId: 3,timCode:'003',timName:'',proQuantity:7,priority:1,
// timType:'A',updateMan:{
// userName:'殿',
// },
// updateTime:'2024-01-22 12:35:40'
// },
// ]
// this.page.total = this.data.length
// this.loading = false
// setTimeout(() =>{
// this.selectionClear();
// },300)
}
}
}

@ -21,7 +21,7 @@
>
<template #menu="{ row }">
<span v-if="row.pjYieldOrder.yieldType === 1">
<el-button type="text" icon="el-icon-printer" @click="printPreview(row,1)">打印预览</el-button>
<!-- <el-button type="text" icon="el-icon-printer" @click="printPreview(row,1)">打印预览</el-button> -->
<el-button type="text" icon="el-icon-printer" @click="rbPrint(row,2)">热表打印</el-button>
</span>
<span v-else>
@ -155,7 +155,7 @@ export default {
editBtnText: '修改',
viewBtnText:'详情',
labelWidth: 120,
menuWidth: 330,
menuWidth: 230,
dialogWidth: 1200,
dialogClickModal: false,
searchEnter: true,
@ -166,13 +166,13 @@ export default {
index: false,
showOverflowTooltip: true,
searchLabelPosition:'left',
searchLabelPosition:'left',
searchGutter:24,
searchSpan:6,
menuAlign: 'left',
gridBtn:false,
searchMenuPosition:'right',
addBtnIcon: ' ',
searchLabelPosition:'left',
searchGutter:24,
searchSpan:6,
menuAlign: 'left',
gridBtn:false,
searchMenuPosition:'right',
addBtnIcon: ' ',
viewBtnIcon: ' ',
delBtnIcon: ' ',
editBtnIcon: ' ',
@ -226,22 +226,22 @@ addBtnIcon: ' ',
},
],
},
{
label: '产品型号',
prop: 'productType',
addDisplay: false,
editDisplay: false,
span: 24,
search:false,
width:200,
rules: [
{
required: true,
message: '请输入产品型号',
trigger: 'click',
},
],
},
// {
// label: '',
// prop: 'productType',
// addDisplay: false,
// editDisplay: false,
// span: 24,
// search:false,
// width:200,
// rules: [
// {
// required: true,
// message: '',
// trigger: 'click',
// },
// ],
// },
{
label: '批次号',
prop: 'batchNo',
@ -258,54 +258,54 @@ addBtnIcon: ' ',
},
],
},
{
label: '产品名称',
prop: 'partName',
addDisplay: false,
editDisplay: false,
span: 24,
search:true,
width:200,
rules: [
{
required: true,
message: '请输入产品名称',
trigger: 'click',
},
],
},
{
label: '流程卡号',
prop: 'cardNo',
addDisplay: false,
editDisplay: false,
span: 24,
search:true,
width:200,
rules: [
{
required: true,
message: '请输入流程卡号',
trigger: 'click',
},
],
},
{
label: '镀种信息',
prop: 'plate',
addDisplay: false,
editDisplay: false,
span: 24,
search:true,
width:200,
rules: [
{
required: true,
message: '请输入镀种信息',
trigger: 'click',
},
],
},
// {
// label: '',
// prop: 'partName',
// addDisplay: false,
// editDisplay: false,
// span: 24,
// search:true,
// width:200,
// rules: [
// {
// required: true,
// message: '',
// trigger: 'click',
// },
// ],
// },
// {
// label: '',
// prop: 'cardNo',
// addDisplay: false,
// editDisplay: false,
// span: 24,
// search:true,
// width:200,
// rules: [
// {
// required: true,
// message: '',
// trigger: 'click',
// },
// ],
// },
// {
// label: '',
// prop: 'plate',
// addDisplay: false,
// editDisplay: false,
// span: 24,
// search:true,
// width:200,
// rules: [
// {
// required: true,
// message: '',
// trigger: 'click',
// },
// ],
// },
{
label: '生产标识',
prop: 'prodIdent',
@ -322,185 +322,185 @@ addBtnIcon: ' ',
},
],
},
{
label: '订单优先级',
prop: 'priorityTitle',
addDisplay: false,
editDisplay: false,
span: 24,
search:false,
width:200,
rules: [
{
required: true,
message: '请输入订单优先级',
trigger: 'click',
},
],
},
{
label: '需求部门',
prop: 'useDept',
addDisplay: false,
editDisplay: false,
span: 24,
search:true,
width:200,
rules: [
{
required: true,
message: '请输入需求部门',
trigger: 'click',
},
],
},
{
label: '生产数量',
prop: 'makeQty',
addDisplay: false,
editDisplay: false,
span: 24,
search:false,
width:200,
rules: [
{
required: true,
message: '请输入生产数量',
trigger: 'click',
},
],
},
{
label: '面积(dm²)',
prop: 'poArea',
addDisplay: false,
editDisplay: false,
span: 24,
search:false,
width:200,
rules: [
{
required: true,
message: '请输入面积(dm²)',
trigger: 'click',
},
],
},
{
label: '交期',
prop: 'demandDate',
addDisplay: false,
editDisplay: false,
span: 24,
search:true,
width:200,
rules: [
{
required: true,
message: '请输入交期',
trigger: 'click',
},
],
},
{
label: '计划员',
prop: 'planUser',
addDisplay: false,
editDisplay: false,
span: 24,
search:true,
width:200,
rules: [
{
required: true,
message: '请输入计划员',
trigger: 'click',
},
],
},
// {
// label: '',
// prop: 'priorityTitle',
// addDisplay: false,
// editDisplay: false,
// span: 24,
// search:false,
// width:200,
// rules: [
// {
// required: true,
// message: '',
// trigger: 'click',
// },
// ],
// },
// {
// label: '',
// prop: 'useDept',
// addDisplay: false,
// editDisplay: false,
// span: 24,
// search:true,
// width:200,
// rules: [
// {
// required: true,
// message: '',
// trigger: 'click',
// },
// ],
// },
// {
// label: '',
// prop: 'makeQty',
// addDisplay: false,
// editDisplay: false,
// span: 24,
// search:false,
// width:200,
// rules: [
// {
// required: true,
// message: '',
// trigger: 'click',
// },
// ],
// },
// {
// label: '(dm²)',
// prop: 'poArea',
// addDisplay: false,
// editDisplay: false,
// span: 24,
// search:false,
// width:200,
// rules: [
// {
// required: true,
// message: '(dm²)',
// trigger: 'click',
// },
// ],
// },
// {
// label: '',
// prop: 'demandDate',
// addDisplay: false,
// editDisplay: false,
// span: 24,
// search:true,
// width:200,
// rules: [
// {
// required: true,
// message: '',
// trigger: 'click',
// },
// ],
// },
// {
// label: '',
// prop: 'planUser',
// addDisplay: false,
// editDisplay: false,
// span: 24,
// search:true,
// width:200,
// rules: [
// {
// required: true,
// message: '',
// trigger: 'click',
// },
// ],
// },
// {
// label: '',
// prop: 'team',
// addDisplay: false,
// editDisplay: false,
// span: 24,
// hide:true,
// search:true,
// width:200,
// rules: [
// {
// required: true,
// message: '',
// trigger: 'click',
// },
// ],
// },
// {
// label: '',
// prop: 'createTime',
// addDisplay: false,
// editDisplay: false,
// span: 24,
// search:false,
// width:200,
// rules: [
// {
// required: true,
// message: '',
// trigger: 'click',
// },
// ],
// },
// {
// label: '',
// prop: 'planEndDate',
// addDisplay: false,
// editDisplay: false,
// span: 24,
// search:false,
// width:200,
// rules: [
// {
// required: true,
// message: '',
// trigger: 'click',
// },
// ],
// },
// {
// label: '',
// prop: 'inventoryQty',
// addDisplay: false,
// editDisplay: false,
// span: 24,
// search:false,
// width:200,
// rules: [
// {
// required: true,
// message: '',
// trigger: 'click',
// },
// ],
// },
// {
// label: '',
// prop: 'notInQty',
// addDisplay: false,
// editDisplay: false,
// span: 24,
// search:false,
// width:200,
// rules: [
// {
// required: true,
// message: '',
// trigger: 'click',
// },
// ],
// },
{
label: '加工班组',
prop: 'team',
addDisplay: false,
editDisplay: false,
span: 24,
hide:true,
search:true,
width:200,
rules: [
{
required: true,
message: '请输入加工班组',
trigger: 'click',
},
],
},
{
label: '计划下达时间',
prop: 'createTime',
addDisplay: false,
editDisplay: false,
span: 24,
search:false,
width:200,
rules: [
{
required: true,
message: '请输入计划下达时间',
trigger: 'click',
},
],
},
{
label: '计划完工时间',
prop: 'planEndDate',
addDisplay: false,
editDisplay: false,
span: 24,
search:false,
width:200,
rules: [
{
required: true,
message: '请输入计划完工时间',
trigger: 'click',
},
],
},
{
label: '已入库数量',
prop: 'inventoryQty',
addDisplay: false,
editDisplay: false,
span: 24,
search:false,
width:200,
rules: [
{
required: true,
message: '请输入已入库数量',
trigger: 'click',
},
],
},
{
label: '未入库数量',
prop: 'notInQty',
addDisplay: false,
editDisplay: false,
span: 24,
search:false,
width:200,
rules: [
{
required: true,
message: '请输入未入库数量',
trigger: 'click',
},
],
},
{
label: '现班组',
prop: 'tsName',
addDisplay: false,
editDisplay: false,
@ -510,62 +510,14 @@ addBtnIcon: ' ',
rules: [
{
required: true,
message: '请输入现班组',
trigger: 'click',
},
],
},
{
label: '当前工序',
prop: 'ppsName',
addDisplay: false,
editDisplay: false,
span: 24,
search:false,
width:200,
rules: [
{
required: true,
message: '请输入当前工序',
trigger: 'click',
},
],
},
{
label: '当前工序',
prop: 'ppsName',
addDisplay: false,
editDisplay: false,
span: 24,
search:false,
width:200,
rules: [
{
required: true,
message: '请输入当前工序',
trigger: 'click',
},
],
},
{
label: '下序',
prop: 'nextPpsName',
addDisplay: false,
editDisplay: false,
span: 24,
search:false,
width:200,
rules: [
{
required: true,
message: '请输入下序',
message: '请输入加工班组',
trigger: 'click',
},
],
},
{
label: '下一班组',
prop: 'nextTsName',
label: '完工时间',
prop: 'tsName',
addDisplay: false,
editDisplay: false,
span: 24,
@ -574,14 +526,14 @@ addBtnIcon: ' ',
rules: [
{
required: true,
message: '请输入下一班组',
message: '请输入完工时间',
trigger: 'click',
},
],
},
{
label: '下一班组',
prop: 'nextTsName',
label: '上传兰台时间',
prop: 'tsName',
addDisplay: false,
editDisplay: false,
span: 24,
@ -590,85 +542,165 @@ addBtnIcon: ' ',
rules: [
{
required: true,
message: '请输入下一班组',
trigger: 'click',
},
],
},
{
label: '领料状态',
prop: 'pickingStatusTitle',
addDisplay: false,
editDisplay: false,
type:'select',
span: 24,
search:true,
width:200,
rules: [
{
required: true,
message: '请输入领料状态',
message: '请输入上传兰台时间',
trigger: 'click',
},
],
dicData: [
{
label: '未领取',
value: 0
},
{
label: '已领取',
value: 1
}
]
},
{
label: '订单状态',
prop: 'runStatusTitle',
addDisplay: false,
editDisplay: false,
span: 24,
type:'select',
search:true,
width:200,
rules: [
{
required: true,
message: '请输入订单状态',
trigger: 'click',
},
],
dicData: [
{
value: 2,
label: '已下达'
},
{
value: 3,
label: '加工中'
},
{
value: 4,
label: '检验中'
},
{
value: 13,
label: '审理中'
},
{
value: 14,
label: '返工中'
},
{
value: 15,
label: '已完工'
},
{
value: 21,
label: '已作废'
}
]
},
// {
// label: '',
// prop: 'ppsName',
// addDisplay: false,
// editDisplay: false,
// span: 24,
// search:false,
// width:200,
// rules: [
// {
// required: true,
// message: '',
// trigger: 'click',
// },
// ],
// },
// {
// label: '',
// prop: 'ppsName',
// addDisplay: false,
// editDisplay: false,
// span: 24,
// search:false,
// width:200,
// rules: [
// {
// required: true,
// message: '',
// trigger: 'click',
// },
// ],
// },
// {
// label: '',
// prop: 'nextPpsName',
// addDisplay: false,
// editDisplay: false,
// span: 24,
// search:false,
// width:200,
// rules: [
// {
// required: true,
// message: '',
// trigger: 'click',
// },
// ],
// },
// {
// label: '',
// prop: 'nextTsName',
// addDisplay: false,
// editDisplay: false,
// span: 24,
// search:false,
// width:200,
// rules: [
// {
// required: true,
// message: '',
// trigger: 'click',
// },
// ],
// },
// {
// label: '',
// prop: 'nextTsName',
// addDisplay: false,
// editDisplay: false,
// span: 24,
// search:false,
// width:200,
// rules: [
// {
// required: true,
// message: '',
// trigger: 'click',
// },
// ],
// },
// {
// label: '',
// prop: 'pickingStatusTitle',
// addDisplay: false,
// editDisplay: false,
// type:'select',
// span: 24,
// search:true,
// width:200,
// rules: [
// {
// required: true,
// message: '',
// trigger: 'click',
// },
// ],
// dicData: [
// {
// label: '',
// value: 0
// },
// {
// label: '',
// value: 1
// }
// ]
// },
// {
// label: '',
// prop: 'runStatusTitle',
// addDisplay: false,
// editDisplay: false,
// span: 24,
// type:'select',
// search:true,
// width:200,
// rules: [
// {
// required: true,
// message: '',
// trigger: 'click',
// },
// ],
// dicData: [
// {
// value: 2,
// label: ''
// },
// {
// value: 3,
// label: ''
// },
// {
// value: 4,
// label: ''
// },
// {
// value: 13,
// label: ''
// },
// {
// value: 14,
// label: ''
// },
// {
// value: 15,
// label: ''
// },
// {
// value: 21,
// label: ''
// }
// ]
// },
],
},

@ -9,6 +9,7 @@
v-model:page="page"
ref="crud"
@row-update="rowUpdate"
@row-del="rowDel"
@row-save="rowSave"
@search-change="searchChange"
@search-reset="searchReset"
@ -22,6 +23,7 @@
</template>
<script>
import {getList,addFile,deleteFile} from '@/api/qualityManagement/inspectionArchiving/auditFile'
export default {
data() {
return {
@ -33,6 +35,7 @@ export default {
currentPage: 1,
total: 0,
},
query:{},
option: {
height: 'auto',
calcHeight: 32,
@ -81,8 +84,9 @@ export default {
column: [
{
label: '工序名称',
prop: 'ppsName',
bind: 'bsProcedureSet.ppsName',
prop: 'ppsId',
labelWidth: 150,
// bind: 'bsProcedureSet.ppsName',
search: true,
sortable: true,
span: 24,
@ -101,25 +105,24 @@ export default {
value: 3,
},
],
rules: [
{
required: true,
message: '请输入车间订单号',
trigger: 'click',
},
],
// rules: [
// {
// required: true,
// message: '',
// trigger: 'click',
// },
// ],
},
{
label: '作业中心',
prop: 'wcName',
bind: 'bsWorkCenter.wcName',
prop: 'wcId',
labelWidth: 150,
search: false,
sortable: true,
filterable: true,
span: 24,
type: 'select',
dicUrl: '/blade-desk/bsWorkCenter/getList',
dicUrl: '/api/blade-desk/BA/WorkCenter/listForSelect',
props: {
label: 'wcName',
value: 'id',
@ -127,33 +130,53 @@ export default {
rules: [
{
required: true,
message: '请输入车间订单号',
message: '请选择作业中心',
trigger: 'click',
},
],
},
{
label: '生产标识',
prop: 'pqName',
bind: 'bsProcedureQua.pqName',
prop: 'pqId',
labelWidth: 150,
// bind: 'bsProcedureQua.pqName',
search: true,
sortable: true,
span: 24,
type: 'select',
dicData: [
{
label: 'J',
value: 1,
},
{
label: 'I',
value: 2,
},
{
label: 'III',
value: 3,
},
],
// dicData: [
// {
// label: 'J',
// value: 1,
// },
// {
// label: 'I',
// value: 2,
// },
// {
// label: 'III',
// value: 3,
// },
// ],
dicUrl:'/api/blade-desk/BA/ProdMark/listForSelect',
props:{
label:'name',
value:'id'
}
},
{
label:'产品应用领域',
prop:'prodApplyArea',
search:false,
width:200,
span: 24,
labelWidth: 150,
type: 'select',
dicUrl:'/api/blade-system/dict/dictionary?code=AuditFile-ProdApplyArea',
props:{
label:'dictValue',
value:'dictKey'
}
},
{
label: '工艺文件编号/版本号',
@ -170,18 +193,20 @@ export default {
search: false,
sortable: true,
span: 24,
labelWidth: 150,
width: 200,
},
{
label: '维护人',
prop: 'userName',
bind: 'keepMan.userName',
prop: 'updateUserRealName',
// bind: 'keepMan.userName',
search: true,
sortable: true,
display: false,
},
{
label: '维护时间',
prop: 'keepTime',
prop: 'updateTime',
search: false,
sortable: true,
display: true,
@ -189,11 +214,17 @@ export default {
},
{
label: '状态',
prop: 'afStatusTitle',
prop: 'status',
search: true,
sortable: true,
display: true,
display: false,
type:'select',
dicUrl:'/api/blade-system/dict/dictionary?code=AuditFile-Status',
props:{
label:'dictValue',
value:'dictKey'
}
},
],
},
@ -206,9 +237,9 @@ export default {
this.onLoad(this.page);
},
searchChange(params, done) {
// this.query = params;
this.query = params;
// this.page.currentPage = 1;
// this.onLoad(this.page, params);
this.onLoad();
done();
},
currentChange(currentPage) {
@ -220,184 +251,224 @@ export default {
refreshChange() {
this.onLoad(this.page, this.query);
},
rowSave(row, done, loading){
console.log('row----------',row)
let params = {
ppsId:row.ppsId,
pqId:row.pqId,
referenceFile:row.referenceFile,
wcId:row.wcId,
papers:row.papers,
}
addFile(params).then(res =>{
if(res.data.code == 200){
this.$message.success('新增成功')
done()
this.onLoad()
}
})
},
rowDel(row, index, done) {
this.$confirm('确定将选择数据删除?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
}).then(() => {
deleteFile({ids:row.id}).then(res =>{
if(res.data.code == 200){
this.$message.success('删除成功')
this.onLoad()
done()
}
})
});
},
onLoad() {
this.data = [
{
afId: 27,
afStatus: 1,
afStatusTitle: '正常使用',
bsProcedureQua: null,
bsProcedureSet: {
assist: false,
assistTitle: '否',
createMan: {
userId: 1,
userName: 'admin',
},
createTime: '2022-11-15 10:30:29',
cycle: 0.0,
cyropactorControl: false,
deleted: false,
eleRate: true,
eleStream: true,
keyValue: 6,
mainProcess: true,
mainProcessTitle: '是',
niValue: false,
phValue: false,
ppsCode: '002',
ppsId: 6,
ppsName: '上挂',
special: false,
specialTitle: '否',
team: null,
updateTime: '2022-11-15 10:30:29',
vSpeed: false,
},
bsWorkCenter: {
area: 13000.0,
batchNo: null,
bigBatch: false,
bsJfCenter: {
createMan: {
userId: 1,
userName: 'admin',
},
createTime: '2024-12-09 00:00:00',
deleted: false,
jcCode: 'RBZX',
jcId: 1,
jcName: '热表中心',
keyValue: 1,
updateTime: '2024-12-09 00:00:00',
},
checkout: false,
craftAbility: '化学镀镍',
createMan: {
userId: 1,
userName: 'admin',
},
createTime: '2023-02-06 12:31:36',
deleted: false,
describe: null,
endPoint: null,
keyValue: 81,
leaderUser: {
userId: 541,
userName: '崔殿龙',
},
limitType: 0,
processes: '上挂、下挂、交检、化学镀镍、喷砂',
quantity: null,
roundCycle: null,
saturation: 85.0,
sign: '4',
startPoint: null,
team: '化学镀镍一班崔胜伟、化学镀镍一班郭家梁',
updateTime: '2023-03-06 18:42:47',
wcCode: '001',
wcId: 81,
wcName: '化学镀镍作业中心',
whetherPlate: false,
},
keepMan: {
userId: 541,
userName: '崔殿龙',
},
keepTime: '2024-02-28 10:32:35',
keyValue: 27,
papers: '1',
referenceFile: '2',
},
{
afId: 29,
afStatus: 1,
afStatusTitle: '正常使用',
bsProcedureQua: null,
bsProcedureSet: {
assist: false,
assistTitle: '否',
createMan: {
userId: 1,
userName: 'admin',
},
createTime: '2022-11-15 10:30:45',
cycle: 0.0,
cyropactorControl: true,
deleted: false,
eleRate: true,
eleStream: true,
keyValue: 7,
mainProcess: true,
mainProcessTitle: '是',
niValue: true,
phValue: true,
ppsCode: '003',
ppsId: 7,
ppsName: '化学镀镍',
special: false,
specialTitle: '否',
team: null,
updateTime: '2022-11-15 10:30:45',
vSpeed: true,
},
bsWorkCenter: {
area: 13000.0,
batchNo: null,
bigBatch: false,
bsJfCenter: {
createMan: {
userId: 1,
userName: 'admin',
},
createTime: '2024-12-09 00:00:00',
deleted: false,
jcCode: 'RBZX',
jcId: 1,
jcName: '热表中心',
keyValue: 1,
updateTime: '2024-12-09 00:00:00',
},
checkout: false,
craftAbility: '化学镀镍',
createMan: {
userId: 1,
userName: 'admin',
},
createTime: '2023-02-06 12:31:36',
deleted: false,
describe: null,
endPoint: null,
keyValue: 81,
leaderUser: {
userId: 541,
userName: '崔殿龙',
},
limitType: 0,
processes: '上挂、下挂、交检、化学镀镍、喷砂',
quantity: null,
roundCycle: null,
saturation: 85.0,
sign: '4',
startPoint: null,
team: '化学镀镍一班崔胜伟、化学镀镍一班郭家梁',
updateTime: '2023-03-06 18:42:47',
wcCode: '001',
wcId: 81,
wcName: '化学镀镍作业中心',
whetherPlate: false,
},
keepMan: {
userId: 541,
userName: '崔殿龙',
},
keepTime: '2024-02-28 11:21:36',
keyValue: 29,
papers: '22',
referenceFile: '33',
},
];
this.page.total = this.data.length;
getList({
current:this.page.currentPage,
size:this.page.pageSize,
...this.query
}).then(res =>{
this.data = res.data.data.records
this.page.total = res.data.data.total
})
// this.data = [
// {
// afId: 27,
// afStatus: 1,
// afStatusTitle: '使',
// bsProcedureQua: null,
// bsProcedureSet: {
// assist: false,
// assistTitle: '',
// createMan: {
// userId: 1,
// userName: 'admin',
// },
// createTime: '2022-11-15 10:30:29',
// cycle: 0.0,
// cyropactorControl: false,
// deleted: false,
// eleRate: true,
// eleStream: true,
// keyValue: 6,
// mainProcess: true,
// mainProcessTitle: '',
// niValue: false,
// phValue: false,
// ppsCode: '002',
// ppsId: 6,
// ppsName: '',
// special: false,
// specialTitle: '',
// team: null,
// updateTime: '2022-11-15 10:30:29',
// vSpeed: false,
// },
// bsWorkCenter: {
// area: 13000.0,
// batchNo: null,
// bigBatch: false,
// bsJfCenter: {
// createMan: {
// userId: 1,
// userName: 'admin',
// },
// createTime: '2024-12-09 00:00:00',
// deleted: false,
// jcCode: 'RBZX',
// jcId: 1,
// jcName: '',
// keyValue: 1,
// updateTime: '2024-12-09 00:00:00',
// },
// checkout: false,
// craftAbility: '',
// createMan: {
// userId: 1,
// userName: 'admin',
// },
// createTime: '2023-02-06 12:31:36',
// deleted: false,
// describe: null,
// endPoint: null,
// keyValue: 81,
// leaderUser: {
// userId: 541,
// userName: '殿',
// },
// limitType: 0,
// processes: '',
// quantity: null,
// roundCycle: null,
// saturation: 85.0,
// sign: '4',
// startPoint: null,
// team: '',
// updateTime: '2023-03-06 18:42:47',
// wcCode: '001',
// wcId: 81,
// wcName: '',
// whetherPlate: false,
// },
// keepMan: {
// userId: 541,
// userName: '殿',
// },
// keepTime: '2024-02-28 10:32:35',
// keyValue: 27,
// papers: '1',
// referenceFile: '2',
// },
// {
// afId: 29,
// afStatus: 1,
// afStatusTitle: '使',
// bsProcedureQua: null,
// bsProcedureSet: {
// assist: false,
// assistTitle: '',
// createMan: {
// userId: 1,
// userName: 'admin',
// },
// createTime: '2022-11-15 10:30:45',
// cycle: 0.0,
// cyropactorControl: true,
// deleted: false,
// eleRate: true,
// eleStream: true,
// keyValue: 7,
// mainProcess: true,
// mainProcessTitle: '',
// niValue: true,
// phValue: true,
// ppsCode: '003',
// ppsId: 7,
// ppsName: '',
// special: false,
// specialTitle: '',
// team: null,
// updateTime: '2022-11-15 10:30:45',
// vSpeed: true,
// },
// bsWorkCenter: {
// area: 13000.0,
// batchNo: null,
// bigBatch: false,
// bsJfCenter: {
// createMan: {
// userId: 1,
// userName: 'admin',
// },
// createTime: '2024-12-09 00:00:00',
// deleted: false,
// jcCode: 'RBZX',
// jcId: 1,
// jcName: '',
// keyValue: 1,
// updateTime: '2024-12-09 00:00:00',
// },
// checkout: false,
// craftAbility: '',
// createMan: {
// userId: 1,
// userName: 'admin',
// },
// createTime: '2023-02-06 12:31:36',
// deleted: false,
// describe: null,
// endPoint: null,
// keyValue: 81,
// leaderUser: {
// userId: 541,
// userName: '殿',
// },
// limitType: 0,
// processes: '',
// quantity: null,
// roundCycle: null,
// saturation: 85.0,
// sign: '4',
// startPoint: null,
// team: '',
// updateTime: '2023-03-06 18:42:47',
// wcCode: '001',
// wcId: 81,
// wcName: '',
// whetherPlate: false,
// },
// keepMan: {
// userId: 541,
// userName: '殿',
// },
// keepTime: '2024-02-28 11:21:36',
// keyValue: 29,
// papers: '22',
// referenceFile: '33',
// },
// ];
// this.page.total = this.data.length;
},
},
};

@ -6,6 +6,7 @@
@selection-change="selectionChange" @current-change="currentChange" @size-change="sizeChange"
@refresh-change="refreshChange" @on-load="onLoad">
<template #menu-left>
<el-button type="primary" @click="handleAdd()">新增</el-button>
<el-button type="danger" @click="batchDel()">删除</el-button>
</template>
<template #menu-right>
@ -43,6 +44,7 @@ import {
remove,
update,
} from '@/api/system/role';
import {getList} from '@/api/qualityManagement/remindRedeem/remindRedeem'
import { mapGetters } from 'vuex';
import { validatenull } from '@/utils/validate';
import basicImport from '@/components/basic-import/main.vue'
@ -95,7 +97,7 @@ export default {
border: true,
index: true,
selection: true,
addBtn: true,
addBtn: false,
editBtn: true,
viewBtn: false,
delBtn: false,
@ -515,13 +517,21 @@ export default {
onLoad(page, params = {}) {
this.loading = true;
this.data = [
{}
]
this.page.total = this.data.length
// getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
// this.data = res.data.data.records;
this.loading = false;
getList({
current:this.page.currentPage,
size:this.page.pageSize
}).then(res =>{
this.data = res.data.data.records
this.page.total = res.data.data.total
this.loading = false
})
// this.data = [
// {}
// ]
// this.page.total = this.data.length
// // getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
// // this.data = res.data.data.records;
// this.loading = false;
// this.page.total = res.data.data.total
// this.selectionClear();
// });

@ -61,7 +61,7 @@
</template>
<!-- 复测电导率 -->
<template #conductivityRepeatTestValue="scope">
<div class="inpu-text"><el-input @input="val => scope.row.conductivityRepeatTestValue = formatDecimal(val, 5)" :disabled="scope.row.status == 2" v-model="scope.row.conductivityRepeatTestValue" /></div>
<div class="inpu-text"><el-input @input="val => scope.row.conductivityRepeatTestValue = formatDecimal(val, 5)" :disabled="scope.row.status == 2 || scope.row.status == 4" v-model="scope.row.conductivityRepeatTestValue" /></div>
</template>
<template #firstTestDate="scope">
<div class="inpu-text">
@ -76,14 +76,14 @@
</div>
</template>
<template #needAddValue="scope">
<div class="inpu-text"><el-input @input="val => scope.row.needAddValue = formatDecimal(val, 5)" :disabled="scope.row.status == 8" v-model="scope.row.needAddValue" /><i>({{scope.row.liquidTank.addUnit}})</i></div>
<div class="inpu-text"><el-input @input="val => scope.row.needAddValue = formatDecimal(val, 5)" :disabled="scope.row.status == 8 || scope.row.status == 2 || scope.row.status == 4" v-model="scope.row.needAddValue" /><i>({{scope.row.liquidTank.addUnit}})</i></div>
</template>
<template #actualAddValue="scope">
<div class="inpu-text"><el-input @input="val => scope.row.actualAddValue = formatDecimal(val, 5)" :disabled="scope.row.status == 8" v-model="scope.row.actualAddValue" /><i>({{scope.row.liquidTank.addUnit}})</i></div>
</template>
<!-- 复测测量值 -->
<template #repeatTestValue="scope">
<div class="inpu-text"><el-input @input="val => scope.row.repeatTestValue = formatDecimal(val, 5)" :disabled="scope.row.status == 2" v-model="scope.row.repeatTestValue" /><i>({{scope.row.liquidTank.testUnit}})</i></div>
<div class="inpu-text"><el-input @input="val => scope.row.repeatTestValue = formatDecimal(val, 5)" :disabled="scope.row.status == 2 || scope.row.status == 4" v-model="scope.row.repeatTestValue" /><i>({{scope.row.liquidTank.testUnit}})</i></div>
</template>
</avue-crud>
<template #footer>
@ -95,7 +95,7 @@
</el-dialog>
</template>
<script>
import {firstBat,fillBat} from "@/api/tankSolutionSystem/tankSolutionTaskAssignment"
import {firstBat,fillBat,editDrugBat} from "@/api/tankSolutionSystem/tankSolutionTaskAssignment"
export default {
props: {
showDialog: {
@ -501,7 +501,7 @@ export default {
const requiredFields = [
{ key: 'firstTestValue', label: '测量值' },
{ key: 'conductivityFirstTestValue', label: '电导率测量值' },
{ key: 'needAddValue', label: '需添加量' },
// { key: 'needAddValue', label: '' },
{ key: 'actualAddValue', label: '实际添加量' },
{ key: 'afterAddTheoryValue', label: '加药后理论值' },
{ key: 'firstTestDate', label: '化验时间' }
@ -542,7 +542,7 @@ export default {
this.closeDialog(true)
}
})
}else{
}else if(this.data[0].status == 8){
const requiredFields = [
{ key: 'conductivityRepeatTestValue', label: '复测电导率测量值' },
{ key: 'repeatTestValue', label: '复测测量值' },
@ -578,6 +578,13 @@ export default {
this.closeDialog(true)
}
})
}else{
editDrugBat(this.data).then(res =>{
if(res.data.code == 200){
this.$message.success('修改加药量成功')
this.closeDialog(true)
}
})
}
},
onLoad() {

@ -1,6 +1,6 @@
<template>
<el-dialog title="检验结果填报" append-to-body :modelValue="showDialog" width="80%" @close="closeDialog">
<div style="height: 600px;overflow-y: auto;overflow-x:hidden ;">
<div>
<div style="font-weight: 550;">任务信息</div>
<div class="info_box">
<el-row class="item_item" :gutter="20">
@ -182,8 +182,8 @@
</el-form>
</div>
</div>
<div style="font-weight: 550;" v-show="detailForm.status > 5 && detailForm.status != 10">加药量审核</div>
<div class="info_box" v-show="detailForm.status > 5 && detailForm.status != 10">
<div style="font-weight: 550;" v-show="detailForm.status >= 4 && detailForm.status != 10">加药量审核</div>
<div class="info_box" v-show="detailForm.status >= 4 && detailForm.status != 10">
<div v-show="detailForm.status != 2">
<el-row class="item_item" :gutter="20">
<el-col :span="6">
@ -221,15 +221,15 @@
</el-form>
</div>
</div>
<div style="font-weight: 550;" v-show="detailForm.status > 8 && detailForm.status != 10">领药信息</div>
<div class="info_box" v-show="detailForm.status > 8 && detailForm.status != 10">
<div style="font-weight: 550;" v-show="detailForm.status >= 8 && detailForm.status != 10">领药信息</div>
<div class="info_box" v-show="detailForm.status >= 8 && detailForm.status != 10">
<div v-show="detailForm.status != 3">
<el-row class="item_item" :gutter="20">
<el-col :span="6">
<span>药品批次</span><span>{{ detailForm.drugBatCode }}</span>
</el-col>
<el-col :span="6">
<span>领药人</span><span>{{ detailForm.drugRecipientName }}</span>
<span>领药人</span><span>{{ detailForm.receiveDurgUserRealName }}</span>
</el-col>
<el-col :span="6">
<span>领药时间</span><span>{{ detailForm.receiveDrugDate }}</span>

@ -128,7 +128,7 @@ export default {
search: false,
sortable: true,
filter: true,
hide: true,
// hide: true,
span: 24,
},

@ -65,7 +65,7 @@
</el-row>
</el-form>
<div style="height: 600px;">
<avue-crud :option="addoption" :table-loading="loading" :data="reportData" v-model="form" v-model:page="page"
<avue-crud :option="addoption" :table-loading="loading" :data="reportData" v-model="form"
ref="crud"
@selection-change="selectionChange" @current-change="currentChange" @size-change="sizeChange"
@refresh-change="refreshChange" @on-load="onLoad" :before-open="beforeOpen">

@ -43,19 +43,19 @@
</template>
<!-- 测量值 -->
<template #firstTestValue="scope">
{{scope.row.firstTestValue}}{{scope.row.liquidTank.testUnit}}
{{scope.row.firstTestValue}}{{scope.row.firstTestValue != '' ? scope.row.liquidTank.testUnit : ''}}
</template>
<!-- 需添加量 -->
<template #needAddValue="scope">
{{scope.row.needAddValue}}{{scope.row.liquidTank.addUnit}}
{{scope.row.needAddValue}}{{scope.row.needAddValue != '' ? scope.row.liquidTank.addUnit : ''}}
</template>
<!-- 实际添加量 -->
<template #actualAddValue="scope">
{{scope.row.actualAddValue}}{{scope.row.liquidTank.addUnit}}
{{scope.row.actualAddValue}}{{scope.row.actualAddValue != '' ? scope.row.liquidTank.addUnit : ''}}
</template>
<!-- 复测测量值 -->
<template #repeatTestValue="scope">
{{scope.row.repeatTestValue}}{{scope.row.liquidTank.testUnit}}
{{scope.row.repeatTestValue}}{{scope.row.repeatTestValue != '' ? scope.row.liquidTank.testUnit : ''}}
</template>
<!-- <template #userId="{ row }">
{{ row.testMan.userName }}
@ -198,7 +198,7 @@ export default {
search: false,
sortable: true,
filter: true,
hide: true,
// hide: true,
span: 24,
width: 140,
@ -369,7 +369,7 @@ export default {
},
{
label: '复测电导率测量值',
prop: 'conductivityTestRepeatValue',
prop: 'conductivityRepeatTestValue',
search: false,
sortable: true,
filter: true,
@ -556,10 +556,10 @@ export default {
this.$message.error('至少选择一条数据')
return
}
let tmp = this.selectionList.find(item => item.status != 2 && item.status != 8)
let tmp = this.selectionList.find(item => item.status != 2 && item.status != 8 && item.status != 4)
console.log('tmp-------------',tmp)
if(tmp){
this.$message.error('请选择状态均为【待填报】/【待复检】的数据')
this.$message.error('请选择状态均为【待填报】/【待复检】/【加药量待修改】的数据')
return
}
@ -567,7 +567,7 @@ export default {
console.log('tmp1-------------',tmp1)
if(!tmp1){
this.$message.error('请选择状态均为【待填报】/【待复检】的数据')
this.$message.error('请选择状态均为【待填报】/【待复检】/【加药量待修改】的数据')
return
}
@ -727,6 +727,19 @@ export default {
workCenterId:this.search.workCenterId,
}).then(res =>{
this.data = res.data.data.records
this.data.map(item =>{
if(item.status == 2 || item.status == 1){
item.firstTestValue = ''
item.conductivityFirstTestValue = ''
item.temperatureActual = ''
item.phActual = ''
item.needAddValue = ''
item.actualAddValue = ''
item.afterAddTheoryValue = ''
item.repeatTestValue = ''
item.conductivityRepeatTestValue = ''
}
})
this.page.total = res.data.data.total
this.loading = false
})

Loading…
Cancel
Save