|
@@ -237,7 +237,8 @@
|
|
</div>
|
|
</div>
|
|
<!-- 流程操作 -->
|
|
<!-- 流程操作 -->
|
|
<div slot="footer" class="dialog-footer">
|
|
<div slot="footer" class="dialog-footer">
|
|
- <el-button type="success" v-if="taskName != null && dataForm.veResult != '0'"@click="dataFormSubmit(1)">{{ $t('通过') }}</el-button>
|
|
|
|
|
|
+ <el-button v-if="taskName != null && dataForm.veResult != '0'" @click="dataFormSave()">{{ $t('保存') }}</el-button>
|
|
|
|
+ <el-button type="success" v-if="taskName != null && dataForm.veResult != '0'" @click="dataFormSubmit(1)">{{ $t('通过') }}</el-button>
|
|
<el-button type="danger" v-if="taskName == '验收' && dataForm.veResult == '0'" @click="dataFormSubmit(2)">{{ $t('驳回') }}</el-button>
|
|
<el-button type="danger" v-if="taskName == '验收' && dataForm.veResult == '0'" @click="dataFormSubmit(2)">{{ $t('驳回') }}</el-button>
|
|
<el-button type="info" v-if="taskName == '评估'" @click="dataFormSubmit(0)">{{ $t('中止') }}</el-button>
|
|
<el-button type="info" v-if="taskName == '评估'" @click="dataFormSubmit(0)">{{ $t('中止') }}</el-button>
|
|
<el-button @click="visible = false">{{ $t('返回') }}</el-button>
|
|
<el-button @click="visible = false">{{ $t('返回') }}</el-button>
|
|
@@ -246,7 +247,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import { getApply, handleApply } from "@/api/production/apply";
|
|
|
|
|
|
+import { updateApply, getApply, handleApply } from "@/api/production/apply";
|
|
import { getHistorylist } from "@/api/ehs/approvedanger";
|
|
import { getHistorylist } from "@/api/ehs/approvedanger";
|
|
import { listUserPost } from "@/api/system/user";
|
|
import { listUserPost } from "@/api/system/user";
|
|
import { treeselect, listDept } from "@/api/system/dept";
|
|
import { treeselect, listDept } from "@/api/system/dept";
|
|
@@ -711,7 +712,33 @@ export default {
|
|
});
|
|
});
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ /**
|
|
|
|
+ * 保存按钮点击事件
|
|
|
|
+ */
|
|
|
|
+ dataFormSave() {
|
|
|
|
+ this.$refs["form"].validate(valid => {
|
|
|
|
+ if (valid) {
|
|
|
|
+ // 验证人字符串拼接
|
|
|
|
+ this.dataForm.inspectors = this.inspector1 + "," + this.inspector2;
|
|
|
|
+ // VE验证条款字符串拼接
|
|
|
|
+ if (this.veItemsList.length != 0) {
|
|
|
|
+ this.dataForm.veItems = "";
|
|
|
|
+ for (let i = 0; i < this.veItemsList.length; i++) {
|
|
|
|
+ this.dataForm.veItems += this.veItemsList[i];
|
|
|
|
+ if (i != this.veItemsList.length - 1) {
|
|
|
|
+ this.dataForm.veItems += ",";
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ updateApply(this.dataForm).then(response =>{
|
|
|
|
+ this.msgSuccess("保存成功");
|
|
|
|
+ // refreshDataList事件:调用父组件getList方法刷新页面
|
|
|
|
+ this.$emit('refreshDataList');
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|