|
@@ -237,7 +237,7 @@
|
|
<hc-table-form ref="htmlRef" :pkey="nodeErTreeId" :form="delegateHtmlForm" :html="delegateHtml" :loading="delegateHtmlLoading" @render="delegateHtmlRender" />
|
|
<hc-table-form ref="htmlRef" :pkey="nodeErTreeId" :form="delegateHtmlForm" :html="delegateHtml" :loading="delegateHtmlLoading" @render="delegateHtmlRender" />
|
|
<template #footer>
|
|
<template #footer>
|
|
<el-button @click="delegateModalClose">取消</el-button>
|
|
<el-button @click="delegateModalClose">取消</el-button>
|
|
- <el-button hc-btn type="primary" @click="creatingDelegate">创建</el-button>
|
|
|
|
|
|
+ <el-button hc-btn type="primary" :loading="creatingDelegateLoading" @click="creatingDelegate">创建</el-button>
|
|
</template>
|
|
</template>
|
|
</hc-new-dialog>
|
|
</hc-new-dialog>
|
|
</hc-body>
|
|
</hc-body>
|
|
@@ -252,7 +252,7 @@ import { getStoreValue, setStoreValue } from '~src/utils/storage'
|
|
import samplingApi from '~api/tentative/material/sampling'
|
|
import samplingApi from '~api/tentative/material/sampling'
|
|
import approachApi from '~api/tentative/material/approach'
|
|
import approachApi from '~api/tentative/material/approach'
|
|
import { getContractUserList, getDictionary } from '~api/other'
|
|
import { getContractUserList, getDictionary } from '~api/other'
|
|
-import { arrIndex, arrToId, deepClone, formValidate, getArrValue, isString } from 'js-fast-way'
|
|
|
|
|
|
+import { arrIndex, arrToId, deepClone, formValidate, getArrValue, isNullES, isString } from 'js-fast-way'
|
|
import { toPdfPage } from '~uti/btn-auth'
|
|
import { toPdfPage } from '~uti/btn-auth'
|
|
|
|
|
|
//变量
|
|
//变量
|
|
@@ -792,13 +792,19 @@ const delegationClick = async () => {
|
|
}
|
|
}
|
|
|
|
|
|
//渲染完成
|
|
//渲染完成
|
|
-const delegateHtmlRender = () => {
|
|
|
|
-
|
|
|
|
|
|
+const delegateHtmlRender = (form) => {
|
|
|
|
+ delegateHtmlForm.value = form
|
|
}
|
|
}
|
|
|
|
|
|
//创建委托
|
|
//创建委托
|
|
|
|
+const creatingDelegateLoading = ref(false)
|
|
const creatingDelegate = async () => {
|
|
const creatingDelegate = async () => {
|
|
- delegateModalClose()
|
|
|
|
|
|
+ if (isNullES(delegateHtml.value)) {
|
|
|
|
+ window.$message.error('暂无委托单信息')
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ console.log(delegateHtmlForm.value)
|
|
|
|
+ //delegateModalClose()
|
|
}
|
|
}
|
|
|
|
|
|
//关闭委托
|
|
//关闭委托
|