入库单明细增加操作日志
							parent
							
								
									72a1b7773e
								
							
						
					
					
						commit
						90d593a388
					
				| 
						 | 
					@ -107,7 +107,10 @@
 | 
				
			||||||
async function ajaxQuery() {
 | 
					async function ajaxQuery() {
 | 
				
			||||||
  try {
 | 
					  try {
 | 
				
			||||||
    tableLoading.value = true;
 | 
					    tableLoading.value = true;
 | 
				
			||||||
      let responseModel = await dataTracerApi.queryList(Object.assign({}, queryForm, { dataId: props.dataId, type: props.type }));
 | 
					    let responseModel = await dataTracerApi.queryList(Object.assign({}, queryForm, {
 | 
				
			||||||
 | 
					      dataId: props.dataId,
 | 
				
			||||||
 | 
					      type: props.type
 | 
				
			||||||
 | 
					    }));
 | 
				
			||||||
    for (const e of responseModel.data.list) {
 | 
					    for (const e of responseModel.data.list) {
 | 
				
			||||||
      if (!e.userAgent) {
 | 
					      if (!e.userAgent) {
 | 
				
			||||||
        continue;
 | 
					        continue;
 | 
				
			||||||
| 
						 | 
					@ -144,6 +147,7 @@
 | 
				
			||||||
// diff
 | 
					// diff
 | 
				
			||||||
const visibleDiff = ref(false);
 | 
					const visibleDiff = ref(false);
 | 
				
			||||||
let prettyHtml = ref('');
 | 
					let prettyHtml = ref('');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function showDetail(record) {
 | 
					function showDetail(record) {
 | 
				
			||||||
  visibleDiff.value = true;
 | 
					  visibleDiff.value = true;
 | 
				
			||||||
  let diffOld = record.diffOld.replaceAll('<br/>', '\r\n');
 | 
					  let diffOld = record.diffOld.replaceAll('<br/>', '\r\n');
 | 
				
			||||||
| 
						 | 
					@ -177,4 +181,8 @@
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  });
 | 
					  });
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					defineExpose({
 | 
				
			||||||
 | 
					  ajaxQuery
 | 
				
			||||||
 | 
					});
 | 
				
			||||||
</script>
 | 
					</script>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -24,6 +24,14 @@ export const DATA_TRACER_TYPE_ENUM: SmartEnum<number> = {
 | 
				
			||||||
        value: 3,
 | 
					        value: 3,
 | 
				
			||||||
        desc: 'OA-企业信息',
 | 
					        desc: 'OA-企业信息',
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					    ASN: {
 | 
				
			||||||
 | 
					        value: 4,
 | 
				
			||||||
 | 
					        desc: '入库',
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    ASN_DETAIL: {
 | 
				
			||||||
 | 
					        value: 5,
 | 
				
			||||||
 | 
					        desc: '入库明细',
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export default {
 | 
					export default {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -90,7 +90,7 @@
 | 
				
			||||||
        <AsnTaskList ref="asnTaskListRef" :asnId="form.asnId"/>
 | 
					        <AsnTaskList ref="asnTaskListRef" :asnId="form.asnId"/>
 | 
				
			||||||
      </a-tab-pane>
 | 
					      </a-tab-pane>
 | 
				
			||||||
      <a-tab-pane key="dataTracer" tab="操作记录">
 | 
					      <a-tab-pane key="dataTracer" tab="操作记录">
 | 
				
			||||||
        <DataTracer :dataId="form.asnId" :type="DATA_TRACER_TYPE_ENUM.OA_ENTERPRISE.value"/>
 | 
					        <DataTracer ref="dataTracerRef" :dataId="form.asnId" :type="DATA_TRACER_TYPE_ENUM.ASN.value"/>
 | 
				
			||||||
      </a-tab-pane>
 | 
					      </a-tab-pane>
 | 
				
			||||||
    </a-tabs>
 | 
					    </a-tabs>
 | 
				
			||||||
  </a-card>
 | 
					  </a-card>
 | 
				
			||||||
| 
						 | 
					@ -238,11 +238,15 @@ function onBack() {
 | 
				
			||||||
//选项卡
 | 
					//选项卡
 | 
				
			||||||
const receiveDetailListRef = ref()
 | 
					const receiveDetailListRef = ref()
 | 
				
			||||||
const asnTaskListRef = ref()
 | 
					const asnTaskListRef = ref()
 | 
				
			||||||
 | 
					const dataTracerRef = ref()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function handleTabChange(activeKey: string) {
 | 
					function handleTabChange(activeKey: string) {
 | 
				
			||||||
  if (activeKey === 'asnDetail' && receiveDetailListRef.value) {
 | 
					  if (activeKey === 'asnDetail' && receiveDetailListRef.value) {
 | 
				
			||||||
    receiveDetailListRef.value.queryData();
 | 
					    receiveDetailListRef.value.queryData();
 | 
				
			||||||
  } else if (activeKey === 'asnTask' && asnTaskListRef.value) {
 | 
					  } else if (activeKey === 'asnTask' && asnTaskListRef.value) {
 | 
				
			||||||
    asnTaskListRef.value.queryData();
 | 
					    asnTaskListRef.value.queryData();
 | 
				
			||||||
 | 
					  } else if (activeKey === 'dataTracer' && dataTracerRef.value) {
 | 
				
			||||||
 | 
					    dataTracerRef.value.ajaxQuery();
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
</script>
 | 
					</script>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -157,9 +157,6 @@ async function queryData() {
 | 
				
			||||||
    let queryResult = await taskApi.queryPage(queryForm);
 | 
					    let queryResult = await taskApi.queryPage(queryForm);
 | 
				
			||||||
    tableData.value = queryResult.data.list;
 | 
					    tableData.value = queryResult.data.list;
 | 
				
			||||||
    total.value = queryResult.data.total;
 | 
					    total.value = queryResult.data.total;
 | 
				
			||||||
 | 
					 | 
				
			||||||
    console.log(props.asnId);
 | 
					 | 
				
			||||||
    console.log(selectedRowKeyList.value);
 | 
					 | 
				
			||||||
  } catch (e) {
 | 
					  } catch (e) {
 | 
				
			||||||
    smartSentry.captureError(e);
 | 
					    smartSentry.captureError(e);
 | 
				
			||||||
  } finally {
 | 
					  } finally {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue