驳回数量:
(rowData.unitValue==1?numInput2=Number(v.replace(/[^\d.]/g,'')) : numInput2=Number(v.replace(/[^\d]/g,'')))"
@@ -65,9 +65,9 @@
驳回原因:
-
-
+
确定
取消
@@ -75,7 +75,7 @@
-
+
@@ -121,14 +121,14 @@
-
+
-
-
+
+
入库
@@ -140,24 +140,24 @@
保存
取消
-->
-
+
-
-
+
+
是否确认驳回所选择的设备编码?
驳回原因:
-
-
+
确定
取消
-
+
@@ -169,7 +169,7 @@ import { auditPass } from "@/api/repair/testExamine";
export default {
name: "",
dicts: ["ma_machine_status","repair_end_task_status"],
- components: {
+ components: {
},
props: {
isEdit: {
@@ -177,7 +177,7 @@ export default {
default: () => {
return false;
},
- },
+ },
queryId: {
type: [String, Number],
default: () => {
@@ -197,14 +197,14 @@ export default {
//任务ID
taskId: "",
// 遮罩层
- loading: true,
+ loading: true,
//租赁单位
uniteList: [],
//租赁工程
projectList: [],
// 表格数据
equipmentList: [],
- maForm: {
+ maForm: {
keyWord: undefined
},
passTemp: [],
@@ -232,17 +232,17 @@ export default {
};
},
computed: {},
- mounted() {
+ mounted() {
this.taskId = this.param.taskId
console.log(this.param)
this.paramTemp = this.param;
this.getTaskInfo();
},
- methods: {
+ methods: {
resetQuery(){
this.maForm.keyWord="";
this.getTaskInfo()
- },
+ },
//获取任务详情-列表数据
getTaskInfo() {
this.loading = true;
@@ -250,8 +250,8 @@ export default {
taskId:this.taskId,
keyWord:this.maForm.keyWord
}
- getTestedDetailListApi(param).then((response) => {
- this.equipmentList = response.data;
+ getTestedDetailListApi(param).then((response) => {
+ this.equipmentList = response.data;
this.loading = false;
});
},
@@ -265,10 +265,10 @@ export default {
this.rowData=row;
}else{//编码-打开
this.rowData=row;
- this.isReject=false;
+ this.isReject=false;
this.keyWord=""
this.queryCodeList()
- this.open=true;
+ this.open=true;
}
},
//数量入库确认入库
@@ -288,15 +288,15 @@ export default {
pendingInputNum:this.rowData.pendingInputNum,
inputNum:this.numInput
}
- repairInputWarehouseApi(param).then((response) => {
+ repairInputWarehouseApi(param).then((response) => {
if(response.code==200){
this.$modal.msgSuccess("入库成功");
this.numOpen=false;
this.getTaskInfo();
}
});
- }
- },
+ }
+ },
//驳回按钮-打开弹窗
handleFail(row) {
console.log(row)
@@ -311,7 +311,7 @@ export default {
this.isReject=true;
this.keyWord=""
this.queryCodeList()
- this.open=true;
+ this.open=true;
}
},
//驳回按钮-数量入库-确认驳回
@@ -325,7 +325,7 @@ export default {
this.$modal.msgError("驳回数量不能大于预入库数量!");
this.numInput2 = this.rowData.pendingInputNum;
}else{
- //数量驳回接口
+ //数量驳回接口
let param = {
agreementId:this.rowData.agreementId,
taskId:this.rowData.taskId,
@@ -334,14 +334,14 @@ export default {
pendingInputNum:this.rowData.pendingInputNum,
rejectNum:this.numInput2
}
- rejectWarehouseApi(param).then((response) => {
+ rejectWarehouseApi(param).then((response) => {
if(response.code==200){
this.$modal.msgSuccess("驳回成功");
this.numOpen2=false;
this.getTaskInfo();
}
- });
- }
+ });
+ }
},
//查看编码列表-打开编码列表弹窗
handleViewCode(row){
@@ -349,7 +349,7 @@ export default {
this.isReject=true;
this.keyWord=""
this.queryCodeList()
- this.open=true;
+ this.open=true;
},
//查询编码列表
queryCodeList(){
@@ -359,12 +359,12 @@ export default {
keyWord:this.keyWord,
taskId:this.rowData.taskId,
typeId:this.rowData.typeId
- }
+ }
getCodeListApi(param).then((response) => {
- if (response.code == 200) {
+ if (response.code == 200) {
this.maCodeList = response.data
- }
- });
+ }
+ });
},
//编码列表弹窗-重置按钮
resetCodeQuery(){
@@ -373,12 +373,12 @@ export default {
},
//编码弹窗-单个入库
codeWarehouse(codeRow){
- console.log(this.rowData)
+ console.log(this.rowData)
console.log(codeRow)
let param = {
taskId:this.rowData.taskId,
typeId:this.rowData.typeId,
- maCodeList:[{maId:codeRow.maId}]
+ maCodeList:[{maId:codeRow.maId, maCode:codeRow.maCode}]
}
this.$modal.confirm("是否确认入库所选择的设备编码?")
.then(function () {
@@ -394,7 +394,7 @@ export default {
},
//编码弹窗-单个驳回-打开驳回弹窗
rejectCodeWarehouse(codeRow){
- console.log(this.rowData)
+ console.log(this.rowData)
console.log(codeRow)
this.rejectReason="";
this.codeOpen=true;
@@ -415,10 +415,10 @@ export default {
// this.getTaskInfo();
// }
// })
- // .catch(() => {});
+ // .catch(() => {});
},
//编码弹窗-单个驳回-打开驳回弹窗-确认按钮
- confirmRejectCode(){
+ confirmRejectCode(){
let param = {
agreementId:this.rowData.agreementId,
taskId:this.rowData.taskId,
@@ -433,7 +433,7 @@ export default {
this.queryCodeList();
this.getTaskInfo();
}
- })
+ })
},
//是否可用勾选框
selectable(row) {
@@ -442,7 +442,7 @@ export default {
} else {
return false;
}
- },
+ },
// 多选框选中数据
handleSelectionChange(selection) {
this.passTemp = [];
@@ -455,7 +455,7 @@ export default {
this.failTemp.push({maId:item.maId});
});
this.single = selection.length != 1;
- this.multiple = !selection.length;
+ this.multiple = !selection.length;
},
//编码弹窗-多个通过
handlePassAll() {
@@ -494,9 +494,9 @@ export default {
this.getTaskInfo();
}
})
- .catch(() => {});
- },
-
+ .catch(() => {});
+ },
+
},
};