|
|
|
@ -126,7 +126,7 @@ |
|
|
|
<!-- <el-button size="small" @click="resetData" v-if="pageType != 'view'">重置</el-button> --> |
|
|
|
<el-button size="small" type="primary" :disabled="btnDisable" @click="handleComfirm">保 存</el-button> |
|
|
|
</div> |
|
|
|
<div class="recordBox"><record :disabled="disabled" :formType="pageType" :id="detailId" :info="{ agencyId: agencyId }"></record></div> |
|
|
|
<div class="recordBox"><record :disabled="disabled" :formType="pageType" :id="detailIdcopy" :info="{ agencyId: agencyId }"></record></div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
@ -201,6 +201,7 @@ export default { |
|
|
|
} |
|
|
|
}; |
|
|
|
return { |
|
|
|
detailIdcopy:this.detailId, |
|
|
|
btnDisable: false, |
|
|
|
user: '', |
|
|
|
agencyId: '', |
|
|
|
@ -241,7 +242,9 @@ export default { |
|
|
|
searchOptions: [] |
|
|
|
}; |
|
|
|
}, |
|
|
|
watch: {}, |
|
|
|
watch: { |
|
|
|
|
|
|
|
}, |
|
|
|
components: { record }, |
|
|
|
created() {}, |
|
|
|
async mounted() { |
|
|
|
@ -288,7 +291,7 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
async getDetail() { |
|
|
|
const url = `/actual/base/enterprise/detail/${this.detailId}`; |
|
|
|
const url = `/actual/base/enterprise/detail/${this.detailIdcopy}`; |
|
|
|
const { data, code, msg } = await requestPost(url); |
|
|
|
if (code === 0) { |
|
|
|
this.formData = { ...data }; |
|
|
|
@ -336,7 +339,7 @@ export default { |
|
|
|
const { data, code, msg } = await requestPost(url, params); |
|
|
|
if (code === 0) { |
|
|
|
this.$message.success('操作成功'); |
|
|
|
this.detailId=data.enterpriseId; |
|
|
|
this.detailIdcopy=data.enterpriseId; |
|
|
|
// this.handleCancle(); |
|
|
|
// // this.resetData(); |
|
|
|
// this.$emit('handleComfirm'); |
|
|
|
|