生产报工修改。

This commit is contained in:
DESKTOP-J7ED0MB\yinjinlu 2022-11-05 20:47:02 +08:00
parent 622c0277ae
commit 8f625fd283

View File

@ -284,7 +284,7 @@
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="cancel" v-if="optType =='view' || form.status !='PREPARE' ">返回</el-button>
<el-button type="primary" @click="submitForm" v-if="form.status =='PREPARE' && optType !='view' "> </el-button>
<el-button type="success" @click="handleExecute" v-if="form.status =='PREPARE' && optType !='view' && form.feedbackId !=null"> </el-button>
<el-button type="success" @click="handleExecute" v-if="form.status =='PREPARE' && optType !='view' && form.recordId !=null"> </el-button>
<el-button @click="cancel"> </el-button>
</div>
</el-dialog>
@ -496,12 +496,15 @@ export default {
if (this.form.recordId != null) {
updateFeedback(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
this.open=false;
this.getList();
});
} else {
addFeedback(this.form).then(response => {
this.$modal.msgSuccess("新增成功");
this.getList();
this.open=false;
this.getList();
});
}
}