|
@@ -58,6 +58,7 @@
|
|
:step="1"
|
|
:step="1"
|
|
step-strictly
|
|
step-strictly
|
|
:controls="false"
|
|
:controls="false"
|
|
|
|
+ @change="backupCountChange"
|
|
></el-input-number>
|
|
></el-input-number>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -234,6 +235,10 @@ export default {
|
|
errorFields.push(field.name);
|
|
errorFields.push(field.name);
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
+
|
|
|
|
+ if (!row.printHouseId) {
|
|
|
|
+ errorFields.push("印刷室");
|
|
|
|
+ }
|
|
if (errorFields.length) {
|
|
if (errorFields.length) {
|
|
errorMsg.push(
|
|
errorMsg.push(
|
|
`考试对象${row.className}中,${errorFields.join("、")}必须填写`
|
|
`考试对象${row.className}中,${errorFields.join("、")}必须填写`
|
|
@@ -308,7 +313,7 @@ export default {
|
|
);
|
|
);
|
|
this.packageInfos.paperReleaseCount = this.packageInfos.studentCount;
|
|
this.packageInfos.paperReleaseCount = this.packageInfos.studentCount;
|
|
this.packageInfos.paperBackupCount = calcSum(
|
|
this.packageInfos.paperBackupCount = calcSum(
|
|
- this.tableData.map(item => item.backupCount)
|
|
|
|
|
|
+ this.tableData.map(item => item.backupCount || 0)
|
|
);
|
|
);
|
|
this.packageInfos.paperCount =
|
|
this.packageInfos.paperCount =
|
|
this.packageInfos.paperReleaseCount +
|
|
this.packageInfos.paperReleaseCount +
|
|
@@ -355,6 +360,9 @@ export default {
|
|
this.modalForm.examStartTime = curDate + this.createTime[0] - timeDate;
|
|
this.modalForm.examStartTime = curDate + this.createTime[0] - timeDate;
|
|
this.modalForm.examEndTime = curDate + this.createTime[1] - timeDate;
|
|
this.modalForm.examEndTime = curDate + this.createTime[1] - timeDate;
|
|
},
|
|
},
|
|
|
|
+ backupCountChange() {
|
|
|
|
+ this.updatePackageInfos();
|
|
|
|
+ },
|
|
printHouseChange(row) {
|
|
printHouseChange(row) {
|
|
const curHouse = this.printHouses.find(
|
|
const curHouse = this.printHouses.find(
|
|
item => item.houseId === row.printHouseId
|
|
item => item.houseId === row.printHouseId
|