|
@@ -85,7 +85,7 @@
|
|
|
|
|
|
<!--上传文件-->
|
|
<!--上传文件-->
|
|
<HcDialog :show="uploadModal" title="上传文件" widths="38rem" :footer="false" @close="uploadModal = false">
|
|
<HcDialog :show="uploadModal" title="上传文件" widths="38rem" :footer="false" @close="uploadModal = false">
|
|
- <HcUpload :fileList="fileListData" :datas="uploadData" @change='uploadChange'/>
|
|
|
|
|
|
+ <HcUpload :fileList="fileListData" :datas="uploadData" @change='uploadChange' />
|
|
</HcDialog>
|
|
</HcDialog>
|
|
|
|
|
|
<!--插入特殊字符-->
|
|
<!--插入特殊字符-->
|
|
@@ -182,6 +182,10 @@ const props = defineProps({
|
|
type: String,
|
|
type: String,
|
|
default: () => ('')
|
|
default: () => ('')
|
|
},
|
|
},
|
|
|
|
+ authBtnTabKey:{
|
|
|
|
+ type: String,
|
|
|
|
+ default: () => ('')
|
|
|
|
+ },
|
|
checkTableId:{
|
|
checkTableId:{
|
|
type: String,
|
|
type: String,
|
|
default: () => ('')
|
|
default: () => ('')
|
|
@@ -193,6 +197,7 @@ const {setPosInsert, setPosRange} = utilsText()
|
|
const listDatas = ref(props.datas)
|
|
const listDatas = ref(props.datas)
|
|
const isStatus = ref(props.status)
|
|
const isStatus = ref(props.status)
|
|
const baseData = ref(props.baseData)
|
|
const baseData = ref(props.baseData)
|
|
|
|
+const authBtnTabKeyType = ref(props.authBtnTabKey)//所属方
|
|
const useAppState = useAppStore()
|
|
const useAppState = useAppStore()
|
|
const projectId = ref(useAppState.getProjectId);
|
|
const projectId = ref(useAppState.getProjectId);
|
|
const contractId = ref(useAppState.getContractId);
|
|
const contractId = ref(useAppState.getContractId);
|
|
@@ -420,6 +425,7 @@ const saveExcelBussData = async (item, index, showTip = true) => {
|
|
const InitObj = getFormDataInit(item)
|
|
const InitObj = getFormDataInit(item)
|
|
const {error, code} = await dataApi.saveExcelBussData({
|
|
const {error, code} = await dataApi.saveExcelBussData({
|
|
...baseData.value,
|
|
...baseData.value,
|
|
|
|
+ isBatchSave:0,
|
|
dataInfo: {
|
|
dataInfo: {
|
|
orderList: [{...formData.value[index], ...InitObj}]
|
|
orderList: [{...formData.value[index], ...InitObj}]
|
|
}
|
|
}
|
|
@@ -557,11 +563,18 @@ const uploadData = ref({})
|
|
//上传被点击
|
|
//上传被点击
|
|
const uploadClick = (item,index) => {
|
|
const uploadClick = (item,index) => {
|
|
const pkeyIds = item.pKeyId ? item.pKeyId + '' : ''
|
|
const pkeyIds = item.pKeyId ? item.pKeyId + '' : ''
|
|
|
|
+ const { id } = baseData.value
|
|
|
|
+ const tableType = item.tableType ? item.tableType : ''
|
|
|
|
+ const classify = authBtnTabKeyType.value
|
|
const keyName = `item-${index}-${pkeyIds}`
|
|
const keyName = `item-${index}-${pkeyIds}`
|
|
if (pkeyIds) {
|
|
if (pkeyIds) {
|
|
if (isStatus.value !== '3' && item.isTableForm) {
|
|
if (isStatus.value !== '3' && item.isTableForm) {
|
|
uploadModal.value = true
|
|
uploadModal.value = true
|
|
uploadData.value = getFormDataInit(item,pkeyIds)
|
|
uploadData.value = getFormDataInit(item,pkeyIds)
|
|
|
|
+ uploadData.value.tableType =tableType
|
|
|
|
+ uploadData.value.classify =classify
|
|
|
|
+ uploadData.value.id =id
|
|
|
|
+ console.log( uploadData.value,' uploadData.value');
|
|
//获取文件列表
|
|
//获取文件列表
|
|
getBussFileList(pkeyIds)
|
|
getBussFileList(pkeyIds)
|
|
} else if (!item.isRenderTableForm) {
|
|
} else if (!item.isRenderTableForm) {
|
|
@@ -579,8 +592,10 @@ const uploadClick = (item,index) => {
|
|
|
|
|
|
//获取文件列表
|
|
//获取文件列表
|
|
const getBussFileList = async (pkeyId) => {
|
|
const getBussFileList = async (pkeyId) => {
|
|
|
|
+ const { id } = baseData.value
|
|
const {error, code, data} = await wbsApi.getBussFileList({
|
|
const {error, code, data} = await wbsApi.getBussFileList({
|
|
- pkeyid: pkeyId
|
|
|
|
|
|
+ pkeyid: pkeyId,
|
|
|
|
+ id:id
|
|
})
|
|
})
|
|
if (!error && code === 200) {
|
|
if (!error && code === 200) {
|
|
fileListData.value = getArrValue(data)
|
|
fileListData.value = getArrValue(data)
|