|
@@ -198,7 +198,7 @@ import { onActivated, onMounted, ref } from 'vue'
|
|
import { useAppStore } from '~src/store'
|
|
import { useAppStore } from '~src/store'
|
|
import { useRouter } from 'vue-router'
|
|
import { useRouter } from 'vue-router'
|
|
import { getStoreValue, setStoreValue } from '~src/utils/storage'
|
|
import { getStoreValue, setStoreValue } from '~src/utils/storage'
|
|
-import { arrToId, arrToKey, deepClone, formValidate, getArrValue, getObjValue, isNullES, isString } from 'js-fast-way'
|
|
|
|
|
|
+import { arrToId, deepClone, formValidate, getArrValue, getObjVal, getObjValue, isNullES, isString } from 'js-fast-way'
|
|
import { toPdfPage } from '~uti/btn-auth'
|
|
import { toPdfPage } from '~uti/btn-auth'
|
|
import { getDictionaryData } from '~uti/tools'
|
|
import { getDictionaryData } from '~uti/tools'
|
|
import { getErtractInfo } from '~api/other'
|
|
import { getErtractInfo } from '~api/other'
|
|
@@ -208,6 +208,7 @@ import TestTree from '~src/views/tentative/material/components/TestTree.vue'
|
|
import SamplingPage from './commission/sampling.vue'
|
|
import SamplingPage from './commission/sampling.vue'
|
|
import { isCancel } from 'axios'
|
|
import { isCancel } from 'axios'
|
|
import wbsApi from '~api/data-fill/wbs'
|
|
import wbsApi from '~api/data-fill/wbs'
|
|
|
|
+import dataApi from '~api/basic/code'
|
|
|
|
|
|
//变量
|
|
//变量
|
|
const router = useRouter()
|
|
const router = useRouter()
|
|
@@ -358,8 +359,27 @@ const delegateContractChange = async () => {
|
|
delegateHtmlLoading.value = true
|
|
delegateHtmlLoading.value = true
|
|
//await getDelegateDataInfo(editHtmlId.value)
|
|
//await getDelegateDataInfo(editHtmlId.value)
|
|
await getDelegateExcelHtml()
|
|
await getDelegateExcelHtml()
|
|
|
|
+ getMaterialNumber()
|
|
|
|
+
|
|
delegateHtmlLoading.value = false
|
|
delegateHtmlLoading.value = false
|
|
}
|
|
}
|
|
|
|
+//获取委托单编号
|
|
|
|
+
|
|
|
|
+const backObj = ref({})
|
|
|
|
+const getMaterialNumber = async () => {
|
|
|
|
+ const { error, code, data } = await dataApi.getEntrustNumber({
|
|
|
|
+ contractId: contractId.value,
|
|
|
|
+ pkeyId: searchForm.value.nodeId,
|
|
|
|
+ })
|
|
|
|
+ //处理数据
|
|
|
|
+
|
|
|
|
+ if (!error && code === 200) {
|
|
|
|
+ backObj.value = getObjVal(data)
|
|
|
|
+ } else {
|
|
|
|
+ backObj.value = {}
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
|
|
//获取委托html
|
|
//获取委托html
|
|
const getDelegateExcelHtml = async () => {
|
|
const getDelegateExcelHtml = async () => {
|
|
@@ -426,6 +446,7 @@ const rowEdit = async (row) => {
|
|
|
|
|
|
await getDelegateExcelHtml()
|
|
await getDelegateExcelHtml()
|
|
await getDelegateDataInfo('', row.id)
|
|
await getDelegateDataInfo('', row.id)
|
|
|
|
+ getMaterialNumber()
|
|
row. rowLoad = false
|
|
row. rowLoad = false
|
|
delegateHtmlLoading.value = false
|
|
delegateHtmlLoading.value = false
|
|
delegateModal.value = true
|
|
delegateModal.value = true
|