|
@@ -212,7 +212,7 @@ const nodeDataInfo = ref({})
|
|
|
const nodeErTreeId = ref('')
|
|
|
const wbsElTreeClick = ({ data, keys }) => {
|
|
|
nodeDataInfo.value = data
|
|
|
- nodeErTreeId.value = data['erTreeId'] || ''
|
|
|
+ //nodeErTreeId.value = data['erTreeId'] || ''
|
|
|
//缓存自动展开
|
|
|
treeAutoExpandKeys.value = keys
|
|
|
setStoreValue('testTreeExpandKeys', keys)
|
|
@@ -335,15 +335,13 @@ const delegateContractChange = async () => {
|
|
|
|
|
|
//获取委托html
|
|
|
const getDelegateExcelHtml = async () => {
|
|
|
- const { primaryKeyId } = nodeDataInfo.value
|
|
|
const { error, code, msg, data } = await samplingApi.getExcelHtml({
|
|
|
- primaryKeyId: nodeErTreeId.value,
|
|
|
- projectId: projectId.value,
|
|
|
- contractId: delegateContractId.value,
|
|
|
- nodeId: primaryKeyId,
|
|
|
+ nodeId: searchForm.value.nodeId,
|
|
|
+ contractId: contractId.value,
|
|
|
})
|
|
|
if (!error && code === 200) {
|
|
|
delegateHtml.value = isString(data) ? data : ''
|
|
|
+ nodeErTreeId.value = msg
|
|
|
} else {
|
|
|
delegateHtml.value = ''
|
|
|
window.$message.error(msg || '获取委托信息失败')
|
|
@@ -557,14 +555,15 @@ const reportClick = () => {
|
|
|
reportContractId.value = contractIds
|
|
|
//处理类型
|
|
|
const { contractType } = contractInfo.value
|
|
|
- classifyType.value = contractType > 0 ? contractType + '' : '1'
|
|
|
+ // 委托单上报设置为1
|
|
|
+ classifyType.value = '1' //contractType > 0 ? contractType + '' : '1'
|
|
|
//其它数据
|
|
|
reportIds.value = rows[0].id //数据ID
|
|
|
reportTaskName.value = entrustName //任务名称
|
|
|
//附加数据
|
|
|
const { contractIdRelation } = nodeDataInfo.value
|
|
|
reportAddition.value = {
|
|
|
- taskType: '1', //说是用来区分委托单
|
|
|
+ taskType: '1', //用来区分委托单
|
|
|
classify: classifyType.value,
|
|
|
contractIdRelation: contractIdRelation,
|
|
|
}
|