测试问题修改2

This commit is contained in:
zzyuan 2025-01-24 16:26:10 +08:00
parent 133d1ef461
commit 3a292acd79
2 changed files with 9 additions and 9 deletions

View File

@ -334,8 +334,8 @@ export default {
taskStatus: this.queryParams.taskStatus, taskStatus: this.queryParams.taskStatus,
}; };
getPartLeaseInfoListApi(params).then((response) => { getPartLeaseInfoListApi(params).then((response) => {
this.tableList = response.rows; this.tableList = response.data.rows;
this.total = response.total; this.total = response.data.total;
this.loading = false; this.loading = false;
}); });
}, },

View File

@ -1253,13 +1253,13 @@ export default {
this.$message.error("配件数量不能为0"); this.$message.error("配件数量不能为0");
return; return;
} }
const isCost = this.backTableList.some( // const isCost = this.backTableList.some(
(item) => item.backCost == 0 || item.backCost == undefined // (item) => item.backCost == 0 || item.backCost == undefined
); // );
if (isCost) { // if (isCost) {
this.$message.error("维修金额不能为0"); // this.$message.error("0");
return; // return;
} // }
this.backTableList.forEach(item=>{ this.backTableList.forEach(item=>{
item.supplierId = this.backForm.supplierId item.supplierId = this.backForm.supplierId
item.remark = this.backForm.remark item.remark = this.backForm.remark