|
@@ -1003,19 +1003,19 @@ const config = computed(() => {
|
|
|
},
|
|
|
renderHTML(row) {
|
|
|
return [
|
|
|
- // row.qualityStatus === 0
|
|
|
- {
|
|
|
- attrs: {
|
|
|
- label: "质检",
|
|
|
- type: "primary",
|
|
|
- text: true,
|
|
|
- },
|
|
|
- el: "button",
|
|
|
- click() {
|
|
|
- clickInspection(row);
|
|
|
- },
|
|
|
- },
|
|
|
- // : {},
|
|
|
+ row.qualityStatus === 0
|
|
|
+ ? {
|
|
|
+ attrs: {
|
|
|
+ label: "质检",
|
|
|
+ type: "primary",
|
|
|
+ text: true,
|
|
|
+ },
|
|
|
+ el: "button",
|
|
|
+ click() {
|
|
|
+ clickInspection(row);
|
|
|
+ },
|
|
|
+ }
|
|
|
+ : {},
|
|
|
row.qualityStatus === 10
|
|
|
? {
|
|
|
attrs: {
|
|
@@ -1354,59 +1354,59 @@ const getStepStatus = (item) => {
|
|
|
}
|
|
|
return "process";
|
|
|
};
|
|
|
-const submitFollow = (status) => {
|
|
|
+const submitFollow = async (status) => {
|
|
|
if (status) {
|
|
|
- let statusSubmit1 = submit1.value.handleSubmit(() => {});
|
|
|
+ let statusSubmit1 = await submit1.value.handleSubmit(() => {});
|
|
|
if (!statusSubmit1) {
|
|
|
selectSteps.value = 1;
|
|
|
return ElMessage("GENERAL INFORMATION填写不正确");
|
|
|
}
|
|
|
- let statusSubmit2 = submit2.value.handleSubmit(() => {});
|
|
|
+ let statusSubmit2 = await submit2.value.handleSubmit(() => {});
|
|
|
if (!statusSubmit2) {
|
|
|
selectSteps.value = 2;
|
|
|
return ElMessage("INSPECTION SUMMARY填写不正确");
|
|
|
}
|
|
|
- let statusSubmit3 = submit3.value.handleSubmit(() => {});
|
|
|
+ let statusSubmit3 = await submit3.value.handleSubmit(() => {});
|
|
|
if (!statusSubmit3) {
|
|
|
selectSteps.value = 3;
|
|
|
return ElMessage("REMARKS填写不正确");
|
|
|
}
|
|
|
- let statusSubmit4 = submit4.value.handleSubmit(() => {});
|
|
|
+ let statusSubmit4 = await submit4.value.handleSubmit(() => {});
|
|
|
if (!statusSubmit4) {
|
|
|
selectSteps.value = 4;
|
|
|
return ElMessage("CONCLUSION填写不正确");
|
|
|
}
|
|
|
- let statusSubmit5 = submit5.value.handleSubmit(() => {});
|
|
|
+ let statusSubmit5 = await submit5.value.handleSubmit(() => {});
|
|
|
if (!statusSubmit5) {
|
|
|
selectSteps.value = 5;
|
|
|
return ElMessage("QUANTITY填写不正确");
|
|
|
}
|
|
|
- let statusSubmit6 = submit6.value.handleSubmit(() => {});
|
|
|
+ let statusSubmit6 = await submit6.value.handleSubmit(() => {});
|
|
|
if (!statusSubmit6) {
|
|
|
selectSteps.value = 6;
|
|
|
return ElMessage("WORKMANSHIP填写不正确");
|
|
|
}
|
|
|
- let statusSubmit7 = submit7.value.handleSubmit(() => {});
|
|
|
+ let statusSubmit7 = await submit7.value.handleSubmit(() => {});
|
|
|
if (!statusSubmit7) {
|
|
|
selectSteps.value = 7;
|
|
|
return ElMessage("ON-SITE TESTS填写不正确");
|
|
|
}
|
|
|
- let statusSubmit8 = submit8.value.handleSubmit(() => {});
|
|
|
+ let statusSubmit8 = await submit8.value.handleSubmit(() => {});
|
|
|
if (!statusSubmit8) {
|
|
|
selectSteps.value = 8;
|
|
|
return ElMessage("PRODUCT SPECIFICATION填写不正确");
|
|
|
}
|
|
|
- let statusSubmit9 = submit9.value.handleSubmit(() => {});
|
|
|
+ let statusSubmit9 = await submit9.value.handleSubmit(() => {});
|
|
|
if (!statusSubmit9) {
|
|
|
selectSteps.value = 9;
|
|
|
return ElMessage("PACKING填写不正确");
|
|
|
}
|
|
|
- let statusSubmit10 = submit10.value.handleSubmit(() => {});
|
|
|
+ let statusSubmit10 = await submit10.value.handleSubmit(() => {});
|
|
|
if (!statusSubmit10) {
|
|
|
selectSteps.value = 10;
|
|
|
return ElMessage("MARKING & LABELING填写不正确");
|
|
|
}
|
|
|
- let statusSubmit11 = submit11.value.handleSubmit(() => {});
|
|
|
+ let statusSubmit11 = await submit11.value.handleSubmit(() => {});
|
|
|
if (!statusSubmit11) {
|
|
|
selectSteps.value = 11;
|
|
|
return ElMessage("SUPPORT DOCUMENTATION填写不正确");
|