|
@@ -13,7 +13,9 @@
|
|
|
</HcTooltip>
|
|
|
</div -->
|
|
|
<div class="item-title truncate text-lg">{{ item.nodeName }}</div>
|
|
|
+
|
|
|
<div class="hc-extra-text-box">
|
|
|
+ <el-link type="primary" :disabled="isNullES(baseData.entrustId)" @click.stop="getTheOrderDataClick(item, index)">获取委托单数据</el-link>
|
|
|
<el-link type="primary" :disabled="item.isBussShow === 2" @click.stop="linkAcquisitionClick(item, index)">关联设备数据</el-link>
|
|
|
<HcTooltip v-if="item.isCopyTab === 1" keys="wbs_del_table">
|
|
|
<el-link type="danger" :disabled="item.isBussShow === 2 || delClickLoading" @click.stop="delClick(item, index)">删除本表</el-link>
|
|
@@ -670,7 +672,7 @@ const changePositionInput = (infodata) => {
|
|
|
}
|
|
|
|
|
|
//获取已填写的数据
|
|
|
-const getBussDataInfo = async (item, index) => {
|
|
|
+const getBussDataInfo = async (item, index, param = {}) => {
|
|
|
const pkeyIds = getValString(item.pKeyId)
|
|
|
const { contractId } = baseData.value
|
|
|
if (pkeyIds) {
|
|
@@ -679,6 +681,7 @@ const getBussDataInfo = async (item, index) => {
|
|
|
id: id || nodeIdvaluedata.value || newaddId.value,
|
|
|
pkeyId: pkeyIds,
|
|
|
contractId: contractId,
|
|
|
+ ...param,
|
|
|
}, false)
|
|
|
emit('changesingSaveId', pkeyIds)
|
|
|
if (item.oper) {
|
|
@@ -1755,6 +1758,15 @@ const linksAcquisitionClose = () => {
|
|
|
linksAcquisitionLoading.value = false
|
|
|
}
|
|
|
|
|
|
+//获取委托单数据
|
|
|
+const getTheOrderDataClick = async (item, index) => {
|
|
|
+ const { entrustId } = baseData.value
|
|
|
+ if (isNullES(entrustId)) return
|
|
|
+ await getBussDataInfo(item, index, {
|
|
|
+ entrustId: entrustId,
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
// 暴露出去
|
|
|
defineExpose({
|
|
|
setFormChart,
|