|
@@ -151,6 +151,7 @@
|
|
|
<el-button @click="synEntSubmit" size="medium" type="primary">同步企业填报</el-button>
|
|
|
<el-button :loading="loading" size="medium" type="primary" @click.native.prevent="submitForm" style="width: 100px;">财务保存</el-button>
|
|
|
<el-button size="medium" type="primary" style="width: 100px;" @click="cancel">取消</el-button>
|
|
|
+ <el-button size="medium" type="primary" @click="submitDraft">保存草稿</el-button>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -160,7 +161,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { editProjectApi,getProjectInfoApi,synFinApi } from "@/api/enterprise/project/project"
|
|
|
+import { editProjectApi,getProjectInfoApi,synFinApi,draftApi } from "@/api/enterprise/project/project"
|
|
|
import { techScopeOptions,yesOrNoOptions,businessIndustryOptions } from "@/utils/dataFormat"
|
|
|
import FileUpload from '@/components/FileUpload'
|
|
|
import { listEntUserApi } from "@/api/ent/ent"
|
|
@@ -326,10 +327,11 @@ export default {
|
|
|
this.loading = true
|
|
|
synFinApi(this.techId).then(res => {
|
|
|
this.loading = false
|
|
|
- this.$message.success('已同步完成');
|
|
|
- if(res.data) {
|
|
|
+ if(res.code == 200) {
|
|
|
+ this.$message.success('已同步完成');
|
|
|
this.getData()
|
|
|
}
|
|
|
+
|
|
|
})
|
|
|
},
|
|
|
//同步企业自填资料
|
|
@@ -337,8 +339,8 @@ export default {
|
|
|
this.loading = true
|
|
|
synFinApi(this.adminId).then(res => {
|
|
|
this.loading = false
|
|
|
- this.$message.success('已同步完成');
|
|
|
- if(res.data) {
|
|
|
+ if(res.code == 200) {
|
|
|
+ this.$message.success('已同步完成');
|
|
|
this.getData()
|
|
|
}
|
|
|
})
|
|
@@ -403,6 +405,20 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
})
|
|
|
+ },
|
|
|
+ submitDraft() {
|
|
|
+ this.loading = true
|
|
|
+ if(this.form.techScopeArray.length > 0) {
|
|
|
+ this.form.techScope = this.form.techScopeArray.join(',')
|
|
|
+ }
|
|
|
+ if(this.form.industryArray.length > 0) {
|
|
|
+ this.form.industry = this.form.industryArray.join(',')
|
|
|
+ }
|
|
|
+ draftApi(this.form).then(res => {
|
|
|
+ this.loading = false
|
|
|
+ this.$store.dispatch("tagsView/delView", this.$route);
|
|
|
+ this.$router.go(-1);
|
|
|
+ })
|
|
|
}
|
|
|
},
|
|
|
watch: {
|