|
@@ -105,7 +105,7 @@
|
|
|
<el-button @click="delegateModalClose">取消</el-button>
|
|
|
<el-button hc-btn type="warning" @click="linkSamplingModal = true">关联取样材料</el-button>
|
|
|
<el-button v-if="editHtmlId" hc-btn type="primary" @click="creatingDelegate">保存</el-button>
|
|
|
- <el-button v-else hc-btn type="primary" @click="creatingDelegate">创建</el-button>
|
|
|
+ <el-button v-else hc-btn type="primary" :loading="creatingDelegateLoad" @click="creatingDelegate">创建</el-button>
|
|
|
</template>
|
|
|
</hc-new-dialog>
|
|
|
|
|
@@ -433,6 +433,7 @@ const rowEdit = async (row) => {
|
|
|
const linkSamplingModal = ref(false)
|
|
|
|
|
|
//创建委托
|
|
|
+const creatingDelegateLoad = ref(false)
|
|
|
const creatingDelegate = async () => {
|
|
|
if (isNullES(delegateHtml.value)) {
|
|
|
window.$message.error('暂无委托单信息')
|
|
@@ -459,7 +460,9 @@ const creatingDelegate = async () => {
|
|
|
form.nodeErTreeId = nodeErTreeId.value
|
|
|
form.nodeId = primaryKeyId
|
|
|
//发起请求
|
|
|
+ creatingDelegateLoad.value = true
|
|
|
const { error, code, msg } = await mainApi.htmlSave(form)
|
|
|
+ creatingDelegateLoad.value = false
|
|
|
if (!error && code === 200) {
|
|
|
window.$message.success('创建成功')
|
|
|
delegateModalClose()
|