|
@@ -330,7 +330,7 @@
|
|
|
<el-button @click="clickCancel()" v-if="route.query && route.query.detailId" size="large">关 闭</el-button>
|
|
|
<el-button @click="clickCancel()" v-if="!(route.query && route.query.detailId)" size="large">取 消</el-button>
|
|
|
<el-button @click="submitForm('0')" v-if="!(route.query && route.query.detailId)" size="large" v-preReClick>暂 存</el-button>
|
|
|
- <el-button type="primary" @click="submitForm('10')" v-if="!(route.query && route.query.detailId)" size="large" v-preReClick>确 定</el-button>
|
|
|
+ <el-button type="primary" @click="submitForm('20')" v-if="!(route.query && route.query.detailId)" size="large" v-preReClick>确 定</el-button>
|
|
|
</div>
|
|
|
</el-card>
|
|
|
|
|
@@ -538,6 +538,14 @@ const updateValue = (val) => {
|
|
|
const submitForm = (status) => {
|
|
|
submit.value.handleSubmit(() => {
|
|
|
if (formData.data.orderSkuList && formData.data.orderSkuList.length > 0) {
|
|
|
+ for (let i = 0; i < formData.data.orderSkuList.length; i++) {
|
|
|
+ if (!formData.data.orderSkuList[i].blueprint) {
|
|
|
+ return ElMessage("请选择设计图");
|
|
|
+ }
|
|
|
+ if (!formData.data.orderSkuList[i].productionDocument) {
|
|
|
+ return ElMessage("请选择生产文件");
|
|
|
+ }
|
|
|
+ }
|
|
|
formData.data.status = status;
|
|
|
let type = "add";
|
|
|
if (formData.data.id) {
|