数据交付联调
Showing
2 changed files
with
44 additions
and
11 deletions
| ... | @@ -62,24 +62,27 @@ const searchItemList = ref([ | ... | @@ -62,24 +62,27 @@ const searchItemList = ref([ |
| 62 | const tableFields = ref([ | 62 | const tableFields = ref([ |
| 63 | { label: "序号", type: "index", width: 56, align: "center" }, | 63 | { label: "序号", type: "index", width: 56, align: "center" }, |
| 64 | { | 64 | { |
| 65 | label: "数据产品名称", field: "dataProductName", width: 150, type: "text_btn", columClass: 'text_btn', value: "detail", click: (scope) => { | 65 | label: "数据产品名称", field: "dataProductName", width: 160, type: "text_btn", columClass: 'text_btn', value: "detail", click: (scope) => { |
| 66 | //是不是只有自己查看 | ||
| 66 | router.push({ | 67 | router.push({ |
| 67 | name: 'productListingDetail', | 68 | path: '/data-asset/register-catalog/register-catalog-detail', |
| 68 | query: { | 69 | query: { |
| 69 | guid: scope.row.dataProductGuid, | 70 | guid: scope.row.dataProductGuid, |
| 70 | type: 'detail', | 71 | type: 'detail', |
| 72 | dataSources: 2, | ||
| 73 | foundMode: 1, | ||
| 71 | name: scope.row.dataProductName, | 74 | name: scope.row.dataProductName, |
| 72 | } | 75 | } |
| 73 | }); | 76 | }); |
| 74 | } | 77 | } |
| 75 | }, | 78 | }, |
| 76 | { | 79 | { |
| 77 | label: "合约名称", field: "contractName", width: 160, type: "text_btn", columClass: 'text_btn', value: "detail1", click: (scope) => { | 80 | label: "合约名称", field: "contractName", width: 170, type: "text_btn", columClass: 'text_btn', value: "detail1", click: (scope) => { |
| 78 | //履约中的合约状态 | 81 | //履约中的合约状态 |
| 79 | router.push({ | 82 | router.push({ |
| 80 | name: 'smartContractDetail', | 83 | name: 'smartContractDetail', |
| 81 | query: { | 84 | query: { |
| 82 | guid: scope.row.guid, | 85 | guid: scope.row.contractGuid, |
| 83 | name: scope.row.contractName, | 86 | name: scope.row.contractName, |
| 84 | type: 'keepAgree', | 87 | type: 'keepAgree', |
| 85 | isDetail: 'Y' | 88 | isDetail: 'Y' |
| ... | @@ -186,7 +189,7 @@ const tableInfo = ref({ | ... | @@ -186,7 +189,7 @@ const tableInfo = ref({ |
| 186 | rowKey: 'guid', | 189 | rowKey: 'guid', |
| 187 | loading: false, | 190 | loading: false, |
| 188 | fields: tableFields.value, | 191 | fields: tableFields.value, |
| 189 | data: [], //{ verifySatus: 2 }, { verifySatus: 4 }, { verifySatus: 3, deliveryStatus: 2, } | 192 | data: <any>[], //{ verifySatus: 2 }, { verifySatus: 4 }, { verifySatus: 3, deliveryStatus: 2, } |
| 190 | page: { | 193 | page: { |
| 191 | type: "normal", | 194 | type: "normal", |
| 192 | rows: 0, | 195 | rows: 0, |
| ... | @@ -221,12 +224,36 @@ const tableInfo = ref({ | ... | @@ -221,12 +224,36 @@ const tableInfo = ref({ |
| 221 | } else { | 224 | } else { |
| 222 | 225 | ||
| 223 | } | 226 | } |
| 224 | 227 | if (row.isRefresh) { | |
| 228 | btns.push({ label: "刷新中", value: "execute", disabled: true }); | ||
| 229 | } | ||
| 225 | // 交付只有核验通过有。 | 230 | // 交付只有核验通过有。 |
| 226 | let verifySatus = row.verifySatus; | 231 | let verifySatus = row.verifySatus; |
| 227 | (verifySatus == 1 || verifySatus == 4) && btns.push({ | 232 | (verifySatus == 1 || verifySatus == 4) && !row.isRefresh && btns.push({ |
| 228 | value: 'refresh', label: '刷新', click: (scope) => { | 233 | value: 'refresh', label: '刷新', click: (scope) => { |
| 229 | 234 | scope.row.isRefresh = true; | |
| 235 | //只刷新当前这一条数据 | ||
| 236 | getPageList({ | ||
| 237 | pageIndex: page.value.curr, | ||
| 238 | pageSize: page.value.limit, | ||
| 239 | dataProductName: page.value.dataProductName, | ||
| 240 | contractName: page.value.contractName, | ||
| 241 | verifySatus: page.value.verifySatus, | ||
| 242 | deliveryGuid: scope.row.guid | ||
| 243 | }).then((res: any) => { | ||
| 244 | if (res?.code == proxy.$passCode) { | ||
| 245 | let data: any = res.data?.records?.[0] || []; | ||
| 246 | let index = scope.$index; | ||
| 247 | data.isRefresh = false; | ||
| 248 | tableInfo.value.data[index] = data; | ||
| 249 | proxy.$ElMessage.success('刷新成功'); | ||
| 250 | } else { | ||
| 251 | scope.row.isRefresh = false; | ||
| 252 | res?.msg && proxy.$ElMessage.error(res?.msg) | ||
| 253 | } | ||
| 254 | }).catch(() => { | ||
| 255 | tableInfo.value.loading = false | ||
| 256 | }) | ||
| 230 | } | 257 | } |
| 231 | }); | 258 | }); |
| 232 | if (verifySatus == 2) { | 259 | if (verifySatus == 2) { |
| ... | @@ -236,6 +263,7 @@ const tableInfo = ref({ | ... | @@ -236,6 +263,7 @@ const tableInfo = ref({ |
| 236 | verifyDialogInfo.value.visible = true; | 263 | verifyDialogInfo.value.visible = true; |
| 237 | verifyDialogInfo.value.contents[0].formInfo.items[0].default = 'TG'; | 264 | verifyDialogInfo.value.contents[0].formInfo.items[0].default = 'TG'; |
| 238 | verifyDialogInfo.value.contents[0].formInfo.items[1].default = ''; | 265 | verifyDialogInfo.value.contents[0].formInfo.items[1].default = ''; |
| 266 | verifyDialogInfo.value.contents[0].formInfo.items[1].visible = false; | ||
| 239 | } | 267 | } |
| 240 | }); | 268 | }); |
| 241 | } | 269 | } |
| ... | @@ -398,11 +426,12 @@ const verifyDialogInfo = ref({ | ... | @@ -398,11 +426,12 @@ const verifyDialogInfo = ref({ |
| 398 | 426 | ||
| 399 | const verifyDialogRadioChange = (val, info) => { | 427 | const verifyDialogRadioChange = (val, info) => { |
| 400 | verifyDialogInfo.value.contents[0].formInfo.items[1].visible = val == 'NTG'; | 428 | verifyDialogInfo.value.contents[0].formInfo.items[1].visible = val == 'NTG'; |
| 429 | verifyDialogInfo.value.contents[0].formInfo.items[0].default = val; | ||
| 401 | } | 430 | } |
| 402 | 431 | ||
| 403 | const verifyDialogBtnClick = (btn, info) => { | 432 | const verifyDialogBtnClick = (btn, info) => { |
| 404 | if (btn.value == 'submit') { | 433 | if (btn.value == 'submit') { |
| 405 | if (!info.verifySuggest) { | 434 | if (info.verifySatus == 'NTG' && !info.verifySuggest) { |
| 406 | proxy.$ElMessage.error('请先填写未通过理由'); | 435 | proxy.$ElMessage.error('请先填写未通过理由'); |
| 407 | return; | 436 | return; |
| 408 | } | 437 | } |
| ... | @@ -412,6 +441,7 @@ const verifyDialogBtnClick = (btn, info) => { | ... | @@ -412,6 +441,7 @@ const verifyDialogBtnClick = (btn, info) => { |
| 412 | })).then((res: any) => { | 441 | })).then((res: any) => { |
| 413 | verifyDialogInfo.value.footer.btns[1].loading = false; | 442 | verifyDialogInfo.value.footer.btns[1].loading = false; |
| 414 | if (res?.code == proxy.$passCode) { | 443 | if (res?.code == proxy.$passCode) { |
| 444 | verifyDialogInfo.value.visible = false; | ||
| 415 | proxy.$ElMessage.success('核验状态提交成功'); | 445 | proxy.$ElMessage.success('核验状态提交成功'); |
| 416 | getTableData(); | 446 | getTableData(); |
| 417 | } else { | 447 | } else { | ... | ... |
| ... | @@ -41,11 +41,14 @@ const tableFields = ref([ | ... | @@ -41,11 +41,14 @@ const tableFields = ref([ |
| 41 | { label: "序号", type: "index", width: 56, align: "center" }, | 41 | { label: "序号", type: "index", width: 56, align: "center" }, |
| 42 | { | 42 | { |
| 43 | label: "数据产品名称", field: "dataProductName", width: 150, type: "text_btn", columClass: 'text_btn', value: "detail", click: (scope) => { | 43 | label: "数据产品名称", field: "dataProductName", width: 150, type: "text_btn", columClass: 'text_btn', value: "detail", click: (scope) => { |
| 44 | //TODO.是在数据使用方使用的 | ||
| 44 | router.push({ | 45 | router.push({ |
| 45 | name: 'productListingDetail', | 46 | path: '/data-asset/register-catalog/register-catalog-detail', |
| 46 | query: { | 47 | query: { |
| 47 | guid: scope.row.dataProductGuid, | 48 | guid: scope.row.dataProductGuid, |
| 48 | type: 'detail', | 49 | type: 'detail', |
| 50 | dataSources: 2, | ||
| 51 | foundMode: 1, | ||
| 49 | name: scope.row.dataProductName, | 52 | name: scope.row.dataProductName, |
| 50 | } | 53 | } |
| 51 | }); | 54 | }); |
| ... | @@ -57,7 +60,7 @@ const tableFields = ref([ | ... | @@ -57,7 +60,7 @@ const tableFields = ref([ |
| 57 | router.push({ | 60 | router.push({ |
| 58 | name: 'smartContractDetail', | 61 | name: 'smartContractDetail', |
| 59 | query: { | 62 | query: { |
| 60 | guid: scope.row.guid, | 63 | guid: scope.row.contractGuid, |
| 61 | name: scope.row.contractName, | 64 | name: scope.row.contractName, |
| 62 | type: 'keepAgree', | 65 | type: 'keepAgree', |
| 63 | isDetail: 'Y' | 66 | isDetail: 'Y' | ... | ... |
-
Please register or sign in to post a comment