ZaiZai 1 سال پیش
والد
کامیت
e8a7cfdcac
1فایلهای تغییر یافته به همراه11 افزوده شده و 5 حذف شده
  1. 11 5
      src/views/tentative/material/sampling.vue

+ 11 - 5
src/views/tentative/material/sampling.vue

@@ -237,7 +237,7 @@
             <hc-table-form ref="htmlRef" :pkey="nodeErTreeId" :form="delegateHtmlForm" :html="delegateHtml" :loading="delegateHtmlLoading" @render="delegateHtmlRender" />
             <template #footer>
                 <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>
         </hc-new-dialog>
     </hc-body>
@@ -252,7 +252,7 @@ import { getStoreValue, setStoreValue } from '~src/utils/storage'
 import samplingApi from '~api/tentative/material/sampling'
 import approachApi from '~api/tentative/material/approach'
 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'
 
 //变量
@@ -792,13 +792,19 @@ const delegationClick = async () => {
 }
 
 //渲染完成
-const delegateHtmlRender = () => {
-
+const delegateHtmlRender = (form) => {
+    delegateHtmlForm.value = form
 }
 
 //创建委托
+const creatingDelegateLoading = ref(false)
 const creatingDelegate = async () => {
-    delegateModalClose()
+    if (isNullES(delegateHtml.value)) {
+        window.$message.error('暂无委托单信息')
+        return
+    }
+    console.log(delegateHtmlForm.value)
+    //delegateModalClose()
 }
 
 //关闭委托